Skip to content
Lattice

NoncesLib Constants

Git Source

NONCES_STORAGE_SLOT

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

bytes32 constant NONCES_STORAGE_SLOT = 0x2b93a5a8782d382c0f6890e7e2d77ba67ed77675c16cc334b45b931317d4de00;

NONCES_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 NONCES_ERC165_STORAGE_LOCATION = 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200;

ERC165_MAP_INONCES_SLOT

0x7ecebe00 is type(INonces).interfaceId. keccak256(abi.encode(bytes4(0x7ecebe00), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).

bytes32 constant ERC165_MAP_INONCES_SLOT = 0x7a551986b45870996296121343257817091920bfbe333333c5198eab95eb2fa2;