IDotnsResolver

Git Source

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

NameTypeDescription
nodebytes32The node identifier.
valueaddressThe address to associate with the node.

addressOf

Returns the resolved address for a node.

function addressOf(bytes32 node) external view returns (address value);

Parameters

NameTypeDescription
nodebytes32The node identifier.

Returns

NameTypeDescription
valueaddressThe resolved address, or zero if unset.

Events

AddressSet

Emitted when an address record is updated.

event AddressSet(bytes32 indexed node, address value);

Parameters

NameTypeDescription
nodebytes32The node whose address record changed.
valueaddressThe new resolved address.

Errors

NotAuthorised

Thrown when a caller is not authorised to modify a node.

error NotAuthorised(bytes32 node, address caller);

Parameters

NameTypeDescription
nodebytes32The node being modified.
calleraddressThe address attempting the modification.