[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]]
name = "kusama-runtime"
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 = [
"bitvec",
"frame-benchmarking",
@@ -5584,7 +5584,7 @@ dependencies = [
[[package]]
name = "kusama-runtime-constants"
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 = [
"frame-support",
"polkadot-primitives",
@@ -8376,7 +8376,7 @@ dependencies = [
[[package]]
name = "pallet-xcm"
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 = [
"bounded-collections",
"frame-benchmarking",
@@ -8397,7 +8397,7 @@ dependencies = [
[[package]]
name = "pallet-xcm-benchmarks"
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 = [
"frame-benchmarking",
"frame-support",
@@ -9000,7 +9000,7 @@ dependencies = [
[[package]]
name = "polkadot-approval-distribution"
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 = [
"futures",
"futures-timer",
@@ -9018,7 +9018,7 @@ dependencies = [
[[package]]
name = "polkadot-availability-bitfield-distribution"
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 = [
"futures",
"futures-timer",
@@ -9033,7 +9033,7 @@ dependencies = [
[[package]]
name = "polkadot-availability-distribution"
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 = [
"derive_more",
"fatality",
@@ -9056,7 +9056,7 @@ dependencies = [
[[package]]
name = "polkadot-availability-recovery"
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 = [
"fatality",
"futures",
@@ -9077,7 +9077,7 @@ dependencies = [
[[package]]
name = "polkadot-cli"
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 = [
"clap",
"frame-benchmarking-cli",
@@ -9107,7 +9107,7 @@ dependencies = [
[[package]]
name = "polkadot-client"
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 = [
"async-trait",
"frame-benchmarking",
@@ -9150,7 +9150,7 @@ dependencies = [
[[package]]
name = "polkadot-collator-protocol"
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 = [
"always-assert",
"bitvec",
@@ -9172,7 +9172,7 @@ dependencies = [
[[package]]
name = "polkadot-core-primitives"
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 = [
"parity-scale-codec",
"scale-info",
@@ -9184,7 +9184,7 @@ dependencies = [
[[package]]
name = "polkadot-dispute-distribution"
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 = [
"derive_more",
"fatality",
@@ -9209,7 +9209,7 @@ dependencies = [
[[package]]
name = "polkadot-erasure-coding"
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 = [
"parity-scale-codec",
"polkadot-node-primitives",
@@ -9223,7 +9223,7 @@ dependencies = [
[[package]]
name = "polkadot-gossip-support"
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 = [
"futures",
"futures-timer",
@@ -9243,7 +9243,7 @@ dependencies = [
[[package]]
name = "polkadot-network-bridge"
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 = [
"always-assert",
"async-trait",
@@ -9266,7 +9266,7 @@ dependencies = [
[[package]]
name = "polkadot-node-collation-generation"
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 = [
"futures",
"parity-scale-codec",
@@ -9284,7 +9284,7 @@ dependencies = [
[[package]]
name = "polkadot-node-core-approval-voting"
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 = [
"bitvec",
"derive_more",
@@ -9313,7 +9313,7 @@ dependencies = [
[[package]]
name = "polkadot-node-core-av-store"
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 = [
"bitvec",
"futures",
@@ -9334,7 +9334,7 @@ dependencies = [
[[package]]
name = "polkadot-node-core-backing"
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 = [
"bitvec",
"fatality",
@@ -9353,7 +9353,7 @@ dependencies = [
[[package]]
name = "polkadot-node-core-bitfield-signing"
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 = [
"futures",
"polkadot-node-subsystem",
@@ -9368,7 +9368,7 @@ dependencies = [
[[package]]
name = "polkadot-node-core-candidate-validation"
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 = [
"async-trait",
"futures",
@@ -9388,7 +9388,7 @@ dependencies = [
[[package]]
name = "polkadot-node-core-chain-api"
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 = [
"futures",
"polkadot-node-metrics",
@@ -9403,7 +9403,7 @@ dependencies = [
[[package]]
name = "polkadot-node-core-chain-selection"
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 = [
"futures",
"futures-timer",
@@ -9420,7 +9420,7 @@ dependencies = [
[[package]]
name = "polkadot-node-core-dispute-coordinator"
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 = [
"fatality",
"futures",
@@ -9439,7 +9439,7 @@ dependencies = [
[[package]]
name = "polkadot-node-core-parachains-inherent"
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 = [
"async-trait",
"futures",
@@ -9456,7 +9456,7 @@ dependencies = [
[[package]]
name = "polkadot-node-core-provisioner"
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 = [
"bitvec",
"fatality",
@@ -9474,7 +9474,7 @@ dependencies = [
[[package]]
name = "polkadot-node-core-pvf"
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 = [
"always-assert",
"futures",
@@ -9505,7 +9505,7 @@ dependencies = [
[[package]]
name = "polkadot-node-core-pvf-checker"
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 = [
"futures",
"polkadot-node-primitives",
@@ -9521,7 +9521,7 @@ dependencies = [
[[package]]
name = "polkadot-node-core-pvf-common"
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 = [
"cpu-time",
"futures",
@@ -9544,7 +9544,7 @@ dependencies = [
[[package]]
name = "polkadot-node-core-pvf-execute-worker"
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 = [
"cpu-time",
"futures",
@@ -9564,7 +9564,7 @@ dependencies = [
[[package]]
name = "polkadot-node-core-pvf-prepare-worker"
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 = [
"futures",
"libc",
@@ -9587,7 +9587,7 @@ dependencies = [
[[package]]
name = "polkadot-node-core-runtime-api"
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 = [
"futures",
"lru 0.9.0",
@@ -9602,7 +9602,7 @@ dependencies = [
[[package]]
name = "polkadot-node-jaeger"
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 = [
"lazy_static",
"log",
@@ -9620,7 +9620,7 @@ dependencies = [
[[package]]
name = "polkadot-node-metrics"
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 = [
"bs58",
"futures",
@@ -9639,7 +9639,7 @@ dependencies = [
[[package]]
name = "polkadot-node-network-protocol"
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 = [
"async-channel",
"async-trait",
@@ -9662,7 +9662,7 @@ dependencies = [
[[package]]
name = "polkadot-node-primitives"
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 = [
"bounded-vec",
"futures",
@@ -9684,7 +9684,7 @@ dependencies = [
[[package]]
name = "polkadot-node-subsystem"
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 = [
"polkadot-node-jaeger",
"polkadot-node-subsystem-types",
@@ -9694,7 +9694,7 @@ dependencies = [
[[package]]
name = "polkadot-node-subsystem-test-helpers"
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 = [
"async-trait",
"futures",
@@ -9712,7 +9712,7 @@ dependencies = [
[[package]]
name = "polkadot-node-subsystem-types"
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 = [
"async-trait",
"derive_more",
@@ -9735,7 +9735,7 @@ dependencies = [
[[package]]
name = "polkadot-node-subsystem-util"
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 = [
"async-trait",
"derive_more",
@@ -9768,7 +9768,7 @@ dependencies = [
[[package]]
name = "polkadot-overseer"
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 = [
"async-trait",
"futures",
@@ -9791,7 +9791,7 @@ dependencies = [
[[package]]
name = "polkadot-parachain"
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 = [
"bounded-collections",
"derive_more",
@@ -9890,7 +9890,7 @@ dependencies = [
[[package]]
name = "polkadot-performance-test"
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 = [
"env_logger 0.9.0",
"kusama-runtime",
@@ -9908,7 +9908,7 @@ dependencies = [
[[package]]
name = "polkadot-primitives"
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 = [
"bitvec",
"hex-literal 0.4.1",
@@ -9934,7 +9934,7 @@ dependencies = [
[[package]]
name = "polkadot-rpc"
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 = [
"jsonrpsee",
"mmr-rpc",
@@ -9966,7 +9966,7 @@ dependencies = [
[[package]]
name = "polkadot-runtime"
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 = [
"bitvec",
"frame-benchmarking",
@@ -10061,7 +10061,7 @@ dependencies = [
[[package]]
name = "polkadot-runtime-common"
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 = [
"bitvec",
"frame-benchmarking",
@@ -10107,7 +10107,7 @@ dependencies = [
[[package]]
name = "polkadot-runtime-constants"
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 = [
"frame-support",
"polkadot-primitives",
@@ -10121,7 +10121,7 @@ dependencies = [
[[package]]
name = "polkadot-runtime-metrics"
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 = [
"bs58",
"parity-scale-codec",
@@ -10133,7 +10133,7 @@ dependencies = [
[[package]]
name = "polkadot-runtime-parachains"
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 = [
"bitflags",
"bitvec",
@@ -10178,7 +10178,7 @@ dependencies = [
[[package]]
name = "polkadot-service"
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 = [
"async-trait",
"frame-benchmarking-cli",
@@ -10288,7 +10288,7 @@ dependencies = [
[[package]]
name = "polkadot-statement-distribution"
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 = [
"arrayvec 0.5.2",
"fatality",
@@ -10310,7 +10310,7 @@ dependencies = [
[[package]]
name = "polkadot-statement-table"
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 = [
"parity-scale-codec",
"polkadot-primitives",
@@ -10320,7 +10320,7 @@ dependencies = [
[[package]]
name = "polkadot-test-client"
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 = [
"parity-scale-codec",
"polkadot-node-subsystem",
@@ -10345,7 +10345,7 @@ dependencies = [
[[package]]
name = "polkadot-test-runtime"
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 = [
"bitvec",
"frame-election-provider-support",
@@ -10406,7 +10406,7 @@ dependencies = [
[[package]]
name = "polkadot-test-service"
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 = [
"frame-benchmarking",
"frame-system",
@@ -11177,7 +11177,7 @@ dependencies = [
[[package]]
name = "rococo-runtime"
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 = [
"binary-merkle-tree",
"frame-benchmarking",
@@ -11264,7 +11264,7 @@ dependencies = [
[[package]]
name = "rococo-runtime-constants"
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 = [
"frame-support",
"polkadot-primitives",
@@ -13057,7 +13057,7 @@ checksum = "03b634d87b960ab1a38c4fe143b508576f075e7c978bfad18217645ebfdfa2ec"
[[package]]
name = "slot-range-helper"
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 = [
"enumn",
"parity-scale-codec",
@@ -14256,7 +14256,7 @@ checksum = "13a4ec180a2de59b57434704ccfad967f789b12737738798fa08798cd5824c16"
[[package]]
name = "test-runtime-constants"
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 = [
"frame-support",
"polkadot-primitives",
@@ -14658,7 +14658,7 @@ dependencies = [
[[package]]
name = "tracing-gum"
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 = [
"polkadot-node-jaeger",
"polkadot-primitives",
@@ -14669,7 +14669,7 @@ dependencies = [
[[package]]
name = "tracing-gum-proc-macro"
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 = [
"expander 2.0.0",
"proc-macro-crate",
@@ -15715,7 +15715,7 @@ dependencies = [
[[package]]
name = "westend-runtime"
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 = [
"bitvec",
"frame-benchmarking",
@@ -15808,7 +15808,7 @@ dependencies = [
[[package]]
name = "westend-runtime-constants"
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 = [
"frame-support",
"polkadot-primitives",
@@ -16199,7 +16199,7 @@ dependencies = [
[[package]]
name = "xcm"
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 = [
"bounded-collections",
"derivative",
@@ -16215,7 +16215,7 @@ dependencies = [
[[package]]
name = "xcm-builder"
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 = [
"frame-support",
"frame-system",
@@ -16226,7 +16226,6 @@ dependencies = [
"polkadot-parachain",
"scale-info",
"sp-arithmetic",
"sp-core",
"sp-io",
"sp-runtime",
"sp-std",
@@ -16271,7 +16270,7 @@ dependencies = [
[[package]]
name = "xcm-executor"
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 = [
"environmental",
"frame-benchmarking",
@@ -16291,7 +16290,7 @@ dependencies = [
[[package]]
name = "xcm-procedural"
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 = [
"Inflector",
"proc-macro2",
@@ -17,8 +17,8 @@
//! Bridge definitions that are used on Rococo to bridge with Wococo.
use crate::{
BridgeParachainWococoInstance, ParachainInfo, Runtime, WithBridgeHubWococoMessagesInstance,
XcmRouter,
BridgeParachainWococoInstance, BridgeWococoMessages, ParachainInfo, Runtime,
WithBridgeHubWococoMessagesInstance, XcmRouter,
};
use bp_messages::LaneId;
use bridge_runtime_common::{
@@ -33,7 +33,7 @@ use bridge_runtime_common::{
RefundableParachain,
},
};
use frame_support::{parameter_types, RuntimeDebug};
use frame_support::{parameter_types, traits::PalletInfoAccess, RuntimeDebug};
use xcm::{
latest::prelude::*,
prelude::{InteriorMultiLocation, NetworkId},
@@ -46,6 +46,7 @@ parameter_types! {
pub const MaxUnconfirmedMessagesAtInboundLane: bp_messages::MessageNonce =
bp_bridge_hub_rococo::MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX;
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 WococoGlobalConsensusNetwork: NetworkId = NetworkId::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>;
/// Dispatches received XCM messages from other bridge
pub type OnBridgeHubRococoBlobDispatcher =
BridgeBlobDispatcher<XcmRouter, BridgeHubRococoUniversalLocation>;
pub type OnBridgeHubRococoBlobDispatcher = BridgeBlobDispatcher<
XcmRouter,
BridgeHubRococoUniversalLocation,
BridgeWococoMessagesPalletInstance,
>;
/// Export XCM messages to be relayed to the otherside
pub type ToBridgeHubWococoHaulBlobExporter = HaulBlobExporter<
@@ -17,8 +17,8 @@
//! Bridge definitions that are used on Wococo to bridge with Rococo.
use crate::{
BridgeParachainRococoInstance, ParachainInfo, Runtime, WithBridgeHubRococoMessagesInstance,
XcmRouter,
BridgeParachainRococoInstance, BridgeRococoMessages, ParachainInfo, Runtime,
WithBridgeHubRococoMessagesInstance, XcmRouter,
};
use bp_messages::LaneId;
use bridge_runtime_common::{
@@ -33,7 +33,7 @@ use bridge_runtime_common::{
RefundableParachain,
},
};
use frame_support::{parameter_types, RuntimeDebug};
use frame_support::{parameter_types, traits::PalletInfoAccess, RuntimeDebug};
use xcm::{
latest::prelude::*,
prelude::{InteriorMultiLocation, NetworkId},
@@ -47,6 +47,7 @@ parameter_types! {
bp_bridge_hub_wococo::MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX;
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 BridgeRococoMessagesPalletInstance: InteriorMultiLocation = X1(PalletInstance(<BridgeRococoMessages as PalletInfoAccess>::index() as u8));
pub RococoGlobalConsensusNetwork: NetworkId = NetworkId::Rococo;
pub ActiveOutboundLanesToBridgeHubRococo: &'static [bp_messages::LaneId] = &[DEFAULT_XCM_LANE_TO_BRIDGE_HUB_ROCOCO];
pub PriorityBoostPerMessage: u64 = 921_900_294;
@@ -60,8 +61,11 @@ pub type ToRococoBridgeHubMessagesDeliveryProof =
FromBridgedChainMessagesDeliveryProof<bp_bridge_hub_rococo::Hash>;
/// Dispatches received XCM messages from other bridge
pub type OnBridgeHubWococoBlobDispatcher =
BridgeBlobDispatcher<XcmRouter, BridgeHubWococoUniversalLocation>;
pub type OnBridgeHubWococoBlobDispatcher = BridgeBlobDispatcher<
XcmRouter,
BridgeHubWococoUniversalLocation,
BridgeRococoMessagesPalletInstance,
>;
/// Export XCM messages to be relayed to the otherside
pub type ToBridgeHubRococoHaulBlobExporter = HaulBlobExporter<
@@ -36,7 +36,7 @@ use bridge_runtime_common::{
use codec::Encode;
use frame_support::{
assert_ok,
traits::{Get, OriginTrait},
traits::{Get, OriginTrait, PalletInfoAccess},
};
use pallet_bridge_grandpa::BridgedHeader;
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 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,
// to be submitted by relayer to this chain.
let (
@@ -672,7 +683,18 @@ pub fn complex_relay_extrinsic_works<Runtime, XcmConfig, HrmpChannelOpener, GPI,
let relay_header_number = 1;
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,
// to be submitted by relayer to this chain.
let (