Enum cw3::Cw3QueryMsg[][src]

pub enum Cw3QueryMsg {
    Threshold {},
    Proposal {
        proposal_id: u64,
    },
    ListProposals {
        start_after: Option<u64>,
        limit: Option<u32>,
    },
    ReverseProposals {
        start_before: Option<u64>,
        limit: Option<u32>,
    },
    Vote {
        proposal_id: u64,
        voter: String,
    },
    ListVotes {
        proposal_id: u64,
        start_after: Option<String>,
        limit: Option<u32>,
    },
    Voter {
        address: String,
    },
    ListVoters {
        start_after: Option<String>,
        limit: Option<u32>,
    },
}

Variants

Threshold

Returns the threshold rules that would be used for a new proposal that was opened right now. The threshold rules do not change often, but the total_weight in the response may easily differ from that used in previously opened proposals. Returns ThresholdResponse.

Show fields

Fields of Threshold

Proposal

Returns details of the proposal state. Returns ProposalResponse.

Show fields

Fields of Proposal

proposal_id: u64
ListProposals

Iterate over details of all proposals from oldest to newest. Returns ProposalListResponse

Show fields

Fields of ListProposals

start_after: Option<u64>limit: Option<u32>
ReverseProposals

Iterate reverse over details of all proposals, this is useful to easily query only the most recent proposals (to get updates). Returns ProposalListResponse

Show fields

Fields of ReverseProposals

start_before: Option<u64>limit: Option<u32>
Vote

Query the vote made by the given voter on proposal_id. This should return an error if there is no such proposal. It will return a None value if the proposal exists but the voter did not vote. Returns VoteResponse

Show fields

Fields of Vote

proposal_id: u64voter: String
ListVotes

Iterate (with pagination) over all votes for this proposal. The ordering is arbitrary, unlikely to be sorted by address. But ordering is consistent and pagination from the end of each page will cover all votes for the proposal. Returns VoteListResponse

Show fields

Fields of ListVotes

proposal_id: u64start_after: Option<String>limit: Option<u32>
Voter

Voter extension: Returns VoterResponse

Show fields

Fields of Voter

address: String
ListVoters

ListVoters extension: Returns VoterListResponse

Show fields

Fields of ListVoters

start_after: Option<String>limit: Option<u32>

Trait Implementations

impl Clone for Cw3QueryMsg[src]

impl Debug for Cw3QueryMsg[src]

impl<'de> Deserialize<'de> for Cw3QueryMsg[src]

impl JsonSchema for Cw3QueryMsg[src]

impl PartialEq<Cw3QueryMsg> for Cw3QueryMsg[src]

impl Serialize for Cw3QueryMsg[src]

impl StructuralPartialEq for Cw3QueryMsg[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.