๐ZNSAddressResolver
The specific Resolver for ZNS that maps domain hashes to Ethereum addresses these domains were made for.
This Resolver supports ONLY the address type. Every domain in ZNS made for a contract or wallet address will have a corresponding record in this Resolver.
domainAddresses
Mapping of domain hash to address used to bind domains to Ethereum wallets or contracts registered in ZNS.
constructor
initialize
Initializer for the ZNSAddressResolver
proxy. Note that setter functions are used instead of direct state variable assignments to use access control at deploy time. Only ADMIN can call this function.
Parameters
resolveDomainAddress
Returns address associated with a given domain name hash.
Parameters
setAddress
Sets the address for a domain name hash. This function can only be called by the owner, operator of the domain OR by the ZNSRootRegistrar.sol
as a part of the Register flow. Emits an AddressSet
event.
Parameters
supportsInterface
ERC-165 check for implementation identifier Supports interfaces IZNSAddressResolver and IERC165
Parameters
getInterfaceId
Exposes IZNSAddressResolver interfaceId
setRegistry
Sets the address of the ZNSRegistry
contract that holds all crucial data for every domain in the system. This function can only be called by the ADMIN. Emits a RegistrySet
event.
Parameters
_authorizeUpgrade
To use UUPS proxy we override this function and revert if msg.sender
isn't authorized