IERC6900ValidationHookModule
Inherits: IERC6900Module
Validation hook module: runs before a validation function (user-op / runtime / signature paths).
Functions
preUserOpValidationHook
function preUserOpValidationHook(uint32 entityId, PackedUserOperation calldata userOp, bytes32 userOpHash)
external
returns (uint256);Parameters
| Name | Type | Description |
|---|---|---|
| entityId | uint32 | |
| userOp | PackedUserOperation | |
| userOpHash | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 | Packed validation data; MUST NOT return an authorizer other than 0 or 1. |
preRuntimeValidationHook
MUST revert to reject the call.
function preRuntimeValidationHook(
uint32 entityId,
address sender,
uint256 value,
bytes calldata data,
bytes calldata authorization
) external;Parameters
| Name | Type | Description |
|---|---|---|
| entityId | uint32 | |
| sender | address | |
| value | uint256 | |
| data | bytes | |
| authorization | bytes |
preSignatureValidationHook
MUST revert to reject the signature.
function preSignatureValidationHook(uint32 entityId, address sender, bytes32 hash, bytes calldata signature)
external
view;Parameters
| Name | Type | Description |
|---|---|---|
| entityId | uint32 | |
| sender | address | |
| hash | bytes32 | |
| signature | bytes |