substrate_stellar_sdk/
lib.rs1#![cfg_attr(not(any(test, feature = "std")), no_std)]
4#[cfg(not(feature = "std"))]
7extern crate alloc;
8
9mod lib {
10 #[cfg(not(feature = "std"))]
11 pub use alloc::string::{FromUtf8Error, String, ToString};
12
13 #[cfg(feature = "std")]
14 pub use std::string::{FromUtf8Error, String, ToString};
15}
16
17mod amount;
18mod binary;
19mod error;
20pub mod network;
21mod public_key;
22mod secret_key;
23mod utils;
24mod xdr;
25
26pub use error::StellarSdkError;
27
28pub const BASE_FEE_STROOPS: u32 = 100;
29
30#[cfg(feature = "offchain")]
31pub mod horizon;
32
33pub use xdr::{
34 compound_types,
35 impls::{
36 account_id::IntoAccountId, claimable_balance_id::IntoClaimbleBalanceId, data_value::IntoDataValue,
37 hash::IntoHash, muxed_account::IntoMuxedAccountId, time_bounds::*,
38 },
39 streams::{ReadStream, WriteStream},
40 types::{
41 self, AccountId, Asset, AssetCode, ClaimPredicate, ClaimableBalanceId, Claimant, Curve25519Secret, DataValue,
42 FeeBumpTransaction, Hash, LedgerKey, Memo, MuxedAccount, Operation, Price, PublicKey, Signer, SignerKey,
43 TimeBounds, Transaction, TransactionEnvelope, TrustLineFlags,
44 },
45 xdr_codec::XdrCodec,
46};
47
48#[cfg(feature = "all-types")]
49pub use xdr::impls::transaction_set_type::*;
50
51#[cfg(feature = "all-types")]
52pub use xdr::impls::error::*;
53
54pub use utils::std::StellarTypeToString;
55
56pub use amount::*;
57pub use binary::*;
58pub use public_key::*;
59pub use secret_key::*;