/* 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 { FTMRegistrarController, FTMRegistrarControllerInterface, } from '../FTMRegistrarController' const _abi = [ { inputs: [ { internalType: 'contract BaseRegistrarImplementation', name: '_base', type: 'address', }, { internalType: 'contract IPriceOracle', name: '_prices', type: 'address', }, { internalType: 'uint256', name: '_minCommitmentAge', type: 'uint256', }, { internalType: 'uint256', name: '_maxCommitmentAge', type: 'uint256', }, { internalType: 'contract ReverseRegistrar', name: '_reverseRegistrar', type: 'address', }, { internalType: 'contract INameWrapper', name: '_nameWrapper', type: 'address', }, ], stateMutability: 'nonpayable', type: 'constructor', }, { inputs: [ { internalType: 'bytes32', name: 'commitment', type: 'bytes32', }, ], name: 'CommitmentTooNew', type: 'error', }, { inputs: [ { internalType: 'bytes32', name: 'commitment', type: 'bytes32', }, ], name: 'CommitmentTooOld', type: 'error', }, { inputs: [ { internalType: 'uint256', name: 'duration', type: 'uint256', }, ], name: 'DurationTooShort', type: 'error', }, { inputs: [], name: 'InsufficientValue', type: 'error', }, { inputs: [], name: 'MaxCommitmentAgeTooHigh', type: 'error', }, { inputs: [], name: 'MaxCommitmentAgeTooLow', type: 'error', }, { inputs: [ { internalType: 'string', name: 'name', type: 'string', }, ], name: 'NameNotAvailable', type: 'error', }, { inputs: [], name: 'ResolverRequiredWhenDataSupplied', type: 'error', }, { inputs: [ { internalType: 'bytes32', name: 'commitment', type: 'bytes32', }, ], name: 'UnexpiredCommitmentExists', type: 'error', }, { anonymous: false, inputs: [ { indexed: false, internalType: 'string', name: 'name', type: 'string', }, { indexed: true, internalType: 'bytes32', name: 'label', type: 'bytes32', }, { indexed: true, internalType: 'address', name: 'owner', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'baseCost', type: 'uint256', }, { indexed: false, internalType: 'uint256', name: 'premium', type: 'uint256', }, { indexed: false, internalType: 'uint256', name: 'expires', type: 'uint256', }, ], name: 'NameRegistered', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, internalType: 'string', name: 'name', type: 'string', }, { indexed: true, internalType: 'bytes32', name: 'label', type: 'bytes32', }, { indexed: false, internalType: 'uint256', name: 'cost', 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', }, { inputs: [], name: 'MIN_REGISTRATION_DURATION', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'string', name: 'name', type: 'string', }, ], name: 'available', outputs: [ { internalType: 'bool', name: '', type: 'bool', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'commitment', type: 'bytes32', }, ], name: 'commit', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: '', type: 'bytes32', }, ], name: 'commitments', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'string', name: 'name', type: 'string', }, { internalType: 'address', name: 'owner', type: 'address', }, { internalType: 'uint256', name: 'duration', type: 'uint256', }, { internalType: 'bytes32', name: 'secret', type: 'bytes32', }, { internalType: 'address', name: 'resolver', type: 'address', }, { internalType: 'bytes[]', name: 'data', type: 'bytes[]', }, { internalType: 'bool', name: 'reverseRecord', type: 'bool', }, { internalType: 'uint16', name: 'ownerControlledFuses', type: 'uint16', }, ], name: 'makeCommitment', outputs: [ { internalType: 'bytes32', name: '', type: 'bytes32', }, ], stateMutability: 'pure', type: 'function', }, { inputs: [], name: 'maxCommitmentAge', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'minCommitmentAge', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'nameWrapper', outputs: [ { internalType: 'contract INameWrapper', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'owner', outputs: [ { internalType: 'address', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'prices', outputs: [ { internalType: 'contract IPriceOracle', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: '_token', type: 'address', }, { internalType: 'address', name: '_to', type: 'address', }, { internalType: 'uint256', name: '_amount', type: 'uint256', }, ], name: 'recoverFunds', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'string', name: 'name', type: 'string', }, { internalType: 'address', name: 'owner', type: 'address', }, { internalType: 'uint256', name: 'duration', type: 'uint256', }, { internalType: 'bytes32', name: 'secret', type: 'bytes32', }, { internalType: 'address', name: 'resolver', type: 'address', }, { internalType: 'bytes[]', name: 'data', type: 'bytes[]', }, { internalType: 'bool', name: 'reverseRecord', type: 'bool', }, { internalType: 'uint16', name: 'ownerControlledFuses', type: 'uint16', }, ], name: 'register', outputs: [], stateMutability: 'payable', type: 'function', }, { inputs: [ { internalType: 'string', name: 'name', type: 'string', }, { internalType: 'uint256', name: 'duration', type: 'uint256', }, ], name: 'renew', outputs: [], stateMutability: 'payable', type: 'function', }, { inputs: [], name: 'renounceOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'string', name: 'name', type: 'string', }, { internalType: 'uint256', name: 'duration', type: 'uint256', }, ], name: 'rentPrice', outputs: [ { components: [ { internalType: 'uint256', name: 'base', type: 'uint256', }, { internalType: 'uint256', name: 'premium', type: 'uint256', }, ], internalType: 'struct IPriceOracle.Price', name: 'price', type: 'tuple', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'reverseRegistrar', outputs: [ { internalType: 'contract ReverseRegistrar', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'bytes4', name: 'interfaceID', type: 'bytes4', }, ], name: 'supportsInterface', outputs: [ { internalType: 'bool', name: '', type: 'bool', }, ], stateMutability: 'pure', type: 'function', }, { inputs: [ { internalType: 'address', name: 'newOwner', type: 'address', }, ], name: 'transferOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'string', name: 'name', type: 'string', }, ], name: 'valid', outputs: [ { internalType: 'bool', name: '', type: 'bool', }, ], stateMutability: 'pure', type: 'function', }, { inputs: [], name: 'withdraw', outputs: [], stateMutability: 'nonpayable', type: 'function', }, ] export class FTMRegistrarController__factory { static readonly abi = _abi static createInterface(): FTMRegistrarControllerInterface { return new Interface(_abi) as FTMRegistrarControllerInterface } static connect( address: string, signerOrProvider: Signer | Provider, ): FTMRegistrarController { return new Contract( address, _abi, signerOrProvider, ) as FTMRegistrarController } }