-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into zeke/proposal-deposits
- Loading branch information
Showing
8 changed files
with
417 additions
and
375 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,6 @@ pub mod msg; | |
pub mod state; | ||
|
||
pub use crate::error::ContractError; | ||
|
||
#[cfg(test)] | ||
mod tests; |
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,16 +1,24 @@ | ||
use cosmwasm_std::Addr; | ||
use cw4::TOTAL_KEY; | ||
use cw4::{ | ||
MEMBERS_CHANGELOG, MEMBERS_CHECKPOINTS, MEMBERS_KEY, TOTAL_KEY, TOTAL_KEY_CHANGELOG, | ||
TOTAL_KEY_CHECKPOINTS, | ||
}; | ||
use cw_controllers::{Admin, Hooks}; | ||
use cw_storage_plus::{Item, SnapshotMap, Strategy}; | ||
use cw_storage_plus::{SnapshotItem, SnapshotMap, Strategy}; | ||
|
||
pub const ADMIN: Admin = Admin::new("admin"); | ||
pub const HOOKS: Hooks = Hooks::new("cw4-hooks"); | ||
|
||
pub const TOTAL: Item<u64> = Item::new(TOTAL_KEY); | ||
pub const TOTAL: SnapshotItem<u64> = SnapshotItem::new( | ||
TOTAL_KEY, | ||
TOTAL_KEY_CHECKPOINTS, | ||
TOTAL_KEY_CHANGELOG, | ||
Strategy::EveryBlock, | ||
); | ||
|
||
pub const MEMBERS: SnapshotMap<&Addr, u64> = SnapshotMap::new( | ||
cw4::MEMBERS_KEY, | ||
cw4::MEMBERS_CHECKPOINTS, | ||
cw4::MEMBERS_CHANGELOG, | ||
MEMBERS_KEY, | ||
MEMBERS_CHECKPOINTS, | ||
MEMBERS_CHANGELOG, | ||
Strategy::EveryBlock, | ||
); |
Oops, something went wrong.