Register v0.2.3 API Reference

Register

A contract that stores and manages network configuration details for various blockchain networks supported by CCIP (Cross-Chain Interoperability Protocol).

Register

Structs

NetworkDetails

Contains configuration details for a specific network/chain.

FieldTypeDescription
chainSelectoruint64Unique identifier for the chain in CCIP
routerAddressaddressAddress of the CCIP Router contract
linkAddressaddressAddress of the LINK token contract
wrappedNativeAddressaddressAddress of the wrapped native token contract
ccipBnMAddressaddressAddress of the CCIP BnM token contract
ccipLnMAddressaddressAddress of the CCIP LnM token contract
rmnProxyAddressaddressAddress of the RMN proxy contract
registryModuleOwnerCustomAddressaddressAddress of the registry module owner
tokenAdminRegistryAddressaddressAddress of the token admin registry contract

Variables

s_networkDetails

mapping(uint256 chainId => NetworkDetails) internal s_networkDetails

Functions

constructor

Initializes the contract with predefined network details for various supported chains.

constructor()

getNetworkDetails

Retrieves the network details for a specified chain ID.

function getNetworkDetails(uint256 chainId) external view returns (NetworkDetails memory networkDetails)

Parameters

ParameterTypeDescription
chainIduint256The ID of the chain to get details for

Returns

TypeDescription
NetworkDetailsThe network configuration details for the chain

setNetworkDetails

Sets or updates the network details for a specified chain ID.

function setNetworkDetails(uint256 chainId, NetworkDetails memory networkDetails) external

Parameters

ParameterTypeDescription
chainIduint256The ID of the chain to set details for
networkDetailsNetworkDetailsThe network configuration details to be stored

Get the latest Chainlink content straight to your inbox.