Trait abstract_std::proxy::AsyncQueryMsgFns
source · pub trait AsyncQueryMsgFns<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync>: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>{
// Provided methods
async fn config_async(&self) -> Result<ConfigResponse, CwEnvError> { ... }
async fn total_value_async(&self) -> Result<AccountValue, CwEnvError> { ... }
async fn token_value_async(
&self,
identifier: AssetEntry,
) -> Result<TokenValueResponse, CwEnvError> { ... }
async fn holding_amount_async(
&self,
identifier: AssetEntry,
) -> Result<HoldingAmountResponse, CwEnvError> { ... }
async fn asset_config_async(
&self,
identifier: AssetEntry,
) -> Result<AssetConfigResponse, CwEnvError> { ... }
async fn assets_config_async(
&self,
limit: Option<u8>,
start_after: Option<AssetEntry>,
) -> Result<AssetsConfigResponse, CwEnvError> { ... }
async fn assets_info_async(
&self,
limit: Option<u8>,
start_after: Option<AssetInfo>,
) -> Result<AssetsInfoResponse, CwEnvError> { ... }
async fn base_asset_async(&self) -> Result<BaseAssetResponse, 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§
sourceasync fn config_async(&self) -> Result<ConfigResponse, CwEnvError>
async fn config_async(&self) -> Result<ConfigResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Config variant
sourceasync fn total_value_async(&self) -> Result<AccountValue, CwEnvError>
async fn total_value_async(&self) -> Result<AccountValue, CwEnvError>
Automatically generated wrapper around QueryMsg::TotalValue variant
sourceasync fn token_value_async(
&self,
identifier: AssetEntry,
) -> Result<TokenValueResponse, CwEnvError>
async fn token_value_async( &self, identifier: AssetEntry, ) -> Result<TokenValueResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::TokenValue variant
sourceasync fn holding_amount_async(
&self,
identifier: AssetEntry,
) -> Result<HoldingAmountResponse, CwEnvError>
async fn holding_amount_async( &self, identifier: AssetEntry, ) -> Result<HoldingAmountResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::HoldingAmount variant
sourceasync fn asset_config_async(
&self,
identifier: AssetEntry,
) -> Result<AssetConfigResponse, CwEnvError>
async fn asset_config_async( &self, identifier: AssetEntry, ) -> Result<AssetConfigResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AssetConfig variant
sourceasync fn assets_config_async(
&self,
limit: Option<u8>,
start_after: Option<AssetEntry>,
) -> Result<AssetsConfigResponse, CwEnvError>
async fn assets_config_async( &self, limit: Option<u8>, start_after: Option<AssetEntry>, ) -> Result<AssetsConfigResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AssetsConfig variant
sourceasync fn assets_info_async(
&self,
limit: Option<u8>,
start_after: Option<AssetInfo>,
) -> Result<AssetsInfoResponse, CwEnvError>
async fn assets_info_async( &self, limit: Option<u8>, start_after: Option<AssetInfo>, ) -> Result<AssetsInfoResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AssetsInfo variant
sourceasync fn base_asset_async(&self) -> Result<BaseAssetResponse, CwEnvError>
async fn base_asset_async(&self) -> Result<BaseAssetResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::BaseAsset variant
Object Safety§
This trait is not object safe.