Skip to content

IPyth

Description

Source: contracts/interfaces/IPyth.sol

Views

getEmaPrice

Source

Details

Signature

getEmaPrice(bytes32 id) view returns (struct PythStructs.Price price)

Visibility

external

State Mutability

view

getEmaPriceNoOlderThan

Source

Details

Signature

getEmaPriceNoOlderThan(bytes32 id, uint256 age) view returns (struct PythStructs.Price price)

Visibility

external

State Mutability

view

getEmaPriceUnsafe

Source

Details

Signature

getEmaPriceUnsafe(bytes32 id) view returns (struct PythStructs.Price price)

Visibility

external

State Mutability

view

getPrice

Source

Details

Signature

getPrice(bytes32 id) view returns (struct PythStructs.Price price)

Visibility

external

State Mutability

view

getPriceNoOlderThan

Source

Details

Signature

getPriceNoOlderThan(bytes32 id, uint256 age) view returns (struct PythStructs.Price price)

Visibility

external

State Mutability

view

getPriceUnsafe

Source

Details

Signature

getPriceUnsafe(bytes32 id) view returns (struct PythStructs.Price price)

Visibility

external

State Mutability

view

getUpdateFee

Source

Details

Signature

getUpdateFee(bytes[] updateData) view returns (uint256 feeAmount)

Visibility

external

State Mutability

view

getValidTimePeriod

Source

Details

Signature

getValidTimePeriod() view returns (uint256 validTimePeriod)

Visibility

external

State Mutability

view

External Functions

parsePriceFeedUpdates

Source

Details

Signature

parsePriceFeedUpdates(bytes[] updateData, bytes32[] priceIds, uint64 minPublishTime, uint64 maxPublishTime) payable returns (struct PythStructs.PriceFeed[] priceFeeds)

Visibility

external

State Mutability

payable

updatePriceFeeds

Source

Details

Signature

updatePriceFeeds(bytes[] updateData) payable

Visibility

external

State Mutability

payable

updatePriceFeedsIfNecessary

Source

Details

Signature

updatePriceFeedsIfNecessary(bytes[] updateData, bytes32[] priceIds, uint64[] publishTimes) payable

Visibility

external

State Mutability

payable

Events

BatchPriceFeedUpdate

Source

Signature: BatchPriceFeedUpdate(uint16 chainId, uint64 sequenceNumber)

PriceFeedUpdate

Source

Signature: PriceFeedUpdate(bytes32 id, uint64 publishTime, int64 price, uint64 conf)