pub trait IbcClientQueryFns<Chain>: CwOrchQuery<Chain, QueryMsg = QueryMsg>where
Chain: CwEnv,{
// Provided methods
fn config(&self) -> Result<ConfigResponse, CwEnvError> { ... }
fn list_accounts(&self) -> Result<ListAccountsResponse, CwEnvError> { ... }
fn account(
&self,
account_id: AccountId,
chain: String
) -> Result<AccountResponse, CwEnvError> { ... }
fn latest_query_result(
&self,
account_id: AccountId,
chain: String
) -> Result<LatestQueryResponse, CwEnvError> { ... }
fn list_channels(&self) -> Result<ListChannelsResponse, CwEnvError> { ... }
}
Expand description
Automatically derived trait that allows you to call the variants of the message directly without the need to construct the struct yourself.
Provided Methods§
sourcefn config(&self) -> Result<ConfigResponse, CwEnvError>
fn config(&self) -> Result<ConfigResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Config variant
sourcefn list_accounts(&self) -> Result<ListAccountsResponse, CwEnvError>
fn list_accounts(&self) -> Result<ListAccountsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListAccounts variant
sourcefn account(
&self,
account_id: AccountId,
chain: String
) -> Result<AccountResponse, CwEnvError>
fn account( &self, account_id: AccountId, chain: String ) -> Result<AccountResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Account variant
sourcefn latest_query_result(
&self,
account_id: AccountId,
chain: String
) -> Result<LatestQueryResponse, CwEnvError>
fn latest_query_result( &self, account_id: AccountId, chain: String ) -> Result<LatestQueryResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::LatestQueryResult variant
sourcefn list_channels(&self) -> Result<ListChannelsResponse, CwEnvError>
fn list_channels(&self) -> Result<ListChannelsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListChannels variant