๐ณIZNSRootRegistrar
CoreRegisterArgs
IZNSRootRegistrar
IZNSRootRegistrar.sol - Interface for the ZNSRootRegistrar contract resposible for registering root domains.
Below are docs for the types in this file:
OwnerOf
: Enum signifying ownership of ZNS entitiesNAME: The owner of the Name only
TOKEN: The owner of the Token only
BOTH: The owner of both the Name and the Token
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 registeredlabel
: The label of the domain to be registeredregistrant
: The address of the user who is registering the domainprice
: 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!)domainAddress
: The address to which the domain will be resolved totokenURI
: The tokenURI for the domain to be registeredisStakePayment
: A flag for whether the payment is a stake payment or not
OwnerOf
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
Name | Type | Description |
---|---|---|
parentHash | bytes32 | The hash of the parent domain (0x0 for root domains) |
domainHash | bytes32 | The hash of the domain registered |
tokenId | uint256 | The tokenId of the domain registered |
label | string | The name as the last part of the full domain string (level) registered |
registrant | address | The address that called |
domainAddress | address | The domain address of the domain registered |
DomainRevoked
Emitted when a domain is revoked.
Parameters
Name | Type | Description |
---|---|---|
domainHash | bytes32 | The hash of the domain revoked |
owner | address | The address that called |
stakeRefunded | bool | A flag for whether the stake was refunded or not |
DomainReclaimed
Emitted when an ownership of the Name is reclaimed by the Token owner.
Parameters
Name | Type | Description |
---|---|---|
domainHash | bytes32 | The hash of the domain reclaimed |
registrant | address | The address that called |
RootPricerSet
Emitted when the rootPricer
address is set in state.
Parameters
Name | Type | Description |
---|---|---|
rootPricer | address | The new address of any IZNSPricer type contract |
TreasurySet
Emitted when the treasury
address is set in state.
Parameters
Name | Type | Description |
---|---|---|
treasury | address | The new address of the Treasury contract |
DomainTokenSet
Emitted when the domainToken
address is set in state.
Parameters
Name | Type | Description |
---|---|---|
domainToken | address | The new address of the DomainToken contract |
SubRegistrarSet
Emitted when the subRegistrar
address is set in state.
Parameters
Name | Type | Description |
---|---|---|
subRegistrar | address | The new address of the SubRegistrar contract |