Skip to content
Lattice

ERC20CappedLib Constants

Git Source

ERC20CAPPED_STORAGE_SLOT

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

bytes32 constant ERC20CAPPED_STORAGE_SLOT = 0xf3126bfe4af748db9eb069fa2ed04557107fb53a164b5206750073586b2bc900;

ERC20CAPPED_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 ERC20CAPPED_ERC165_STORAGE_LOCATION =
    0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200;

ERC165_MAP_IERC20CAPPED_SLOT

0x355274ea is type(IERC20Capped).interfaceId. keccak256(abi.encode(bytes4(0x355274ea), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).

bytes32 constant ERC165_MAP_IERC20CAPPED_SLOT = 0xb2089445722e0a36969fff4735cd037fb1b56a44be61c7f6c752270db855a1b7;