The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hyperlane-monorepo/solidity/core/interfaces/IInterchainGasPaymaster.sol

18 lines
692 B

// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity >=0.6.11;
/**
* @title IInterchainGasPaymaster
* @notice An interface to pay source chain native tokens to cover the gas costs
* of proving & processing messages on destination chains.
* @dev This is only intended for paying for messages sent via a specific
* Outbox contract on the same source chain.
*/
interface IInterchainGasPaymaster {
/**
* @notice Deposits the msg.value as a payment for the proving & processing
* of a message on its destination chain.
* @param _leafIndex The index of the message in the Outbox merkle tree.
*/
function payGasFor(uint256 _leafIndex) external payable;
}