DefaultGasHelper
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
| Name | Type | Description |
|---|---|---|
owner_ | address | The owner address |
setGasFee
Sets the gas fee
function setGasFee(uint32 dstChainId, uint256 amount) external onlyOwner;
Parameters
| Name | Type | Description |
|---|---|---|
dstChainId | uint32 | The destination chain id |
amount | uint256 | The gas fee amount |
Events
GasFeeUpdated
Event emitted when gas fee is updated
event GasFeeUpdated(uint32 indexed dstChainId, uint256 amount);
Parameters
| Name | Type | Description |
|---|---|---|
dstChainId | uint32 | The destination chain ID |
amount | uint256 | The gas fee amount |