DataStreamsLocalSimulator v0.2.8 API Reference
DataStreamsLocalSimulator
Local Data Streams simulator (no-fork mode).
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
| Name | Type | Description |
|---|---|---|
| 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
| Name | Type | Description |
|---|---|---|
| to | address | - The address to which LINK tokens are to be sent. |
| amount | uint256 | - The amount of LINK tokens to send. |
Returns
| Name | Type | Description |
|---|---|---|
| success | bool | - Returns true if the transfer of tokens was successful, otherwise false. |