use std::collections::BTreeMap;
use crate::types::{address::Address, token};
#[derive(Clone, Debug, Default, cbor::Encode, cbor::Decode)]
pub struct Transfer {
pub to: Address,
pub amount: token::BaseUnits,
}
#[derive(Clone, Debug, Default, cbor::Encode, cbor::Decode)]
pub struct Account {
#[cbor(optional)]
pub nonce: u64,
}
#[derive(Clone, Debug, Default, cbor::Encode, cbor::Decode)]
pub struct NonceQuery {
pub address: Address,
}
#[derive(Clone, Debug, Default, cbor::Encode, cbor::Decode)]
pub struct AddressesQuery {
pub denomination: token::Denomination,
}
#[derive(Clone, Debug, Default, cbor::Encode, cbor::Decode)]
pub struct BalancesQuery {
pub address: Address,
}
#[derive(Clone, Debug, Default, cbor::Encode, cbor::Decode)]
pub struct AccountBalances {
pub balances: BTreeMap<token::Denomination, u128>,
}
#[derive(Clone, Debug, Default, cbor::Encode, cbor::Decode)]
pub struct DenominationInfoQuery {
pub denomination: token::Denomination,
}
#[derive(Clone, Debug, Default, cbor::Encode, cbor::Decode)]
pub struct DenominationInfo {
pub decimals: u8,
}