ic_query/sns/report/model/reports/
token.rs1use serde::Serialize;
8use serde_json::Value as JsonValue;
9
10#[derive(Clone, Debug, Eq, PartialEq, Serialize)]
17pub struct SnsTokenReport {
18 pub schema_version: u32,
19 pub network: String,
20 pub sns_wasm_canister_id: String,
21 pub fetched_at: String,
22 pub source_endpoint: String,
23 pub fetched_by: String,
24 pub id: usize,
25 pub name: String,
26 pub root_canister_id: String,
27 pub ledger_canister_id: String,
28 pub sns_index_canister_id: String,
29 pub token_name: String,
30 pub token_symbol: String,
31 pub decimals: u8,
32 pub transfer_fee: String,
33 pub total_supply: String,
34 pub minting_account_owner: Option<String>,
35 pub minting_account_subaccount_hex: Option<String>,
36 pub ledger_index_canister_id: Option<String>,
37 pub ledger_index_error: Option<String>,
38 pub supported_standards: Vec<SnsTokenStandardRow>,
39 pub metadata: Vec<SnsTokenMetadataRow>,
40}
41
42#[derive(Clone, Debug, Eq, PartialEq, Serialize)]
49pub struct SnsTokenStandardRow {
50 pub name: String,
51 pub url: String,
52}
53
54#[derive(Clone, Debug, Eq, PartialEq, Serialize)]
61pub struct SnsTokenMetadataRow {
62 pub key: String,
63 pub value_type: String,
64 pub value: JsonValue,
65}