Trait abstract_cw3_fixed_multisig::msg::QueryMsgFns

source ·
pub trait QueryMsgFns<Chain: CwEnv>: CwOrchQuery<Chain, QueryMsg = QueryMsg> {
    // Provided methods
    fn threshold(&self) -> Result<ThresholdResponse, CwOrchError> { ... }
    fn proposal(
        &self,
        proposal_id: u64
    ) -> Result<ProposalResponse, CwOrchError> { ... }
    fn list_proposals(
        &self,
        limit: Option<u32>,
        start_after: Option<u64>
    ) -> Result<ProposalListResponse, CwOrchError> { ... }
    fn reverse_proposals(
        &self,
        limit: Option<u32>,
        start_before: Option<u64>
    ) -> Result<ProposalListResponse, CwOrchError> { ... }
    fn vote(
        &self,
        proposal_id: u64,
        voter: String
    ) -> Result<VoteResponse, CwOrchError> { ... }
    fn list_votes(
        &self,
        proposal_id: u64,
        limit: Option<u32>,
        start_after: Option<String>
    ) -> Result<VoteListResponse, CwOrchError> { ... }
    fn voter(&self, address: String) -> Result<VoterResponse, CwOrchError> { ... }
    fn list_voters(
        &self,
        limit: Option<u32>,
        start_after: Option<String>
    ) -> Result<VoterListResponse, 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 threshold(&self) -> Result<ThresholdResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::Threshold variant

source

fn proposal(&self, proposal_id: u64) -> Result<ProposalResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::Proposal variant

source

fn list_proposals( &self, limit: Option<u32>, start_after: Option<u64> ) -> Result<ProposalListResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::ListProposals variant

source

fn reverse_proposals( &self, limit: Option<u32>, start_before: Option<u64> ) -> Result<ProposalListResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::ReverseProposals variant

source

fn vote( &self, proposal_id: u64, voter: String ) -> Result<VoteResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::Vote variant

source

fn list_votes( &self, proposal_id: u64, limit: Option<u32>, start_after: Option<String> ) -> Result<VoteListResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::ListVotes variant

source

fn voter(&self, address: String) -> Result<VoterResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::Voter variant

source

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

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