/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Interface } from '@ethersproject/abi' import { Signer } from '@ethersproject/abstract-signer' import { Contract } from '@ethersproject/contracts' import type { Provider } from '@ethersproject/providers' import type { BaseRegistrarImplementation, BaseRegistrarImplementationInterface, } from '../BaseRegistrarImplementation' const _abi = [ { inputs: [ { internalType: 'contract FNS', name: '_fns', type: 'address', }, { internalType: 'bytes32', name: '_baseNode', type: 'bytes32', }, ], payable: false, stateMutability: 'nonpayable', type: 'constructor', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'owner', type: 'address', }, { indexed: true, internalType: 'address', name: 'approved', type: 'address', }, { indexed: true, internalType: 'uint256', name: 'tokenId', type: 'uint256', }, ], name: 'Approval', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'owner', type: 'address', }, { indexed: true, internalType: 'address', name: 'operator', type: 'address', }, { indexed: false, internalType: 'bool', name: 'approved', type: 'bool', }, ], name: 'ApprovalForAll', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'controller', type: 'address', }, ], name: 'ControllerAdded', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'controller', type: 'address', }, ], name: 'ControllerRemoved', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'uint256', name: 'id', type: 'uint256', }, { indexed: true, internalType: 'address', name: 'owner', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'expires', type: 'uint256', }, ], name: 'NameMigrated', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'uint256', name: 'id', type: 'uint256', }, { indexed: true, internalType: 'address', name: 'owner', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'expires', type: 'uint256', }, ], name: 'NameRegistered', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'uint256', name: 'id', type: 'uint256', }, { indexed: false, internalType: 'uint256', name: 'expires', type: 'uint256', }, ], name: 'NameRenewed', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'previousOwner', type: 'address', }, { indexed: true, internalType: 'address', name: 'newOwner', type: 'address', }, ], name: 'OwnershipTransferred', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'from', type: 'address', }, { indexed: true, internalType: 'address', name: 'to', type: 'address', }, { indexed: true, internalType: 'uint256', name: 'tokenId', type: 'uint256', }, ], name: 'Transfer', type: 'event', }, { constant: true, inputs: [], name: 'GRACE_PERIOD', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'controller', type: 'address', }, ], name: 'addController', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'to', type: 'address', }, { internalType: 'uint256', name: 'tokenId', type: 'uint256', }, ], name: 'approve', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [ { internalType: 'uint256', name: 'id', type: 'uint256', }, ], name: 'available', outputs: [ { internalType: 'bool', name: '', type: 'bool', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { internalType: 'address', name: 'owner', type: 'address', }, ], name: 'balanceOf', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'baseNode', outputs: [ { internalType: 'bytes32', name: '', type: 'bytes32', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { internalType: 'address', name: '', type: 'address', }, ], name: 'controllers', outputs: [ { internalType: 'bool', name: '', type: 'bool', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'fns', outputs: [ { internalType: 'contract FNS', name: '', type: 'address', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { internalType: 'uint256', name: 'tokenId', type: 'uint256', }, ], name: 'getApproved', outputs: [ { internalType: 'address', name: '', type: 'address', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { internalType: 'address', name: 'owner', type: 'address', }, { internalType: 'address', name: 'operator', type: 'address', }, ], name: 'isApprovedForAll', outputs: [ { internalType: 'bool', name: '', type: 'bool', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'isOwner', outputs: [ { internalType: 'bool', name: '', type: 'bool', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { internalType: 'uint256', name: 'id', type: 'uint256', }, ], name: 'nameExpires', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'owner', outputs: [ { internalType: 'address', name: '', type: 'address', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { internalType: 'uint256', name: 'tokenId', type: 'uint256', }, ], name: 'ownerOf', outputs: [ { internalType: 'address', name: '', type: 'address', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { internalType: 'uint256', name: 'id', type: 'uint256', }, { internalType: 'address', name: 'owner', type: 'address', }, ], name: 'reclaim', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'uint256', name: 'id', type: 'uint256', }, { internalType: 'address', name: 'owner', type: 'address', }, { internalType: 'uint256', name: 'duration', type: 'uint256', }, ], name: 'register', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'uint256', name: 'id', type: 'uint256', }, { internalType: 'address', name: 'owner', type: 'address', }, { internalType: 'uint256', name: 'duration', type: 'uint256', }, ], name: 'registerOnly', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'controller', type: 'address', }, ], name: 'removeController', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'uint256', name: 'id', type: 'uint256', }, { internalType: 'uint256', name: 'duration', type: 'uint256', }, ], name: 'renew', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [], name: 'renounceOwnership', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'from', type: 'address', }, { internalType: 'address', name: 'to', type: 'address', }, { internalType: 'uint256', name: 'tokenId', type: 'uint256', }, ], name: 'safeTransferFrom', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'from', type: 'address', }, { internalType: 'address', name: 'to', type: 'address', }, { internalType: 'uint256', name: 'tokenId', type: 'uint256', }, { internalType: 'bytes', name: '_data', type: 'bytes', }, ], name: 'safeTransferFrom', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'to', type: 'address', }, { internalType: 'bool', name: 'approved', type: 'bool', }, ], name: 'setApprovalForAll', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'resolver', type: 'address', }, ], name: 'setResolver', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [ { internalType: 'bytes4', name: 'interfaceID', type: 'bytes4', }, ], name: 'supportsInterface', outputs: [ { internalType: 'bool', name: '', type: 'bool', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'from', type: 'address', }, { internalType: 'address', name: 'to', type: 'address', }, { internalType: 'uint256', name: 'tokenId', type: 'uint256', }, ], name: 'transferFrom', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { internalType: 'address', name: 'newOwner', type: 'address', }, ], name: 'transferOwnership', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, ] export class BaseRegistrarImplementation__factory { static readonly abi = _abi static createInterface(): BaseRegistrarImplementationInterface { return new Interface(_abi) as BaseRegistrarImplementationInterface } static connect( address: string, signerOrProvider: Signer | Provider, ): BaseRegistrarImplementation { return new Contract( address, _abi, signerOrProvider, ) as BaseRegistrarImplementation } }