[package]
name = "pallet-staking"
version = "27.0.0"
authors.workspace = true
edition.workspace = true
license = "Apache-2.0"
homepage = "https://substrate.io"
repository.workspace = true
description = "FRAME pallet staking"
readme = "README.md"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
serde = { version = "1.0.193", default-features = false, features = ["alloc", "derive"] }
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = [
"derive",
] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive", "serde"] }
sp-io = { path = "../../primitives/io", default-features = false, version = "29.0.0" }
sp-runtime = { path = "../../primitives/runtime", default-features = false, features = ["serde"], version = "30.0.1" }
sp-staking = { path = "../../primitives/staking", default-features = false, features = ["serde"], version = "25.0.0" }
sp-std = { path = "../../primitives/std", default-features = false, version = "13.0.0" }
frame-support = { path = "../support", default-features = false, version = "27.0.0" }
frame-system = { path = "../system", default-features = false, version = "27.0.0" }
pallet-session = { path = "../session", default-features = false, features = ["historical"], version = "27.0.0" }
pallet-authorship = { path = "../authorship", default-features = false, version = "27.0.0" }
sp-application-crypto = { path = "../../primitives/application-crypto", default-features = false, features = ["serde"], version = "29.0.0" }
frame-election-provider-support = { path = "../election-provider-support", default-features = false, version = "27.0.0" }
log = { version = "0.4.17", default-features = false }
frame-benchmarking = { path = "../benchmarking", default-features = false, optional = true, version = "27.0.0" }
rand_chacha = { version = "0.2", default-features = false, optional = true }
[dev-dependencies]
sp-tracing = { path = "../../primitives/tracing" }
sp-core = { path = "../../primitives/core" }
sp-npos-elections = { path = "../../primitives/npos-elections" }
pallet-balances = { path = "../balances" }
pallet-timestamp = { path = "../timestamp" }
pallet-staking-reward-curve = { path = "reward-curve" }
pallet-bags-list = { path = "../bags-list" }
substrate-test-utils = { path = "../../test-utils" }
frame-benchmarking = { path = "../benchmarking" }
frame-election-provider-support = { path = "../election-provider-support" }
rand_chacha = { version = "0.2" }
[features]
default = ["std"]
std = [
"codec/std",
"frame-benchmarking?/std",
"frame-election-provider-support/std",
"frame-support/std",
"frame-system/std",
"log/std",
"pallet-authorship/std",
"pallet-session/std",
"scale-info/std",
"serde/std",
"sp-application-crypto/std",
"sp-io/std",
"sp-runtime/std",
"sp-staking/std",
"sp-std/std",
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-election-provider-support/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"rand_chacha",
"sp-runtime/runtime-benchmarks",
"sp-staking/runtime-benchmarks",
]
try-runtime = [
"frame-election-provider-support/try-runtime",
"frame-support/try-runtime",
"frame-system/try-runtime",
"pallet-authorship/try-runtime",
"pallet-session/try-runtime",
"sp-runtime/try-runtime",
]