Trait abstract_cw20_base::msg::QueryMsgFns

source ·
pub trait QueryMsgFns<Chain: CwEnv>: CwOrchQuery<Chain, QueryMsg = QueryMsg> {
    // Provided methods
    fn balance(&self, address: String) -> Result<BalanceResponse, CwOrchError> { ... }
    fn token_info(&self) -> Result<TokenInfoResponse, CwOrchError> { ... }
    fn minter(&self) -> Result<MinterResponse, CwOrchError> { ... }
    fn allowance(
        &self,
        owner: String,
        spender: String
    ) -> Result<AllowanceResponse, CwOrchError> { ... }
    fn all_allowances(
        &self,
        owner: String,
        limit: Option<u32>,
        start_after: Option<String>
    ) -> Result<AllAllowancesResponse, CwOrchError> { ... }
    fn all_spender_allowances(
        &self,
        spender: String,
        limit: Option<u32>,
        start_after: Option<String>
    ) -> Result<AllSpenderAllowancesResponse, CwOrchError> { ... }
    fn all_accounts(
        &self,
        limit: Option<u32>,
        start_after: Option<String>
    ) -> Result<AllAccountsResponse, CwOrchError> { ... }
    fn marketing_info(&self) -> Result<MarketingInfoResponse, CwOrchError> { ... }
    fn download_logo(&self) -> Result<DownloadLogoResponse, CwOrchError> { ... }
}
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 balance(&self, address: String) -> Result<BalanceResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::Balance variant

source

fn token_info(&self) -> Result<TokenInfoResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::TokenInfo variant

source

fn minter(&self) -> Result<MinterResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::Minter variant

source

fn allowance( &self, owner: String, spender: String ) -> Result<AllowanceResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::Allowance variant

source

fn all_allowances( &self, owner: String, limit: Option<u32>, start_after: Option<String> ) -> Result<AllAllowancesResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::AllAllowances variant

source

fn all_spender_allowances( &self, spender: String, limit: Option<u32>, start_after: Option<String> ) -> Result<AllSpenderAllowancesResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::AllSpenderAllowances variant

source

fn all_accounts( &self, limit: Option<u32>, start_after: Option<String> ) -> Result<AllAccountsResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::AllAccounts variant

source

fn marketing_info(&self) -> Result<MarketingInfoResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::MarketingInfo variant

Automatically generated wrapper around QueryMsg::DownloadLogo variant

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<SupportedContract, Chain: CwEnv> QueryMsgFns<Chain> for SupportedContract
where SupportedContract: CwOrchQuery<Chain, QueryMsg = QueryMsg>,