Skip to main content

af_switchboard_wrapper/
lib.rs

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