1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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,
}