ISafe
Functions
execTransactionFromModule
Allows a Module to execute a Safe transaction without any further confirmations.
function execTransactionFromModule(address to, uint256 value, bytes memory data, uint8 operation)
external
returns (bool success);
Parameters
| Name | Type | Description |
|---|---|---|
to | address | Destination address of module transaction. |
value | uint256 | Ether value of module transaction. |
data | bytes | Data payload of module transaction. |
operation | uint8 | Operation type of module transaction. |
execTransactionFromModuleReturnData
Execute operation (0: Call, 1: DelegateCall) to to with value (Native Token) and return data
function execTransactionFromModuleReturnData(address to, uint256 value, bytes memory data, uint8 operation)
external
returns (bool success, bytes memory returnData);
Parameters
| Name | Type | Description |
|---|---|---|
to | address | Destination address of module transaction. |
value | uint256 | Ether value of module transaction. |
data | bytes | Data payload of module transaction. |
operation | uint8 | Operation type of module transaction. |
Returns
| Name | Type | Description |
|---|---|---|
success | bool | Boolean flag indicating if the call succeeded. |
returnData | bytes | Data returned by the call. |
checkSignatures
Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.
function checkSignatures(bytes32 dataHash, bytes memory data, bytes memory signatures) external view;
Parameters
| Name | Type | Description |
|---|---|---|
dataHash | bytes32 | Hash of the data (could be either a message hash or transaction hash) |
data | bytes | That should be signed (this is passed to an external validator contract) |
signatures | bytes | Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash. |
domainSeparator
Returns the domain separator for this contract, as defined in the EIP-712 standard.
function domainSeparator() external view returns (bytes32);
Returns
| Name | Type | Description |
|---|---|---|
<none> | bytes32 | bytes32 The domain separator hash. |
getModulesPaginated
Returns array of modules.
function getModulesPaginated(address start, uint256 pageSize)
external
view
returns (address[] memory array, address next);
Parameters
| Name | Type | Description |
|---|---|---|
start | address | Start of the page. |
pageSize | uint256 | Maximum number of modules that should be returned. |
Returns
| Name | Type | Description |
|---|---|---|
array | address[] | Array of modules. |
next | address | Start of the next page. |
enableModule
Enables the module module for the Safe.
This can only be done via a Safe transaction.
function enableModule(address module) external;
Parameters
| Name | Type | Description |
|---|---|---|
module | address | Module to be enabled. |
getThreshold
Returns the number of required confirmations for a Safe transaction aka the threshold.
function getThreshold() external view returns (uint256);
Returns
| Name | Type | Description |
|---|---|---|
<none> | uint256 | Threshold number. |