Solidity Contracts and Interface
How to hook up Scry Oracles to your contracts
Scry Feed Lookup
Use
Interface
* @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);
/**
* @dev getFeeds function lets anyone call the oracle to receive data (maybe pay an optional fee)
*
* @param feedIDs the array of feedIds
*/
function getFeeds(uint256[] memory feedIDs) external view returns (uint256[] memory, uint256[] memory, uint256[] memory);
/**
* @dev getFeed function lets anyone call the oracle to receive data (maybe pay an optional fee)
*
* @param feedID the array of feedId
*/
function getFeed(uint256 feedID) external view returns (uint256, uint256, uint256);
/**
* @dev getFeedList function returns the metadata of a feed
*
* @param feedIDs the array of feedId
*/
function getFeedList(uint256[] memory feedIDs) external view returns(string[] memory, uint256[] memory, uint256[] memory, uint256[] memory, uint256[] memory);
}Use
SOLIDITY
Last updated