Skip to main content

MockChainlinkOracle

Functions

constructor

function constructor(
int256 value,
uint8 decimals
) public

Parameters

NameTypeDescription
valueint256
decimalsuint8

decimals

function decimals() external returns (uint8)

description

function description() external returns (string)

getRoundData

function getRoundData(
uint80 _getRoundId
) external returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

Parameters

NameTypeDescription
_getRoundIduint80

latestRoundData

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

set

function set(
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
) external

Parameters

NameTypeDescription
roundIduint80
answerint256
startedAtuint256
updatedAtuint256
answeredInRounduint80

version

function version() external returns (uint256)