mirror of
https://github.com/AthanorLabs/atomic-swap.git
synced 2026-01-07 21:34:05 -05:00
43 lines
1.1 KiB
Solidity
43 lines
1.1 KiB
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.19;
|
|
|
|
//
|
|
// Contract comes from here:
|
|
// https://github.com/smartcontractkit/smart-contract-examples/blob/main/pricefeed-golang/aggregatorv3/AggregatorV3Interface.sol
|
|
//
|
|
|
|
interface AggregatorV3Interface {
|
|
function decimals() external view returns (uint8);
|
|
|
|
function description() external view returns (string memory);
|
|
|
|
function version() external view returns (uint256);
|
|
|
|
// getRoundData and latestRoundData should both raise "No data present"
|
|
// if they do not have data to report, instead of returning unset values
|
|
// which could be misinterpreted as actual reported values.
|
|
function getRoundData(
|
|
uint80 _roundId
|
|
)
|
|
external
|
|
view
|
|
returns (
|
|
uint80 roundId,
|
|
int256 answer,
|
|
uint256 startedAt,
|
|
uint256 updatedAt,
|
|
uint80 answeredInRound
|
|
);
|
|
|
|
function latestRoundData()
|
|
external
|
|
view
|
|
returns (
|
|
uint80 roundId,
|
|
int256 answer,
|
|
uint256 startedAt,
|
|
uint256 updatedAt,
|
|
uint80 answeredInRound
|
|
);
|
|
}
|