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 IChainlinkAggregator {
|
|
|
|
function latestAnswer() external view returns (int256);
|
2020-07-13 08:54:08 +00:00
|
|
|
|
2020-05-29 16:45:37 +00:00
|
|
|
function latestTimestamp() external view returns (uint256);
|
2020-07-13 08:54:08 +00:00
|
|
|
|
2020-05-29 16:45:37 +00:00
|
|
|
function latestRound() external view returns (uint256);
|
2020-07-13 08:54:08 +00:00
|
|
|
|
2020-05-29 16:45:37 +00:00
|
|
|
function getAnswer(uint256 roundId) external view returns (int256);
|
2020-07-13 08:54:08 +00:00
|
|
|
|
2020-05-29 16:45:37 +00:00
|
|
|
function getTimestamp(uint256 roundId) external view returns (uint256);
|
|
|
|
|
|
|
|
event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 timestamp);
|
|
|
|
event NewRound(uint256 indexed roundId, address indexed startedBy);
|
2020-07-13 08:54:08 +00:00
|
|
|
}
|