πIZNSRegistry
IZNSRegistry
The DomainRecord struct is meant to hold relevant information about a domain, such as its owner and resolver.
owner(address): The owner of the domain (also called the owner of the Name).resolver(address): The address of the Resolver contract where this domain's source records are stored.
DomainRecord
Description of a domain record, pointing to the owner address of that record as well as the address of its resolver
struct DomainRecord {
address owner;
address resolver;
}DomainOwnerSet
event DomainOwnerSet(bytes32 domainHash, address owner)Emits when ownership of a domain is modified in records
Parameters
domainHash
bytes32
the hash of a domain's name
owner
address
The new domain owner
DomainResolverSet
Emit when a domain's resolver is modified in records
Parameters
domainHash
bytes32
the hash of a domain's name
resolver
address
The new resolver address
DomainRecordDeleted
Emits when a domain record is deleted
Parameters
domainHash
bytes32
The hash of a domain's name
OperatorPermissionSet
Emit when an owner allows/disallows permissions for an operator
Parameters
owner
address
Owner of the domain in question
operator
address
Address that was allowed/disallowed
allowed
bool
Boolean status of their permission
ResolverAdded
Emitted when a new resolver type is added to ZNS
Parameters
resolverType
string
The name of the resolver type
resolver
address
The address of the resolver contract
ResolverDeleted
Emitted when a resolver is deleted from ZNS
Parameters
resolverType
string
The name of the resolver type
initialize
exists
isOwnerOrOperator
isOperatorFor
setOwnersOperator
Set an operator as allowed to give or remove permissions for all domains owned by msg.sender
Parameters
operator
address
The account to allow/disallow
allowed
bool
The true/false value to set
getDomainRecord
getDomainOwner
getDomainResolver
createDomainRecord
getResolverType
addResolverType
deleteResolverType
updateDomainRecord
updateDomainOwner
updateDomainResolver
deleteRecord
Last updated