From c3058797537e2273be79e75baf2c1769d79ac644 Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Fri, 26 Apr 2024 16:00:22 +0300 Subject: [PATCH] subcommand to relay single header (#2972) --- Cargo.lock | 224 +++++++++++------------ substrate-relay/src/cli/mod.rs | 3 + substrate-relay/src/cli/relay_headers.rs | 39 +++- 3 files changed, 153 insertions(+), 113 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 489d80ebdde..9affb8dd11c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1117,7 +1117,7 @@ dependencies = [ [[package]] name = "bp-bridge-hub-cumulus" version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-messages", "bp-polkadot-core", @@ -1132,7 +1132,7 @@ dependencies = [ [[package]] name = "bp-bridge-hub-kusama" version = "0.6.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-bridge-hub-cumulus", "bp-messages", @@ -1146,7 +1146,7 @@ dependencies = [ [[package]] name = "bp-bridge-hub-polkadot" version = "0.6.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-bridge-hub-cumulus", "bp-messages", @@ -1160,7 +1160,7 @@ dependencies = [ [[package]] name = "bp-bridge-hub-rococo" version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-bridge-hub-cumulus", "bp-messages", @@ -1174,7 +1174,7 @@ dependencies = [ [[package]] name = "bp-bridge-hub-westend" version = "0.3.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-bridge-hub-cumulus", "bp-messages", @@ -1188,7 +1188,7 @@ dependencies = [ [[package]] name = "bp-header-chain" version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-runtime", "finality-grandpa", @@ -1205,7 +1205,7 @@ dependencies = [ [[package]] name = "bp-kusama" version = "0.5.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-header-chain", "bp-polkadot-core", @@ -1218,7 +1218,7 @@ dependencies = [ [[package]] name = "bp-messages" version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-header-chain", "bp-runtime", @@ -1233,7 +1233,7 @@ dependencies = [ [[package]] name = "bp-parachains" version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-header-chain", "bp-polkadot-core", @@ -1250,7 +1250,7 @@ dependencies = [ [[package]] name = "bp-polkadot" version = "0.5.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-header-chain", "bp-polkadot-core", @@ -1263,7 +1263,7 @@ dependencies = [ [[package]] name = "bp-polkadot-bulletin" version = "0.4.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-header-chain", "bp-messages", @@ -1281,7 +1281,7 @@ dependencies = [ [[package]] name = "bp-polkadot-core" version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-messages", "bp-runtime", @@ -1299,7 +1299,7 @@ dependencies = [ [[package]] name = "bp-relayers" version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-messages", "bp-runtime", @@ -1313,7 +1313,7 @@ dependencies = [ [[package]] name = "bp-rococo" version = "0.6.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-header-chain", "bp-polkadot-core", @@ -1326,7 +1326,7 @@ dependencies = [ [[package]] name = "bp-runtime" version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "frame-support", "frame-system", @@ -1349,7 +1349,7 @@ dependencies = [ [[package]] name = "bp-test-utils" version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-header-chain", "bp-parachains", @@ -1369,7 +1369,7 @@ dependencies = [ [[package]] name = "bp-westend" version = "0.3.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-header-chain", "bp-polkadot-core", @@ -1382,7 +1382,7 @@ dependencies = [ [[package]] name = "bp-xcm-bridge-hub" version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=master)", ] @@ -1390,7 +1390,7 @@ dependencies = [ [[package]] name = "bp-xcm-bridge-hub-router" version = "0.6.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "parity-scale-codec", "scale-info", @@ -1401,7 +1401,7 @@ dependencies = [ [[package]] name = "bridge-runtime-common" version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-header-chain", "bp-messages", @@ -2594,7 +2594,7 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "equivocation-detector" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "async-std", "async-trait", @@ -2785,7 +2785,7 @@ dependencies = [ [[package]] name = "finality-relay" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "async-std", "async-trait", @@ -2874,7 +2874,7 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "frame-support", "frame-support-procedural", @@ -2922,7 +2922,7 @@ dependencies = [ [[package]] name = "frame-support" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "aquamarine", "array-bytes 6.2.2", @@ -2963,7 +2963,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "Inflector", "cfg-expr", @@ -2982,7 +2982,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 3.1.0", @@ -2994,7 +2994,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "proc-macro2 1.0.81", "quote 1.0.36", @@ -3004,7 +3004,7 @@ dependencies = [ [[package]] name = "frame-system" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "cfg-if", "docify", @@ -4859,7 +4859,7 @@ dependencies = [ [[package]] name = "messages-relay" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "async-std", "async-trait", @@ -5423,7 +5423,7 @@ checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" [[package]] name = "pallet-authorship" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "frame-support", "frame-system", @@ -5437,7 +5437,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "docify", "frame-benchmarking", @@ -5453,7 +5453,7 @@ dependencies = [ [[package]] name = "pallet-bridge-grandpa" version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-header-chain", "bp-runtime", @@ -5474,7 +5474,7 @@ dependencies = [ [[package]] name = "pallet-bridge-messages" version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-messages", "bp-runtime", @@ -5492,7 +5492,7 @@ dependencies = [ [[package]] name = "pallet-bridge-parachains" version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-header-chain", "bp-parachains", @@ -5513,7 +5513,7 @@ dependencies = [ [[package]] name = "pallet-bridge-relayers" version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bp-messages", "bp-relayers", @@ -5533,7 +5533,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "frame-benchmarking", "frame-support", @@ -5556,7 +5556,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "frame-support", "frame-system", @@ -5578,7 +5578,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "docify", "frame-benchmarking", @@ -5598,7 +5598,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "frame-support", "frame-system", @@ -5614,7 +5614,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -5626,7 +5626,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "frame-benchmarking", "frame-support", @@ -5642,7 +5642,7 @@ dependencies = [ [[package]] name = "parachains-relay" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "async-std", "async-trait", @@ -5920,7 +5920,7 @@ checksum = "db23d408679286588f4d4644f965003d056e3dd5abcaaa938116871d7ce2fee7" [[package]] name = "polkadot-core-primitives" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "parity-scale-codec", "scale-info", @@ -5932,7 +5932,7 @@ dependencies = [ [[package]] name = "polkadot-parachain-primitives" version = "6.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bounded-collections", "derive_more", @@ -5949,7 +5949,7 @@ dependencies = [ [[package]] name = "polkadot-primitives" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bitvec", "hex-literal", @@ -6873,7 +6873,7 @@ dependencies = [ [[package]] name = "relay-substrate-client" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "async-std", "async-trait", @@ -6915,7 +6915,7 @@ dependencies = [ [[package]] name = "relay-utils" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "ansi_term", "anyhow", @@ -7295,7 +7295,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "log", "sp-core", @@ -7306,7 +7306,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "array-bytes 6.2.2", "docify", @@ -7333,7 +7333,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2 1.0.81", @@ -7344,7 +7344,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "fnv", "futures", @@ -7371,7 +7371,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.33.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "async-trait", "futures", @@ -7396,7 +7396,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.32.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", @@ -7419,7 +7419,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.29.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "polkavm", "sc-allocator", @@ -7432,7 +7432,7 @@ dependencies = [ [[package]] name = "sc-executor-polkavm" version = "0.29.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "log", "polkavm", @@ -7443,7 +7443,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.29.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "anyhow", "cfg-if", @@ -7461,7 +7461,7 @@ dependencies = [ [[package]] name = "sc-mixnet" version = "0.4.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "array-bytes 4.2.0", "arrayvec 0.7.4", @@ -7490,7 +7490,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "array-bytes 6.2.2", "async-channel 1.9.0", @@ -7541,7 +7541,7 @@ dependencies = [ [[package]] name = "sc-network-common" version = "0.33.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "async-trait", "bitflags 1.3.2", @@ -7559,7 +7559,7 @@ dependencies = [ [[package]] name = "sc-network-types" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bs58 0.4.0", "libp2p-identity", @@ -7573,7 +7573,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.33.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -7593,7 +7593,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "15.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "chrono", "futures", @@ -7613,7 +7613,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "async-trait", "futures", @@ -7629,7 +7629,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "async-channel 1.9.0", "futures", @@ -8345,7 +8345,7 @@ dependencies = [ [[package]] name = "sp-api" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "hash-db", "log", @@ -8367,7 +8367,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "15.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "Inflector", "blake2 0.10.6", @@ -8381,7 +8381,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "30.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "parity-scale-codec", "scale-info", @@ -8394,7 +8394,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "docify", "integer-sqrt", @@ -8427,7 +8427,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "parity-scale-codec", "scale-info", @@ -8439,7 +8439,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "futures", "log", @@ -8457,7 +8457,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.32.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "async-trait", "futures", @@ -8472,7 +8472,7 @@ dependencies = [ [[package]] name = "sp-consensus-grandpa" version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "finality-grandpa", "log", @@ -8489,7 +8489,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.32.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "parity-scale-codec", "scale-info", @@ -8500,7 +8500,7 @@ dependencies = [ [[package]] name = "sp-core" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "array-bytes 6.2.2", "bandersnatch_vrfs", @@ -8581,7 +8581,7 @@ dependencies = [ [[package]] name = "sp-crypto-hashing" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "blake2b_simd", "byteorder", @@ -8594,7 +8594,7 @@ dependencies = [ [[package]] name = "sp-crypto-hashing-proc-macro" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "quote 1.0.36", "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk?branch=master)", @@ -8604,7 +8604,7 @@ dependencies = [ [[package]] name = "sp-database" version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "kvdb", "parking_lot 0.12.1", @@ -8613,7 +8613,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "proc-macro2 1.0.81", "quote 1.0.36", @@ -8633,7 +8633,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.25.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "environmental", "parity-scale-codec", @@ -8653,7 +8653,7 @@ dependencies = [ [[package]] name = "sp-genesis-builder" version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "parity-scale-codec", "scale-info", @@ -8665,7 +8665,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -8678,7 +8678,7 @@ dependencies = [ [[package]] name = "sp-io" version = "30.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bytes", "ed25519-dalek 2.1.1", @@ -8704,7 +8704,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "31.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "sp-core", "sp-runtime", @@ -8714,7 +8714,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", @@ -8725,7 +8725,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "thiserror", "zstd 0.12.4", @@ -8734,7 +8734,7 @@ dependencies = [ [[package]] name = "sp-metadata-ir" version = "0.6.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "frame-metadata 16.0.0", "parity-scale-codec", @@ -8744,7 +8744,7 @@ dependencies = [ [[package]] name = "sp-mixnet" version = "0.4.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "parity-scale-codec", "scale-info", @@ -8755,7 +8755,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "backtrace", "lazy_static", @@ -8765,7 +8765,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "rustc-hash", "serde", @@ -8775,7 +8775,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "31.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "docify", "either", @@ -8799,7 +8799,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -8837,7 +8837,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "Inflector", "expander", @@ -8863,7 +8863,7 @@ dependencies = [ [[package]] name = "sp-session" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "parity-scale-codec", "scale-info", @@ -8877,7 +8877,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8890,7 +8890,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.35.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "hash-db", "log", @@ -8910,7 +8910,7 @@ dependencies = [ [[package]] name = "sp-statement-store" version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "aes-gcm", "curve25519-dalek 4.1.2", @@ -8934,7 +8934,7 @@ dependencies = [ [[package]] name = "sp-std" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" [[package]] name = "sp-std" @@ -8944,7 +8944,7 @@ source = "git+https://github.com/paritytech/polkadot-sdk#7e68b2b8da9caf634ff4f6c [[package]] name = "sp-storage" version = "19.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "impl-serde", "parity-scale-codec", @@ -8968,7 +8968,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "async-trait", "parity-scale-codec", @@ -8980,7 +8980,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "16.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "parity-scale-codec", "tracing", @@ -9002,7 +9002,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "ahash 0.8.11", "hash-db", @@ -9025,7 +9025,7 @@ dependencies = [ [[package]] name = "sp-version" version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9042,7 +9042,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "parity-scale-codec", "proc-macro2 1.0.81", @@ -9053,7 +9053,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -9075,7 +9075,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "bounded-collections", "parity-scale-codec", @@ -9132,7 +9132,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "staging-xcm" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "array-bytes 6.2.2", "bounded-collections", @@ -9150,7 +9150,7 @@ dependencies = [ [[package]] name = "staging-xcm-builder" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "frame-support", "frame-system", @@ -9172,7 +9172,7 @@ dependencies = [ [[package]] name = "staging-xcm-executor" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "environmental", "frame-benchmarking", @@ -9277,7 +9277,7 @@ dependencies = [ [[package]] name = "substrate-bip39" version = "0.4.7" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "hmac 0.12.1", "pbkdf2", @@ -9289,7 +9289,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.17.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "hyper", "log", @@ -9355,7 +9355,7 @@ dependencies = [ [[package]] name = "substrate-relay-helper" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "anyhow", "async-std", @@ -11142,7 +11142,7 @@ dependencies = [ [[package]] name = "xcm-procedural" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#7e68b2b8da9caf634ff4f6c6d96d2d7914c44fb7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=master#9a48cd707ed7f4034aadb8dc05065080ad102037" dependencies = [ "Inflector", "proc-macro2 1.0.81", diff --git a/substrate-relay/src/cli/mod.rs b/substrate-relay/src/cli/mod.rs index 504058894c2..9eff263ebf5 100644 --- a/substrate-relay/src/cli/mod.rs +++ b/substrate-relay/src/cli/mod.rs @@ -51,6 +51,8 @@ pub enum Command { /// The on-chain bridge component should have been already initialized with /// `init-bridge` sub-command. RelayHeaders(relay_headers::RelayHeaders), + /// Relay single header. + RelayHeader(relay_headers::RelayHeader), /// Relay parachain heads. RelayParachains(relay_parachains::RelayParachains), /// Start messages relay between two chains. @@ -95,6 +97,7 @@ impl Command { match self { Self::InitBridge(arg) => arg.run().await?, Self::RelayHeaders(arg) => arg.run().await?, + Self::RelayHeader(arg) => arg.run().await?, Self::RelayParachains(arg) => arg.run().await?, Self::RelayMessages(arg) => arg.run().await?, Self::RelayHeadersAndMessages(arg) => arg.run().await?, diff --git a/substrate-relay/src/cli/relay_headers.rs b/substrate-relay/src/cli/relay_headers.rs index bde6ecfc657..4a3c36dd555 100644 --- a/substrate-relay/src/cli/relay_headers.rs +++ b/substrate-relay/src/cli/relay_headers.rs @@ -36,7 +36,9 @@ use crate::bridges::{ }, }; -use substrate_relay_helper::cli::relay_headers::{HeadersRelayer, RelayHeadersParams}; +use substrate_relay_helper::cli::relay_headers::{ + HeadersRelayer, RelayHeaderParams, RelayHeadersParams, +}; /// Start headers relayer process. #[derive(StructOpt)] @@ -48,6 +50,16 @@ pub struct RelayHeaders { params: RelayHeadersParams, } +/// Relay single header. +#[derive(StructOpt)] +pub struct RelayHeader { + /// A bridge instance to relay headers for. + #[structopt(possible_values = RelayHeadersBridge::VARIANTS, case_insensitive = true)] + bridge: RelayHeadersBridge, + #[structopt(flatten)] + params: RelayHeaderParams, +} + #[derive(Debug, EnumString, VariantNames)] #[strum(serialize_all = "kebab_case")] /// Headers relay bridge. @@ -95,3 +107,28 @@ impl RelayHeaders { .await } } + +impl RelayHeader { + /// Run the command. + pub async fn run(self) -> anyhow::Result<()> { + match self.bridge { + RelayHeadersBridge::RococoToBridgeHubWestend => + RococoToBridgeHubWestendCliBridge::relay_header(self.params), + RelayHeadersBridge::WestendToBridgeHubRococo => + WestendToBridgeHubRococoCliBridge::relay_header(self.params), + RelayHeadersBridge::KusamaToBridgeHubPolkadot => + KusamaToBridgeHubPolkadotCliBridge::relay_header(self.params), + RelayHeadersBridge::PolkadotToBridgeHubKusama => + PolkadotToBridgeHubKusamaCliBridge::relay_header(self.params), + RelayHeadersBridge::PolkadotToPolkadotBulletin => + PolkadotToPolkadotBulletinCliBridge::relay_header(self.params), + RelayHeadersBridge::PolkadotBulletinToBridgeHubPolkadot => + PolkadotBulletinToBridgeHubPolkadotCliBridge::relay_header(self.params), + RelayHeadersBridge::RococoToRococoBulletin => + RococoToRococoBulletinCliBridge::relay_header(self.params), + RelayHeadersBridge::RococoBulletinToBridgeHubRococo => + RococoBulletinToBridgeHubRococoCliBridge::relay_header(self.params), + } + .await + } +}