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

DataStreamsLocalSimulator v0.2.9 API Reference

DataStreamsLocalSimulator

Local Data Streams simulator (no-fork mode).

DataStreamsLocalSimulator

Variables

i_linkToken

contract LinkToken i_linkToken

The LINK token instance

i_wrappedNative

contract WETH9 i_wrappedNative

The wrapped native token instance

s_mockFeeManager

contract MockFeeManager s_mockFeeManager

s_mockRewardManager

contract MockRewardManager s_mockRewardManager

s_mockVerifier

contract MockVerifier s_mockVerifier

s_mockVerifierProxy

contract MockVerifierProxy s_mockVerifierProxy

Functions

configuration

function configuration() public view returns (contract WETH9 wrappedNative_, contract LinkToken linkToken_, contract MockVerifier mockVerifier_, contract MockVerifierProxy mockVerifierProxy_, contract MockFeeManager mockFeeManager_, contract MockRewardManager mockRewardManager_)

@notice Returns configuration details for pre-deployed contracts and services needed for local Data Streams simulations.

Returns

NameTypeDescription
wrappedNative_contract WETH9- The wrapped native token.
linkToken_contract LinkToken- The LINK token.
mockVerifier_contract MockVerifier- The mock verifier contract.
mockVerifierProxy_contract MockVerifierProxy- The mock verifier proxy contract.
mockFeeManager_contract MockFeeManager- The mock fee manager contract.
mockRewardManager_contract MockRewardManager- The mock reward manager contract.

constructor

constructor() public

requestLinkFromFaucet

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

Requests LINK tokens from the faucet. The provided amount of tokens are transferred to provided destination address.

Parameters

NameTypeDescription
toaddress- The address to which LINK tokens are to be sent.
amountuint256- The amount of LINK tokens to send.

Returns

NameTypeDescription
successbool- Returns true if the transfer of tokens was successful, otherwise false.

Get the latest Chainlink content straight to your inbox.