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
#![warn(missing_docs)]
#![doc = include_str!("../README.md")]

pub(crate) mod account;
mod application;
pub mod builder;
mod client;
mod error;
pub(crate) mod infrastructure;
#[cfg(feature = "test-utils")]
mod mut_client;
mod publisher;
pub(crate) mod source;

// Re-export common used types
pub use abstract_std::objects::{gov_type::GovernanceDetails, namespace::Namespace};
// Re-export `ClientResolve` trait
pub use abstract_interface::ClientResolve;
pub use account::{Account, AccountBuilder};
pub use application::Application;
pub use builder::AbstractClientBuilder;
pub use client::AbstractClient;
pub use error::AbstractClientError;
pub use infrastructure::Environment;
pub use publisher::{Publisher, PublisherBuilder};
pub use source::AccountSource;

// Interchain stuff
#[cfg(feature = "interchain")]
mod interchain {
    pub(crate) mod remote_account;
    mod remote_application;
    pub use remote_account::RemoteAccount;
    pub use remote_application::RemoteApplication;

    // TODO: Why are we not returning ibc tx analysis after await
    /// IbcTxAnalysis after waiting for interchain action
    pub struct IbcTxAnalysisV2<Chain: cw_orch::environment::CwEnv>(
        pub cw_orch_interchain::types::IbcTxAnalysis<Chain>,
    );
}
#[cfg(feature = "interchain")]
pub use interchain::*;