-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try State Hook for Ranked Collective (#3007)
Part of: #239 Polkadot address: 12GyGD3QhT4i2JJpNzvMf96sxxBLWymz4RdGCxRH5Rj5agKW --------- Co-authored-by: Liam Aharon <[email protected]>
- Loading branch information
1 parent
07f8592
commit 9cd02a0
Showing
4 changed files
with
186 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
title: Try State Hook for Ranked Collective. | ||
|
||
doc: | ||
- audience: Runtime User | ||
description: | | ||
Invariants for storage items in the ranked collective pallet. Enforces the following Invariants: | ||
1. Total number of `Members` in storage should be >= [`MemberIndex`] of a [`Rank`] in `MemberCount`. | ||
2. `Rank` in Members should be in `MemberCount`. | ||
3.`Sum` of `MemberCount` index should be the same as the sum of all the index attained for | ||
rank possessed by `Members` | ||
4. `Member` in storage of `IdToIndex` should be the same as `Member` in `IndexToId`. | ||
5. `Rank` in `IdToIndex` should be the same as the the `Rank` in `IndexToId`. | ||
6. `Rank` of the member `who` in `IdToIndex` should be the same as the `Rank` of | ||
the member `who` in `Members` | ||
crates: | ||
- name: pallet-ranked-collective |
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