Skip to content
Lattice

TimelockControllerLib Constants

Git Source

TIMELOCK_CONTROLLER_STORAGE_SLOT

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

bytes32 constant TIMELOCK_CONTROLLER_STORAGE_SLOT = 0x87f5daf40fea2daee0a93658693902d7cd9e07fa1a4f16f2e8eb4a4e9d433000;

TIMELOCK_ERC165_STORAGE_LOCATION

keccak256(abi.encode(uint256(keccak256("diamond.lib.storage.ERC165")) - 1)) & ~bytes32(uint256(0xff)).

bytes32 constant TIMELOCK_ERC165_STORAGE_LOCATION = 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200;

ERC165_MAP_ITIMELOCKCONTROLLER_SLOT

0xd826478e is type(ITimelockController).interfaceId. keccak256(abi.encode(bytes4(0xd826478e), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).

bytes32 constant ERC165_MAP_ITIMELOCKCONTROLLER_SLOT =
    0xc0a085cd59634eff50a01907a25e03eb6a55bd6279462a3ac6a99ce44b9c2f08;