IERC7579Execution
ERC-7579 Execution. Accounts should implement this interface so that the Entrypoint and ERC-7579 modules can execute operations.
Functions
execute
Executes a transaction on behalf of the account.
function execute(bytes32 mode, bytes calldata executionCalldata) external payable;
Parameters
| Name | Type | Description |
|---|---|---|
mode | bytes32 | The encoded execution mode of the transaction. See ModeLib.sol for details |
executionCalldata | bytes | The encoded execution call data MUST ensure adequate authorization control: e.g. onlyEntryPointOrSelf if used with ERC-4337 If a mode is requested that is not supported by the Account, it MUST revert |
executeFromExecutor
Executes a transaction on behalf of the account. This function is intended to be called by Executor Modules
function executeFromExecutor(bytes32 mode, bytes calldata executionCalldata)
external
payable
returns (bytes[] memory returnData);
Parameters
| Name | Type | Description |
|---|---|---|
mode | bytes32 | The encoded execution mode of the transaction. See ModeLib.sol for details |
executionCalldata | bytes | The encoded execution call data |
Returns
| Name | Type | Description |
|---|---|---|
returnData | bytes[] | An array with the returned data of each executed subcall MUST ensure adequate authorization control: i.e. onlyExecutorModule If a mode is requested that is not supported by the Account, it MUST revert |