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
<none>
uint256
The latest updated timestamp
latestRound
Returns the latest round's nonce.
Returns
<none>
uint80
The latest round's nonce
latestAnswer
Returns the latest price.
Returns
<none>
int256
The latest price
latestRoundData
Returns the latest price data.
Returns
roundId
uint80
The round ID
answer
int256
The latest price
startedAt
uint256
Timestamp of when the round started
updatedAt
uint256
Timestamp of when the round was updated
answeredInRound
uint80
Previously used when answers could take multiple rounds to be computed
getAnswer
Returns the historic price for a given nonce.
Parameters
roundId
uint256
The nonce of the historic price
Returns
<none>
int256
The historic price data
getTimestamp
Returns the timestamp for a given nonce.
Parameters
roundId
uint256
The nonce of the historic price data
Returns
<none>
uint256
The timestamp for a given nonce
getRoundData
Returns the historic price data for a given nonce.
Parameters
roundId
uint128
The nonce of the historic price data
Returns
roundId
uint80
he round ID
answer
int256
The historic price data
startedAt
uint256
Timestamp of when the round started
updatedAt
uint256
Timestamp of when the round was updated
answeredInRound
uint80
Previously used when answers could take multiple rounds to be computed
Last updated