Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

MockChainlinkV3Aggregator

Git Source

Inherits: AggregatorV3Interface

State Variables

_decimals

uint8 private _decimals;

_answer

int256 private _answer;

_answeredInRound

uint80 private _answeredInRound;

Functions

constructor

constructor(uint8 decimals_, int256 answer_, uint80 answeredInRound_);

decimals

function decimals() external view override returns (uint8);

description

function description() external pure override returns (string memory);

version

function version() external pure override returns (uint256);

getRoundData

function getRoundData(uint80 _roundId)
    external
    view
    override
    returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);

latestRoundData

function latestRoundData()
    external
    view
    override
    returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);