Skip to content

Commit

Permalink
Merge branch 'specs/account-specs' of github.com:safe-global/safe-cor…
Browse files Browse the repository at this point in the history
…e-protocol-specs into specs/account-specs
  • Loading branch information
mmv08 committed Oct 26, 2023
2 parents f5eca39 + b1c35fe commit 9338eef
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions accounts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ where:
| Type | Name | Description |
|--------------|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| address | to | The address of the contract to be called |
| uint256 | value | The amount of Native Token to be sent |
| uint256 | value | The amount of native token to be sent |
| bytes memory | data | The call data |
| uint8 | operation | The operation type to be executed. `0` for CALL, `1` for DELEGATECALL. The DELEGATECALL operation can only be executed by a Plugin with root access permissions. More information about transaction types can be found in the [Manager contract](https://github.com/safe-global/safe-core-protocol-specs/blob/2bffd759dd12be5583594f302d97c35e0ab9fcf5/manager/README.md) specifications. |
| uint8 | operation | The operation type to be executed. `0` for CALL, `1` for DELEGATECALL. The DELEGATECALL operation can only be executed by a Plugin with root access permissions. More information about transaction types can be found in the [Manager contract](../manager/README.md) specifications. |

The account MUST execute a corresponding `operation` to the `to` address with the provided `value` and `data` parameters. The account MUST return a tuple of `(bool success, bytes memory returnData)`.
It is RECOMMENDED that the account supports the DELEGATECALL operation.
Expand Down Expand Up @@ -119,15 +119,3 @@ The function MUST revert if the signatures are not valid.

<img src="../_assets/accounts_safe_140.png" width=400/>

### Interface

```Solidity
interface ISafe {
function execTransactionFromModuleReturnData(
address to,
uint256 value,
bytes memory data,
uint8 operation
) external returns (bool success, bytes memory returnData);
}
```

0 comments on commit 9338eef

Please sign in to comment.