π³IZNSRootRegistrar
CoreRegisterArgs
Stake fee is 0x0 for anything other than subdomain under a parent with Stake Payment parent hash will be 0x0 for root domain
struct CoreRegisterArgs {
bytes32 parentHash;
bytes32 domainHash;
bool isStakePayment;
address domainOwner;
address tokenOwner;
address domainAddress;
uint256 price;
uint256 stakeFee;
struct PaymentConfig paymentConfig;
string label;
string tokenURI;
}IZNSRootRegistrar
IZNSRootRegistrar.sol - Interface for the ZNSRootRegistrar contract resposible for registering root domains.
Below are docs for the types in this file:
CoreRegisterArgs: Struct containing all the arguments required to register a domain with ZNSRootRegistrar.coreRegister():parentHash: The hash of the parent domain (0x0 for root domains)domainHash: The hash of the domain to be registeredisStakePayment: A flag for whether the payment is a stake payment or notdomainOwner: The address that will be set as owner in Registry recordtokenOwner: The address that will be set as owner in DomainToken contractdomainAddress: The address to which the domain will be resolved toprice: The determined price for the domain to be registered based on parent rulesstakeFee: The determined stake fee for the domain to be registered (only for PaymentType.STAKE!)paymentConfig: The payment config for the domain to be registeredlabel: The label of the domain to be registeredtokenURI: The tokenURI for the domain to be registered
RootDomainRegistrationArgs
AlreadyTokenOwner
Reverted when trying to assign a token to address that is already an owner
Parameters
domainHash
bytes32
The hash of the domain
currentOwner
address
The address that is already an owner of the token
DomainRegistered
Emitted when a NEW domain is registered.
domainAddress parameter is the address to which a domain name will relate to in ZNS. E.g. if a user made a domain for his wallet, the address of the wallet will be the domainAddress. This can be 0 as this variable is not required to perform registration process and can be set at a later time by the domain owner.
Parameters
parentHash
bytes32
The hash of the parent domain (0x0 for root domains)
domainHash
bytes32
The hash of the domain registered
label
string
The name as the last part of the full domain string (level) registered
tokenId
uint256
The tokenId of the domain registered
tokenURI
string
The tokenURI of the domain registered
domainOwner
address
The address became owner in Registry record
tokenOwner
address
The optinal address the token will be assigned to, to offer domain usage without ownership
domainAddress
address
The domain address of the domain registered
DomainRevoked
Emitted when a domain is revoked.
Parameters
domainHash
bytes32
The hash of the domain revoked
owner
address
The address that called ZNSRootRegistrar.sol.revokeDomain() and domain owner
stakeRefunded
bool
A flag for whether the stake was refunded or not
DomainTokenReassigned
Emitted when the hash (registry record) owner is sending a token to another address through the RootRegistrar.
Parameters
domainHash
bytes32
The hash of the domain reclaimed
newOwner
address
The address that called ZNSRootRegistrar.reclaimDomain()
RootPricerSet
Emitted when the rootPricer address and the rootPriceConfig values are set in state.
Parameters
rootPricer
address
The new address of any IZNSPricer type contract
priceConfig
bytes
The encoded bytes for the price config
RootPriceConfigSet
Emitted when the rootPriceConfig value is set in state.
Parameters
priceConfig
bytes
The encoded bytes for the price config
TreasurySet
Emitted when the treasury address is set in state.
Parameters
treasury
address
The new address of the Treasury contract
DomainTokenSet
Emitted when the domainToken address is set in state.
Parameters
domainToken
address
The new address of the DomainToken contract
SubRegistrarSet
Emitted when the subRegistrar address is set in state.
Parameters
subRegistrar
address
The new address of the SubRegistrar contract
initialize
registerRootDomain
registerRootDomainBulk
coreRegister
revokeDomain
assignDomainToken
setRegistry
setRootPricerAndConfig
setRootPriceConfig
setTreasury
setDomainToken
setSubRegistrar
pauseRegistration
unpauseRegistration
rootPricer
rootPriceConfig
treasury
domainToken
subRegistrar
Last updated