[xcm] BridgeBlobDispatcher - prepend bridge instance discriminator. (#2798)

* [xcm] BridgeBlobDispatcher - prepend bridge instance discriminator.

* PR review fix

* update lockfile for {"polkadot", "substrate"}

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
Branislav Kontur
2023-07-03 15:43:21 +02:00
committed by GitHub
parent 043b711829
commit 2b3486c1b6
4 changed files with 112 additions and 83 deletions
+69 -70
View File
@@ -5485,7 +5485,7 @@ checksum = "67c21572b4949434e4fc1e1978b99c5f77064153c59d998bf13ecd96fb5ecba7"
[[package]] [[package]]
name = "kusama-runtime" name = "kusama-runtime"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bitvec", "bitvec",
"frame-benchmarking", "frame-benchmarking",
@@ -5584,7 +5584,7 @@ dependencies = [
[[package]] [[package]]
name = "kusama-runtime-constants" name = "kusama-runtime-constants"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"frame-support", "frame-support",
"polkadot-primitives", "polkadot-primitives",
@@ -8376,7 +8376,7 @@ dependencies = [
[[package]] [[package]]
name = "pallet-xcm" name = "pallet-xcm"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bounded-collections", "bounded-collections",
"frame-benchmarking", "frame-benchmarking",
@@ -8397,7 +8397,7 @@ dependencies = [
[[package]] [[package]]
name = "pallet-xcm-benchmarks" name = "pallet-xcm-benchmarks"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"frame-benchmarking", "frame-benchmarking",
"frame-support", "frame-support",
@@ -9000,7 +9000,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-approval-distribution" name = "polkadot-approval-distribution"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"futures", "futures",
"futures-timer", "futures-timer",
@@ -9018,7 +9018,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-availability-bitfield-distribution" name = "polkadot-availability-bitfield-distribution"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"futures", "futures",
"futures-timer", "futures-timer",
@@ -9033,7 +9033,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-availability-distribution" name = "polkadot-availability-distribution"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"derive_more", "derive_more",
"fatality", "fatality",
@@ -9056,7 +9056,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-availability-recovery" name = "polkadot-availability-recovery"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"fatality", "fatality",
"futures", "futures",
@@ -9077,7 +9077,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-cli" name = "polkadot-cli"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"clap", "clap",
"frame-benchmarking-cli", "frame-benchmarking-cli",
@@ -9107,7 +9107,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-client" name = "polkadot-client"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"frame-benchmarking", "frame-benchmarking",
@@ -9150,7 +9150,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-collator-protocol" name = "polkadot-collator-protocol"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"always-assert", "always-assert",
"bitvec", "bitvec",
@@ -9172,7 +9172,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-core-primitives" name = "polkadot-core-primitives"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"parity-scale-codec", "parity-scale-codec",
"scale-info", "scale-info",
@@ -9184,7 +9184,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-dispute-distribution" name = "polkadot-dispute-distribution"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"derive_more", "derive_more",
"fatality", "fatality",
@@ -9209,7 +9209,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-erasure-coding" name = "polkadot-erasure-coding"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"parity-scale-codec", "parity-scale-codec",
"polkadot-node-primitives", "polkadot-node-primitives",
@@ -9223,7 +9223,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-gossip-support" name = "polkadot-gossip-support"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"futures", "futures",
"futures-timer", "futures-timer",
@@ -9243,7 +9243,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-network-bridge" name = "polkadot-network-bridge"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"always-assert", "always-assert",
"async-trait", "async-trait",
@@ -9266,7 +9266,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-collation-generation" name = "polkadot-node-collation-generation"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"futures", "futures",
"parity-scale-codec", "parity-scale-codec",
@@ -9284,7 +9284,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-core-approval-voting" name = "polkadot-node-core-approval-voting"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bitvec", "bitvec",
"derive_more", "derive_more",
@@ -9313,7 +9313,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-core-av-store" name = "polkadot-node-core-av-store"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bitvec", "bitvec",
"futures", "futures",
@@ -9334,7 +9334,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-core-backing" name = "polkadot-node-core-backing"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bitvec", "bitvec",
"fatality", "fatality",
@@ -9353,7 +9353,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-core-bitfield-signing" name = "polkadot-node-core-bitfield-signing"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"futures", "futures",
"polkadot-node-subsystem", "polkadot-node-subsystem",
@@ -9368,7 +9368,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-core-candidate-validation" name = "polkadot-node-core-candidate-validation"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"futures", "futures",
@@ -9388,7 +9388,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-core-chain-api" name = "polkadot-node-core-chain-api"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"futures", "futures",
"polkadot-node-metrics", "polkadot-node-metrics",
@@ -9403,7 +9403,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-core-chain-selection" name = "polkadot-node-core-chain-selection"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"futures", "futures",
"futures-timer", "futures-timer",
@@ -9420,7 +9420,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-core-dispute-coordinator" name = "polkadot-node-core-dispute-coordinator"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"fatality", "fatality",
"futures", "futures",
@@ -9439,7 +9439,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-core-parachains-inherent" name = "polkadot-node-core-parachains-inherent"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"futures", "futures",
@@ -9456,7 +9456,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-core-provisioner" name = "polkadot-node-core-provisioner"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bitvec", "bitvec",
"fatality", "fatality",
@@ -9474,7 +9474,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-core-pvf" name = "polkadot-node-core-pvf"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"always-assert", "always-assert",
"futures", "futures",
@@ -9505,7 +9505,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-core-pvf-checker" name = "polkadot-node-core-pvf-checker"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"futures", "futures",
"polkadot-node-primitives", "polkadot-node-primitives",
@@ -9521,7 +9521,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-core-pvf-common" name = "polkadot-node-core-pvf-common"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"cpu-time", "cpu-time",
"futures", "futures",
@@ -9544,7 +9544,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-core-pvf-execute-worker" name = "polkadot-node-core-pvf-execute-worker"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"cpu-time", "cpu-time",
"futures", "futures",
@@ -9564,7 +9564,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-core-pvf-prepare-worker" name = "polkadot-node-core-pvf-prepare-worker"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"futures", "futures",
"libc", "libc",
@@ -9587,7 +9587,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-core-runtime-api" name = "polkadot-node-core-runtime-api"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"futures", "futures",
"lru 0.9.0", "lru 0.9.0",
@@ -9602,7 +9602,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-jaeger" name = "polkadot-node-jaeger"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"lazy_static", "lazy_static",
"log", "log",
@@ -9620,7 +9620,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-metrics" name = "polkadot-node-metrics"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bs58", "bs58",
"futures", "futures",
@@ -9639,7 +9639,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-network-protocol" name = "polkadot-node-network-protocol"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"async-channel", "async-channel",
"async-trait", "async-trait",
@@ -9662,7 +9662,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-primitives" name = "polkadot-node-primitives"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bounded-vec", "bounded-vec",
"futures", "futures",
@@ -9684,7 +9684,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-subsystem" name = "polkadot-node-subsystem"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"polkadot-node-jaeger", "polkadot-node-jaeger",
"polkadot-node-subsystem-types", "polkadot-node-subsystem-types",
@@ -9694,7 +9694,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-subsystem-test-helpers" name = "polkadot-node-subsystem-test-helpers"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"futures", "futures",
@@ -9712,7 +9712,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-subsystem-types" name = "polkadot-node-subsystem-types"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"derive_more", "derive_more",
@@ -9735,7 +9735,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-node-subsystem-util" name = "polkadot-node-subsystem-util"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"derive_more", "derive_more",
@@ -9768,7 +9768,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-overseer" name = "polkadot-overseer"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"futures", "futures",
@@ -9791,7 +9791,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-parachain" name = "polkadot-parachain"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bounded-collections", "bounded-collections",
"derive_more", "derive_more",
@@ -9890,7 +9890,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-performance-test" name = "polkadot-performance-test"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"env_logger 0.9.0", "env_logger 0.9.0",
"kusama-runtime", "kusama-runtime",
@@ -9908,7 +9908,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-primitives" name = "polkadot-primitives"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bitvec", "bitvec",
"hex-literal 0.4.1", "hex-literal 0.4.1",
@@ -9934,7 +9934,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-rpc" name = "polkadot-rpc"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"jsonrpsee", "jsonrpsee",
"mmr-rpc", "mmr-rpc",
@@ -9966,7 +9966,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-runtime" name = "polkadot-runtime"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bitvec", "bitvec",
"frame-benchmarking", "frame-benchmarking",
@@ -10061,7 +10061,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-runtime-common" name = "polkadot-runtime-common"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bitvec", "bitvec",
"frame-benchmarking", "frame-benchmarking",
@@ -10107,7 +10107,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-runtime-constants" name = "polkadot-runtime-constants"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"frame-support", "frame-support",
"polkadot-primitives", "polkadot-primitives",
@@ -10121,7 +10121,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-runtime-metrics" name = "polkadot-runtime-metrics"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bs58", "bs58",
"parity-scale-codec", "parity-scale-codec",
@@ -10133,7 +10133,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-runtime-parachains" name = "polkadot-runtime-parachains"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bitflags", "bitflags",
"bitvec", "bitvec",
@@ -10178,7 +10178,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-service" name = "polkadot-service"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"frame-benchmarking-cli", "frame-benchmarking-cli",
@@ -10288,7 +10288,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-statement-distribution" name = "polkadot-statement-distribution"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"arrayvec 0.5.2", "arrayvec 0.5.2",
"fatality", "fatality",
@@ -10310,7 +10310,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-statement-table" name = "polkadot-statement-table"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"parity-scale-codec", "parity-scale-codec",
"polkadot-primitives", "polkadot-primitives",
@@ -10320,7 +10320,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-test-client" name = "polkadot-test-client"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"parity-scale-codec", "parity-scale-codec",
"polkadot-node-subsystem", "polkadot-node-subsystem",
@@ -10345,7 +10345,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-test-runtime" name = "polkadot-test-runtime"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bitvec", "bitvec",
"frame-election-provider-support", "frame-election-provider-support",
@@ -10406,7 +10406,7 @@ dependencies = [
[[package]] [[package]]
name = "polkadot-test-service" name = "polkadot-test-service"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"frame-benchmarking", "frame-benchmarking",
"frame-system", "frame-system",
@@ -11177,7 +11177,7 @@ dependencies = [
[[package]] [[package]]
name = "rococo-runtime" name = "rococo-runtime"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"binary-merkle-tree", "binary-merkle-tree",
"frame-benchmarking", "frame-benchmarking",
@@ -11264,7 +11264,7 @@ dependencies = [
[[package]] [[package]]
name = "rococo-runtime-constants" name = "rococo-runtime-constants"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"frame-support", "frame-support",
"polkadot-primitives", "polkadot-primitives",
@@ -13057,7 +13057,7 @@ checksum = "03b634d87b960ab1a38c4fe143b508576f075e7c978bfad18217645ebfdfa2ec"
[[package]] [[package]]
name = "slot-range-helper" name = "slot-range-helper"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"enumn", "enumn",
"parity-scale-codec", "parity-scale-codec",
@@ -14256,7 +14256,7 @@ checksum = "13a4ec180a2de59b57434704ccfad967f789b12737738798fa08798cd5824c16"
[[package]] [[package]]
name = "test-runtime-constants" name = "test-runtime-constants"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"frame-support", "frame-support",
"polkadot-primitives", "polkadot-primitives",
@@ -14658,7 +14658,7 @@ dependencies = [
[[package]] [[package]]
name = "tracing-gum" name = "tracing-gum"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"polkadot-node-jaeger", "polkadot-node-jaeger",
"polkadot-primitives", "polkadot-primitives",
@@ -14669,7 +14669,7 @@ dependencies = [
[[package]] [[package]]
name = "tracing-gum-proc-macro" name = "tracing-gum-proc-macro"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"expander 2.0.0", "expander 2.0.0",
"proc-macro-crate", "proc-macro-crate",
@@ -15715,7 +15715,7 @@ dependencies = [
[[package]] [[package]]
name = "westend-runtime" name = "westend-runtime"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bitvec", "bitvec",
"frame-benchmarking", "frame-benchmarking",
@@ -15808,7 +15808,7 @@ dependencies = [
[[package]] [[package]]
name = "westend-runtime-constants" name = "westend-runtime-constants"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"frame-support", "frame-support",
"polkadot-primitives", "polkadot-primitives",
@@ -16199,7 +16199,7 @@ dependencies = [
[[package]] [[package]]
name = "xcm" name = "xcm"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"bounded-collections", "bounded-collections",
"derivative", "derivative",
@@ -16215,7 +16215,7 @@ dependencies = [
[[package]] [[package]]
name = "xcm-builder" name = "xcm-builder"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"frame-support", "frame-support",
"frame-system", "frame-system",
@@ -16226,7 +16226,6 @@ dependencies = [
"polkadot-parachain", "polkadot-parachain",
"scale-info", "scale-info",
"sp-arithmetic", "sp-arithmetic",
"sp-core",
"sp-io", "sp-io",
"sp-runtime", "sp-runtime",
"sp-std", "sp-std",
@@ -16271,7 +16270,7 @@ dependencies = [
[[package]] [[package]]
name = "xcm-executor" name = "xcm-executor"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"environmental", "environmental",
"frame-benchmarking", "frame-benchmarking",
@@ -16291,7 +16290,7 @@ dependencies = [
[[package]] [[package]]
name = "xcm-procedural" name = "xcm-procedural"
version = "0.9.43" version = "0.9.43"
source = "git+https://github.com/paritytech/polkadot?branch=master#9ddcfc22b27c1afa3559298c546cfa5be3e3a43a" source = "git+https://github.com/paritytech/polkadot?branch=master#f963646940e3c38e359d1ecf76478d1fed36021c"
dependencies = [ dependencies = [
"Inflector", "Inflector",
"proc-macro2", "proc-macro2",
@@ -17,8 +17,8 @@
//! Bridge definitions that are used on Rococo to bridge with Wococo. //! Bridge definitions that are used on Rococo to bridge with Wococo.
use crate::{ use crate::{
BridgeParachainWococoInstance, ParachainInfo, Runtime, WithBridgeHubWococoMessagesInstance, BridgeParachainWococoInstance, BridgeWococoMessages, ParachainInfo, Runtime,
XcmRouter, WithBridgeHubWococoMessagesInstance, XcmRouter,
}; };
use bp_messages::LaneId; use bp_messages::LaneId;
use bridge_runtime_common::{ use bridge_runtime_common::{
@@ -33,7 +33,7 @@ use bridge_runtime_common::{
RefundableParachain, RefundableParachain,
}, },
}; };
use frame_support::{parameter_types, RuntimeDebug}; use frame_support::{parameter_types, traits::PalletInfoAccess, RuntimeDebug};
use xcm::{ use xcm::{
latest::prelude::*, latest::prelude::*,
prelude::{InteriorMultiLocation, NetworkId}, prelude::{InteriorMultiLocation, NetworkId},
@@ -46,6 +46,7 @@ parameter_types! {
pub const MaxUnconfirmedMessagesAtInboundLane: bp_messages::MessageNonce = pub const MaxUnconfirmedMessagesAtInboundLane: bp_messages::MessageNonce =
bp_bridge_hub_rococo::MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX; bp_bridge_hub_rococo::MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX;
pub const BridgeHubWococoChainId: bp_runtime::ChainId = bp_runtime::BRIDGE_HUB_WOCOCO_CHAIN_ID; pub const BridgeHubWococoChainId: bp_runtime::ChainId = bp_runtime::BRIDGE_HUB_WOCOCO_CHAIN_ID;
pub BridgeWococoMessagesPalletInstance: InteriorMultiLocation = X1(PalletInstance(<BridgeWococoMessages as PalletInfoAccess>::index() as u8));
pub BridgeHubRococoUniversalLocation: InteriorMultiLocation = X2(GlobalConsensus(Rococo), Parachain(ParachainInfo::parachain_id().into())); pub BridgeHubRococoUniversalLocation: InteriorMultiLocation = X2(GlobalConsensus(Rococo), Parachain(ParachainInfo::parachain_id().into()));
pub WococoGlobalConsensusNetwork: NetworkId = NetworkId::Wococo; pub WococoGlobalConsensusNetwork: NetworkId = NetworkId::Wococo;
pub ActiveOutboundLanesToBridgeHubWococo: &'static [bp_messages::LaneId] = &[DEFAULT_XCM_LANE_TO_BRIDGE_HUB_WOCOCO]; pub ActiveOutboundLanesToBridgeHubWococo: &'static [bp_messages::LaneId] = &[DEFAULT_XCM_LANE_TO_BRIDGE_HUB_WOCOCO];
@@ -60,8 +61,11 @@ pub type ToWococoBridgeHubMessagesDeliveryProof =
FromBridgedChainMessagesDeliveryProof<bp_bridge_hub_wococo::Hash>; FromBridgedChainMessagesDeliveryProof<bp_bridge_hub_wococo::Hash>;
/// Dispatches received XCM messages from other bridge /// Dispatches received XCM messages from other bridge
pub type OnBridgeHubRococoBlobDispatcher = pub type OnBridgeHubRococoBlobDispatcher = BridgeBlobDispatcher<
BridgeBlobDispatcher<XcmRouter, BridgeHubRococoUniversalLocation>; XcmRouter,
BridgeHubRococoUniversalLocation,
BridgeWococoMessagesPalletInstance,
>;
/// Export XCM messages to be relayed to the otherside /// Export XCM messages to be relayed to the otherside
pub type ToBridgeHubWococoHaulBlobExporter = HaulBlobExporter< pub type ToBridgeHubWococoHaulBlobExporter = HaulBlobExporter<
@@ -17,8 +17,8 @@
//! Bridge definitions that are used on Wococo to bridge with Rococo. //! Bridge definitions that are used on Wococo to bridge with Rococo.
use crate::{ use crate::{
BridgeParachainRococoInstance, ParachainInfo, Runtime, WithBridgeHubRococoMessagesInstance, BridgeParachainRococoInstance, BridgeRococoMessages, ParachainInfo, Runtime,
XcmRouter, WithBridgeHubRococoMessagesInstance, XcmRouter,
}; };
use bp_messages::LaneId; use bp_messages::LaneId;
use bridge_runtime_common::{ use bridge_runtime_common::{
@@ -33,7 +33,7 @@ use bridge_runtime_common::{
RefundableParachain, RefundableParachain,
}, },
}; };
use frame_support::{parameter_types, RuntimeDebug}; use frame_support::{parameter_types, traits::PalletInfoAccess, RuntimeDebug};
use xcm::{ use xcm::{
latest::prelude::*, latest::prelude::*,
prelude::{InteriorMultiLocation, NetworkId}, prelude::{InteriorMultiLocation, NetworkId},
@@ -47,6 +47,7 @@ parameter_types! {
bp_bridge_hub_wococo::MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX; bp_bridge_hub_wococo::MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX;
pub const BridgeHubRococoChainId: bp_runtime::ChainId = bp_runtime::BRIDGE_HUB_ROCOCO_CHAIN_ID; pub const BridgeHubRococoChainId: bp_runtime::ChainId = bp_runtime::BRIDGE_HUB_ROCOCO_CHAIN_ID;
pub BridgeHubWococoUniversalLocation: InteriorMultiLocation = X2(GlobalConsensus(Wococo), Parachain(ParachainInfo::parachain_id().into())); pub BridgeHubWococoUniversalLocation: InteriorMultiLocation = X2(GlobalConsensus(Wococo), Parachain(ParachainInfo::parachain_id().into()));
pub BridgeRococoMessagesPalletInstance: InteriorMultiLocation = X1(PalletInstance(<BridgeRococoMessages as PalletInfoAccess>::index() as u8));
pub RococoGlobalConsensusNetwork: NetworkId = NetworkId::Rococo; pub RococoGlobalConsensusNetwork: NetworkId = NetworkId::Rococo;
pub ActiveOutboundLanesToBridgeHubRococo: &'static [bp_messages::LaneId] = &[DEFAULT_XCM_LANE_TO_BRIDGE_HUB_ROCOCO]; pub ActiveOutboundLanesToBridgeHubRococo: &'static [bp_messages::LaneId] = &[DEFAULT_XCM_LANE_TO_BRIDGE_HUB_ROCOCO];
pub PriorityBoostPerMessage: u64 = 921_900_294; pub PriorityBoostPerMessage: u64 = 921_900_294;
@@ -60,8 +61,11 @@ pub type ToRococoBridgeHubMessagesDeliveryProof =
FromBridgedChainMessagesDeliveryProof<bp_bridge_hub_rococo::Hash>; FromBridgedChainMessagesDeliveryProof<bp_bridge_hub_rococo::Hash>;
/// Dispatches received XCM messages from other bridge /// Dispatches received XCM messages from other bridge
pub type OnBridgeHubWococoBlobDispatcher = pub type OnBridgeHubWococoBlobDispatcher = BridgeBlobDispatcher<
BridgeBlobDispatcher<XcmRouter, BridgeHubWococoUniversalLocation>; XcmRouter,
BridgeHubWococoUniversalLocation,
BridgeRococoMessagesPalletInstance,
>;
/// Export XCM messages to be relayed to the otherside /// Export XCM messages to be relayed to the otherside
pub type ToBridgeHubRococoHaulBlobExporter = HaulBlobExporter< pub type ToBridgeHubRococoHaulBlobExporter = HaulBlobExporter<
@@ -36,7 +36,7 @@ use bridge_runtime_common::{
use codec::Encode; use codec::Encode;
use frame_support::{ use frame_support::{
assert_ok, assert_ok,
traits::{Get, OriginTrait}, traits::{Get, OriginTrait, PalletInfoAccess},
}; };
use pallet_bridge_grandpa::BridgedHeader; use pallet_bridge_grandpa::BridgedHeader;
use parachains_runtimes_test_utils::{ use parachains_runtimes_test_utils::{
@@ -463,7 +463,18 @@ pub fn relayed_incoming_message_works<Runtime, XcmConfig, HrmpChannelOpener, GPI
let relayer_id_on_source: AccountId32 = relayer_at_source.public().into(); let relayer_id_on_source: AccountId32 = relayer_at_source.public().into();
let xcm = vec![xcm::v3::Instruction::<()>::ClearOrigin; 42]; let xcm = vec![xcm::v3::Instruction::<()>::ClearOrigin; 42];
let expected_dispatch = xcm::latest::Xcm::<()>(xcm.clone()); let expected_dispatch = xcm::latest::Xcm::<()>({
let mut expected_instructions = xcm.clone();
// dispatch prepends bridge pallet instance
expected_instructions.insert(
0,
DescendOrigin(X1(PalletInstance(
<pallet_bridge_messages::Pallet<Runtime, MPI> as PalletInfoAccess>::index()
as u8,
))),
);
expected_instructions
});
// generate bridged relay chain finality, parachain heads and message proofs, // generate bridged relay chain finality, parachain heads and message proofs,
// to be submitted by relayer to this chain. // to be submitted by relayer to this chain.
let ( let (
@@ -672,7 +683,18 @@ pub fn complex_relay_extrinsic_works<Runtime, XcmConfig, HrmpChannelOpener, GPI,
let relay_header_number = 1; let relay_header_number = 1;
let xcm = vec![xcm::latest::Instruction::<()>::ClearOrigin; 42]; let xcm = vec![xcm::latest::Instruction::<()>::ClearOrigin; 42];
let expected_dispatch = xcm::latest::Xcm::<()>(xcm.clone()); let expected_dispatch = xcm::latest::Xcm::<()>({
let mut expected_instructions = xcm.clone();
// dispatch prepends bridge pallet instance
expected_instructions.insert(
0,
DescendOrigin(X1(PalletInstance(
<pallet_bridge_messages::Pallet<Runtime, MPI> as PalletInfoAccess>::index()
as u8,
))),
);
expected_instructions
});
// generate bridged relay chain finality, parachain heads and message proofs, // generate bridged relay chain finality, parachain heads and message proofs,
// to be submitted by relayer to this chain. // to be submitted by relayer to this chain.
let ( let (