1#[cfg(feature = "uniffi")]
2pub mod bindings;
3mod chain;
4mod common;
5mod error;
6mod events;
7mod issuer;
8mod lnurl;
9mod logger;
10mod models;
11mod persist;
12mod realtime_sync;
13mod sdk;
14mod sdk_builder;
15pub mod signer;
16mod stable_balance;
17mod sync;
18pub mod token_conversion;
19mod utils;
20
21pub use chain::{
22 BitcoinChainService, ChainServiceError, RecommendedFees, TxStatus, Utxo,
23 rest_client::{ChainApiType, RestClientChainService},
24};
25pub use common::rest::{RestClient, RestResponse};
26pub use common::{fiat::*, models::*, sync_storage};
27pub use error::{DepositClaimError, SdkError, SignerError};
28pub use events::{EventEmitter, EventListener, OptimizationEvent, SdkEvent};
29pub use issuer::*;
30pub use models::*;
31pub use persist::{
32 PaymentMetadata, SetLnurlMetadataItem, Storage, StorageError, StorageListPaymentsRequest,
33 StoragePaymentDetailsFilter, UpdateDepositPayload, path::default_storage_path,
34};
35pub use sdk::{BreezSdk, default_config, get_spark_status, init_logging, parse_input};
36pub use sdk_builder::SdkBuilder;
37pub use spark_wallet::KeySet;
38
39#[cfg(all(
40 feature = "postgres",
41 not(all(target_family = "wasm", target_os = "unknown"))
42))]
43pub use persist::postgres::{
44 PoolQueueMode, PostgresStorageConfig, default_postgres_storage_config,
45};
46
47#[cfg(not(all(target_family = "wasm", target_os = "unknown")))]
48pub use {
49 persist::sqlite::SqliteStorage,
50 sdk::{connect, connect_with_signer},
51};
52
53pub use sdk::default_external_signer;
54
55#[cfg(feature = "test-utils")]
56pub use persist::tests as storage_tests;
57
58#[cfg(feature = "uniffi")]
59uniffi::setup_scaffolding!();
60
61#[allow(clippy::doc_markdown)]
62pub(crate) mod built_info {
63 include!(concat!(env!("OUT_DIR"), "/built.rs"));
65}