From c6517ba76b1c67d2f48a30d2e18d595f27ddfc2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Tue, 31 Mar 2020 14:09:36 +0200 Subject: [PATCH] Companion pr for substrate#5448 (#957) * Companion pr for substrate#5448 * Update Substrate reference --- Cargo.lock | 240 +++++++++++++++++----------------- network/src/protocol/tests.rs | 202 ++++++---------------------- 2 files changed, 158 insertions(+), 284 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 28276ad5b1df..192fdb53ed43 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1284,7 +1284,7 @@ checksum = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3" [[package]] name = "fork-tree" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "parity-scale-codec", ] @@ -1292,7 +1292,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -1308,7 +1308,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-benchmarking", "parity-scale-codec", @@ -1327,7 +1327,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -1340,7 +1340,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "11.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "parity-scale-codec", "serde", @@ -1351,7 +1351,7 @@ dependencies = [ [[package]] name = "frame-support" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "bitmask", "frame-metadata", @@ -1375,7 +1375,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support-procedural-tools", "proc-macro2 1.0.9", @@ -1386,7 +1386,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -1398,7 +1398,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "proc-macro2 1.0.9", "quote 1.0.3", @@ -1408,7 +1408,7 @@ dependencies = [ [[package]] name = "frame-system" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -1424,7 +1424,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "parity-scale-codec", "sp-api", @@ -3373,7 +3373,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3391,7 +3391,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3408,7 +3408,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3429,7 +3429,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-benchmarking", "frame-support", @@ -3444,7 +3444,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3459,7 +3459,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-benchmarking", "frame-support", @@ -3474,7 +3474,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3487,7 +3487,7 @@ dependencies = [ [[package]] name = "pallet-finality-tracker" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3503,7 +3503,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3521,7 +3521,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "enumflags2", "frame-benchmarking", @@ -3537,7 +3537,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3556,7 +3556,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3572,7 +3572,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3586,7 +3586,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3600,7 +3600,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3615,7 +3615,7 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3628,7 +3628,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "enumflags2", "frame-support", @@ -3643,7 +3643,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3661,7 +3661,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3676,7 +3676,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3697,7 +3697,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.9", @@ -3708,7 +3708,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3722,7 +3722,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-benchmarking", "frame-support", @@ -3739,7 +3739,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3752,7 +3752,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -3770,7 +3770,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "parity-scale-codec", @@ -3783,7 +3783,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3797,7 +3797,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-support", "frame-system", @@ -3812,7 +3812,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "enumflags2", "frame-support", @@ -5285,7 +5285,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "bytes 0.5.4", "derive_more 0.99.3", @@ -5312,7 +5312,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -5328,7 +5328,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "impl-trait-for-tuples", "sc-chain-spec-derive", @@ -5343,7 +5343,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.9", @@ -5354,7 +5354,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "ansi_term 0.12.1", "app_dirs", @@ -5394,7 +5394,7 @@ dependencies = [ [[package]] name = "sc-client" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "derive_more 0.99.3", "fnv", @@ -5428,7 +5428,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "derive_more 0.99.3", "fnv", @@ -5460,7 +5460,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "hash-db", "kvdb", @@ -5488,7 +5488,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "derive_more 0.99.3", "fork-tree", @@ -5530,7 +5530,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "fork-tree", "parity-scale-codec", @@ -5543,7 +5543,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "futures 0.3.4", "futures-timer 3.0.2", @@ -5564,7 +5564,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "log 0.4.8", "sc-client-api", @@ -5578,7 +5578,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "derive_more 0.99.3", "lazy_static", @@ -5605,7 +5605,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "derive_more 0.99.3", "log 0.4.8", @@ -5621,7 +5621,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "log 0.4.8", "parity-scale-codec", @@ -5637,7 +5637,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "log 0.4.8", "parity-scale-codec", @@ -5654,7 +5654,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "assert_matches", "finality-grandpa", @@ -5689,7 +5689,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "ansi_term 0.12.1", "futures 0.3.4", @@ -5706,7 +5706,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "derive_more 0.99.3", "hex", @@ -5721,7 +5721,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "bitflags", "bytes 0.5.4", @@ -5772,7 +5772,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "futures 0.3.4", "futures-timer 3.0.2", @@ -5787,7 +5787,7 @@ dependencies = [ [[package]] name = "sc-network-test" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "env_logger 0.7.1", "futures 0.3.4", @@ -5813,7 +5813,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "bytes 0.5.4", "fnv", @@ -5839,7 +5839,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "futures 0.3.4", "libp2p", @@ -5851,7 +5851,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "futures 0.3.4", "hash-db", @@ -5882,7 +5882,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "derive_more 0.99.3", "futures 0.3.4", @@ -5905,7 +5905,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "jsonrpc-core", "jsonrpc-http-server", @@ -5920,7 +5920,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "derive_more 0.99.3", "exit-future", @@ -5969,7 +5969,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "log 0.4.8", "parity-scale-codec", @@ -5983,7 +5983,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "bytes 0.5.4", "futures 0.3.4", @@ -6005,7 +6005,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "erased-serde", "log 0.4.8", @@ -6020,7 +6020,7 @@ dependencies = [ [[package]] name = "sc-transaction-graph" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "derive_more 0.99.3", "futures 0.3.4", @@ -6039,7 +6039,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "derive_more 0.99.3", "futures 0.3.4", @@ -6420,7 +6420,7 @@ dependencies = [ [[package]] name = "sp-allocator" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "derive_more 0.99.3", "log 0.4.8", @@ -6432,7 +6432,7 @@ dependencies = [ [[package]] name = "sp-api" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "hash-db", "parity-scale-codec", @@ -6447,7 +6447,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "blake2-rfc", "proc-macro-crate", @@ -6459,7 +6459,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "parity-scale-codec", "serde", @@ -6471,7 +6471,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "integer-sqrt", "num-traits 0.2.11", @@ -6484,7 +6484,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "parity-scale-codec", "sp-api", @@ -6496,7 +6496,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -6507,7 +6507,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "parity-scale-codec", "sp-api", @@ -6519,7 +6519,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "derive_more 0.99.3", "log 0.4.8", @@ -6535,7 +6535,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "derive_more 0.99.3", "futures 0.3.4", @@ -6557,7 +6557,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "parity-scale-codec", "sp-api", @@ -6571,7 +6571,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "parity-scale-codec", "sp-api", @@ -6587,7 +6587,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -6599,7 +6599,7 @@ dependencies = [ [[package]] name = "sp-core" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "base58", "blake2-rfc", @@ -6639,7 +6639,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "proc-macro2 1.0.9", "quote 1.0.3", @@ -6649,7 +6649,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "environmental", "sp-std", @@ -6659,7 +6659,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "parity-scale-codec", "serde", @@ -6672,7 +6672,7 @@ dependencies = [ [[package]] name = "sp-finality-tracker" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -6682,7 +6682,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "derive_more 0.99.3", "parity-scale-codec", @@ -6694,7 +6694,7 @@ dependencies = [ [[package]] name = "sp-io" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "hash-db", "libsecp256k1", @@ -6712,7 +6712,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "lazy_static", "sp-core", @@ -6723,7 +6723,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "sp-api", "sp-runtime", @@ -6732,7 +6732,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "backtrace", "log 0.4.8", @@ -6741,7 +6741,7 @@ dependencies = [ [[package]] name = "sp-phragmen" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "parity-scale-codec", "serde", @@ -6753,7 +6753,7 @@ dependencies = [ [[package]] name = "sp-phragmen-compact" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.9", @@ -6764,7 +6764,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "serde", "sp-core", @@ -6773,7 +6773,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "hash256-std-hasher", "impl-trait-for-tuples", @@ -6794,7 +6794,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "parity-scale-codec", "primitive-types", @@ -6808,7 +6808,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "Inflector", "proc-macro-crate", @@ -6820,7 +6820,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "serde", "serde_json", @@ -6829,7 +6829,7 @@ dependencies = [ [[package]] name = "sp-session" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "sp-api", "sp-core", @@ -6840,7 +6840,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -6850,7 +6850,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "hash-db", "log 0.4.8", @@ -6869,12 +6869,12 @@ dependencies = [ [[package]] name = "sp-std" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" [[package]] name = "sp-storage" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "impl-serde 0.2.3", "serde", @@ -6885,7 +6885,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -6899,7 +6899,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "derive_more 0.99.3", "futures 0.3.4", @@ -6913,7 +6913,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "hash-db", "memory-db", @@ -6927,7 +6927,7 @@ dependencies = [ [[package]] name = "sp-version" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "impl-serde 0.2.3", "parity-scale-codec", @@ -6939,7 +6939,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -7067,7 +7067,7 @@ dependencies = [ [[package]] name = "substrate-browser-utils" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "chrono", "clear_on_drop", @@ -7093,7 +7093,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "2.0.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.4", @@ -7114,7 +7114,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.8.0-alpha.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "async-std", "derive_more 0.99.3", @@ -7128,7 +7128,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "futures 0.3.4", "hash-db", @@ -7148,7 +7148,7 @@ dependencies = [ [[package]] name = "substrate-test-runtime" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "cfg-if", "frame-executive", @@ -7187,7 +7187,7 @@ dependencies = [ [[package]] name = "substrate-test-runtime-client" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" dependencies = [ "futures 0.3.4", "parity-scale-codec", @@ -7205,7 +7205,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder-runner" version = "1.0.5" -source = "git+https://github.com/paritytech/substrate#fa71ce9cb3b814ec4d72e5b5bcefcec6097392fa" +source = "git+https://github.com/paritytech/substrate#ea5ea420830f022f789ab1928c53a15b745878fc" [[package]] name = "substrate-wasm-builder-runner" diff --git a/network/src/protocol/tests.rs b/network/src/protocol/tests.rs index a114ccb37e32..e5ec237e4f36 100644 --- a/network/src/protocol/tests.rs +++ b/network/src/protocol/tests.rs @@ -16,7 +16,7 @@ use super::*; use parking_lot::Mutex; -use polkadot_primitives::{Block, Header, BlockId}; +use polkadot_primitives::Block; use polkadot_primitives::parachain::{ Id as ParaId, Chain, DutyRoster, ParachainHost, ValidatorId, Retriable, CollatorId, AbridgedCandidateReceipt, @@ -26,11 +26,9 @@ use polkadot_validation::SharedTable; use av_store::{Store as AvailabilityStore, ErasureNetworking}; use sc_network_gossip::TopicNotification; -use sp_blockchain::Result as ClientResult; -use sp_api::{ApiRef, Core, RuntimeVersion, StorageProof, ApiErrorExt, ApiExt, ProvideRuntimeApi}; -use sp_runtime::traits::{Block as BlockT, HashFor, NumberFor}; -use sp_state_machine::ChangesTrieState; -use sp_core::{crypto::Pair, NativeOrEncoded, ExecutionContext}; +use sp_api::{ApiRef, ProvideRuntimeApi}; +use sp_runtime::traits::Block as BlockT; +use sp_core::crypto::Pair; use sp_keyring::Sr25519Keyring; use futures::executor::LocalPool; @@ -112,19 +110,11 @@ impl crate::legacy::GossipService for MockGossip { } impl GossipOps for MockGossip { - fn new_local_leaf( - &self, - _validation_data: crate::legacy::gossip::MessageValidationData, - ) -> crate::legacy::gossip::NewLeafActions { + fn new_local_leaf(&self, _: crate::legacy::gossip::MessageValidationData) -> crate::legacy::gossip::NewLeafActions { crate::legacy::gossip::NewLeafActions::new() } - fn register_availability_store( - &self, - _store: av_store::Store, - ) { - - } + fn register_availability_store(&self, _store: av_store::Store) {} } #[derive(Default)] @@ -152,162 +142,46 @@ impl ProvideRuntimeApi for TestApi { } } -impl Core for RuntimeApi { - fn Core_version_runtime_api_impl( - &self, - _: &BlockId, - _: ExecutionContext, - _: Option<()>, - _: Vec, - ) -> ClientResult> { - unimplemented!("Not required for testing!") - } - - fn Core_execute_block_runtime_api_impl( - &self, - _: &BlockId, - _: ExecutionContext, - _: Option, - _: Vec, - ) -> ClientResult> { - unimplemented!("Not required for testing!") - } - - fn Core_initialize_block_runtime_api_impl( - &self, - _: &BlockId, - _: ExecutionContext, - _: Option<&Header>, - _: Vec, - ) -> ClientResult> { - unimplemented!("Not required for testing!") - } -} - -impl ApiErrorExt for RuntimeApi { - type Error = sp_blockchain::Error; -} - -impl ApiExt for RuntimeApi { - type StateBackend = sp_state_machine::InMemoryBackend>; - - fn map_api_result Result, R, E>( - &self, - _: F - ) -> Result { - unimplemented!("Not required for testing!") - } - - fn runtime_version_at(&self, _: &BlockId) -> ClientResult { - unimplemented!("Not required for testing!") - } - - fn record_proof(&mut self) { } - - fn extract_proof(&mut self) -> Option { - None - } - - fn into_storage_changes( - &self, - _: &Self::StateBackend, - _: Option<&ChangesTrieState, NumberFor>>, - _: ::Hash, - ) -> std::result::Result, String> - where Self: Sized - { - unimplemented!("Not required for testing!") - } -} +sp_api::mock_impl_runtime_apis! { + impl ParachainHost for RuntimeApi { + type Error = sp_blockchain::Error; -impl ParachainHost for RuntimeApi { - fn ParachainHost_validators_runtime_api_impl( - &self, - _at: &BlockId, - _: ExecutionContext, - _: Option<()>, - _: Vec, - ) -> ClientResult>> { - Ok(NativeOrEncoded::Native(self.data.lock().validators.clone())) - } + fn validators(&self) -> Vec { + self.data.lock().validators.clone() + } - fn ParachainHost_duty_roster_runtime_api_impl( - &self, - _at: &BlockId, - _: ExecutionContext, - _: Option<()>, - _: Vec, - ) -> ClientResult> { - - Ok(NativeOrEncoded::Native(DutyRoster { - validator_duty: self.data.lock().duties.clone(), - })) - } + fn duty_roster(&self) -> DutyRoster { + DutyRoster { + validator_duty: self.data.lock().duties.clone(), + } + } - fn ParachainHost_active_parachains_runtime_api_impl( - &self, - _at: &BlockId, - _: ExecutionContext, - _: Option<()>, - _: Vec, - ) -> ClientResult)>>> { - Ok(NativeOrEncoded::Native(self.data.lock().active_parachains.clone())) - } + fn active_parachains(&self) -> Vec<(ParaId, Option<(CollatorId, Retriable)>)> { + self.data.lock().active_parachains.clone() + } - fn ParachainHost_parachain_code_runtime_api_impl( - &self, - _at: &BlockId, - _: ExecutionContext, - _: Option, - _: Vec, - ) -> ClientResult>>> { - Ok(NativeOrEncoded::Native(Some(Vec::new()))) - } + fn parachain_code(_: ParaId) -> Option> { + Some(Vec::new()) + } - fn ParachainHost_global_validation_schedule_runtime_api_impl( - &self, - _at: &BlockId, - _: ExecutionContext, - _: Option<()>, - _: Vec, - ) -> ClientResult> { - Ok(NativeOrEncoded::Native(Default::default())) - } + fn global_validation_schedule() -> GlobalValidationSchedule { + Default::default() + } - fn ParachainHost_local_validation_data_runtime_api_impl( - &self, - _at: &BlockId, - _: ExecutionContext, - _: Option, - _: Vec, - ) -> ClientResult>> { - Ok(NativeOrEncoded::Native(Some(Default::default()))) - } + fn local_validation_data(_: ParaId) -> Option { + Some(Default::default()) + } - fn ParachainHost_get_heads_runtime_api_impl( - &self, - _at: &BlockId, - _: ExecutionContext, - _extrinsics: Option::Extrinsic>>, - _: Vec, - ) -> ClientResult>>> { - Ok(NativeOrEncoded::Native(Some(Vec::new()))) - } + fn get_heads(_: Vec<::Extrinsic>) -> Option> { + Some(Vec::new()) + } - fn ParachainHost_signing_context_runtime_api_impl( - &self, - _at: &BlockId, - _: ExecutionContext, - _: Option<()>, - _: Vec, - ) -> ClientResult> { - Ok(NativeOrEncoded::Native( - SigningContext { - session_index: Default::default(), - parent_hash: Default::default(), - } - ) - ) + fn signing_context() -> SigningContext { + SigningContext { + session_index: Default::default(), + parent_hash: Default::default(), + } + } } }