2020-05-29 16:45:37 +00:00
|
|
|
// SPDX-License-Identifier: agpl-3.0
|
2020-11-20 10:45:20 +00:00
|
|
|
pragma solidity 0.6.12;
|
2020-05-29 16:45:37 +00:00
|
|
|
|
|
|
|
interface GenericOracleI {
|
2020-07-13 08:54:08 +00:00
|
|
|
// ganache
|
|
|
|
event AssetPriceUpdated(address _asset, uint256 _price, uint256 timestamp);
|
|
|
|
event EthPriceUpdated(uint256 _price, uint256 timestamp);
|
2020-05-29 16:45:37 +00:00
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
// kovan
|
|
|
|
event ProphecySubmitted(
|
|
|
|
address indexed _sybil,
|
|
|
|
address indexed _asset,
|
|
|
|
uint96 _sybilProphecy,
|
|
|
|
uint96 _oracleProphecy
|
|
|
|
);
|
2020-05-29 16:45:37 +00:00
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
function getAssetPrice(address _asset) external view returns (uint256);
|
2020-05-29 16:45:37 +00:00
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
function getEthUsdPrice() external view returns (uint256);
|
|
|
|
}
|