-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from erc6900/adam/istandardexecutor-update
Rename Execution to Call, and update IStandardExecutor
- Loading branch information
Showing
6 changed files
with
54 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,29 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
|
||
import {Execution} from "../libraries/ERC6900TypeUtils.sol"; | ||
struct Call { | ||
// The target address for account to call. | ||
address target; | ||
// The value sent with the call. | ||
uint256 value; | ||
// The call data for the call. | ||
bytes data; | ||
} | ||
|
||
/// @title Standard Executor Interface | ||
interface IStandardExecutor { | ||
/// @notice Standard execute method. | ||
/// @dev If the target is a plugin, the call SHOULD revert. | ||
/// @param execution The execution information. | ||
/// @param target The target address for account to call. | ||
/// @param value The value sent with the call. | ||
/// @param data The call data for the call. | ||
/// @return The return data from the call. | ||
function execute(Execution calldata execution) external payable returns (bytes memory); | ||
function execute(address target, uint256 value, bytes calldata data) external payable returns (bytes memory); | ||
|
||
/// @notice Standard executeBatch method. | ||
/// @dev If the target is a plugin, the call SHOULD revert. | ||
/// @param executions The array of executions. | ||
/// @dev If the target is a plugin, the call SHOULD revert. If any of the transactions revert, the entire batch | ||
/// reverts. | ||
/// @param calls The array of calls. | ||
/// @return An array containing the return data from the calls. | ||
function executeBatch(Execution[] calldata executions) external payable returns (bytes[] memory); | ||
function executeBatch(Call[] calldata calls) external payable returns (bytes[] memory); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters