#dao #module #proposal #native #cw20 #pre-propose #deposits

dao-pre-propose-single

A DAO DAO pre-propose module for dao-proposal-single for native and cw20 deposits

7 stable releases

new 2.6.0 Nov 8, 2024
2.5.0 Oct 31, 2024
2.4.2 Jul 22, 2024
2.3.0 Oct 18, 2023
0.0.0 Jul 3, 2023

#829 in Magic Beans

Download history 447/week @ 2024-07-17 234/week @ 2024-07-24 182/week @ 2024-07-31 106/week @ 2024-08-07 190/week @ 2024-08-14 2/week @ 2024-08-28 34/week @ 2024-09-04 93/week @ 2024-09-11 89/week @ 2024-09-18 39/week @ 2024-09-25 16/week @ 2024-10-02 75/week @ 2024-10-09 106/week @ 2024-10-16 27/week @ 2024-10-23 291/week @ 2024-10-30

501 downloads per month
Used in 2 crates (via dao-testing)

BSD-3-Clause

210KB
5K SLoC

Single choice proposal deposit contract

dao-pre-propose-single on crates.io docs.rs

This is a pre-propose module that manages proposal deposits for the cwd-proposal-single proposal module.

It may accept either native (bank module), cw20 tokens, or no tokens as a deposit. If a proposal deposit is enabled the following refund strategies are avaliable:

  1. Never refund deposits. All deposits are sent to the DAO on proposal completion.
  2. Always refund deposits. Deposits are returned to the proposer on proposal completion.
  3. Only refund passed proposals. Deposits are only returned to the proposer if the proposal passes. Otherwise, they are sent to the DAO.

This module may also be configured to only accept proposals from members (addresses with voting power) of the DAO.

Here is a flowchart showing the proposal creation process using this module:

Resources

More about the pre-propose design.

More about pre-propose modules.

Dependencies

~10MB
~210K SLoC