IRedstoneOracle
Functions
REDSTONE_HEARTBEAT
Gets the interval between two Redstone price updates.
function REDSTONE_HEARTBEAT() external pure returns (uint48 heartbeat_);
Returns
Name | Type | Description |
---|---|---|
heartbeat_ | uint48 | The 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
Name | Type | Description |
---|---|---|
decimals_ | uint8 | The number of decimals. |
getRedstoneFeedId
Gets the ID of the Redstone price feed.
function getRedstoneFeedId() external view returns (bytes32 feedId_);
Returns
Name | Type | Description |
---|---|---|
feedId_ | bytes32 | The feed ID. |
getRedstoneRecentPriceDelay
Gets the maximum age of a price to be considered recent.
function getRedstoneRecentPriceDelay() external view returns (uint48 delay_);
Returns
Name | Type | Description |
---|---|---|
delay_ | uint48 | The age in seconds. |
validateTimestamp
Used by the Redstone contract internally, we override it to allow all timestamps.
function validateTimestamp(uint256 timestampMs) external pure;
Parameters
Name | Type | Description |
---|---|---|
timestampMs | uint256 | The timestamp of the price update in milliseconds. |