[package]
name = "pallet-staking"
version = "19.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2021"
license = "Apache-2.0"
homepage = "https://substrate.io"
repository = "https://github.com/paritytech/substrate/"
description = "FRAME pallet staking"
readme = "README.md"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
serde = { version = "1.0.136", optional = true }
codec = { package = "parity-scale-codec", version = "3.2.2", default-features = false, features = [
"derive",
] }
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
sp-std = { version = "7.0.0", default-features = false}
sp-io = { version = "20.0.0", default-features = false}
sp-runtime = { version = "21.0.0", default-features = false}
sp-staking = { version = "17.0.0", default-features = false}
frame-support = { version = "19.0.0", default-features = false}
frame-system = { version = "19.0.0", default-features = false}
pallet-session = { version = "19.0.0", default-features = false, features = [
"historical",
]}
pallet-authorship = { version = "19.0.0", default-features = false}
sp-application-crypto = { version = "20.0.0", default-features = false}
frame-election-provider-support = { version = "19.0.0", default-features = false}
log = { version = "0.4.17", default-features = false }
frame-benchmarking = { version = "19.0.0", default-features = false, optional = true }
rand_chacha = { version = "0.2", default-features = false, optional = true }
[dev-dependencies]
sp-tracing = { version = "9.0.0" }
sp-core = { version = "18.0.0" }
sp-npos-elections = { version = "17.0.0" }
pallet-balances = { version = "19.0.0" }
pallet-timestamp = { version = "18.0.0" }
pallet-staking-reward-curve = { version = "5.0.0" }
pallet-bags-list = { version = "18.0.0" }
substrate-test-utils = { path = "../../test-utils" }
frame-benchmarking = { version = "19.0.0" }
frame-election-provider-support = { version = "19.0.0" }
rand_chacha = { version = "0.2" }
[features]
default = ["std"]
std = [
"frame-benchmarking?/std",
"serde",
"codec/std",
"scale-info/std",
"sp-std/std",
"sp-io/std",
"frame-support/std",
"sp-runtime/std",
"sp-staking/std",
"pallet-session/std",
"frame-system/std",
"pallet-authorship/std",
"sp-application-crypto/std",
"log/std",
"frame-election-provider-support/std",
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-election-provider-support/runtime-benchmarks",
"rand_chacha",
"sp-staking/runtime-benchmarks",
]
try-runtime = ["frame-support/try-runtime", "frame-election-provider-support/try-runtime"]