7 stable releases

2.6.0 Nov 8, 2024
2.5.0 Oct 31, 2024
2.4.2 Jul 22, 2024
2.3.0 Oct 18, 2023
2.2.0 Jul 9, 2023

#4 in #cw4

Download history 3/week @ 2024-08-29 51/week @ 2024-09-05 102/week @ 2024-09-12 65/week @ 2024-09-19 29/week @ 2024-09-26 18/week @ 2024-10-03 95/week @ 2024-10-10 94/week @ 2024-10-17 18/week @ 2024-10-24 316/week @ 2024-10-31 182/week @ 2024-11-07 17/week @ 2024-11-14 18/week @ 2024-11-21 5/week @ 2024-11-28 15/week @ 2024-12-05 27/week @ 2024-12-12

68 downloads per month
Used in 3 crates (2 directly)

BSD-3-Clause

62KB
1.5K SLoC

CW4 Group Voting

dao-voting-cw4 on crates.io docs.rs

A simple voting power module which determines voting power based on the weight of a user in a cw4-group contract. This allocates voting power in the same way that one would expect a multisig to.

This contract implements the interface needed to be a DAO DAO voting module. For more information about how these modules fit together see this wiki page.

Receiving updates

This contract does not make subqueries to the cw4-group contract to get an addresses voting power. Instead, it listens for MemberChangedHook messages from said contract and caches voting power locally.

As the DAO is the admin of the underlying cw4-group contract it is important that the DAO does not remove this contract from that contract's list of hook receivers. Doing so will cause this contract to stop receiving voting power updates.

Dependencies

~10MB
~212K SLoC