abstract_std/objects/
mod.rs

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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! # State and Message Objects
//! This module contains all the structs and enums used in contract state-storage or contained in contract interaction.

pub(crate) mod ans_asset;
pub mod ans_host;
pub mod module_factory;
pub mod registry;
pub mod storage_namespaces;

mod entry;
pub mod pool;
pub mod salt;

pub use pool::*;

pub mod dependency;
pub mod deposit_info;
pub mod fee;
pub mod gov_type;
pub mod module;
pub mod module_reference;
pub mod module_version;
pub mod namespace;
pub mod ownership;
pub mod time_weighted_average;
pub(crate) mod truncated_chain_id;
pub mod validation;
pub mod voting;

pub use account::{AccountId, AccountSequence, AccountTrace, ABSTRACT_ACCOUNT_ID};
pub use ans_asset::AnsAsset;
pub use entry::{
    ans_entry_convertor::AnsEntryConvertor,
    asset_entry::AssetEntry,
    channel_entry::{ChannelEntry, UncheckedChannelEntry},
    contract_entry::{ContractEntry, UncheckedContractEntry},
    dex_asset_pairing::DexAssetPairing,
    lp_token::{DexName, LpToken},
};
pub use truncated_chain_id::TruncatedChainId;

pub mod chain_name {
    use super::TruncatedChainId;

    // Type name `ChainName` was not suitable name for the type
    #[deprecated = "Use TruncatedChainId instead"]
    pub type ChainName = TruncatedChainId;
}

pub mod account {
    mod account_id;
    mod account_trace;

    pub use self::{account_id::AccountId, account_trace::AccountTrace};

    pub const ABSTRACT_ACCOUNT_ID: AccountId = AccountId::const_new(0, AccountTrace::Local);

    pub type AccountSequence = u32;
}