Solidity Contracts and Interface
How to hook up Scry Oracles to your contracts
This repo allows you to use a simple script to check oracle data, specifically for the reference oracles but for any oracle address using the RPC set for the network.
Simply
git clone https://github.com/ScryProtocol/feedLookup
into the repo,
npm install
and then run
node feeds.js
All feeds and associated IDs and info will show. To use the feeds in your contracts simply use the interface in your contract or in a handler contract
* @dev Interface of the OpenOracleFramework contract
*/
interface IOpenOracleFramework {
/**
* @dev getHistoricalFeeds function lets the caller receive historical values for a given timestamp
*
* @param feedIDs the array of feedIds
* @param timestamps the array of timestamps
*/
function getHistoricalFeeds(uint256[] memory feedIDs, uint256[] memory timestamps) external view returns (uint256[] memory);