Extend Schedule Pallet for Root Scheduling/Canceling (#5907)

* Add root dispatch to scheduler

* Move encode operation upwards

* fix benchmark

* extend extrinsics

* add some clarifying comments

* start to add benchmarking

* finish weights

* remove double encode

* bump spec

* Update weights

* more accurate weights

* bump base weight
This commit is contained in:
Shawn Tabrizi
2020-05-07 11:47:23 +02:00
committed by GitHub
parent a9523dbc37
commit d8b7520a90
8 changed files with 435 additions and 78 deletions
+3 -1
View File
@@ -11,13 +11,14 @@ description = "FRAME example pallet"
[dependencies]
serde = { version = "1.0.101", optional = true }
codec = { package = "parity-scale-codec", version = "1.2.0", default-features = false }
frame-benchmarking = { version = "2.0.0-dev", default-features = false, path = "../benchmarking" }
frame-support = { version = "2.0.0-dev", default-features = false, path = "../support" }
frame-system = { version = "2.0.0-dev", default-features = false, path = "../system" }
sp-runtime = { version = "2.0.0-dev", default-features = false, path = "../../primitives/runtime" }
sp-std = { version = "2.0.0-dev", default-features = false, path = "../../primitives/std" }
sp-io = { version = "2.0.0-dev", default-features = false, path = "../../primitives/io" }
frame-benchmarking = { version = "2.0.0-dev", default-features = false, path = "../benchmarking", optional = true }
[dev-dependencies]
sp-core = { version = "2.0.0-dev", path = "../../primitives/core", default-features = false }
@@ -33,3 +34,4 @@ std = [
"sp-io/std",
"sp-std/std"
]
runtime-benchmarks = ["frame-benchmarking"]