af_pyth_wrapper/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#![cfg_attr(all(doc, not(doctest)), feature(doc_auto_cfg))]

//! Move types for Aftermath's `PythWrapper` package that extends `AfOracle`

use af_sui_pkg_sdk::sui_pkg_sdk;
use sui_framework_sdk::object::UID;

#[cfg(feature = "graphql")]
pub mod graphql;
#[cfg(feature = "ptb")]
pub mod update;

sui_pkg_sdk!(pyth_wrapper {
    module wrapper {
        // =========================================================================
        //  Wrapper Object
        // =========================================================================

        // Shared object representing the wrapper package
        struct PythWrapper has key, store {
            id: UID,
        }

        /// Key type for price feed's source object ID.
        struct PythPriceInfoId has copy, drop, store {}
    }
});