Register (Data Streams) v0.3.1 API Reference
Register (Data Streams)
A contract that stores and retrieves Data Streams network details for various chains.
Structs
NetworkDetails
Contains Data Streams configuration details for a specific network/chain.
| Field | Type | Description |
|---|---|---|
| verifierProxyAddress | address | The address of the Verifier Proxy contract |
| linkAddress | address | The address of the LINK token contract |
Functions
constructor
Initializes the contract with predefined network details.
constructor()
getNetworkDetails
Retrieves network details for a given chain ID.
function getNetworkDetails(uint256 chainId) external view returns (NetworkDetails memory networkDetails)
Parameters
| Parameter | Type | Description |
|---|---|---|
| chainId | uint256 | The ID of the chain to get the details for |
Returns
| Parameter | 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
| Parameter | 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 |