Skip to content
Lattice

ERC721URIStorageLib Constants

Git Source

ERC721URISTORAGE_STORAGE_SLOT

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

bytes32 constant ERC721URISTORAGE_STORAGE_SLOT = 0xcad0a180da252dc6d7fda719c706c048d7fcfbea8301125fec9b8527feaa7700;

ERC721URISTORAGE_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 ERC721URISTORAGE_ERC165_STORAGE_LOCATION =
    0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200;

ERC165_MAP_ERC4906_SLOT

0x49064906 is the ERC-4906 (MetadataUpdate) interface ID. keccak256(abi.encode(bytes4(0x49064906), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).

bytes32 constant ERC165_MAP_ERC4906_SLOT = 0xf6e2df7ae707ae7f293659ac6f748c7ba27a30d8639e53e763363aebc5fa8f65;