[package] name = "pallet-babe" version = "38.0.0" authors.workspace = true edition.workspace = true license = "Apache-2.0" homepage.workspace = true repository.workspace = true description = "Consensus extension module for BABE consensus. Collects on-chain randomness from VRF outputs and manages epoch transitions." readme = "README.md" [lints] workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] codec = { features = ["derive"], workspace = true } log = { workspace = true } scale-info = { features = ["derive", "serde"], workspace = true } frame-benchmarking = { optional = true, workspace = true } frame-support.workspace = true frame-system.workspace = true pallet-authorship.workspace = true pallet-session.workspace = true pallet-timestamp.workspace = true sp-application-crypto = { features = ["serde"], workspace = true } sp-consensus-babe = { features = ["serde"], workspace = true } sp-core = { features = ["serde"], workspace = true } sp-io.workspace = true sp-runtime = { features = ["serde"], workspace = true } sp-session.workspace = true sp-staking = { features = ["serde"], workspace = true } [dev-dependencies] frame-election-provider-support = { default-features = true, path = "../election-provider-support" } pallet-balances = { default-features = true, path = "../balances" } pallet-offences = { default-features = true, path = "../offences" } pallet-staking = { default-features = true, path = "../staking" } pallet-staking-reward-curve = { default-features = true, path = "../staking/reward-curve" } sp-core = { default-features = true, path = "../../primitives/core" } [features] default = ["std"] std = [ "codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "log/std", "pallet-authorship/std", "pallet-session/std", "pallet-timestamp/std", "scale-info/std", "sp-application-crypto/std", "sp-consensus-babe/std", "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-session/std", "sp-staking/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "sp-staking/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-authorship/try-runtime", "pallet-session/try-runtime", "pallet-timestamp/try-runtime", "sp-runtime/try-runtime", ]