Skip to content
Lattice

EmergencyStopLib Constants

Git Source

EMERGENCY_STOP_STORAGE_SLOT

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

bytes32 constant EMERGENCY_STOP_STORAGE_SLOT = 0x06261d2148a76026572818ff69ded6332eb2830e669ce15f15f286b1d91c5800;

EMERGENCY_STOP_ERC165_STORAGE_LOCATION

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

bytes32 constant EMERGENCY_STOP_ERC165_STORAGE_LOCATION =
    0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200;

ERC165_MAP_IEMERGENCYSTOP_SLOT

0x9e464da9 is type(IEmergencyStop).interfaceId. keccak256(abi.encode(bytes4(0x9e464da9), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).

bytes32 constant ERC165_MAP_IEMERGENCYSTOP_SLOT = 0x59d8ae278aff771bb9e56436652ef8f684d37f52855acb66dfe58a5a44c4d9de;

EMERGENCY_GUARDIAN_ROLE

Role identifier for emergency guardians. Any address with this role can trip the stop.

bytes32 constant EMERGENCY_GUARDIAN_ROLE = keccak256("EMERGENCY_GUARDIAN_ROLE");