Skip to main content

Module ISafe

Module ISafe 

Source
Expand description

Module containing a contract’s types and functions.

interface ISafe {
    function nonce() external view returns (uint256);
    function setup(address[] calldata owners, uint256 threshold, address to, bytes calldata data, address fallbackHandler, address paymentToken, uint256 payment, address paymentReceiver) external;
    function getTransactionHash(address to, uint256 value, bytes calldata data, uint8 operation, uint256 safeTxGas, uint256 baseGas, uint256 gasPrice, address gasToken, address refundReceiver, uint256 nonce) external view returns (bytes32);
    function simulateAndRevert(address targetContract, bytes calldata calldataPayload) external;
    function execTransaction(address to, uint256 value, bytes calldata data, uint8 operation, uint256 safeTxGas, uint256 baseGas, uint256 gasPrice, address gasToken, address refundReceiver, bytes calldata signatures) external payable returns (bool success);
    event ExecutionSuccess(bytes32 indexed txHash, uint256 payment);
    event ExecutionFailure(bytes32 indexed txHash, uint256 payment);
}

Structs§

ExecutionFailure
Event with signature ExecutionFailure(bytes32,uint256) and selector 0x23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23.
ExecutionSuccess
Event with signature ExecutionSuccess(bytes32,uint256) and selector 0x442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e.
ISafeInstance
A ISafe instance.
execTransactionCall
Function with signature execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes) and selector 0x6a761202.
execTransactionReturn
Container type for the return parameters of the execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes) function.
getTransactionHashCall
Function with signature getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256) and selector 0xd8d11f78.
getTransactionHashReturn
Container type for the return parameters of the getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256) function.
nonceCall
Function with signature nonce() and selector 0xaffed0e0.
nonceReturn
Container type for the return parameters of the nonce() function.
setupCall
Function with signature setup(address[],uint256,address,bytes,address,address,uint256,address) and selector 0xb63e800d.
setupReturn
Container type for the return parameters of the setup(address[],uint256,address,bytes,address,address,uint256,address) function.
simulateAndRevertCall
Function with signature simulateAndRevert(address,bytes) and selector 0xb4faba09.
simulateAndRevertReturn
Container type for the return parameters of the simulateAndRevert(address,bytes) function.

Enums§

ISafeCalls
Container for all the ISafe function calls.
ISafeEvents
Container for all the ISafe events.

Functions§

new
Creates a new wrapper around an on-chain ISafe contract instance.