Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ITransactionGuard

Git Source

Inherits: IERC165

Safe transaction guard interface, identical to Safe’s Guard (v1.3.0/v1.4.1) and ITransactionGuard (v1.5.0).

type(ITransactionGuard).interfaceId == 0xe6d7a83a, the same value Safe’s GuardManager.setGuard checks via ERC-165 (error GS300 otherwise), so a {CredibleSafeGuard} can be installed on any Safe that supports transaction guards.

Functions

checkTransaction

Called by the Safe before executing an owner-authorized transaction.

Reverting here blocks the Safe transaction from executing.

function checkTransaction(
    address to,
    uint256 value,
    bytes memory data,
    Enum.Operation operation,
    uint256 safeTxGas,
    uint256 baseGas,
    uint256 gasPrice,
    address gasToken,
    address payable refundReceiver,
    bytes memory signatures,
    address msgSender
) external;

checkAfterExecution

Called by the Safe after executing the transaction.

function checkAfterExecution(bytes32 hash, bool success) external;