IReverseRegistrar
Title: IReverseRegistrar
Authors: David Dada <daveproxy80@gmail.com> (https://github.com/dadadave80), Vendored minimal subset of ENS's ReverseRegistrar / ENSIP-11 L2ReverseRegistrar (https://github.com/ensdomains/ens-contracts). Upstream license: MIT.
Minimal vendored interface for ENS reverse registrars: cross-compatible setName, plus the L1
ReverseRegistrar.claim ownership path used by standalone infrastructure contracts.
setName is deliberately declared with NO return value. The L1 ReverseRegistrar.setName
returns bytes32 while the L2 L2ReverseRegistrar.setName returns nothing; a void-typed call
ignores any returndata, so this single declaration works against BOTH (selector 0xc47f0027).
claim(address) must only be used with registrars implementing that L1 ABI. The registrar address
is chain-specific and supplied by the deployer; it is never hardcoded.
Functions
claim
Claims msg.sender's reverse node for owner using the registrar's default resolver.
function claim(address owner) external returns (bytes32 node);Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | The account that will own and manage the reverse node. |
Returns
| Name | Type | Description |
|---|---|---|
| node | bytes32 | The claimed reverse node. |
setName
Sets the reverse record name for msg.sender (the calling contract) under
addr.reverse, using the registrar's default resolver. The self-claim form
(caller == subject) is supported by both the L1 and L2 registrars.
function setName(string memory name) external;Parameters
| Name | Type | Description |
|---|---|---|
| name | string | The ENS name to set as the caller's primary (reverse) name. |