Skip to content
Lattice

ERC6900ModuleManagerStorage

Git Source

ERC-7201 namespaced storage for the ERC-6900 module registry.

Note:

  • storage-location: erc7201:lattice.storage.ERC6900ModuleManager
struct ERC6900ModuleManagerStorage {
    /// @notice Execution functions per selector. APPEND-ONLY.
    mapping(bytes4 selector => ExecutionStorage) _executions;
    /// @notice Validation functions per `ModuleEntity`. APPEND-ONLY.
    mapping(ModuleEntity validationFunction => ValidationStorage) _validations;
    /// @notice ERC-165 interface-id refcount from installed-module manifests; mirrored into the Diamond's
    ///         ERC-165 map so the account advertises a module's interfaces while ≥1 module supplies it. APPEND-ONLY.
    mapping(bytes4 interfaceId => uint256 count) _interfaceRefCount;
}

Properties

NameTypeDescription
_executionsmapping(bytes4 selector => ExecutionStorage)
_validationsmapping(ModuleEntity validationFunction => ValidationStorage)
_interfaceRefCountmapping(bytes4 interfaceId => uint256 count)