Skip to content
Lattice

ENSReverseClaimerLib Constants

Git Source

ENS_REVERSE_CLAIMER_STORAGE_SLOT

keccak256(abi.encode(uint256(keccak256("lattice.storage.ENSReverseClaimer")) - 1)) & ~bytes32(uint256(0xff)). Verify with: cast index-erc7201 "lattice.storage.ENSReverseClaimer".

bytes32 constant ENS_REVERSE_CLAIMER_STORAGE_SLOT = 0x4490f19c91eeff7574cc9707696b972040b89f54488ef7fa354afe94a194c100;

ENS_REVERSE_CLAIMER_ERC165_STORAGE_LOCATION

ERC-165 storage location (same across all Lattice modules). keccak256(abi.encode(uint256(keccak256("diamond.lib.storage.ERC165")) - 1)) & ~bytes32(uint256(0xff)).

bytes32 constant ENS_REVERSE_CLAIMER_ERC165_STORAGE_LOCATION =
    0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200;

ERC165_MAP_IENSREVERSECLAIMER_SLOT

0x84019dd8 is type(IENSReverseClaimer).interfaceId. keccak256(abi.encode(bytes4(0x84019dd8), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).

bytes32 constant ERC165_MAP_IENSREVERSECLAIMER_SLOT =
    0x3c859ae3ba58f26576821324787594a5249343bb61f3f7c4054b439dbc4eff8c;

ENS_MANAGER_ROLE

Role allowed to manage the diamond's ENS identity (set its name / rotate the registrar).

bytes32 constant ENS_MANAGER_ROLE = keccak256("ENS_MANAGER_ROLE");