Crate pyth_sdk_cw

Source

Modules§

error
testing

Structs§

Price
A price with a degree of uncertainty at a certain time, represented as a price +- a confidence interval.
PriceFeed
Represents a current aggregation price from pyth publisher feeds.
PriceFeedResponse

Enums§

ExecuteMsg
QueryMsg

Functions§

get_update_fee
Get the fee required in order to update the on-chain state with the provided price_update_vaas.
get_valid_time_period
Get the default length of time for which a price update remains valid.
query_price_feed
Queries the price on-chain

Type Aliases§

PriceIdentifier
Consists of 32 bytes and it is currently based on largest Public Key size on various blockchains.
UnixTimestamp
Unix Timestamp is represented as number of seconds passed since Unix epoch (00:00:00 UTC on 1 Jan 1970). It is a signed integer because it’s the standard in Unix systems and allows easier time difference.