Search by name, SuiNS, address, digest, object ID, coin type or checkpoint.

API

pyth

Module0x5530…e2c0
Move path
0x5530…e2c0::pyth
Functions
1912 public, 1 entry
Structs
0
Friend modules
None
pyth

Declarations

Rebuilt from the module interface. No verified source is published, and function bodies are only available as bytecode.

module pyth;
fun abs_diff(u64, u64): u64
fun check_price_is_fresh(&price::Price,&Clock,u64)
fun create_and_share_price_feeds_using_verified_price_infos(&state::LatestOnly,&mut state::State,vector<price_info::PriceInfo>)
public fun create_authenticated_price_infos_using_accumulator(&state::State,vector<u8>,vaa::VAA,&Clock): hot_potato_vector::HotPotatoVector<price_info::PriceInfo>
public fun create_price_feeds(&mut state::State,vector<vaa::VAA>,&Clock)
public fun create_price_feeds_using_accumulator(&mut state::State,vector<u8>,vaa::VAA,&Clock)
public fun create_price_infos_hot_potato(&state::State,vector<vaa::VAA>,&Clock): hot_potato_vector::HotPotatoVector<price_info::PriceInfo>
public fun get_price(&state::State,&price_info::PriceInfoObject,&Clock): price::Price
public fun get_price_no_older_than(&price_info::PriceInfoObject,&Clock,u64): price::Price
public fun get_price_unsafe(&price_info::PriceInfoObject): price::Price
public fun get_stale_price_threshold_secs(&state::State): u64
public fun get_total_update_fee(&state::State, u64): u64
fun has_same_price_identifier(&price_info::PriceInfo,&price_info::PriceInfoObject): bool
public entry fun init_pyth(setup::DeployerCap,UpgradeCap,u64,u64,vector<u8>,vector<u64>,vector<vector<u8>>,u64)
fun parse_data_sources(vector<u64>, vector<vector<u8>>): vector<data_source::DataSource>
public fun price_feed_exists(&state::State,price_identifier::PriceIdentifier): bool
public(package) fun update_cache(state::LatestOnly,&price_info::PriceInfo,&mut price_info::PriceInfoObject,&Clock)