Skip to content
Lattice

ShieldedPoolLib Constants

Git Source

SHIELDED_POOL_STORAGE_SLOT

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

bytes32 constant SHIELDED_POOL_STORAGE_SLOT = 0xa961220e87963afb8adc0f7621a90ce1922bf3bb438109c43cc7dacbc8e06600;

SHIELDED_POOL_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 SHIELDED_POOL_ERC165_STORAGE_LOCATION =
    0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200;

ERC165_MAP_ISHIELDEDPOOL_SLOT

0x8f5cc2c7 is type(IShieldedPool).interfaceId. keccak256(abi.encode(bytes4(0x8f5cc2c7), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).

bytes32 constant ERC165_MAP_ISHIELDEDPOOL_SLOT = 0x584247a1f67e966ee8f18e29a93dbcead963401775336064ffc8d6a343c2a4df;