#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(
test,
allow(
unknown_lints,
clippy::unused_async_trait_impl,
reason = "in-crate mock impls of AFIT traits have no .await"
)
)]
#[cfg(all(test, not(any(feature = "client", feature = "facilitator"))))]
use hex as _;
#[cfg(all(test, not(any(feature = "client", feature = "facilitator"))))]
use sha2 as _;
#[cfg(all(test, not(any(feature = "client", feature = "facilitator"))))]
use tokio as _;
#[cfg(feature = "telemetry")]
use tracing_core as _;
#[cfg(all(test, not(any(feature = "client", feature = "facilitator"))))]
use wiremock as _;
pub const DEFAULT_MAX_FEE_DROPS: u64 = 10_000;
pub const DEFAULT_LEDGER_CLOSE_SECONDS: u64 = 5;
pub const DEFAULT_LEDGER_TOLERANCE: u64 = 2;
pub const TF_PARTIAL_PAYMENT: u32 = 0x0002_0000;
pub const LSF_DISABLE_MASTER: u32 = 0x0010_0000;
pub const MAX_DESTINATION_TAG: u32 = u32::MAX;
pub const MAX_ACCOUNT_TICKETS: u32 = 250;
pub const SETTLEMENT_TTL_MS: u64 = 120_000;
pub const CANONICAL_SIGNING_PUB_KEY_LEN: usize = 66;
pub const TRANSACTION_HASH_PREFIX: [u8; 4] = [0x54, 0x58, 0x4E, 0x00];
pub const XRP_DECIMALS: u8 = 6;
pub const RLUSD_DECIMALS: u8 = 15;
pub const RLUSD_CURRENCY: &str = "524C555344000000000000000000000000000000";
pub const RLUSD_MAINNET_ISSUER: &str = "rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De";
pub const RLUSD_TESTNET_ISSUER: &str = "rQhWct2fv4Vc4KRjRgMrxa8xPN9Zx9iLKV";
pub mod chain;
pub mod exact;
mod networks;
#[cfg(feature = "facilitator")]
pub use chain::XrplChainProvider;
#[cfg(any(feature = "client", feature = "facilitator"))]
pub use chain::XrplJsonRpc;
pub use exact::XrplExact;
#[cfg(feature = "client")]
pub use exact::client::{XrplExactClient, XrplSigner};
pub use networks::*;