Crate dao_pre_propose_single
source ·Expand description
§Single choice proposal deposit contract
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:
- Never refund deposits. All deposits are sent to the DAO on proposal completion.
- Always refund deposits. Deposits are returned to the proposer on proposal completion.
- 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.
Re-exports§
pub use contract::ExecuteMsg;
pub use contract::InstantiateMsg;
pub use contract::ProposeMessage;
pub use contract::QueryMsg;