abstract_std/objects/
mod.rs

1//! # State and Message Objects
2//! This module contains all the structs and enums used in contract state-storage or contained in contract interaction.
3
4pub(crate) mod ans_asset;
5pub mod ans_host;
6pub mod module_factory;
7pub mod registry;
8pub mod storage_namespaces;
9
10mod entry;
11pub mod pool;
12pub mod salt;
13
14pub use pool::*;
15
16pub mod dependency;
17pub mod deposit_info;
18pub mod fee;
19pub mod gov_type;
20pub mod module;
21pub mod module_reference;
22pub mod module_version;
23pub mod namespace;
24pub mod ownership;
25pub mod time_weighted_average;
26pub(crate) mod truncated_chain_id;
27pub mod validation;
28pub mod voting;
29
30pub use account::{AccountId, AccountSequence, AccountTrace, ABSTRACT_ACCOUNT_ID};
31pub use ans_asset::AnsAsset;
32pub use entry::{
33    ans_entry_convertor::AnsEntryConvertor,
34    asset_entry::AssetEntry,
35    channel_entry::{ChannelEntry, UncheckedChannelEntry},
36    contract_entry::{ContractEntry, UncheckedContractEntry},
37    dex_asset_pairing::DexAssetPairing,
38    lp_token::{DexName, LpToken},
39};
40pub use truncated_chain_id::TruncatedChainId;
41
42pub mod chain_name {
43    use super::TruncatedChainId;
44
45    // Type name `ChainName` was not suitable name for the type
46    #[deprecated = "Use TruncatedChainId instead"]
47    pub type ChainName = TruncatedChainId;
48}
49
50pub mod account {
51    mod account_id;
52    mod account_trace;
53
54    pub use self::{account_id::AccountId, account_trace::AccountTrace};
55
56    pub const ABSTRACT_ACCOUNT_ID: AccountId = AccountId::const_new(0, AccountTrace::Local);
57
58    pub type AccountSequence = u32;
59}