AggregatorV3Interface.sol
1 // SPDX-License-Identifier: MIT 2 pragma solidity >=0.6.0; 3 4 interface AggregatorV3Interface { 5 6 function decimals() external view returns (uint8); 7 function description() external view returns (string memory); 8 function version() external view returns (uint256); 9 10 // getRoundData and latestRoundData should both raise "No data present" 11 // if they do not have data to report, instead of returning unset values 12 // which could be misinterpreted as actual reported values. 13 function getRoundData(uint80 _roundId) 14 external 15 view 16 returns 17 ( 18 uint80 roundId, 19 int256 answer, 20 uint256 startedAt, 21 uint256 updatedAt, 22 uint80 answeredInRound 23 ); 24 25 function latestRoundData() 26 external 27 view 28 returns 29 ( 30 uint80 roundId, 31 int256 answer, 32 uint256 startedAt, 33 uint256 updatedAt, 34 uint80 answeredInRound 35 ); 36 37 }