Trait abstract_std::proxy::AsyncQueryMsgFns

source ·
pub trait AsyncQueryMsgFns<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync>: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>
where QueryMsg: Into<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§

source

async fn config_async(&self) -> Result<ConfigResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Config variant

source

async fn total_value_async(&self) -> Result<AccountValue, CwEnvError>

Automatically generated wrapper around QueryMsg::TotalValue variant

source

async fn token_value_async( &self, identifier: AssetEntry, ) -> Result<TokenValueResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::TokenValue variant

source

async fn holding_amount_async( &self, identifier: AssetEntry, ) -> Result<HoldingAmountResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::HoldingAmount variant

source

async fn asset_config_async( &self, identifier: AssetEntry, ) -> Result<AssetConfigResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::AssetConfig variant

source

async fn assets_config_async( &self, limit: Option<u8>, start_after: Option<AssetEntry>, ) -> Result<AssetsConfigResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::AssetsConfig variant

source

async fn assets_info_async( &self, limit: Option<u8>, start_after: Option<AssetInfo>, ) -> Result<AssetsInfoResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::AssetsInfo variant

source

async fn base_asset_async(&self) -> Result<BaseAssetResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::BaseAsset variant

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync, SupportedContract> AsyncQueryMsgFns<Chain, CwOrchQueryMsgType> for SupportedContract
where QueryMsg: Into<CwOrchQueryMsgType>, SupportedContract: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>,