AsyncQueryMsgFns

Trait AsyncQueryMsgFns 

Source
pub trait AsyncQueryMsgFns<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync>: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>
where QueryMsg: Into<CwOrchQueryMsgType>,
{ // Provided methods async fn threshold_async(&self) -> Result<ThresholdResponse, CwEnvError> { ... } async fn proposal_async( &self, proposal_id: u64, ) -> Result<ProposalResponse, CwEnvError> { ... } async fn list_proposals_async( &self, limit: Option<u32>, start_after: Option<u64>, ) -> Result<ProposalListResponse, CwEnvError> { ... } async fn reverse_proposals_async( &self, limit: Option<u32>, start_before: Option<u64>, ) -> Result<ProposalListResponse, CwEnvError> { ... } async fn vote_async( &self, proposal_id: u64, voter: impl Into<String>, ) -> Result<VoteResponse, CwEnvError> { ... } async fn list_votes_async( &self, proposal_id: u64, limit: Option<u32>, start_after: Option<String>, ) -> Result<VoteListResponse, CwEnvError> { ... } async fn voter_async( &self, address: impl Into<String>, ) -> Result<VoterResponse, CwEnvError> { ... } async fn list_voters_async( &self, limit: Option<u32>, start_after: Option<String>, ) -> Result<VoterListResponse, 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 threshold_async(&self) -> Result<ThresholdResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Threshold variant

Source

async fn proposal_async( &self, proposal_id: u64, ) -> Result<ProposalResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Proposal variant

Source

async fn list_proposals_async( &self, limit: Option<u32>, start_after: Option<u64>, ) -> Result<ProposalListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::ListProposals variant

Source

async fn reverse_proposals_async( &self, limit: Option<u32>, start_before: Option<u64>, ) -> Result<ProposalListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::ReverseProposals variant

Source

async fn vote_async( &self, proposal_id: u64, voter: impl Into<String>, ) -> Result<VoteResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Vote variant

Source

async fn list_votes_async( &self, proposal_id: u64, limit: Option<u32>, start_after: Option<String>, ) -> Result<VoteListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::ListVotes variant

Source

async fn voter_async( &self, address: impl Into<String>, ) -> Result<VoterResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Voter variant

Source

async fn list_voters_async( &self, limit: Option<u32>, start_after: Option<String>, ) -> Result<VoterListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::ListVoters 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>,

Available on non-WebAssembly only.