Skip to content
Lattice

AccessManagerLib Constants

Git Source

ACCESS_MANAGER_STORAGE_SLOT

keccak256(abi.encode(uint256(keccak256("lattice.storage.AccessManager")) - 1)) & ~bytes32(uint256(0xff)).

bytes32 constant ACCESS_MANAGER_STORAGE_SLOT = 0x031c2bc21c63b497895ca319b75b15a6c2f2e4b0e91bbd5327f580843bca1a00;

ERC165_MAP_IACCESSMANAGER_SLOT

0x03fde054 is type(IAccessManager).interfaceId (includes updateAuthority and consumeScheduledOp). keccak256(abi.encode(bytes4(0x03fde054), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).

bytes32 constant ERC165_MAP_IACCESSMANAGER_SLOT = 0xe8225b256c9522a08c27f0d5ba22c2c153d632cc7b7a99a5ed27141b67ebedd9;