|
| 1 | +// SPDX-License-Identifier: UNLICENSED |
| 2 | +pragma solidity 0.6.10; |
| 3 | + |
| 4 | +interface AggregatorInterface { |
| 5 | + function latestAnswer() external view returns (int256); |
| 6 | + function latestTimestamp() external view returns (uint256); |
| 7 | + function latestRound() external view returns (uint256); |
| 8 | + function getAnswer(uint256 roundId) external view returns (int256); |
| 9 | + function getTimestamp(uint256 roundId) external view returns (uint256); |
| 10 | +} |
| 11 | + |
| 12 | +interface AggregatorV3Interface { |
| 13 | + |
| 14 | + function decimals() external view returns (uint8); |
| 15 | + function description() external view returns (string memory); |
| 16 | + function version() external view returns (uint256); |
| 17 | + |
| 18 | + // getRoundData and latestRoundData should both raise "No data present" |
| 19 | + // if they do not have data to report, instead of returning unset values |
| 20 | + // which could be misinterpreted as actual reported values. |
| 21 | + function getRoundData(uint80 _roundId) |
| 22 | + external |
| 23 | + view |
| 24 | + returns ( |
| 25 | + uint80 roundId, |
| 26 | + int256 answer, |
| 27 | + uint256 startedAt, |
| 28 | + uint256 updatedAt, |
| 29 | + uint80 answeredInRound |
| 30 | + ); |
| 31 | + function latestRoundData() |
| 32 | + external |
| 33 | + view |
| 34 | + returns ( |
| 35 | + uint80 roundId, |
| 36 | + int256 answer, |
| 37 | + uint256 startedAt, |
| 38 | + uint256 updatedAt, |
| 39 | + uint80 answeredInRound |
| 40 | + ); |
| 41 | + |
| 42 | +} |
| 43 | + |
| 44 | +interface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface |
| 45 | +{ |
| 46 | +} |
| 47 | + |
| 48 | +interface IChainlinkEACAggregatorProxy { |
| 49 | + function acceptOwnership() external; |
| 50 | + function accessController() external view returns (address); |
| 51 | + function aggregator() external view returns (address); |
| 52 | + function confirmAggregator(address _aggregator) external; |
| 53 | + function decimals() external view returns (uint8); |
| 54 | + function description() external view returns (string memory); |
| 55 | + function getAnswer(uint256 _roundId) external view returns (int256); |
| 56 | + function getRoundData(uint80 _roundId) |
| 57 | + external |
| 58 | + view |
| 59 | + returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); |
| 60 | + function getTimestamp(uint256 _roundId) external view returns (uint256); |
| 61 | + function latestAnswer() external view returns (int256); |
| 62 | + function latestRound() external view returns (uint256); |
| 63 | + function latestRoundData() |
| 64 | + external |
| 65 | + view |
| 66 | + returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); |
| 67 | + function latestTimestamp() external view returns (uint256); |
| 68 | + function owner() external view returns (address payable); |
| 69 | + function phaseAggregators(uint16) external view returns (address); |
| 70 | + function phaseId() external view returns (uint16); |
| 71 | + function proposeAggregator(address _aggregator) external; |
| 72 | + function proposedAggregator() external view returns (address); |
| 73 | + function proposedGetRoundData(uint80 _roundId) |
| 74 | + external |
| 75 | + view |
| 76 | + returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); |
| 77 | + function proposedLatestRoundData() |
| 78 | + external |
| 79 | + view |
| 80 | + returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); |
| 81 | + function setController(address _accessController) external; |
| 82 | + function transferOwnership(address _to) external; |
| 83 | + function version() external view returns (uint256); |
| 84 | +} |
0 commit comments