ENSSubdomainRegistrar
contract ENSSubdomainRegistrar
Source: contracts/ens/ENSSubdomainRegistrar.sol
Index
Reference
Events
DeleteName
event``
DeleteName
(bytes32 node, bytes32 label)
Parameters:
node
- bytes32label
- bytes32
NewName
event``
NewName
(bytes32 node, bytes32 label)
Parameters:
node
- bytes32label
- bytes32
Functions
_createName
function``
_createName
(bytes32 _label, address _owner) internal returns (bytes32)
Parameters:
_label
- bytes32_owner
- address
Returns:
bytes32
_pointToResolverAndResolve
function``
_pointToResolverAndResolve
(bytes32 _node, address _target) internal
Parameters:
_node
- bytes32_target
- address
createName
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
createNameAndPoint
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
deleteName
function``
deleteName
(bytes32 _label) external
Deregister ENS subdomain record for `_label`.
Modifiers:
Parameters:
_label
- Label of subdomain to deregister
getAddr
function``
getAddr
(bytes32 node) internal view returns (address)
Parameters:
node
- bytes32
Returns:
address
getNodeForLabel
function``
getNodeForLabel
(bytes32 _label) internal view returns (bytes32)
Parameters:
_label
- bytes32
Returns:
bytes32
initialize
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
pointRootNode
function``
pointRootNode
(address _target) external
Resolve this ENSSubdomainRegistrar's root node to `_target`.
Modifiers:
Parameters:
_target
- Ethereum address root node will point to
Last updated