IDotnsResolver
Title: Dotns Resolver
Defines forward-resolution address records for DotNS nodes.
Forward-address records describe where a name points. Authority therefore follows node ownership in the forward registry, not a privileged writer.
Note: security-contact: admin@parity.io
Functions
setAddress
Sets the resolved address for a node.
The caller must be the current owner of node in the forward registry, otherwise
Note: reverts: NotAuthorised. Emits @custom:emits AddressSet on every successful write.
function setAddress(bytes32 node, address value) external;
Parameters
| Name | Type | Description |
|---|---|---|
node | bytes32 | The node identifier. |
value | address | The address to associate with the node. |
addressOf
Returns the resolved address for a node.
function addressOf(bytes32 node) external view returns (address value);
Parameters
| Name | Type | Description |
|---|---|---|
node | bytes32 | The node identifier. |
Returns
| Name | Type | Description |
|---|---|---|
value | address | The resolved address, or zero if unset. |
Events
AddressSet
Emitted when an address record is updated.
event AddressSet(bytes32 indexed node, address value);
Parameters
| Name | Type | Description |
|---|---|---|
node | bytes32 | The node whose address record changed. |
value | address | The new resolved address. |
Errors
NotAuthorised
Thrown when a caller is not authorised to modify a node.
error NotAuthorised(bytes32 node, address caller);
Parameters
| Name | Type | Description |
|---|---|---|
node | bytes32 | The node being modified. |
caller | address | The address attempting the modification. |