π·IZNSSubRegistrar
IZNSSubRegistrar
IZNSSubRegistrar.sol - Interface for the ZNSSubRegistrar contract responsible for registering subdomains.
SubdomainRegisterArgs
struct SubdomainRegisterArgs {
bytes32 parentHash;
address domainAddress;
address tokenOwner;
string tokenURI;
struct IDistributionConfig.DistributionConfig distrConfig;
struct PaymentConfig paymentConfig;
string label;
}ParentLockedOrDoesntExist
error ParentLockedOrDoesntExist(bytes32 parentHash)Reverted when someone other than parent owner is trying to buy a subdomain under the parent that is locked or when the parent provided does not exist.
SenderNotApprovedForPurchase
error SenderNotApprovedForPurchase(bytes32 parentHash, address sender)Reverted when the buyer of subdomain is not approved by the parent in it's mintlist.
ZeroParentHash
error ZeroParentHash(string label)Reverted when the subdomain is nested and doesn't have parentHash. Attaches a domain label.
PricerDataSet
event PricerDataSet(bytes32 domainHash, bytes priceConfig, address pricerContract)Emitted when a new DistributionConfig.pricerContract is set for a domain.
MintlistUpdated
event MintlistUpdated(bytes32 domainHash, uint256 ownerIndex, address[] candidates, bool[] allowed)Emitted when a mintlist is updated for a domain.
MintlistCleared
event MintlistCleared(bytes32 domainHash)RootRegistrarSet
event RootRegistrarSet(address registrar)Emitted when the ZNSRootRegistrar address is set in state.
initialize
function initialize(address _accessController, address _registry, address _rootRegistrar) externaldistrConfigs
function distrConfigs(bytes32 domainHash) external view returns (contract IZNSPricer pricerContract, enum IDistributionConfig.PaymentType paymentType, enum IDistributionConfig.AccessType accessType, bytes priceConfig)registerSubdomain
function registerSubdomain(struct IZNSSubRegistrar.SubdomainRegisterArgs registration) external returns (bytes32)registerSubdomainBulk
function registerSubdomainBulk(struct IZNSSubRegistrar.SubdomainRegisterArgs[] args) external returns (bytes32[])setDistributionConfigForDomain
function setDistributionConfigForDomain(bytes32 parentHash, struct IDistributionConfig.DistributionConfig config) externalsetPricerDataForDomain
function setPricerDataForDomain(bytes32 domainHash, bytes priceConfig, contract IZNSPricer pricerContract) externalsetPaymentTypeForDomain
function setPaymentTypeForDomain(bytes32 domainHash, enum IDistributionConfig.PaymentType paymentType) externalsetAccessTypeForDomain
function setAccessTypeForDomain(bytes32 domainHash, enum IDistributionConfig.AccessType accessType) externalupdateMintlistForDomain
function updateMintlistForDomain(bytes32 domainHash, address[] candidates, bool[] allowed) externalclearMintlistForDomain
function clearMintlistForDomain(bytes32 domainHash) externalclearMintlistAndLock
function clearMintlistAndLock(bytes32 domainHash) externalsetRegistry
function setRegistry(address registry_) externalsetRootRegistrar
function setRootRegistrar(address registrar_) externalisMintlistedForDomain
function isMintlistedForDomain(bytes32 domainHash, address candidate) external view returns (bool)hashWithParent
function hashWithParent(bytes32 parentHash, string label) external pure returns (bytes32)pauseRegistration
function pauseRegistration() externalunpauseRegistration
function unpauseRegistration() externalrootRegistrar
function rootRegistrar() external returns (contract IZNSRootRegistrar)Last updated