Files
pezkuwi-subxt/substrate/frame/staking/Cargo.toml
T
Shawn Tabrizi 9c06d8c6f4 Benchmark Staking and Session Pallet (#5183)
* starting bench

* More

* more

* Payout Validator

* Give each validator exactly n nominators

* Update with test

* Try to add accounts to chain spec

* Undo changes to chainspec

* Payout nominator

* Rebond and Reap Stash

* Set history depth

* fix smelly code

* cancel deferred slash

* new_era bench

* do_slash benchmark

* Add features

* undo extrinsic move

* lower

* Update new era

* Update benchmarking.rs

* whitespace

* Apply suggestions from code review

Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* fixes

* nit

* Refactor tests, initial code

* Move session benchmarks to avoid cyclic deps

* Update lib.rs

* Fix warnings

* Move impl

* Update to do random nominator allocation

* add feature to benchmark pallet

* Remove extra stuff

* Update based on feedback

* Less intrusive

* Remove `transfer_idle_users`

* remove again

* unused dep

* test feature flag

* Update to latest substrate

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
2020-03-17 14:12:04 +01:00

59 lines
2.5 KiB
TOML

[package]
name = "pallet-staking"
version = "2.0.0-alpha.3"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
license = "GPL-3.0"
homepage = "https://substrate.dev"
repository = "https://github.com/paritytech/substrate/"
description = "FRAME pallet staking"
[dependencies]
serde = { version = "1.0.101", optional = true }
codec = { package = "parity-scale-codec", version = "1.2.0", default-features = false, features = ["derive"] }
sp-keyring = { version = "2.0.0-alpha.2", optional = true, path = "../../primitives/keyring" }
sp-std = { version = "2.0.0-alpha.2", default-features = false, path = "../../primitives/std" }
sp-phragmen = { version = "2.0.0-alpha.2", default-features = false, path = "../../primitives/phragmen" }
sp-io ={ path = "../../primitives/io", default-features = false , version = "2.0.0-alpha.2"}
sp-runtime = { version = "2.0.0-alpha.2", default-features = false, path = "../../primitives/runtime" }
sp-staking = { version = "2.0.0-alpha.2", default-features = false, path = "../../primitives/staking" }
frame-support = { version = "2.0.0-alpha.2", default-features = false, path = "../support" }
frame-system = { version = "2.0.0-alpha.2", default-features = false, path = "../system" }
pallet-session = { version = "2.0.0-alpha.2", features = ["historical"], path = "../session", default-features = false }
pallet-authorship = { version = "2.0.0-alpha.2", default-features = false, path = "../authorship" }
frame-benchmarking = { version = "2.0.0-alpha.2", default-features = false, path = "../benchmarking", optional = true }
rand_chacha = { version = "0.2", default-features = false, optional = true }
[dev-dependencies]
sp-core = { version = "2.0.0-alpha.2", path = "../../primitives/core" }
pallet-balances = { version = "2.0.0-alpha.2", path = "../balances" }
pallet-timestamp = { version = "2.0.0-alpha.2", path = "../timestamp" }
pallet-staking-reward-curve = { version = "2.0.0-alpha.2", path = "../staking/reward-curve" }
substrate-test-utils = { version = "2.0.0-alpha.2", path = "../../test-utils" }
frame-benchmarking = { version = "2.0.0-alpha.2", path = "../benchmarking" }
rand_chacha = { version = "0.2" }
[features]
migrate = []
default = ["std"]
std = [
"serde",
"sp-keyring",
"codec/std",
"sp-std/std",
"sp-phragmen/std",
"sp-io/std",
"frame-support/std",
"sp-runtime/std",
"sp-staking/std",
"pallet-session/std",
"frame-system/std",
"pallet-authorship/std",
]
runtime-benchmarks = [
"rand_chacha",
"frame-benchmarking",
"frame-system/runtime-benchmarks",
]