mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 02:21:04 +00:00
04c8603042
* scheduler module skeleton * update scheduler skeleton to match latest version of guide * better session change notification * add mock randomness and fix test compilation * shuffle validators into groups * finish implementing session change logic for scheduler * tweak core assignment type to track retries of parathread * reframe queued parathread core as offset * implement initialzation and finalization routines * implement parathread claim queuing * implement core_para * implement the group_validators routine and fix errors * add a reason for freeing cores * implement `schedule` function * add some docs to the scheduled function * implement `occupied` helper * implement availability predicate * fix some warnings * integrate scheduler into initializer * integrate scheduler into mock module * avoid conflict with Substrate's scheduler storage * add parathreads index to paras module * implement parathreads map in paras module * add is_parathread to paras * test adding parathread claim * test that you cannot add claims when no parathread cores exist * check session change parathread queue pruning * test validator shuffling * add allow_unused to scheduler items * add test for scheduling * add some more tests for scheduling logic * test core rotation * check parathread claim pruning after retries * add bound notes * Apply suggestions from code review Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> Co-authored-by: Bernhard Schuster <bernhard@ahoi.io> * more suggestions from review * test availability predicate, add box to please compiler * add changes to guide Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> Co-authored-by: Bernhard Schuster <bernhard@ahoi.io>
88 lines
4.4 KiB
TOML
88 lines
4.4 KiB
TOML
[package]
|
|
name = "polkadot-runtime-parachains"
|
|
version = "0.8.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
bitvec = { version = "0.17.4", default-features = false, features = ["alloc"] }
|
|
codec = { package = "parity-scale-codec", version = "1.3.0", default-features = false, features = ["derive"] }
|
|
log = { version = "0.3.9", optional = true }
|
|
rustc-hex = { version = "2.0.1", default-features = false }
|
|
serde = { version = "1.0.102", default-features = false }
|
|
serde_derive = { version = "1.0.102", optional = true }
|
|
|
|
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 }
|
|
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 }
|
|
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
|
|
authorship = { package = "pallet-authorship", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
balances = { package = "pallet-balances", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
session = { package = "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 }
|
|
staking = { package = "pallet-staking", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
system = { package = "frame-system", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
timestamp = { package = "pallet-timestamp", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
vesting = { package = "pallet-vesting", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
offences = { package = "pallet-offences", 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 }
|
|
|
|
primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false }
|
|
libsecp256k1 = { version = "0.3.2", default-features = false, optional = true }
|
|
|
|
rand = { version = "0.7", default-features = false }
|
|
rand_chacha = { version = "0.2.2", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
hex-literal = "0.2.1"
|
|
keyring = { package = "sp-keyring", git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-trie = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
babe = { package = "pallet-babe", git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-application-crypto = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
randomness-collective-flip = { package = "pallet-randomness-collective-flip", git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
pallet-staking-reward-curve = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
treasury = { package = "pallet-treasury", git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
trie-db = "0.20.0"
|
|
serde_json = "1.0.41"
|
|
libsecp256k1 = "0.3.2"
|
|
|
|
[features]
|
|
default = ["std"]
|
|
no_std = []
|
|
std = [
|
|
"bitvec/std",
|
|
"codec/std",
|
|
"log",
|
|
"rustc-hex/std",
|
|
"serde_derive",
|
|
"serde/std",
|
|
"primitives/std",
|
|
"inherents/std",
|
|
"sp-core/std",
|
|
"sp-api/std",
|
|
"sp-std/std",
|
|
"sp-io/std",
|
|
"frame-support/std",
|
|
"authorship/std",
|
|
"balances/std",
|
|
"sp-runtime/std",
|
|
"sp-session/std",
|
|
"sp-staking/std",
|
|
"session/std",
|
|
"staking/std",
|
|
"system/std",
|
|
"timestamp/std",
|
|
"vesting/std",
|
|
]
|
|
runtime-benchmarks = [
|
|
"libsecp256k1/hmac",
|
|
"frame-benchmarking",
|
|
"frame-support/runtime-benchmarks",
|
|
"system/runtime-benchmarks",
|
|
]
|