Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Migrate pallet-membership to the new pallet attribute macro (#9080)
Browse files Browse the repository at this point in the history
* Migrate pallet-membership to new pallet attribute macro

Signed-off-by: koushiro <[email protected]>

* Add migrations

Signed-off-by: koushiro <[email protected]>

* more general

Signed-off-by: koushiro <[email protected]>

* fix event metadata

Signed-off-by: koushiro <[email protected]>

* some nits

Signed-off-by: koushiro <[email protected]>

* fix some nits

Signed-off-by: koushiro <[email protected]>

* apply suggestion

Signed-off-by: koushiro <[email protected]>

* some nits

Signed-off-by: koushiro <[email protected]>

* Fix

Signed-off-by: koushiro <[email protected]>

* Remove useless

Signed-off-by: koushiro <[email protected]>

* Fix migration

Signed-off-by: koushiro <[email protected]>

* Fix format

Signed-off-by: koushiro <[email protected]>

* Fix

Signed-off-by: koushiro <[email protected]>

* Fix migration

now we need to store the new version manually.

* Fix migration and Add migration test

Signed-off-by: koushiro <[email protected]>

* Fix

Signed-off-by: koushiro <[email protected]>

* Fix format

Signed-off-by: koushiro <[email protected]>

* Use new_test_ext

Signed-off-by: koushiro <[email protected]>

Co-authored-by: thiolliere <[email protected]>
  • Loading branch information
koushiro and gui1117 authored Sep 7, 2021
1 parent b5defce commit cd21e62
Show file tree
Hide file tree
Showing 4 changed files with 362 additions and 132 deletions.
14 changes: 7 additions & 7 deletions frame/membership/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
log = { version = "0.4.0", default-features = false }
sp-std = { version = "4.0.0-dev", default-features = false, path = "../../primitives/std" }

sp-core = { version = "4.0.0-dev", default-features = false, path = "../../primitives/core" }
sp-io = { version = "4.0.0-dev", default-features = false, path = "../../primitives/io" }
sp-runtime = { version = "4.0.0-dev", default-features = false, path = "../../primitives/runtime" }
sp-std = { version = "4.0.0-dev", default-features = false, path = "../../primitives/std" }

frame-benchmarking = { version = "4.0.0-dev", default-features = false, path = "../benchmarking", optional = true }
frame-support = { version = "4.0.0-dev", default-features = false, path = "../support" }
frame-system = { version = "4.0.0-dev", default-features = false, path = "../system" }

frame-benchmarking = { version = "4.0.0-dev", optional = true, default-features = false, path = "../benchmarking" }

[dev-dependencies]
sp-core = { version = "4.0.0-dev", path = "../../primitives/core" }

[features]
default = ["std"]
std = [
"codec/std",
"log/std",
"sp-std/std",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
"sp-std/std",
"frame-support/std",
"frame-system/std",
"frame-benchmarking/std",
Expand Down
Loading

0 comments on commit cd21e62

Please sign in to comment.