Skip to content
Lattice

ERC7579ModuleConfigLib Constants

Git Source

FALLBACK_CALLTYPE_CALL

Fallback-handler (type 3) call types: forward via CALL (with the original caller appended ERC-2771-style) or DELEGATECALL (the handler runs in the account's own context).

bytes1 constant FALLBACK_CALLTYPE_CALL = 0x00;

FALLBACK_CALLTYPE_DELEGATECALL

bytes1 constant FALLBACK_CALLTYPE_DELEGATECALL = 0xff;

ERC7579_MODULE_CONFIG_STORAGE_SLOT

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

bytes32 constant ERC7579_MODULE_CONFIG_STORAGE_SLOT =
    0xf5855f8dc57bbb54955d6871575c862d7a11401119f5a873c91e7ac60628d800;

ERC165_MAP_IERC7579EXECUTION_SLOT

ERC-165 map slots for the three OZ ERC-7579 interfaces the Diamond supports (this facet + the ERC7821Executor facet's execute/supportsExecutionMode complete IERC7579Execution and IERC7579AccountConfig). keccak256(abi.encode(bytes4(id), 0x9ca7f3e2…c1c4200)).

bytes32 constant ERC165_MAP_IERC7579EXECUTION_SLOT = 0x1adc25256844eecf70d1111a7d897d059d6c39bccc33e2fe1bcdd0aa07e45227;

ERC165_MAP_IERC7579ACCOUNTCONFIG_SLOT

bytes32 constant ERC165_MAP_IERC7579ACCOUNTCONFIG_SLOT =
    0xca27659497801bbd07af0889ead6ea5a1a9b8739438e7af51464f7082b08ae43;

ERC165_MAP_IERC7579MODULECONFIG_SLOT

bytes32 constant ERC165_MAP_IERC7579MODULECONFIG_SLOT =
    0x1c2e0d7514777ddafe41add8aefc1cb6319fbc463de0c6eb0b00433efbdbdd41;