gmsol/
lib.rs

1/// Program Derived Addresses for GMSOL Programs.
2pub mod pda;
3
4/// GMSOL Client.
5pub mod client;
6
7/// GMSOL resource discovery.
8#[cfg(feature = "discover")]
9pub mod discover;
10
11/// Error type for `gmsol`.
12pub mod error;
13
14/// Instructions for the store program.
15pub mod store;
16
17/// Instructions for the exchange funtionality.
18pub mod exchange;
19
20/// Instructions for the treasury program.
21pub mod treasury;
22
23/// Instructions for the timelock program.
24pub mod timelock;
25
26/// Address Lookup Table operations.
27pub mod alt;
28
29/// IDL operations.
30pub mod idl;
31
32/// Utils.
33pub mod utils;
34
35/// GMSOL types.
36pub mod types;
37
38/// Program IDs.
39pub mod program_ids;
40
41/// GMSOL constants.
42pub mod constants {
43    pub use gmsol_store::constants::*;
44}
45
46/// Switchboard integration.
47pub mod switchboard;
48
49/// Chainlink integartion.
50pub mod chainlink;
51
52/// Pyth intergration.
53pub mod pyth;
54
55#[cfg(feature = "squads")]
56/// Squads integation.
57pub mod squads;
58
59#[cfg(feature = "cli")]
60/// CLI support.
61pub mod cli;
62
63#[cfg(feature = "migration")]
64/// Migration.
65pub mod migration;
66
67/// Test Utils.
68#[cfg(test)]
69mod test;
70
71pub use client::{Client, ClientOptions};
72pub use error::Error;
73pub use gmsol_model as model;
74pub use gmsol_solana_utils as solana_utils;
75
76#[cfg(feature = "decode")]
77pub use gmsol_decode as decode;
78
79pub type Result<T> = std::result::Result<T, Error>;