From 52d351c2564099a7d65342bc80435a4482b0f605 Mon Sep 17 00:00:00 2001 From: Ricardo Rius <9488369+riusricardo@users.noreply.github.com> Date: Tue, 26 Jan 2021 08:16:44 -0600 Subject: [PATCH] Refact proposal pallet (#2322) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Refact proposal pallet * Update runtime/rococo/src/propose_parachain.rs Co-authored-by: Andronik Ordian * Fix * Apply suggestions from code review Co-authored-by: Andronik Ordian * AHH Co-authored-by: Bastian Köcher Co-authored-by: Andronik Ordian Co-authored-by: Bastian Köcher --- polkadot/Cargo.lock | 278 +++++++++--------- polkadot/runtime/rococo/src/lib.rs | 2 +- .../runtime/rococo/src/propose_parachain.rs | 47 ++- 3 files changed, 177 insertions(+), 150 deletions(-) diff --git a/polkadot/Cargo.lock b/polkadot/Cargo.lock index a46bec3d30..bdf9a93dbc 100644 --- a/polkadot/Cargo.lock +++ b/polkadot/Cargo.lock @@ -1475,7 +1475,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "parity-scale-codec", ] @@ -1493,7 +1493,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-support", "frame-system", @@ -1511,7 +1511,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "Inflector", "chrono", @@ -1534,7 +1534,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-support", "frame-system", @@ -1550,7 +1550,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "12.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "parity-scale-codec", "serde", @@ -1561,7 +1561,7 @@ dependencies = [ [[package]] name = "frame-support" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "bitflags", "frame-metadata", @@ -1586,7 +1586,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -1598,7 +1598,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -1610,7 +1610,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "proc-macro2 1.0.24", "quote 1.0.7", @@ -1620,7 +1620,7 @@ dependencies = [ [[package]] name = "frame-system" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-support", "impl-trait-for-tuples 0.2.0", @@ -1636,7 +1636,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -1650,7 +1650,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "parity-scale-codec", "sp-api", @@ -3897,7 +3897,7 @@ checksum = "13370dae44474229701bb69b90b4f4dca6404cb0357a2d50d635f1171dc3aa7b" [[package]] name = "pallet-authority-discovery" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-support", "frame-system", @@ -3913,7 +3913,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-support", "frame-system", @@ -3928,7 +3928,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -3953,7 +3953,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -3967,7 +3967,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -3982,7 +3982,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -3998,7 +3998,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -4013,7 +4013,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -4028,7 +4028,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -4049,7 +4049,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4065,7 +4065,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -4085,7 +4085,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -4102,7 +4102,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-support", "frame-system", @@ -4116,7 +4116,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -4132,7 +4132,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-support", "frame-system", @@ -4146,7 +4146,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-support", "frame-system", @@ -4161,7 +4161,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -4182,7 +4182,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -4198,7 +4198,7 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-support", "frame-system", @@ -4211,7 +4211,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "enumflags2", "frame-support", @@ -4226,7 +4226,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -4241,7 +4241,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-support", "frame-system", @@ -4261,7 +4261,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -4277,7 +4277,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-support", "frame-system", @@ -4291,7 +4291,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -4313,7 +4313,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.24", @@ -4324,7 +4324,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-support", "frame-system", @@ -4338,7 +4338,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -4356,7 +4356,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -4371,7 +4371,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-support", "frame-system", @@ -4387,7 +4387,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -4404,7 +4404,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -4415,7 +4415,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -4431,7 +4431,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-benchmarking", "frame-support", @@ -4447,7 +4447,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "enumflags2", "frame-benchmarking", @@ -6769,7 +6769,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "async-trait", "derive_more", @@ -6797,7 +6797,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -6820,7 +6820,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -6837,7 +6837,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "impl-trait-for-tuples 0.2.0", "parity-scale-codec", @@ -6858,7 +6858,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.24", @@ -6869,7 +6869,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "chrono", "fdlimit", @@ -6907,7 +6907,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "derive_more", "fnv", @@ -6941,7 +6941,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "blake2-rfc", "hash-db", @@ -6971,7 +6971,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "sc-client-api", "sp-blockchain", @@ -6982,7 +6982,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "derive_more", "fork-tree", @@ -7027,7 +7027,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "derive_more", "futures 0.3.12", @@ -7051,7 +7051,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "fork-tree", "parity-scale-codec", @@ -7064,7 +7064,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -7090,7 +7090,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "log", "sc-client-api", @@ -7104,7 +7104,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "derive_more", "lazy_static", @@ -7133,7 +7133,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "derive_more", "parity-scale-codec", @@ -7149,7 +7149,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "log", "parity-scale-codec", @@ -7164,7 +7164,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "log", "parity-scale-codec", @@ -7182,7 +7182,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "derive_more", "finality-grandpa", @@ -7220,7 +7220,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "derive_more", "finality-grandpa", @@ -7244,7 +7244,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-warp-sync" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "derive_more", "futures 0.3.12", @@ -7264,7 +7264,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "ansi_term 0.12.1", "futures 0.3.12", @@ -7282,7 +7282,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "async-trait", "derive_more", @@ -7302,7 +7302,7 @@ dependencies = [ [[package]] name = "sc-light" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "hash-db", "lazy_static", @@ -7321,7 +7321,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "async-std", "async-trait", @@ -7373,7 +7373,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -7389,7 +7389,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "bytes 0.5.6", "fnv", @@ -7416,7 +7416,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "futures 0.3.12", "libp2p", @@ -7429,7 +7429,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -7438,7 +7438,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "futures 0.3.12", "hash-db", @@ -7472,7 +7472,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "derive_more", "futures 0.3.12", @@ -7496,7 +7496,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "futures 0.1.29", "jsonrpc-core", @@ -7514,7 +7514,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "directories 3.0.1", "exit-future", @@ -7577,7 +7577,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "log", "parity-scale-codec", @@ -7592,7 +7592,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -7612,7 +7612,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "chrono", "futures 0.3.12", @@ -7634,7 +7634,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "ansi_term 0.12.1", "atty", @@ -7662,7 +7662,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.24", @@ -7673,7 +7673,7 @@ dependencies = [ [[package]] name = "sc-transaction-graph" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "derive_more", "futures 0.3.12", @@ -7695,7 +7695,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "futures 0.3.12", "futures-diagnose", @@ -8117,7 +8117,7 @@ dependencies = [ [[package]] name = "sp-allocator" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "log", "sp-core", @@ -8129,7 +8129,7 @@ dependencies = [ [[package]] name = "sp-api" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "hash-db", "parity-scale-codec", @@ -8145,7 +8145,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "blake2-rfc", "proc-macro-crate", @@ -8157,7 +8157,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "parity-scale-codec", "serde", @@ -8169,7 +8169,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "integer-sqrt", "num-traits 0.2.14", @@ -8182,7 +8182,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "parity-scale-codec", "sp-api", @@ -8194,7 +8194,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -8205,7 +8205,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "parity-scale-codec", "sp-api", @@ -8217,7 +8217,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "futures 0.3.12", "log", @@ -8235,7 +8235,7 @@ dependencies = [ [[package]] name = "sp-chain-spec" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "serde", "serde_json", @@ -8244,7 +8244,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -8270,7 +8270,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "merlin", "parity-scale-codec", @@ -8290,7 +8290,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -8299,7 +8299,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -8311,7 +8311,7 @@ dependencies = [ [[package]] name = "sp-core" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "base58", "blake2-rfc", @@ -8355,7 +8355,7 @@ dependencies = [ [[package]] name = "sp-database" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "kvdb", "parking_lot 0.11.1", @@ -8364,7 +8364,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "proc-macro2 1.0.24", "quote 1.0.7", @@ -8374,7 +8374,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "environmental", "parity-scale-codec", @@ -8385,7 +8385,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "finality-grandpa", "log", @@ -8402,7 +8402,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "parity-scale-codec", "parking_lot 0.11.1", @@ -8414,7 +8414,7 @@ dependencies = [ [[package]] name = "sp-io" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "futures 0.3.12", "hash-db", @@ -8438,7 +8438,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "lazy_static", "sp-core", @@ -8449,7 +8449,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "async-trait", "derive_more", @@ -8466,7 +8466,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "parity-scale-codec", "serde", @@ -8479,7 +8479,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-compact" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.24", @@ -8490,7 +8490,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "sp-api", "sp-core", @@ -8500,7 +8500,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "backtrace", ] @@ -8508,7 +8508,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "serde", "sp-core", @@ -8517,7 +8517,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "either", "hash256-std-hasher", @@ -8538,7 +8538,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "impl-trait-for-tuples 0.2.0", "parity-scale-codec", @@ -8555,7 +8555,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "Inflector", "proc-macro-crate", @@ -8567,7 +8567,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "serde", "serde_json", @@ -8576,7 +8576,7 @@ dependencies = [ [[package]] name = "sp-session" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "parity-scale-codec", "sp-api", @@ -8589,7 +8589,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -8599,7 +8599,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "hash-db", "log", @@ -8621,12 +8621,12 @@ dependencies = [ [[package]] name = "sp-std" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" [[package]] name = "sp-storage" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "impl-serde", "parity-scale-codec", @@ -8639,7 +8639,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "log", "sp-core", @@ -8652,7 +8652,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "impl-trait-for-tuples 0.2.0", "parity-scale-codec", @@ -8666,7 +8666,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "log", "parity-scale-codec", @@ -8679,7 +8679,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "derive_more", "futures 0.3.12", @@ -8695,7 +8695,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "hash-db", "memory-db", @@ -8709,7 +8709,7 @@ dependencies = [ [[package]] name = "sp-utils" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "futures 0.3.12", "futures-core", @@ -8721,7 +8721,7 @@ dependencies = [ [[package]] name = "sp-version" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "impl-serde", "parity-scale-codec", @@ -8733,7 +8733,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "impl-trait-for-tuples 0.2.0", "parity-scale-codec", @@ -8886,7 +8886,7 @@ dependencies = [ [[package]] name = "substrate-browser-utils" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "chrono", "console_error_panic_hook", @@ -8913,7 +8913,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "platforms", ] @@ -8921,7 +8921,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.12", @@ -8944,7 +8944,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "async-std", "derive_more", @@ -8958,7 +8958,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "futures 0.1.29", "futures 0.3.12", @@ -8985,7 +8985,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "futures 0.3.12", "substrate-test-utils-derive", @@ -8995,7 +8995,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#bd5c9a646896b11061a6ff92af3c673958e238eb" +source = "git+https://github.com/paritytech/substrate#13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6" dependencies = [ "proc-macro-crate", "quote 1.0.7", diff --git a/polkadot/runtime/rococo/src/lib.rs b/polkadot/runtime/rococo/src/lib.rs index d63abb1a26..78bbb7f314 100644 --- a/polkadot/runtime/rococo/src/lib.rs +++ b/polkadot/runtime/rococo/src/lib.rs @@ -204,7 +204,7 @@ construct_runtime! { Sudo: pallet_sudo::{Module, Call, Storage, Event, Config}, // Propose parachain pallet. - ProposeParachain: propose_parachain::{Module, Call, Storage, Event}, + ProposeParachain: propose_parachain::{Module, Call, Storage, Event}, } } diff --git a/polkadot/runtime/rococo/src/propose_parachain.rs b/polkadot/runtime/rococo/src/propose_parachain.rs index 3af1d89801..b4ac09beb2 100644 --- a/polkadot/runtime/rococo/src/propose_parachain.rs +++ b/polkadot/runtime/rococo/src/propose_parachain.rs @@ -61,7 +61,7 @@ pub trait Config: pallet_session::Config + runtime_parachains::hrmp::Config { /// The overreaching event type. - type Event: From + Into<::Event>; + type Event: From> + Into<::Event>; /// The maximum name length of a parachain. type MaxNameLength: Get; @@ -78,8 +78,6 @@ pub trait Config: pallet_session::Config struct Proposal { /// The account that proposed this parachain. proposer: AccountId, - /// The validation WASM code of the parachain. - validation_code: ValidationCode, /// The genesis head state of the parachain. genesis_head: HeadData, /// The validators for the relay chain provided by the parachain. @@ -100,13 +98,15 @@ struct RegisteredParachainInfo { } decl_event! { - pub enum Event { + pub enum Event where ValidatorId = ::ValidatorId { /// A parachain was proposed for registration. ParachainProposed(Vec, ParaId), /// A parachain was approved and is scheduled for being activated. ParachainApproved(ParaId), /// A parachain was registered and is now running. ParachainRegistered(ParaId), + /// New validators were added to the set. + ValidatorsRegistered(Vec), } } @@ -141,6 +141,8 @@ decl_storage! { trait Store for Module as ParachainProposer { /// All the proposals. Proposals: map hasher(twox_64_concat) ParaId => Option>>; + /// The validation WASM code of the parachain. + ParachainValidationCode: map hasher(twox_64_concat) ParaId => Option; /// Proposals that are approved. ApprovedProposals: Vec; /// Proposals that are scheduled at for a fixed session to be applied. @@ -149,6 +151,8 @@ decl_storage! { ParachainInfo: map hasher(twox_64_concat) ParaId => Option>; /// Validators that should be retired, because their Parachain was deregistered. ValidatorsToRetire: Vec; + /// Validators that should be added. + ValidatorsToAdd: Vec; } } @@ -201,10 +205,12 @@ decl_module! { ensure!(validation_code.0.starts_with(runtime_common::WASM_MAGIC), Error::::DefinitelyNotWasm); let active_validators = Session::::validators(); + let validators_to_retire = ValidatorsToRetire::::get(); ensure!( - validators.iter().all(|v| !active_validators.contains(v)), + validators.iter().all(|v| !active_validators.contains(v) || validators_to_retire.contains(v)), Error::::ValidatorAlreadyRegistered, ); + Proposals::::iter().try_for_each(|(_, prop)| if validators.iter().all(|v| !prop.validators.contains(v)) { Ok(()) @@ -220,13 +226,13 @@ decl_module! { proposer: who, validators: validators.into(), genesis_head, - validation_code, balance, }; Proposals::::insert(para_id, proposal); + ParachainValidationCode::insert(para_id, validation_code); - Self::deposit_event(Event::ParachainProposed(name, para_id)); + Self::deposit_event(RawEvent::ParachainProposed(name, para_id)); } /// Approve a parachain proposal. @@ -243,7 +249,7 @@ decl_module! { ApprovedProposals::append(para_id); - Self::deposit_event(Event::ParachainApproved(para_id)); + Self::deposit_event(RawEvent::ParachainApproved(para_id)); } /// Cancel a parachain proposal. @@ -265,6 +271,7 @@ decl_module! { } Proposals::::remove(¶_id); + ParachainValidationCode::remove(¶_id); pallet_balances::Module::::unreserve(&proposal.proposer, T::ProposeDeposit::get()); } @@ -289,6 +296,19 @@ decl_module! { pallet_balances::Module::::unreserve(&info.proposer, T::ProposeDeposit::get()); } + + /// Add new validators to the set. + #[weight = 100_000] + fn register_validators( + origin, + validators: Vec, + ) { + T::PriviledgedOrigin::ensure_origin(origin)?; + + validators.clone().into_iter().for_each(|v| ValidatorsToAdd::::append(v)); + + Self::deposit_event(RawEvent::ValidatorsRegistered(validators)); + } } } @@ -327,9 +347,10 @@ impl pallet_session::SessionManager for Module { for (id, proposal) in proposals.iter().filter_map(|id| Proposals::::get(&id).map(|p| (id, p))) { ScheduledProposals::append(new_index, id); + let validation_code = ParachainValidationCode::get(&id)?; let genesis = ParaGenesisArgs { genesis_head: proposal.genesis_head, - validation_code: proposal.validation_code, + validation_code, parachain: true, }; @@ -338,6 +359,12 @@ impl pallet_session::SessionManager for Module { validators.extend(proposal.validators); } + ValidatorsToAdd::::take().into_iter().for_each(|v| { + if !validators.contains(&v) { + validators.push(v); + } + }); + Some(validators) } @@ -348,7 +375,7 @@ impl pallet_session::SessionManager for Module { // Register all parachains that are allowed to start with the new session. for (id, proposal) in proposals.iter().filter_map(|id| Proposals::::take(&id).map(|p| (id, p))) { - Self::deposit_event(Event::ParachainRegistered(*id)); + Self::deposit_event(RawEvent::ParachainRegistered(*id)); // Add some funds to the Parachain let _ = pallet_balances::Module::::deposit_creating(&id.into_account(), proposal.balance);