mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 17:31:05 +00:00
bf785881ac
* set MaxPermanentSlots and MaxTemporarySlots with a extrinsic instead of a constant * delete the MaxPermanentSlots and MaxTemporarySlots constants from config on Rococo and Westend * migration code for assigned slots * remove getters * little refactor * set values in the GenesisConfig * refactor in the migration, adding it in the rococo runtime * refactor: fmt * Minor fix * pre_upgrade check * add migration to mod v1 * Logs following Substrate#12873 * fix: current storage version set to 1 * use enact when try-runtime * Vec seems to be missing * feature gate import * fix as per #13993 * address comments Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * address comments Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * benchmarking for assign_perm_parachain_slot extrinsic * benchmark all the extrinsics of the pallet * cargo fmt for assigned slots * migration added for westend * licence in benchmarking file * BuildGenesisConfig * assigned_slots default in genesis * cargo fmt * assigned_slots fix tests config * cargo fmt * fix benchmarking compile error * fix benchmarking imports * benchmark worst case scenario for validation code and head data * add assigned_slots in frame_benchmarking on Rococo and Westend * modify values for para_id in benchmarking * delete the assigned_slots in westend frame_benchmarking * fix benchmarkings and add it to westend * cargo fmt * ".git/.scripts/commands/bench/bench.sh" --subcommand=runtime --runtime=rococo --target_dir=polkadot --pallet=runtime_common::assigned_slots * ".git/.scripts/commands/bench/bench.sh" --subcommand=runtime --runtime=westend --target_dir=polkadot --pallet=runtime_common::assigned_slots * use generated weights in assigned_slots pallet * small changes in set_max_permanent_slots and set_max_temporary_slots * revert last commit * address some comments * wrap migration with VersionCheckedMigrateToV1 * add experimental feature in pallet, and assers in post_upgrade migration * clean warnings * clean unnecesary experimental flag * small typo in comments * cargo fmt * small comments fixes --------- Co-authored-by: al3mart <11448715+al3mart@users.noreply.github.com> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: command-bot <>
128 lines
6.1 KiB
TOML
128 lines
6.1 KiB
TOML
[package]
|
|
name = "polkadot-runtime-common"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
impl-trait-for-tuples = "0.2.2"
|
|
bitvec = { version = "1.0.0", default-features = false, features = ["alloc"] }
|
|
parity-scale-codec = { version = "3.6.1", default-features = false, features = ["derive"] }
|
|
log = { version = "0.4.17", default-features = false }
|
|
rustc-hex = { version = "2.1.0", default-features = false }
|
|
scale-info = { version = "2.5.0", default-features = false, features = ["derive"] }
|
|
serde = { version = "1.0.163", default-features = false, features = ["alloc"] }
|
|
serde_derive = { version = "1.0.117" }
|
|
static_assertions = "1.1.0"
|
|
|
|
sp-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
inherents = { package = "sp-inherents", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-std = { package = "sp-std", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-io = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false , features=["serde"]}
|
|
sp-session = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-staking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, features=["serde"] }
|
|
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false , features=["serde"]}
|
|
sp-npos-elections = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, features=["serde"] }
|
|
|
|
pallet-authorship = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-fast-unstake = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-session = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
frame-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-staking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-staking-reward-fn = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
frame-system = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-timestamp = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-vesting = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-treasury = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-election-provider-multi-phase = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
frame-election-provider-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
|
|
frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
|
|
pallet-babe = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
|
|
|
|
primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false }
|
|
libsecp256k1 = { version = "0.7.0", default-features = false }
|
|
runtime-parachains = { package = "polkadot-runtime-parachains", path = "../parachains", default-features = false }
|
|
|
|
slot-range-helper = { path = "slot_range_helper", default-features = false }
|
|
xcm = { path = "../../xcm", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
hex-literal = "0.4.1"
|
|
frame-support-test = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
pallet-babe = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
pallet-treasury = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-keyring = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
serde_json = "1.0.96"
|
|
libsecp256k1 = "0.7.0"
|
|
test-helpers = { package = "polkadot-primitives-test-helpers", path = "../../primitives/test-helpers" }
|
|
|
|
[features]
|
|
default = ["std"]
|
|
experimental = [
|
|
"frame-support/experimental"
|
|
]
|
|
no_std = []
|
|
std = [
|
|
"bitvec/std",
|
|
"parity-scale-codec/std",
|
|
"scale-info/std",
|
|
"log/std",
|
|
"rustc-hex/std",
|
|
"serde/std",
|
|
"primitives/std",
|
|
"inherents/std",
|
|
"sp-core/std",
|
|
"sp-api/std",
|
|
"sp-std/std",
|
|
"sp-io/std",
|
|
"frame-support/std",
|
|
"pallet-authorship/std",
|
|
"pallet-balances/std",
|
|
"pallet-session/std",
|
|
"pallet-fast-unstake/std",
|
|
"pallet-staking/std",
|
|
"pallet-staking-reward-fn/std",
|
|
"pallet-timestamp/std",
|
|
"pallet-vesting/std",
|
|
"pallet-transaction-payment/std",
|
|
"pallet-treasury/std",
|
|
"pallet-election-provider-multi-phase/std",
|
|
"slot-range-helper/std",
|
|
"sp-runtime/std",
|
|
"sp-session/std",
|
|
"sp-staking/std",
|
|
"frame-system/std",
|
|
"libsecp256k1/std",
|
|
"runtime-parachains/std",
|
|
"xcm/std",
|
|
"sp-npos-elections/std",
|
|
]
|
|
runtime-benchmarks = [
|
|
"libsecp256k1/hmac",
|
|
"libsecp256k1/static-context",
|
|
"frame-benchmarking/runtime-benchmarks",
|
|
"frame-support/runtime-benchmarks",
|
|
"frame-system/runtime-benchmarks",
|
|
"runtime-parachains/runtime-benchmarks",
|
|
"pallet-babe/runtime-benchmarks",
|
|
"pallet-fast-unstake/runtime-benchmarks"
|
|
]
|
|
try-runtime = [
|
|
"runtime-parachains/try-runtime",
|
|
"pallet-authorship/try-runtime",
|
|
"pallet-balances/try-runtime",
|
|
"pallet-session/try-runtime",
|
|
"pallet-staking/try-runtime",
|
|
"pallet-timestamp/try-runtime",
|
|
"pallet-vesting/try-runtime",
|
|
"pallet-transaction-payment/try-runtime",
|
|
"pallet-treasury/try-runtime",
|
|
"pallet-fast-unstake/try-runtime",
|
|
]
|