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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#![allow(clippy::result_large_err)]

mod macros;

use solana_program::pubkey;
#[allow(unused_imports)]
use std::sync::Arc;

pub mod decimal;
pub use decimal::*;

pub mod on_demand;
pub use on_demand::*;

pub mod utils;
pub use utils::*;

pub mod anchor_traits;
pub use anchor_traits::*;

pub mod program_id;
pub use program_id::*;

pub mod accounts;
pub mod instructions;
pub mod types;

pub mod prelude;

pub mod sysvar;
pub use sysvar::*;

cfg_client! {
    use solana_sdk::signer::keypair::Keypair;
    pub type AnchorClient = anchor_client::Client<Arc<Keypair>>;
    mod client;
    pub mod clock;
    pub use clock::*;
}

cfg_ipfs! {
    pub mod ipfs {
        pub use switchboard_common::ipfs::*;
    }
}