API Version: v0.2.9 Not using latest version (v0.3.1)

Register v0.2.9 API Reference

Register

CCIP network configuration registry.

Register

Structs

NetworkDetails

struct NetworkDetails {
  uint64 chainSelector;
  address routerAddress;
  address linkAddress;
  address wrappedNativeAddress;
  address ccipBnMAddress;
  address ccipLnMAddress;
  address rmnProxyAddress;
  address registryModuleOwnerCustomAddress;
  address tokenAdminRegistryAddress;
}

Variables

s_networkDetails

mapping(uint256 => struct Register.NetworkDetails) s_networkDetails

Mapping to store network details based on chain ID.

Functions

constructor

constructor() public

Constructor to initialize the network details for various chains.

getNetworkDetails

function getNetworkDetails(uint256 chainId) external view returns (struct Register.NetworkDetails networkDetails)

Retrieves network details for a given chain ID.

Parameters

NameTypeDescription
chainIduint256- The ID of the chain to get the details for.

Returns

NameTypeDescription
networkDetailsstruct Register.NetworkDetails- The network details for the specified chain ID.

setNetworkDetails

function setNetworkDetails(uint256 chainId, struct Register.NetworkDetails networkDetails) external

Sets the network details for a given chain ID.

Parameters

NameTypeDescription
chainIduint256- The ID of the chain to set the details for.
networkDetailsstruct Register.NetworkDetails- The network details to set for the specified chain ID.

Get the latest Chainlink content straight to your inbox.