IRedstoneOracle

Git Source

Functions

REDSTONE_HEARTBEAT

Gets the interval between two Redstone price updates.

function REDSTONE_HEARTBEAT() external pure returns (uint48 heartbeat_);

Returns

NameTypeDescription
heartbeat_uint48The interval in seconds.

REDSTONE_DECIMALS

Gets the number of decimals for prices contained in Redstone price updates.

function REDSTONE_DECIMALS() external pure returns (uint8 decimals_);

Returns

NameTypeDescription
decimals_uint8The number of decimals.

getRedstoneFeedId

Gets the ID of the Redstone price feed.

function getRedstoneFeedId() external view returns (bytes32 feedId_);

Returns

NameTypeDescription
feedId_bytes32The feed ID.

getRedstoneRecentPriceDelay

Gets the maximum age of a price to be considered recent.

function getRedstoneRecentPriceDelay() external view returns (uint48 delay_);

Returns

NameTypeDescription
delay_uint48The age in seconds.

validateTimestamp

Used by the Redstone contract internally, we override it to allow all timestamps.

function validateTimestamp(uint256 timestampMs) external pure;

Parameters

NameTypeDescription
timestampMsuint256The timestamp of the price update in milliseconds.