/ contracts / interfaces / IScryOpenOracleFramework.sol
IScryOpenOracleFramework.sol
 1  pragma solidity >=0.6.0;
 2  pragma experimental ABIEncoderV2;
 3  
 4  
 5  interface IScryOpenOracleFramework {
 6      /**
 7      * @dev getHistoricalFeeds function lets the caller receive historical values for a given timestamp
 8      *
 9      * @param feedIDs the array of feedIds
10      * @param timestamps the array of timestamps
11      */
12      function getHistoricalFeeds(uint256[] calldata feedIDs, uint256[] calldata timestamps) external view returns (uint256[] memory);
13  
14      /**
15      * @dev getFeeds function lets anyone call the oracle to receive data (maybe pay an optional fee)
16      *
17      * @param feedIDs the array of feedIds
18      */
19      function getFeeds(uint256[] calldata feedIDs) external view returns (uint256[] memory, uint256[] memory, uint256[] memory);
20  
21      /**
22      * @dev getFeed function lets anyone call the oracle to receive data (maybe pay an optional fee)
23      *
24      * @param feedID the array of feedId
25      */
26      function getFeed(uint256 feedID) external view returns (uint256, uint256, uint256);
27  
28      /**
29      * @dev getFeedList function returns the metadata of a feed
30      *
31      * @param feedIDs the array of feedId
32      */
33      function getFeedList(uint256[] calldata feedIDs) external view returns(string[] memory, uint256[] memory, uint256[] memory, uint256[] memory, uint256[] memory);
34  }