IPyth¶
Description¶
Source: contracts/interfaces/IPyth.sol
Views¶
getEmaPrice
¶
Details
Signature
getEmaPrice(bytes32 id) view returns (struct PythStructs.Price price)
Visibility
external
State Mutability
view
getEmaPriceNoOlderThan
¶
Details
Signature
getEmaPriceNoOlderThan(bytes32 id, uint256 age) view returns (struct PythStructs.Price price)
Visibility
external
State Mutability
view
getEmaPriceUnsafe
¶
Details
Signature
getEmaPriceUnsafe(bytes32 id) view returns (struct PythStructs.Price price)
Visibility
external
State Mutability
view
getPrice
¶
Details
Signature
getPrice(bytes32 id) view returns (struct PythStructs.Price price)
Visibility
external
State Mutability
view
getPriceNoOlderThan
¶
Details
Signature
getPriceNoOlderThan(bytes32 id, uint256 age) view returns (struct PythStructs.Price price)
Visibility
external
State Mutability
view
getPriceUnsafe
¶
Details
Signature
getPriceUnsafe(bytes32 id) view returns (struct PythStructs.Price price)
Visibility
external
State Mutability
view
getUpdateFee
¶
Details
Signature
getUpdateFee(bytes[] updateData) view returns (uint256 feeAmount)
Visibility
external
State Mutability
view
getValidTimePeriod
¶
Details
Signature
getValidTimePeriod() view returns (uint256 validTimePeriod)
Visibility
external
State Mutability
view
External Functions¶
parsePriceFeedUpdates
¶
Details
Signature
parsePriceFeedUpdates(bytes[] updateData, bytes32[] priceIds, uint64 minPublishTime, uint64 maxPublishTime) payable returns (struct PythStructs.PriceFeed[] priceFeeds)
Visibility
external
State Mutability
payable
updatePriceFeeds
¶
Details
Signature
updatePriceFeeds(bytes[] updateData) payable
Visibility
external
State Mutability
payable
updatePriceFeedsIfNecessary
¶
Details
Signature
updatePriceFeedsIfNecessary(bytes[] updateData, bytes32[] priceIds, uint64[] publishTimes) payable
Visibility
external
State Mutability
payable
Events¶
BatchPriceFeedUpdate
¶
Signature: BatchPriceFeedUpdate(uint16 chainId, uint64 sequenceNumber)
PriceFeedUpdate
¶
Signature: PriceFeedUpdate(bytes32 id, uint64 publishTime, int64 price, uint64 conf)