Build
Architecture
protocol
contracts
zevm
interfaces
IGatewayZEVM.sol
Interface.igatewayzevmevents

Git Source (opens in a new tab)

Interface for the events emitted by the GatewayZEVM contract.

Called

Emitted when a cross-chain call is made.

event Called(
    address indexed sender,
    address indexed zrc20,
    bytes receiver,
    bytes message,
    CallOptions callOptions,
    RevertOptions revertOptions
);

Parameters

NameTypeDescription
senderaddressThe address of the sender.
zrc20addressAddress of zrc20 to pay fees.
receiverbytesThe receiver address on the external chain.
messagebytesThe calldata passed to the contract call.
callOptionsCallOptionsCall options including gas limit and arbirtrary call flag.
revertOptionsRevertOptionsRevert options.

Withdrawn

Emitted when a withdrawal is made.

event Withdrawn(
    address indexed sender,
    uint256 indexed chainId,
    bytes receiver,
    address zrc20,
    uint256 value,
    uint256 gasfee,
    uint256 protocolFlatFee,
    bytes message,
    CallOptions callOptions,
    RevertOptions revertOptions
);

Parameters

NameTypeDescription
senderaddressThe address from which the tokens are withdrawn.
chainIduint256Chain id of external chain.
receiverbytesThe receiver address on the external chain.
zrc20addressThe address of the ZRC20 token.
valueuint256The amount of tokens withdrawn.
gasfeeuint256The gas fee for the withdrawal.
protocolFlatFeeuint256The protocol flat fee for the withdrawal.
messagebytesThe calldata passed with the withdraw. No longer used. Kept to maintain compatibility.
callOptionsCallOptionsCall options including gas limit and arbirtrary call flag.
revertOptionsRevertOptionsRevert options.

WithdrawnAndCalled

Emitted when a withdraw and call is made.

event WithdrawnAndCalled(
    address indexed sender,
    uint256 indexed chainId,
    bytes receiver,
    address zrc20,
    uint256 value,
    uint256 gasfee,
    uint256 protocolFlatFee,
    bytes message,
    CallOptions callOptions,
    RevertOptions revertOptions
);

Parameters

NameTypeDescription
senderaddressThe address from which the tokens are withdrawn.
chainIduint256Chain id of external chain.
receiverbytesThe receiver address on the external chain.
zrc20addressThe address of the ZRC20 token.
valueuint256The amount of tokens withdrawn.
gasfeeuint256The gas fee for the withdrawal.
protocolFlatFeeuint256The protocol flat fee for the withdrawal.
messagebytesThe calldata passed to the contract call.
callOptionsCallOptionsCall options including gas limit and arbirtrary call flag.
revertOptionsRevertOptionsRevert options.