API Version: v0.3.1

DataStreamsLocalSimulatorFork v0.3.1 API Reference

DataStreamsLocalSimulatorFork

A contract that simulates Data Streams operations on forked networks in a Foundry test environment.

DataStreamsLocalSimulatorFork

Variables

i_register

Register immutable i_register
address constant LINK_FAUCET = 0x4281eCF07378Ee595C564a59048801330f3084eE

Functions

constructor

Initializes the contract.

constructor()

getNetworkDetails

Returns the default values for currently Data Streams supported networks.

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

Parameters

ParameterTypeDescription
chainIduint256The blockchain network chain ID (e.g., 421614 for Arbitrum Sepolia)

Returns

ParameterTypeDescription
networkDetailsNetworkDetailsverifierProxyAddress and linkAddress for the specified chain

setNetworkDetails

Sets the network details for a given chain ID.

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

Parameters

ParameterTypeDescription
chainIduint256The blockchain network chain ID
networkDetailsNetworkDetailsThe network details to set for the specified chain ID

requestLinkFromFaucet

Requests LINK tokens from the faucet.

function requestLinkFromFaucet(address to, uint256 amount) external returns (bool success)

Parameters

ParameterTypeDescription
toaddressThe address to receive the LINK tokens
amountuint256The amount of LINK tokens to transfer

Returns

ParameterTypeDescription
successboolReturns true if the token transfer was successful

requestNativeFromFaucet

Requests native coins from the faucet.

function requestNativeFromFaucet(address to, uint256 amount) external

Parameters

ParameterTypeDescription
toaddressThe address to receive the native coins
amountuint256The amount of native coins to send

Get the latest Chainlink content straight to your inbox.