Skip to main content

gmsol_solana_utils/
lib.rs

1#![deny(missing_docs)]
2#![deny(unreachable_pub)]
3
4//! # GMSOL Solana Utils
5
6/// Error type.
7pub mod error;
8
9/// Cluster.
10pub mod cluster;
11
12/// Signer.
13pub mod signer;
14
15/// Instruction Group.
16pub mod instruction_group;
17
18/// Transaction Group.
19pub mod transaction_group;
20
21/// Address Lookup Table.
22pub mod address_lookup_table;
23
24/// Program.
25pub mod program;
26
27/// Program trait.
28pub mod program_trait;
29
30/// Compute budget.
31pub mod compute_budget;
32
33/// Transaction builder.
34pub mod transaction_builder;
35
36/// Transaction bundle builder.
37#[cfg(client)]
38pub mod bundle_builder;
39
40/// Bundler for bundle builders.
41#[cfg(feature = "make-bundle-builder")]
42pub mod make_bundle_builder;
43
44/// RPC client extension.
45#[cfg(client)]
46pub mod client;
47
48/// Client traits.
49#[cfg(client_traits)]
50pub mod client_traits;
51
52/// Utils.
53pub mod utils;
54
55/// Jito Group & sender
56#[cfg(feature = "jito")]
57pub mod jito_group;
58
59pub use crate::{
60    error::Error,
61    instruction_group::{AtomicGroup, IntoAtomicGroup, ParallelGroup},
62    program_trait::{InstructionBuilder, Program, ProgramExt},
63    transaction_group::TransactionGroup,
64};
65
66/// Result type.
67pub type Result<T> = std::result::Result<T, Error>;
68
69#[cfg(anchor)]
70pub use anchor_lang;
71#[cfg(client)]
72pub use solana_client;
73pub use solana_sdk;
74
75#[cfg(feature = "solana-rpc-client-api")]
76pub use solana_rpc_client_api;
77
78#[cfg(feature = "solana-account-decoder-client-types")]
79pub use solana_account_decoder_client_types;