-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added custom query for total staked tokens
- Loading branch information
Showing
10 changed files
with
57 additions
and
280 deletions.
There are no files selected for viewing
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
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,13 +1,5 @@ | ||
use cosmwasm_std::{Addr, Uint128}; | ||
use cw_storage_plus::{Item, SnapshotItem, Strategy}; | ||
use cosmwasm_std::Addr; | ||
use cw_storage_plus::Item; | ||
|
||
/// The address of the DAO this voting contract is connected to. | ||
pub const DAO: Item<Addr> = Item::new("dao"); | ||
|
||
/// Keeps track of staked total over time. | ||
pub const STAKED_TOTAL: SnapshotItem<Uint128> = SnapshotItem::new( | ||
"total_staked", | ||
"total_staked__checkpoints", | ||
"total_staked__changelog", | ||
Strategy::EveryBlock, | ||
); |
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
41 changes: 0 additions & 41 deletions
41
contracts/voting/dao-voting-cosmos-staked/src/tests/test_tube/authz.rs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.