Crate cw3

Source
Expand description

CW3 is a specification for voting contracts based on CosmWasm. It is an extension of CW1 (which served as an immediate 1 of N multisig). In this case, no key can immediately execute, but only propose a set of messages for execution. The proposal, subsequent approvals, and signature aggregation all happen on chain.

For more information on this specification, please check out the README.

Structs§

Ballot
Cw3Contract
Cw3Contract is a wrapper around Addr that provides a lot of helpers for working with this.
DepositInfo
Information about the deposit required to create a proposal.
Proposal
ProposalListResponse
ProposalResponse
Note, if you are storing custom messages in the proposal, the querier needs to know what possible custom message types those are in order to parse the response
UncheckedDepositInfo
Information about the deposit required to create a proposal. For use in messages. To validate, transform into DepositInfo via into_checked().
VoteInfo
Returns the vote (opinion as well as weight counted) as well as the address of the voter who submitted it
VoteListResponse
VoteResponse
VoterDetail
VoterListResponse
VoterResponse
Votes

Enums§

Cw3ExecuteMsg
Cw3QueryMsg
DepositError
Status
Vote