IInterchainGasPaymaster

Git Source

is imported from (https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/solidity/contracts/interfaces/IInterchainGasPaymaster.sol)

Functions

payForGas

function payForGas(
    bytes32 _messageId,
    uint32 _destinationDomain,
    uint256 _gasAmount,
    address _refundAddress
)
    external
    payable;

quoteGasPayment

function quoteGasPayment(uint32 _destinationDomain, uint256 _gasAmount) external view returns (uint256);

Events

GasPayment

Emitted when a payment is made for a message's gas costs.

event GasPayment(bytes32 indexed messageId, uint256 gasAmount, uint256 payment);

Parameters

NameTypeDescription
messageIdbytes32The ID of the message to pay for.
gasAmountuint256The amount of destination gas paid for.
paymentuint256The amount of native tokens paid.