Skip to content
Lattice

ValidationStorage

Git Source

Per-validation-function (ModuleEntity) install state.

struct ValidationStorage {
    /// @notice `isUserOpValidation` (0x01) | `isSignatureValidation` (0x02) | `isGlobal` (0x04). Sole source of
    ///         these flags — overwritten wholesale on (re)install.
    ValidationFlags validationFlags;
    /// @notice Pre-validation hooks, ORDERED, no dedupe, capped at {MAX_VALIDATION_ASSOC_HOOKS}.
    HookConfig[] validationHooks;
    /// @notice Execution hooks attached to this validation (deduped set).
    EnumerableSet.Bytes32Set executionHooks;
    /// @notice Selectors this validation function is permitted to validate.
    EnumerableSet.Bytes4Set selectors;
}

Properties

NameTypeDescription
validationFlagsValidationFlags
validationHooksHookConfig[]
executionHooksEnumerableSet.Bytes32Set
selectorsEnumerableSet.Bytes4Set