ChainlinkFacade

ChainlinkFacade

Git Source

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.

IDataFeed public immutable dataFeed;

base

The base asset address.

address public immutable base;

asset

The asset address.

address public immutable asset;

Functions

constructor

constructor(address _dataFeed, address _base, address _asset);

latestTimestamp

Returns the latest updated timestamp.

function latestTimestamp() external view returns (uint256);

Returns

latestRound

Returns the latest round's nonce.

function latestRound() external view returns (uint80);

Returns

latestAnswer

Returns the latest price.

function latestAnswer() external view returns (int256);

Returns

latestRoundData

Returns the latest price data.

function latestRoundData() external view returns (uint80, int256, uint256, uint256, uint80);

Returns

getAnswer

Returns the historic price for a given nonce.

function getAnswer(uint256 roundId) external view returns (int256);

Parameters

Returns

getTimestamp

Returns the timestamp for a given nonce.

function getTimestamp(uint256 roundId) external view returns (uint256);

Parameters

Returns

getRoundData

Returns the historic price data for a given nonce.

function getRoundData(uint128 roundId) external view returns (uint80, int256, uint256, uint256, uint80);

Parameters

Returns

Last updated