Skip to content
Lattice

IERC7821Executor

Git Source

Title: IERC7821Executor

Authors: David Dada <daveproxy80@gmail.com> (https://github.com/dadadave80), Modified from Solady (https://github.com/Vectorized/solady)

Error/event surface of the ERC7821Executor facet. The execute / supportsExecutionMode entrypoints are on the vendored IERC7821.

Authorizes execute for: the account itself (address(this)), the configured ERC-4337 EntryPoint, a DEFAULT_ADMIN_ROLE holder, or — for the opData mode — an owner-signed EIP-712 Execute envelope relayed by anyone (nonce-protected).

Events

BatchExecuted

Emitted once per execute batch, after all calls succeed.

event BatchExecuted(bytes32 indexed mode, uint256 calls);

Parameters

NameTypeDescription
modebytes32
callsuint256

Errors

UnauthorizedExecutor

The caller is not authorized to execute a batch.

error UnauthorizedExecutor(address caller);

Parameters

NameTypeDescription
calleraddress

UnsupportedExecutionMode

The requested execution mode is not supported.

error UnsupportedExecutionMode(bytes32 mode);

Parameters

NameTypeDescription
modebytes32