Register (Data Streams) v0.3.0 API Reference
Register (Data Streams)
Data Streams network configuration registry.
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
| Name | Type | Description |
|---|---|---|
chainId | uint256 | - The ID of the chain to get the details for. |
Returns
| Name | Type | Description |
|---|---|---|
networkDetails | NetworkDetails | - 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
| Name | Type | Description |
|---|---|---|
chainId | uint256 | - The ID of the chain to set the details for. |
networkDetails | NetworkDetails | - The network details to set for the specified chain ID. |