IERC7821
Interface for minimal batch executor.
Functions
execute
*Executes the calls in executionData.
Reverts and bubbles up error if any call fails.
executionData encoding:
- If
opDatais empty,executionDatais simplyabi.encode(calls). - Else,
executionDataisabi.encode(calls, opData). See: https://eips.ethereum.org/EIPS/eip-7579 Supported modes: bytes32(0x01000000000000000000...): does not support optionalopData.bytes32(0x01000000000078210001...): supports optionalopData. Authorization checks:- If
opDatais empty, the implementation SHOULD require thatmsg.sender == address(this). - If
opDatais not empty, the implementation SHOULD use the signature encoded inopDatato determine if the caller can perform the execution.opDatamay be used to store additional data for authentication, paymaster data, gas limits, etc. For calldata compression efficiency, if a Call.to isaddress(0), it will be replaced withaddress(this).*
function execute(bytes32 mode, bytes calldata executionData) external payable;
supportsExecutionMode
*This function is provided for frontends to detect support. Only returns true for:
bytes32(0x01000000000000000000...): does not support optionalopData.bytes32(0x01000000000078210001...): supports optionalopData.*
function supportsExecutionMode(bytes32 mode) external view returns (bool);