forked from DA0-DA0/dao-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add active threshold functionality to CW4 voting module, closes DA0-D…
- Loading branch information
1 parent
3ab7017
commit 56d007d
Showing
6 changed files
with
160 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
use cosmwasm_schema::cw_serde; | ||
use cosmwasm_std::Addr; | ||
use cw_storage_plus::Item; | ||
use cw_utils::Duration; | ||
use dao_voting::threshold::ActiveThreshold; | ||
|
||
pub const GROUP_CONTRACT: Item<Addr> = Item::new("group_contract"); | ||
pub const DAO: Item<Addr> = Item::new("dao_address"); | ||
|
||
/// The minimum amount of users for the DAO to be active | ||
pub const ACTIVE_THRESHOLD: Item<ActiveThreshold> = Item::new("active_threshold"); | ||
|
||
#[cw_serde] | ||
pub struct Config { | ||
pub active_threshold_enabled: bool, | ||
pub active_threshold: Option<ActiveThreshold>, | ||
} | ||
|
||
pub const CONFIG: Item<Config> = Item::new("config"); |