Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mesh-498: Identity based committee (#155)
* new committee module * propose method * added VoteThreshold type that can be added to Trait type * replace old governance committee with identity based committee * committee instance, add instance to chain spec * Keep AccountId in RawOrigin as phantom data to match calls expecting T::Origin * Replace collective with the new committee * Removed old committee completely * Added ProportionMatch to be used with threshold to be used in comparision * voting threshold for determining acceptance or rejection criteria * Implemented vote threshold conditions * adding tests * basic tests setup * Merge branch 'master' into MESH-498/identity-based-committee # Conflicts: # runtime/src/lib.rs # runtime/src/runtime.rs # src/chain_spec.rs * Attempt to set a test origin * test using construct_runtime * Change proportion to at least 2/3 amd added voting info to events * Change proportion to at least 2/3 * Fixed committee tests * tests for membership and voting * tests for error conditions - preventing non members from proposing and voting * tests for revoting tests for throwing error when index doesn't match proposal hash * - added method for committee to change vote threshold - improved documentation * Merge branch 'master' into MESH-498/identity-based-committee # Conflicts: # runtime/src/runtime.rs * Added CommitteeMembership to manage membership of committee through governance * Added ChangeMembers, InitializeMembers trait impls and tests Co-authored-by: Mudit Gupta <guptamudit@ymail.com>
- Loading branch information