Add Bridges to xcm-emulator (#2812)

* rename bridge hub + BridgeMessages type

* bridge base

* bridge string approach

* add decl_test_bridges macro

* outbound lanes on the way

* get & dispatch mock bridge done

* fix bridge errors + log::debug for messages

* clean up

* update source OutboundLaneData

* rococo & wococo added

* sender_receiver_accounts_parameter_types macro

* sender_receiver_accounts_parameter_types macro 2

* fixed multi parachain + example on the way

* working but router error

* bridge working

* refactor NetworkComponent

* make it generic

* working as generic

* clean up

* last bit

* ".git/.scripts/commands/fmt/fmt.sh"

* fix bridge hub handler name

* ".git/.scripts/commands/fmt/fmt.sh"

* add AssetConversion back for AssetHubWestend

* Update xcm/xcm-emulator/src/lib.rs

Co-authored-by: Squirrel <gilescope@gmail.com>

* add LaneId wrapper

* update substrate

* fix wrapper conversion

* remove duplicate in workspace

* Revert "update substrate"

This reverts commit 92e8f201ae433aed3f70b998ebd4c23d9168d0ee.

* ".git/.scripts/commands/fmt/fmt.sh"

---------

Co-authored-by: command-bot <>
Co-authored-by: Squirrel <gilescope@gmail.com>
This commit is contained in:
Ignacio Palacios
2023-07-05 11:39:08 +02:00
committed by GitHub
parent fdd2e5221e
commit f6b33fe927
15 changed files with 1121 additions and 283 deletions
+37 -2
View File
@@ -1357,6 +1357,34 @@ dependencies = [
"xcm-executor",
]
[[package]]
name = "bridge-hub-rococo-integration-tests"
version = "1.0.0"
dependencies = [
"bp-messages",
"bridge-hub-rococo-runtime",
"cumulus-pallet-xcmp-queue",
"frame-support",
"frame-system",
"integration-tests-common",
"pallet-assets",
"pallet-balances",
"pallet-bridge-messages",
"pallet-xcm",
"parachains-common",
"parity-scale-codec",
"polkadot-core-primitives",
"polkadot-parachain",
"polkadot-runtime",
"polkadot-runtime-parachains",
"sp-core",
"sp-runtime",
"sp-weights",
"xcm",
"xcm-emulator",
"xcm-executor",
]
[[package]]
name = "bridge-hub-rococo-runtime"
version = "0.1.0"
@@ -1883,7 +1911,7 @@ dependencies = [
]
[[package]]
name = "collectives-polkadot-it"
name = "collectives-polkadot-integration-tests"
version = "0.1.0"
dependencies = [
"asset-hub-polkadot-runtime",
@@ -5261,8 +5289,12 @@ dependencies = [
"asset-hub-kusama-runtime",
"asset-hub-polkadot-runtime",
"asset-hub-westend-runtime",
"bp-messages",
"bp-runtime",
"bridge-hub-kusama-runtime",
"bridge-hub-polkadot-runtime",
"bridge-hub-rococo-runtime",
"bridge-runtime-common",
"collectives-polkadot-runtime",
"cumulus-primitives-core",
"frame-support",
@@ -5271,6 +5303,7 @@ dependencies = [
"kusama-runtime-constants",
"pallet-assets",
"pallet-balances",
"pallet-bridge-messages",
"pallet-im-online",
"pallet-staking",
"pallet-xcm",
@@ -5285,9 +5318,12 @@ dependencies = [
"polkadot-runtime-constants",
"polkadot-runtime-parachains",
"polkadot-service",
"rococo-runtime",
"rococo-runtime-constants",
"sc-consensus-grandpa",
"sp-authority-discovery",
"sp-consensus-babe",
"sp-consensus-beefy",
"sp-core",
"sp-runtime",
"sp-weights",
@@ -16378,7 +16414,6 @@ dependencies = [
"sp-std",
"sp-trie",
"xcm",
"xcm-executor",
]
[[package]]