๐ŸŒทIZNSSubRegistrar

IZNSSubRegistrar.sol - Interface for the ZNSSubRegistrar contract responsible for registering subdomains.

PricerContractSet

event PricerContractSet(bytes32 domainHash, address pricerContract)

Emitted when a new DistributionConfig.pricerContract is set for a domain.

PaymentTypeSet

event PaymentTypeSet(bytes32 domainHash, enum IDistributionConfig.PaymentType paymentType)

Emitted when a new DistributionConfig.paymentType is set for a domain.

AccessTypeSet

event AccessTypeSet(bytes32 domainHash, enum IDistributionConfig.AccessType accessType)

Emitted when a new DistributionConfig.accessType is set for a domain.

DistributionConfigSet

event DistributionConfigSet(bytes32 domainHash, contract IZNSPricer pricerContract, enum IDistributionConfig.PaymentType paymentType, enum IDistributionConfig.AccessType accessType)

Emitted when a new full DistributionConfig is set for a domain at once.

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.

distrConfigs

function distrConfigs(bytes32 domainHash) external view returns (contract IZNSPricer pricerContract, enum IDistributionConfig.PaymentType paymentType, enum IDistributionConfig.AccessType accessType)

isMintlistedForDomain

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

initialize

function initialize(address _accessController, address _registry, address _rootRegistrar) external

registerSubdomain

function registerSubdomain(bytes32 parentHash, string label, address domainAddress, string tokenURI, struct IDistributionConfig.DistributionConfig configForSubdomains, struct PaymentConfig paymentConfig) external returns (bytes32)

hashWithParent

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

setDistributionConfigForDomain

function setDistributionConfigForDomain(bytes32 parentHash, struct IDistributionConfig.DistributionConfig config) external

setPricerContractForDomain

function setPricerContractForDomain(bytes32 domainHash, 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