Build
Architecture
protocol
contracts
evm
interfaces
IGatewayEVM.sol
Interface.igatewayevmevents

Git Source (opens in a new tab)

Interface for the events emitted by the GatewayEVM contract.

Executed

Emitted when a contract call is executed.

event Executed(address indexed destination, uint256 value, bytes data);

Parameters

NameTypeDescription
destinationaddressThe address of the contract called.
valueuint256The amount of ETH sent with the call.
databytesThe calldata passed to the contract call.

Reverted

Emitted when a contract call is reverted.

event Reverted(address indexed to, address indexed token, uint256 amount, bytes data, RevertContext revertContext);

Parameters

NameTypeDescription
toaddressThe address of the contract called.
tokenaddressThe address of the ERC20 token, empty if gas token
amountuint256The amount of ETH sent with the call.
databytesThe calldata passed to the contract call.
revertContextRevertContextRevert context to pass to onRevert.

ExecutedWithERC20

Emitted when a contract call with ERC20 tokens is executed.

event ExecutedWithERC20(address indexed token, address indexed to, uint256 amount, bytes data);

Parameters

NameTypeDescription
tokenaddressThe address of the ERC20 token.
toaddressThe address of the contract called.
amountuint256The amount of tokens transferred.
databytesThe calldata passed to the contract call.

Deposited

Emitted when a deposit is made.

event Deposited(
    address indexed sender,
    address indexed receiver,
    uint256 amount,
    address asset,
    bytes payload,
    RevertOptions revertOptions
);

Parameters

NameTypeDescription
senderaddressThe address of the sender.
receiveraddressThe address of the receiver.
amountuint256The amount of ETH or tokens deposited.
assetaddressThe address of the ERC20 token (zero address if ETH).
payloadbytesThe calldata passed with the deposit.
revertOptionsRevertOptionsRevert options.

Called

Emitted when an omnichain smart contract call is made without asset transfer.

event Called(address indexed sender, address indexed receiver, bytes payload, RevertOptions revertOptions);

Parameters

NameTypeDescription
senderaddressThe address of the sender.
receiveraddressThe address of the receiver.
payloadbytesThe calldata passed to the call.
revertOptionsRevertOptionsRevert options.