abstract_std::ans_host

Trait AsyncQueryMsgFns

Source
pub trait AsyncQueryMsgFns<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync>: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>
where QueryMsg: Into<CwOrchQueryMsgType>,
{
Show 15 methods // Provided methods async fn config_async(&self) -> Result<ConfigResponse, CwEnvError> { ... } async fn assets_async( &self, names: Vec<String>, ) -> Result<AssetsResponse, CwEnvError> { ... } async fn asset_list_async( &self, filter: Option<AssetFilter>, limit: Option<u8>, start_after: Option<String>, ) -> Result<AssetListResponse, CwEnvError> { ... } async fn asset_infos_async( &self, infos: Vec<AssetInfoUnchecked>, ) -> Result<AssetInfosResponse, CwEnvError> { ... } async fn asset_info_list_async( &self, filter: Option<AssetInfoFilter>, limit: Option<u8>, start_after: Option<AssetInfoUnchecked>, ) -> Result<AssetInfoListResponse, CwEnvError> { ... } async fn contracts_async( &self, entries: Vec<ContractEntry>, ) -> Result<ContractsResponse, CwEnvError> { ... } async fn contract_list_async( &self, filter: Option<ContractFilter>, limit: Option<u8>, start_after: Option<ContractEntry>, ) -> Result<ContractListResponse, CwEnvError> { ... } async fn channels_async( &self, entries: Vec<ChannelEntry>, ) -> Result<ChannelsResponse, CwEnvError> { ... } async fn channel_list_async( &self, filter: Option<ChannelFilter>, limit: Option<u8>, start_after: Option<ChannelEntry>, ) -> Result<ChannelListResponse, CwEnvError> { ... } async fn registered_dexes_async( &self, ) -> Result<RegisteredDexesResponse, CwEnvError> { ... } async fn pools_async( &self, pairings: Vec<DexAssetPairing>, ) -> Result<PoolsResponse, CwEnvError> { ... } async fn pool_list_async( &self, filter: Option<AssetPairingFilter>, limit: Option<u8>, start_after: Option<DexAssetPairing>, ) -> Result<PoolAddressListResponse, CwEnvError> { ... } async fn pool_metadatas_async( &self, ids: Vec<UniquePoolId>, ) -> Result<PoolMetadatasResponse, CwEnvError> { ... } async fn pool_metadata_list_async( &self, filter: Option<PoolMetadataFilter>, limit: Option<u8>, start_after: Option<UniquePoolId>, ) -> Result<PoolMetadataListResponse, CwEnvError> { ... } async fn ownership_async(&self) -> Result<Ownership<String>, 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 assets_async( &self, names: Vec<String>, ) -> Result<AssetsResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Assets variant

Source

async fn asset_list_async( &self, filter: Option<AssetFilter>, limit: Option<u8>, start_after: Option<String>, ) -> Result<AssetListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::AssetList variant

Source

async fn asset_infos_async( &self, infos: Vec<AssetInfoUnchecked>, ) -> Result<AssetInfosResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::AssetInfos variant

Source

async fn asset_info_list_async( &self, filter: Option<AssetInfoFilter>, limit: Option<u8>, start_after: Option<AssetInfoUnchecked>, ) -> Result<AssetInfoListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::AssetInfoList variant

Source

async fn contracts_async( &self, entries: Vec<ContractEntry>, ) -> Result<ContractsResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Contracts variant

Source

async fn contract_list_async( &self, filter: Option<ContractFilter>, limit: Option<u8>, start_after: Option<ContractEntry>, ) -> Result<ContractListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::ContractList variant

Source

async fn channels_async( &self, entries: Vec<ChannelEntry>, ) -> Result<ChannelsResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Channels variant

Source

async fn channel_list_async( &self, filter: Option<ChannelFilter>, limit: Option<u8>, start_after: Option<ChannelEntry>, ) -> Result<ChannelListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::ChannelList variant

Source

async fn registered_dexes_async( &self, ) -> Result<RegisteredDexesResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::RegisteredDexes variant

Source

async fn pools_async( &self, pairings: Vec<DexAssetPairing>, ) -> Result<PoolsResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Pools variant

Source

async fn pool_list_async( &self, filter: Option<AssetPairingFilter>, limit: Option<u8>, start_after: Option<DexAssetPairing>, ) -> Result<PoolAddressListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::PoolList variant

Source

async fn pool_metadatas_async( &self, ids: Vec<UniquePoolId>, ) -> Result<PoolMetadatasResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::PoolMetadatas variant

Source

async fn pool_metadata_list_async( &self, filter: Option<PoolMetadataFilter>, limit: Option<u8>, start_after: Option<UniquePoolId>, ) -> Result<PoolMetadataListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::PoolMetadataList variant

Source

async fn ownership_async(&self) -> Result<Ownership<String>, CwEnvError>

Automatically generated wrapper around QueryMsg::Ownership variant

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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>,