AggregatorV2V3Interface
This interface is a combination of Chainlink's AggregatorInterface.sol and AggregatorV3Interface.sol.
Functions
latestAnswer
function latestAnswer() external view returns (int256);Returns
| Name | Type | Description |
|---|---|---|
| <none> | int256 |
latestTimestamp
function latestTimestamp() external view returns (uint256);Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 |
latestRound
function latestRound() external view returns (uint256);Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 |
getAnswer
function getAnswer(uint256 roundId) external view returns (int256);Parameters
| Name | Type | Description |
|---|---|---|
| roundId | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | int256 |
getTimestamp
function getTimestamp(uint256 roundId) external view returns (uint256);Parameters
| Name | Type | Description |
|---|---|---|
| roundId | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 |
decimals
function decimals() external view returns (uint8);Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint8 |
description
function description() external view returns (string memory);Returns
| Name | Type | Description |
|---|---|---|
| <none> | string |
version
function version() external view returns (uint256);Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 |
getRoundData
function getRoundData(uint80 _roundId)
external
view
returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);Parameters
| Name | Type | Description |
|---|---|---|
| _roundId | uint80 |
Returns
| Name | Type | Description |
|---|---|---|
| roundId | uint80 | |
| answer | int256 | |
| startedAt | uint256 | |
| updatedAt | uint256 | |
| answeredInRound | uint80 |
latestRoundData
function latestRoundData()
external
view
returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);Returns
| Name | Type | Description |
|---|---|---|
| roundId | uint80 | |
| answer | int256 | |
| startedAt | uint256 | |
| updatedAt | uint256 | |
| answeredInRound | uint80 |
Events
AnswerUpdated
event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 timestamp);Parameters
| Name | Type | Description |
|---|---|---|
| current | int256 | |
| roundId | uint256 | |
| timestamp | uint256 |
NewRound
event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt);Parameters
| Name | Type | Description |
|---|---|---|
| roundId | uint256 | |
| startedBy | address | |
| startedAt | uint256 |