๐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.
In the future, there will be multiple Resolver contracts that support different types of sources. Currently, only the ZNSAddressResolver
is implemented.
DomainRecord
DomainOwnerSet
Emits when ownership of a domain is modified in records
Parameters
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
domainHash | bytes32 | the hash of a domain's name |
resolver | address | The new resolver address |
DomainRecordDeleted
Emits when a domain record is deleted
Parameters
Name | Type | Description |
---|---|---|
domainHash | bytes32 | The hash of a domain's name |
OperatorPermissionSet
Emit when an owner allows/disallows permissions for an operator
Parameters
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
operator | address | The account to allow/disallow |
allowed | bool | The true/false value to set |