af_pyth_wrapper/lib.rs
1#![cfg_attr(all(doc, not(doctest)), feature(doc_auto_cfg))]
2
3//! Move types for Aftermath's `PythWrapper` package that extends `AfOracle`
4
5use af_sui_pkg_sdk::sui_pkg_sdk;
6use sui_framework_sdk::object::UID;
7
8#[cfg(feature = "graphql")]
9pub mod graphql;
10#[cfg(feature = "ptb")]
11pub mod update;
12
13sui_pkg_sdk!(pyth_wrapper {
14 module wrapper {
15 // =========================================================================
16 // Wrapper Object
17 // =========================================================================
18
19 // Shared object representing the wrapper package
20 struct PythWrapper has key, store {
21 id: UID,
22 }
23
24 /// Key type for price feed's source object ID.
25 struct PythPriceInfoId has copy, drop, store {}
26 }
27});