DefaultGasHelper

Git Source

Inherits: Ownable

Title: DefaultGasHelper

Author: Merge Layers Inc.

Helper contract for managing gas fees

State Variables

gasFees

Mapping of chain IDs to gas fees

mapping(uint32 chainId => uint256 fee) public gasFees

Functions

constructor

Constructor

constructor(address owner_) Ownable(owner_);

Parameters

NameTypeDescription
owner_addressThe owner address

setGasFee

Sets the gas fee

function setGasFee(uint32 dstChainId, uint256 amount) external onlyOwner;

Parameters

NameTypeDescription
dstChainIduint32The destination chain id
amountuint256The gas fee amount

Events

GasFeeUpdated

Event emitted when gas fee is updated

event GasFeeUpdated(uint32 indexed dstChainId, uint256 amount);

Parameters

NameTypeDescription
dstChainIduint32The destination chain ID
amountuint256The gas fee amount