๐ŸŒท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) external

distrConfigs

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) external

setPricerDataForDomain

function setPricerDataForDomain(bytes32 domainHash, bytes priceConfig, contract IZNSPricer pricerContract) external

setPaymentTypeForDomain

function setPaymentTypeForDomain(bytes32 domainHash, enum IDistributionConfig.PaymentType paymentType) external

setAccessTypeForDomain

function setAccessTypeForDomain(bytes32 domainHash, enum IDistributionConfig.AccessType accessType) external

updateMintlistForDomain

function updateMintlistForDomain(bytes32 domainHash, address[] candidates, bool[] allowed) external

clearMintlistForDomain

function clearMintlistForDomain(bytes32 domainHash) external

clearMintlistAndLock

function clearMintlistAndLock(bytes32 domainHash) external

setRegistry

function setRegistry(address registry_) external

setRootRegistrar

function setRootRegistrar(address registrar_) external

isMintlistedForDomain

function isMintlistedForDomain(bytes32 domainHash, address candidate) external view returns (bool)

hashWithParent

function hashWithParent(bytes32 parentHash, string label) external pure returns (bytes32)

pauseRegistration

function pauseRegistration() external

unpauseRegistration

function unpauseRegistration() external

rootRegistrar

function rootRegistrar() external returns (contract IZNSRootRegistrar)

Last updated