ChainlinkFacade
ChainlinkFacade
A facade for the integrators expecting the interfaces of a Chainlink data feed.
This facade also covers the interfaces of Redstone's data feed (which are Chainlink compatible).
State Variables
dataFeed
Interface / Address of a deployed Warlock DataFeed.
base
The base asset address.
asset
The asset address.
Functions
constructor
latestTimestamp
Returns the latest updated timestamp.
Returns
Name | Type | Description |
---|---|---|
|
| The latest updated timestamp |
latestRound
Returns the latest round's nonce.
Returns
Name | Type | Description |
---|---|---|
|
| The latest round's nonce |
latestAnswer
Returns the latest price.
Returns
Name | Type | Description |
---|---|---|
|
| The latest price |
latestRoundData
Returns the latest price data.
Returns
Name | Type | Description |
---|---|---|
|
| The round ID |
|
| The latest price |
|
| Timestamp of when the round started |
|
| Timestamp of when the round was updated |
|
| Previously used when answers could take multiple rounds to be computed |
getAnswer
Returns the historic price for a given nonce.
Parameters
Name | Type | Description |
---|---|---|
|
| The nonce of the historic price |
Returns
Name | Type | Description |
---|---|---|
|
| The historic price data |
getTimestamp
Returns the timestamp for a given nonce.
Parameters
Name | Type | Description |
---|---|---|
|
| The nonce of the historic price data |
Returns
Name | Type | Description |
---|---|---|
|
| The timestamp for a given nonce |
getRoundData
Returns the historic price data for a given nonce.
Parameters
Name | Type | Description |
---|---|---|
|
| The nonce of the historic price data |
Returns
Name | Type | Description |
---|---|---|
|
| he round ID |
|
| The historic price data |
|
| Timestamp of when the round started |
|
| Timestamp of when the round was updated |
|
| Previously used when answers could take multiple rounds to be computed |
Last updated