Skip to content
Lattice

IERC6900ExecutionHookModule

Git Source

Inherits: IERC6900Module

Execution hook module: wraps an execution function with pre/post hooks.

Functions

preExecutionHook

function preExecutionHook(uint32 entityId, address sender, uint256 value, bytes calldata data)
        external
        returns (bytes memory);

Parameters

NameTypeDescription
entityIduint32
senderaddress
valueuint256
databytes

Returns

NameTypeDescription
<none>bytesContext passed to the matching post-execution hook (MAY be empty); MUST revert to reject.

postExecutionHook

MUST revert to reject; preExecHookData is the context from the matching pre-execution hook.

function postExecutionHook(uint32 entityId, bytes calldata preExecHookData) external;

Parameters

NameTypeDescription
entityIduint32
preExecHookDatabytes