Trait abstract_interface::ProxyQueryFns

source ·
pub trait ProxyQueryFns<Chain>: CwOrchQuery<Chain, QueryMsg = QueryMsg>
where Chain: QueryHandler + ChainState,
{ // Provided methods fn config(&self) -> Result<ConfigResponse, CwEnvError> { ... } fn total_value(&self) -> Result<AccountValue, CwEnvError> { ... } fn token_value( &self, identifier: AssetEntry ) -> Result<TokenValueResponse, CwEnvError> { ... } fn holding_amount( &self, identifier: AssetEntry ) -> Result<HoldingAmountResponse, CwEnvError> { ... } fn asset_config( &self, identifier: AssetEntry ) -> Result<AssetConfigResponse, CwEnvError> { ... } fn assets_config( &self, limit: Option<u8>, start_after: Option<AssetEntry> ) -> Result<AssetsConfigResponse, CwEnvError> { ... } fn assets_info( &self, limit: Option<u8>, start_after: Option<AssetInfoBase<Addr>> ) -> Result<AssetsInfoResponse, CwEnvError> { ... } fn base_asset(&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

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

Automatically generated wrapper around QueryMsg::Config variant

source

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

Automatically generated wrapper around QueryMsg::TotalValue variant

source

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

Automatically generated wrapper around QueryMsg::TokenValue variant

source

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

Automatically generated wrapper around QueryMsg::HoldingAmount variant

source

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

Automatically generated wrapper around QueryMsg::AssetConfig variant

source

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

Automatically generated wrapper around QueryMsg::AssetsConfig variant

source

fn assets_info( &self, limit: Option<u8>, start_after: Option<AssetInfoBase<Addr>> ) -> Result<AssetsInfoResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::AssetsInfo variant

source

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

Automatically generated wrapper around QueryMsg::BaseAsset variant

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<SupportedContract, Chain> QueryMsgFns<Chain> for SupportedContract
where Chain: QueryHandler + ChainState, SupportedContract: CwOrchQuery<Chain, QueryMsg = QueryMsg>,