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

Register (Data Streams) v0.3.0 API Reference

Register (Data Streams)

Data Streams network configuration registry.

Register (Data Streams)

Structs

NetworkDetails

struct NetworkDetails {
    address verifierProxyAddress;
    address linkAddress;
}

Variables

s_networkDetails

Mapping to store network details based on chain ID.

mapping(uint256 chainId => NetworkDetails) internal s_networkDetails

Functions

constructor

Constructor to initialize the network details for various chains.

constructor() ;

getNetworkDetails

Retrieves network details for a given chain ID.

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

Parameters

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

Returns

NameTypeDescription
networkDetailsNetworkDetails- The network details for the specified chain ID.

setNetworkDetails

Sets the network details for a given chain ID.

function setNetworkDetails(uint256 chainId, NetworkDetails memory networkDetails) external;

Parameters

NameTypeDescription
chainIduint256- The ID of the chain to set the details for.
networkDetailsNetworkDetails- The network details to set for the specified chain ID.

Get the latest Chainlink content straight to your inbox.