Crates.io | dao-pre-propose-approver |
lib.rs | dao-pre-propose-approver |
version | 2.6.0 |
source | src |
created_at | 2023-07-03 18:44:36.670429 |
updated_at | 2024-11-08 00:02:38.775756 |
description | A DAO DAO pre-propose module for automatically making approval proposals for dao-pre-propose-approval-single. |
homepage | |
repository | https://github.com/DA0-DA0/dao-contracts |
max_upload_size | |
id | 907318 |
size | 210,072 |
This contract works in conjuction with cwd-pre-propose-approval-single
and allows for automatically creating approval proposals when a proposal is submitted for approval.
On instantiation, this contract registers a hook with the approval contract to automatically create proposals in the approver DAO.
When this contract recieves a proposal as hook from cwd-pre-propose-approval-single
, it makes an approval propose in the approval DAO. If approved, the approval proposal calls the approve message on this contract when executed. If the proposal is rejected and closed it fires off reject call.
┌──────────┐ Approver DAO Registers Prop Submission Hook
│ │ ┌──────────────────────────────────────────────┐
│ Account │ │ │
│ │ │ │
└─────┬────┘ │ Prop Submission Hook creates │
│ │ new prop in Approver DAO │
│ Makes prop │ ┌───────────────────────────┐ │
▼ ▼ │ ▼ │
┌──────────────────────┴─┐ ┌────────────────────────┐ │
│ │ │ │ │
│ Pre-propose Approval │ │ Pre-propose Approver │ │
│ │◄──┐ │ │ │
└───────────┬────────────┘ │ └───────────┬────────────┘ │
│ │ │ │
│ Creates prop │ │ Creates │
│ on approval │ │ prop │
▼ │ ▼ │
┌────────────────────────┐ │ ┌────────────────────────┐ │
│ │ │ │ │ │
│ Proposal Single │ │ │ Proposal Single │ │
│ │ │ │ │ │
└───────────┬────────────┘ │ └───────────┬────────────┘ │
│ │ Approver │ │
│ Normal voting │ Approves │ Voting │
│ │ or │ │
▼ │ Rejects ▼ │
┌────────────────────────┐ │ ┌────────────────────────┐ │
│ │ │ │ │ │
│ Main DAO │ └─────────┤ Approver DAO ├─┘
│ │ │ │
└────────────────────────┘ └────────────────────────┘
This contract does not handle deposits. It works in conjunction with the cwd-pre-propose-approval-single
contract, which handles the proposal deposits.
More about the pre-propose design.
More about pre-propose modules.