mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-09 14:07:58 +00:00
1aa6a4aba4
* move things around, add filter methods * validator keys, modify availability bitfields according to disputes * simplify, keep the filter -> sanitize generic for both usecases * minor * assure tests still work, reduce changeset * integration * start entropy passing * fixins * compile, 1 failing test * filter with coverage * fixins * Update runtime/parachains/src/paras_inherent.rs Co-authored-by: Robert Habermeier <rphmeier@gmail.com> * slip of the pen * improve test cases * misc * fix * fixins * test avoid extra into() calls in assert_noop! * chores * ff * test fixup superfluous into call * chore: pfmt * improve apply_block_weight_limit to try to maximize the number of sufficiently backed blocks and add extra bitfields in a round-robin fashion * new code treats the lack of backed candidates as ok * Use vrf based entropy * fixup vrf random * add warn * slip of the pen * fixup * assure ordering * rethink apply_weights * mock * use a closure as predicate check * extract and use DisputedBitfield * chore: simplify * remove stray dbg * chore: fmt * address feedback * fix test, halfway there * stage1 * dbg stuff * make group selection align * fix session index * fix wrongly returned candidates * cleanup * chore fmt * fix ensure check * make good case test work * more tests for bitfields * create sanitize_backed_candidates * fixup tests * update guide * add check referenced in the guide * improve weights code * fmt * fixins * Update roadmap/implementers-guide/src/runtime/inclusion.md Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com> * compiling + address review * add comments * fix weight calc * address review comments and test failure * fix * fix: condition * Fix random_sel function * Fix overlength block check * Zeke + Ladi commit for disputes filtering + integration test builder + runtime benchmarks + integration tests * Add benchmarks for code upgrades * Code upgrade bench; Feature gate TestWeightInfo * Try and make CI happier * Feature gate enter test to not(benchmarks) * Make sure no unused imports/fn * refactor, re-use, the beginning * Fix issue with frame benchmarking dep compilation * More precise feature gating for some derives * integrate piece-wise * foo * fixins * chore fmt * fixins * rename const generic * Update runtime/parachains/src/paras_inherent.rs Co-authored-by: Zeke Mostov <z.mostov@gmail.com> * Fix compilation * limit to test * remove unused spam slots * spellcheck * remove a tick, fix a typo * Add Code upgrade weights * comment improvements + >= Co-authored-by: Zeke Mostov <z.mostov@gmail.com> * remove another tick * Update runtime/parachains/src/paras_inherent/benchmarking.rs Co-authored-by: Zeke Mostov <z.mostov@gmail.com> * saturating fixins + some spaces * fix * benchmarking - preliminary results * Add training wheels * Refactor some early exit logic for enter * Gracefully handle filtering bitfields & candidates (#4280) This updates the logic for sanitize_bitfields and sanitize_backed_candidates to never error when there is an issue, but instead to simply skip the problematic items. * Refactor inherent data weight limiting logic (#4287) * Apply suggestions from code review * Update runtime/parachains/src/builder.rs Co-authored-by: Zeke Mostov <z.mostov@gmail.com> * Update runtime/parachains/src/builder.rs * Update runtime/parachains/src/paras_inherent.rs * final pass * Run cargo +nightly-2021-10-29 fmt * Update implementors guide with `sanitize_*` & `enter` (#4294) * Make spell check happier * Make wasm runtimes compile with benchmarks enabled (#4303) * comment stuff out, use old toml * Seems to be working? * Remove feature gating from builder * Remove commented out stuff * Remove generic from digest * Update weight files for runtime Co-authored-by: Robert Habermeier <rphmeier@gmail.com> Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com> Co-authored-by: Lldenaurois <Ljdenaurois@gmail.com> Co-authored-by: Zeke Mostov <z.mostov@gmail.com> Co-authored-by: Bastian Köcher <info@kchr.de>
206 lines
10 KiB
TOML
206 lines
10 KiB
TOML
[package]
|
|
name = "rococo-runtime"
|
|
version = "0.9.13"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
build = "build.rs"
|
|
|
|
[dependencies]
|
|
parity-scale-codec = { version = "2.3.1", default-features = false, features = ["derive", "max-encoded-len"] }
|
|
scale-info = { version = "1.0", default-features = false, features = ["derive"] }
|
|
serde = { version = "1.0.130", default-features = false }
|
|
serde_derive = { version = "1.0.117", optional = true }
|
|
smallvec = "1.6.1"
|
|
log = { version = "0.4.14", default-features = false }
|
|
|
|
frame-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-api = { 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-std = { package = "sp-std", 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 }
|
|
sp-version = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
|
|
tx-pool-api = { package = "sp-transaction-pool", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
block-builder-api = { package = "sp-block-builder", 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 }
|
|
offchain-primitives = { package = "sp-offchain", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
|
|
babe-primitives = { package = "sp-consensus-babe", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
beefy-primitives = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
frame-executive = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-authority-discovery = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-authorship = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-babe = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-beefy = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-beefy-mmr = { 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-collective = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-grandpa = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-im-online = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-indices = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-membership = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-mmr = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-mmr-primitives = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-multisig = { 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-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-session = { 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-sudo = { 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-offences = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-proxy = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-utility = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
authority-discovery-primitives = { package = "sp-authority-discovery", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
|
|
frame-system = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
|
|
runtime-common = { package = "polkadot-runtime-common", path = "../common", default-features = false }
|
|
primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false }
|
|
polkadot-parachain = { path = "../../parachain", default-features = false }
|
|
runtime-parachains = { package = "polkadot-runtime-parachains", path = "../parachains", default-features = false }
|
|
|
|
xcm = { package = "xcm", path = "../../xcm", default-features = false }
|
|
xcm-executor = { package = "xcm-executor", path = "../../xcm/xcm-executor", default-features = false }
|
|
xcm-builder = { package = "xcm-builder", path = "../../xcm/xcm-builder", default-features = false }
|
|
pallet-xcm = { path = "../../xcm/pallet-xcm", default-features = false }
|
|
|
|
# Bridge Dependencies
|
|
bp-messages = { path = "../../bridges/primitives/messages", default-features = false }
|
|
bp-rococo = { path = "../../bridges/primitives/chain-rococo", default-features = false }
|
|
bp-runtime = { path = "../../bridges/primitives/runtime", default-features = false }
|
|
bp-wococo = { path = "../../bridges/primitives/chain-wococo", default-features = false }
|
|
bridge-runtime-common = { path = "../../bridges/bin/runtime-common", default-features = false }
|
|
pallet-bridge-dispatch = { path = "../../bridges/modules/dispatch", default-features = false }
|
|
pallet-bridge-grandpa = { path = "../../bridges/modules/grandpa", default-features = false }
|
|
pallet-bridge-messages = { path = "../../bridges/modules/messages", default-features = false }
|
|
|
|
# Benchmarking Dependencies
|
|
frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
|
|
hex-literal = { version = "0.3.4", optional = true }
|
|
|
|
[build-dependencies]
|
|
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
|
|
[features]
|
|
default = ["std"]
|
|
no_std = []
|
|
std = [
|
|
"authority-discovery-primitives/std",
|
|
"babe-primitives/std",
|
|
"bp-messages/std",
|
|
"bp-rococo/std",
|
|
"bp-runtime/std",
|
|
"bp-wococo/std",
|
|
"bridge-runtime-common/std",
|
|
"parity-scale-codec/std",
|
|
"scale-info/std",
|
|
"frame-executive/std",
|
|
"pallet-authority-discovery/std",
|
|
"pallet-authorship/std",
|
|
"pallet-babe/std",
|
|
"beefy-primitives/std",
|
|
"pallet-balances/std",
|
|
"pallet-bridge-dispatch/std",
|
|
"pallet-bridge-grandpa/std",
|
|
"pallet-bridge-messages/std",
|
|
"pallet-collective/std",
|
|
"pallet-beefy/std",
|
|
"pallet-beefy-mmr/std",
|
|
"pallet-grandpa/std",
|
|
"pallet-sudo/std",
|
|
"pallet-membership/std",
|
|
"pallet-mmr/std",
|
|
"pallet-mmr-primitives/std",
|
|
"pallet-indices/std",
|
|
"pallet-im-online/std",
|
|
"pallet-session/std",
|
|
"pallet-staking/std",
|
|
"pallet-offences/std",
|
|
"pallet-proxy/std",
|
|
"pallet-timestamp/std",
|
|
"pallet-transaction-payment/std",
|
|
"pallet-transaction-payment-rpc-runtime-api/std",
|
|
"inherents/std",
|
|
"frame-support/std",
|
|
"polkadot-parachain/std",
|
|
"primitives/std",
|
|
"runtime-common/std",
|
|
"runtime-parachains/std",
|
|
"sp-api/std",
|
|
"sp-core/std",
|
|
"sp-io/std",
|
|
"sp-runtime/std",
|
|
"sp-session/std",
|
|
"sp-staking/std",
|
|
"sp-std/std",
|
|
"frame-system/std",
|
|
"frame-system-rpc-runtime-api/std",
|
|
"offchain-primitives/std",
|
|
"block-builder-api/std",
|
|
"tx-pool-api/std",
|
|
"sp-version/std",
|
|
"serde_derive",
|
|
"serde/std",
|
|
"xcm/std",
|
|
"xcm-executor/std",
|
|
"xcm-builder/std",
|
|
"pallet-xcm/std",
|
|
"log/std",
|
|
"pallet-multisig/std",
|
|
]
|
|
# When enabled, the runtime API will not be build.
|
|
#
|
|
# This is required by Cumulus to access certain types of the
|
|
# runtime without clashing with the runtime API exported functions
|
|
# in WASM.
|
|
disable-runtime-api = []
|
|
runtime-benchmarks = [
|
|
"runtime-common/runtime-benchmarks",
|
|
"frame-support/runtime-benchmarks",
|
|
"frame-system/runtime-benchmarks",
|
|
"sp-runtime/runtime-benchmarks",
|
|
"pallet-babe/runtime-benchmarks",
|
|
"pallet-balances/runtime-benchmarks",
|
|
"pallet-collective/runtime-benchmarks",
|
|
"pallet-grandpa/runtime-benchmarks",
|
|
"pallet-im-online/runtime-benchmarks",
|
|
"pallet-indices/runtime-benchmarks",
|
|
"pallet-proxy/runtime-benchmarks",
|
|
"pallet-staking/runtime-benchmarks",
|
|
"pallet-timestamp/runtime-benchmarks",
|
|
"pallet-xcm/runtime-benchmarks",
|
|
"xcm-builder/runtime-benchmarks",
|
|
"pallet-multisig/runtime-benchmarks",
|
|
"frame-benchmarking",
|
|
"hex-literal",
|
|
"runtime-parachains/runtime-benchmarks",
|
|
]
|
|
try-runtime = [
|
|
"frame-executive/try-runtime",
|
|
"frame-support/try-runtime",
|
|
"frame-system/try-runtime",
|
|
"pallet-authority-discovery/try-runtime",
|
|
"pallet-authorship/try-runtime",
|
|
"pallet-babe/try-runtime",
|
|
"pallet-balances/try-runtime",
|
|
"pallet-collective/try-runtime",
|
|
"pallet-grandpa/try-runtime",
|
|
"pallet-sudo/try-runtime",
|
|
"pallet-indices/try-runtime",
|
|
"pallet-im-online/try-runtime",
|
|
"pallet-membership/try-runtime",
|
|
"pallet-session/try-runtime",
|
|
"pallet-proxy/try-runtime",
|
|
"pallet-staking/try-runtime",
|
|
"pallet-offences/try-runtime",
|
|
"pallet-timestamp/try-runtime",
|
|
"pallet-transaction-payment/try-runtime",
|
|
"runtime-common/try-runtime",
|
|
"pallet-multisig/try-runtime",
|
|
]
|