Storage migration of elections-phragmen (#3948)

* Initial sotrage migration

* Fix some deps

* test added

* another dep removed

* Update srml/elections-phragmen/src/lib.rs

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>

* Apply suggestions from code review

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>

* a bit nicer
This commit is contained in:
Kian Paimani
2019-10-29 15:46:34 +01:00
committed by Gavin Wood
parent ae42db6049
commit a0e24f3aa2
2 changed files with 65 additions and 7 deletions
+3 -6
View File
@@ -5,10 +5,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
serde = { version = "1.0.101", optional = true }
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
primitives = { package = "substrate-primitives", path = "../../core/primitives", default-features = false }
runtime_io = { package = "sr-io", path = "../../core/sr-io", default-features = false }
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
phragmen = { package = "substrate-phragmen", path = "../../core/phragmen", default-features = false }
srml-support = { path = "../support", default-features = false }
@@ -16,16 +13,16 @@ system = { package = "srml-system", path = "../system", default-features = false
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
[dev-dependencies]
runtime_io = { package = "sr-io", path = "../../core/sr-io" }
hex-literal = "0.2.1"
balances = { package = "srml-balances", path = "../balances" }
primitives = { package = "substrate-primitives", path = "../../core/primitives" }
serde = { version = "1.0.101" }
[features]
default = ["std"]
std = [
"codec/std",
"primitives/std",
"serde",
"runtime_io/std",
"srml-support/std",
"sr-primitives/std",
"phragmen/std",