This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate pallet-elections-phragmen to attribute macros (#8044)
* All done * Fix benchmarks * Apply suggestions from code review Co-authored-by: Guillaume Thiolliere <[email protected]> * Fix metadata. * Fix build * Add migrations * Fix * Update frame/elections-phragmen/src/migrations/v4.rs * Better migeation test * More test * Fix warn * Update frame/elections-phragmen/src/lib.rs Co-authored-by: Guillaume Thiolliere <[email protected]> * Fix test * early exit * Fix * Fix build Co-authored-by: Guillaume Thiolliere <[email protected]>
- Loading branch information
1 parent
4551b3c
commit 20b1a0e
Showing
9 changed files
with
477 additions
and
275 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "pallet-elections-phragmen" | ||
version = "3.0.0" | ||
version = "4.0.0" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
edition = "2018" | ||
license = "Apache-2.0" | ||
|
@@ -16,14 +16,15 @@ targets = ["x86_64-unknown-linux-gnu"] | |
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] } | ||
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" } | ||
sp-npos-elections = { version = "3.0.0", default-features = false, path = "../../primitives/npos-elections" } | ||
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" } | ||
frame-support = { version = "3.0.0", default-features = false, path = "../support" } | ||
frame-system = { version = "3.0.0", default-features = false, path = "../system" } | ||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" } | ||
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" } | ||
frame-benchmarking = { version = "3.1.0", default-features = false, path = "../benchmarking", optional = true } | ||
log = { version = "0.4.14", default-features = false } | ||
|
||
[dev-dependencies] | ||
sp-io = { version = "3.0.0", path = "../../primitives/io" } | ||
hex-literal = "0.3.1" | ||
pallet-balances = { version = "3.0.0", path = "../balances" } | ||
sp-core = { version = "3.0.0", path = "../../primitives/core" } | ||
|
@@ -38,6 +39,8 @@ std = [ | |
"sp-npos-elections/std", | ||
"frame-system/std", | ||
"sp-std/std", | ||
"sp-io/std", | ||
"sp-core/std", | ||
"log/std", | ||
] | ||
runtime-benchmarks = [ | ||
|
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
Oops, something went wrong.