IInterchainGasPaymaster
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
Name | Type | Description |
---|---|---|
messageId | bytes32 | The ID of the message to pay for. |
gasAmount | uint256 | The amount of destination gas paid for. |
payment | uint256 | The amount of native tokens paid. |