Skip to content
Lattice

CommitRevealLib Constants

Git Source

COMMIT_REVEAL_STORAGE_SLOT

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

bytes32 constant COMMIT_REVEAL_STORAGE_SLOT = 0xd3109411a8705fe8e8868eda2607aae4e6b37bb0d383a8a9e1c55c78e6853e00;

COMMIT_REVEAL_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 COMMIT_REVEAL_ERC165_STORAGE_LOCATION =
    0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200;

ERC165_MAP_ICOMMITREVEAL_SLOT

0xe371e8b7 is type(ICommitReveal).interfaceId. keccak256(abi.encode(bytes4(0xe371e8b7), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).

bytes32 constant ERC165_MAP_ICOMMITREVEAL_SLOT = 0xdc9ba0d500a620df2dabeedf359873cda3ecd1229c8cb91b5b30ae80ec382462;