Skip to content

Commit

Permalink
Mesh-498: Identity based committee (#155)
Browse files Browse the repository at this point in the history
* 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
vkandy and maxsam4 committed Jan 15, 2020
1 parent 0a644bf commit ad6f206
Show file tree
Hide file tree
Showing 8 changed files with 918 additions and 37 deletions.
1 change: 1 addition & 0 deletions runtime/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions runtime/Cargo.toml
Expand Up @@ -58,6 +58,7 @@ phragmen = { package = "substrate-phragmen", git = "https://github.com/paritytec

[dev-dependencies]
test-client = { package = "substrate-test-runtime-client", git = "https://github.com/paritytech/substrate", rev = "7d7e74fb77b6bee2ce9d6ebafcae09caff2d0e50" }
hex-literal = "0.2.1"

[build-dependencies]
wasm-builder-runner = { package = "substrate-wasm-builder-runner", version = "1.0.2" }
Expand Down

0 comments on commit ad6f206

Please sign in to comment.