use crate::client::client_types::terra_u64_format;
use crate::core_types::{Coin, PubKeySig};
use serde::{Deserialize, Serialize};
#[derive(Deserialize, Serialize, Debug)]
pub struct AuthAccount {
pub address: String,
pub coins: Vec<Coin>,
pub public_key: Option<PubKeySig>,
#[serde(with = "terra_u64_format")]
pub account_number: u64,
#[serde(with = "terra_u64_format")]
pub sequence: u64,
}
#[allow(missing_docs)]
#[derive(Deserialize, Serialize, Debug)]
pub struct AuthAccountTv {
#[serde(rename = "type")]
pub stype: String,
pub value: AuthAccount,
}
#[allow(missing_docs)]
#[derive(Deserialize, Serialize, Debug)]
pub struct AuthAccountResult {
#[serde(with = "terra_u64_format")]
pub height: u64,
pub result: AuthAccountTv,
}