Decouple Phragmen from Staking. (#3498)

* Move phragmen to primitives

* Improved docs

* New crate.

* Update lock.

* Fix dependency.

* Fix build.

* Add basic testing and truth-value implementation with float types

* Update srml/staking/src/lib.rs

* Nits.

* Bump.

* Fix benchmarks.
This commit is contained in:
Kian Paimani
2019-08-29 11:07:49 +02:00
committed by GitHub
parent 98f64b6b93
commit f830db9642
11 changed files with 846 additions and 514 deletions
+10
View File
@@ -4169,6 +4169,7 @@ dependencies = [
"srml-system 2.0.0",
"srml-timestamp 2.0.0",
"substrate-keyring 2.0.0",
"substrate-phragmen 2.0.0",
"substrate-primitives 2.0.0",
]
@@ -4931,6 +4932,15 @@ dependencies = [
"serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "substrate-phragmen"
version = "2.0.0"
dependencies = [
"sr-primitives 2.0.0",
"sr-std 2.0.0",
"srml-support 2.0.0",
]
[[package]]
name = "substrate-primitives"
version = "2.0.0"