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/contracts/test/TestInterchainGasPaymaster.sol

31 lines
748 B

// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity >=0.8.0;
// ============ Internal Imports ============
import {IInterchainGasPaymaster} from "../../interfaces/IInterchainGasPaymaster.sol";
contract TestInterchainGasPaymaster is IInterchainGasPaymaster {
event GasPayment(
bytes32 indexed messageId,
uint256 gasAmount,
uint256 payment
);
function payForGas(
bytes32 _messageId,
uint32,
uint256 _gasAmount,
address
) external payable override {
emit GasPayment(_messageId, _gasAmount, msg.value);
}
function quoteGasPayment(uint32, uint256)
public
pure
override
returns (uint256)
{
return 0;
}
}