IChainRegistry
This interface is used to map EVM chain IDs to Wormhole chain IDs and vice versa.
Functions
isEvmChainIdRegistered
EVM chain ID => Is the chain ID registered
function isEvmChainIdRegistered(uint256 _evmChainId) external view returns (bool);
isWhChainIdRegistered
Wormhole chain ID => Is the chain ID registered
function isWhChainIdRegistered(uint16 _whChainId) external view returns (bool);
evmToWhChainId
EVM chain ID => Wormhole chain ID
function evmToWhChainId(uint256 _evmChainId) external view returns (uint16);
whToEvmChainId
Wormhole chain ID => EVM chain ID
function whToEvmChainId(uint16 _whChainId) external view returns (uint256);
setChainIds
Associates an EVM chain ID with a Wormhole chain ID in the contract storage.
function setChainIds(uint256 _evmChainId, uint16 _whChainId) external;
Parameters
Name | Type | Description |
---|---|---|
_evmChainId | uint256 | The EVM chain ID. |
_whChainId | uint16 | The Wormhole chain ID. |
Events
ChainIdsRegistered
event ChainIdsRegistered(uint256 indexed evmChainId, uint16 indexed whChainId);