[package] name = "polkadot-runtime-common" version = "17.0.0" description = "Pallets and constants used in Relay Chain networks." authors.workspace = true edition.workspace = true license.workspace = true [lints] workspace = true [dependencies] impl-trait-for-tuples = { workspace = true } bitvec = { features = ["alloc"], workspace = true } codec = { features = ["derive"], workspace = true } log = { workspace = true } rustc-hex = { workspace = true } scale-info = { features = ["derive"], workspace = true } serde = { features = ["alloc"], workspace = true } serde_derive = { workspace = true } static_assertions = { workspace = true, default-features = true } sp-api.workspace = true sp-inherents.workspace = true sp-io.workspace = true sp-runtime = { features = ["serde"], workspace = true } sp-session.workspace = true sp-staking = { features = ["serde"], workspace = true } sp-core = { features = ["serde"], workspace = true } sp-npos-elections = { features = ["serde"], workspace = true } pallet-authorship.workspace = true pallet-balances.workspace = true pallet-broker.workspace = true pallet-fast-unstake.workspace = true pallet-identity.workspace = true pallet-session.workspace = true frame-support.workspace = true pallet-staking.workspace = true pallet-staking-reward-fn.workspace = true frame-system.workspace = true pallet-timestamp.workspace = true pallet-vesting.workspace = true pallet-transaction-payment.workspace = true pallet-treasury.workspace = true pallet-asset-rate = { optional = true, workspace = true } pallet-election-provider-multi-phase.workspace = true frame-election-provider-support.workspace = true frame-benchmarking = { optional = true, workspace = true } pallet-babe = { optional = true, workspace = true } polkadot-primitives.workspace = true libsecp256k1 = { workspace = true } polkadot-runtime-parachains.workspace = true slot-range-helper.workspace = true xcm.workspace = true xcm-executor = { optional = true, workspace = true } xcm-builder.workspace = true [dev-dependencies] hex-literal = { workspace = true, default-features = true } frame-support-test = { path = "../../../substrate/frame/support/test" } pallet-babe = { default-features = true, path = "../../../substrate/frame/babe" } pallet-treasury = { default-features = true, path = "../../../substrate/frame/treasury" } sp-keystore = { default-features = true, path = "../../../substrate/primitives/keystore" } sp-keyring = { default-features = true, path = "../../../substrate/primitives/keyring" } serde_json = { workspace = true, default-features = true } libsecp256k1 = { workspace = true, default-features = true } polkadot-primitives-test-helpers = { path = "../../primitives/test-helpers" } [features] default = ["std"] no_std = [] std = [ "bitvec/std", "codec/std", "frame-benchmarking?/std", "frame-election-provider-support/std", "frame-support/std", "frame-system/std", "libsecp256k1/std", "log/std", "pallet-asset-rate?/std", "pallet-authorship/std", "pallet-balances/std", "pallet-broker/std", "pallet-election-provider-multi-phase/std", "pallet-fast-unstake/std", "pallet-identity/std", "pallet-session/std", "pallet-staking-reward-fn/std", "pallet-staking/std", "pallet-timestamp/std", "pallet-transaction-payment/std", "pallet-treasury/std", "pallet-vesting/std", "polkadot-primitives/std", "polkadot-runtime-parachains/std", "rustc-hex/std", "scale-info/std", "serde/std", "slot-range-helper/std", "sp-api/std", "sp-core/std", "sp-inherents/std", "sp-io/std", "sp-npos-elections/std", "sp-runtime/std", "sp-session/std", "sp-staking/std", "xcm-builder/std", "xcm-executor/std", "xcm/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-election-provider-support/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "libsecp256k1/hmac", "libsecp256k1/static-context", "pallet-asset-rate/runtime-benchmarks", "pallet-babe/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-broker/runtime-benchmarks", "pallet-election-provider-multi-phase/runtime-benchmarks", "pallet-fast-unstake/runtime-benchmarks", "pallet-identity/runtime-benchmarks", "pallet-staking/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "pallet-treasury/runtime-benchmarks", "pallet-vesting/runtime-benchmarks", "polkadot-primitives/runtime-benchmarks", "polkadot-runtime-parachains/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "sp-staking/runtime-benchmarks", "xcm-builder/runtime-benchmarks", "xcm-executor/runtime-benchmarks", ] try-runtime = [ "frame-election-provider-support/try-runtime", "frame-support/try-runtime", "frame-system/try-runtime", "pallet-asset-rate/try-runtime", "pallet-authorship/try-runtime", "pallet-babe?/try-runtime", "pallet-balances/try-runtime", "pallet-broker/try-runtime", "pallet-election-provider-multi-phase/try-runtime", "pallet-fast-unstake/try-runtime", "pallet-identity/try-runtime", "pallet-session/try-runtime", "pallet-staking/try-runtime", "pallet-timestamp/try-runtime", "pallet-transaction-payment/try-runtime", "pallet-treasury/try-runtime", "pallet-vesting/try-runtime", "polkadot-runtime-parachains/try-runtime", "sp-runtime/try-runtime", ]