oID - Oracle recipe

Currently oracle recipe interface is under heavy development thus you may expect to see these interface changed later.

pragma solidity ^0.5.4;
interface IOracleId {
// Requires fetch at specific moment of time in future
function fetchData(uint256 timestamp) external payable;
// Requires periodical fetch of data at specific moments of time in future
function recursivelyFetchData(uint256 timestamp, uint256 period, uint256 times) external payable;
// Returns how much ether should be provided in order to fetch data using this oracle id
function calculateFetchPrice() external view returns (uint256 fetchPrice);
// Returns meta data in JSON string
function getMetaData() external view returns (string memory);
}