use num_bigint::BigInt;
#[derive(Debug)]
pub enum SyncItem {
Block,
VerificationProgress,
}
#[derive(Debug)]
pub struct SyncStats {
pub current_block: u64,
pub syncing: bool,
pub sync_item: SyncItem,
pub estimated_sync_item_remaining: f64,
}
#[derive(Debug)]
pub struct WalletBalance {
pub confirmed_balance: Amount,
pub unconfirmed_balance: Amount,
}
#[derive(Debug)]
pub struct ClientOptions {
pub(crate) url: String,
pub(crate) username: Option<String>,
pub(crate) password: Option<String>,
}
#[derive(Debug)]
pub struct Amount {
pub value: BigInt,
pub currency: Currency,
}
#[derive(Debug)]
pub struct Currency {
pub symbol: Symbol,
pub decimals: u32,
}
#[derive(Debug)]
pub enum Symbol {
BTC,
ETH,
HNS,
NIM,
RVN,
SIA,
}