ENSSubdomainRegistrar
Last updated
Was this helpful?
Last updated
Was this helpful?
is ,
Source:
event``
DeleteName
(bytes32 node, bytes32 label)
Parameters:
node
- bytes32
label
- bytes32
event``
NewName
(bytes32 node, bytes32 label)
Parameters:
node
- bytes32
label
- bytes32
function``
_createName
(bytes32 _label, address _owner) internal returns (bytes32)
Parameters:
_label
- bytes32
_owner
- address
Returns:
bytes32
function``
_pointToResolverAndResolve
(bytes32 _node, address _target) internal
Parameters:
_node
- bytes32
_target
- address
function``
createName
(bytes32 _label, address _owner) external returns (bytes32)
Create a new ENS subdomain record for `_label` and assign ownership to `_owner`.
Modifiers:
Parameters:
_label
- Label of new subdomain
_owner
- Owner of new subdomain
Returns:
node Hash of created node
function``
createNameAndPoint
(bytes32 _label, address _target) external returns (bytes32)
Create a new ENS subdomain record for `_label` that resolves to `_target` and is owned by this ENSSubdomainRegistrar.
Modifiers:
Parameters:
_label
- Label of new subdomain
_target
- Ethereum address this new subdomain label will point to
Returns:
node Hash of created node
function``
deleteName
(bytes32 _label) external
Deregister ENS subdomain record for `_label`.
Modifiers:
Parameters:
_label
- Label of subdomain to deregister
function``
getAddr
(bytes32 node) internal view returns (address)
Parameters:
node
- bytes32
Returns:
address
function``
getNodeForLabel
(bytes32 _label) internal view returns (bytes32)
Parameters:
_label
- bytes32
Returns:
bytes32
function``
initialize
(AbstractENS _ens, bytes32 _rootNode) public
Initialize can only be called once. It saves the block number in which it was initialized. This contract must be the owner of the `_rootNode` node so that it can create subdomains. Initialize this ENSSubdomainRegistrar instance with `_ens` as the root ENS registry and `_rootNode` as the node to allocate subdomains under.
Modifiers:
Parameters:
_ens
- Address of ENS registry
_rootNode
- Node to allocate subdomains under
function``
pointRootNode
(address _target) external
Resolve this ENSSubdomainRegistrar's root node to `_target`.
Modifiers:
Parameters:
_target
- Ethereum address root node will point to