cumulus: add asset-hub-rococo runtime based on asset-hub-kusama and add asset-bridging support to it (#1215)

This commit adds Rococo Asset Hub dedicated runtime so we can test new
features here, before merging them in Kusama Asset Hub.
Also adds one such feature: asset transfer over bridge (Rococo AssetHub
<> Wococo AssetHub)

- clone `asset-hub-kusama-runtime` -> `asset-hub-rococo-runtime`
- make it use Rococo primitives, names, assets, constants, etc
- add asset-transfer-over-bridge support to Rococo AssetHub <> Wococo
AssetHub

Fixes #1128

---------

Co-authored-by: Branislav Kontur <bkontur@gmail.com>
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com>
This commit is contained in:
Adrian Catangiu
2023-10-18 09:47:45 +03:00
committed by GitHub
parent e73729b15f
commit 8b3905d2a5
95 changed files with 14143 additions and 767 deletions
Generated
+118 -2
View File
@@ -796,13 +796,103 @@ dependencies = [
name = "asset-hub-rococo-integration-tests"
version = "1.0.0"
dependencies = [
"assert_matches",
"asset-hub-rococo-runtime",
"frame-support",
"frame-system",
"integration-tests-common",
"pallet-asset-conversion",
"pallet-assets",
"pallet-balances",
"pallet-xcm",
"parachains-common",
"parity-scale-codec",
"polkadot-core-primitives",
"polkadot-parachain-primitives",
"polkadot-runtime-parachains",
"sp-runtime",
"staging-xcm",
"xcm-emulator",
]
[[package]]
name = "asset-hub-rococo-runtime"
version = "0.9.420"
dependencies = [
"asset-test-utils",
"assets-common",
"bp-asset-hub-rococo",
"bp-asset-hub-wococo",
"bp-bridge-hub-rococo",
"bp-bridge-hub-wococo",
"cumulus-pallet-aura-ext",
"cumulus-pallet-dmp-queue",
"cumulus-pallet-parachain-system",
"cumulus-pallet-session-benchmarking",
"cumulus-pallet-xcm",
"cumulus-pallet-xcmp-queue",
"cumulus-primitives-core",
"cumulus-primitives-utility",
"frame-benchmarking",
"frame-executive",
"frame-support",
"frame-system",
"frame-system-benchmarking",
"frame-system-rpc-runtime-api",
"frame-try-runtime",
"hex-literal",
"log",
"pallet-asset-conversion",
"pallet-asset-conversion-tx-payment",
"pallet-assets",
"pallet-aura",
"pallet-authorship",
"pallet-balances",
"pallet-collator-selection",
"pallet-multisig",
"pallet-nft-fractionalization",
"pallet-nfts",
"pallet-nfts-runtime-api",
"pallet-proxy",
"pallet-session",
"pallet-state-trie-migration",
"pallet-timestamp",
"pallet-transaction-payment",
"pallet-transaction-payment-rpc-runtime-api",
"pallet-uniques",
"pallet-utility",
"pallet-xcm",
"pallet-xcm-benchmarks",
"pallet-xcm-bridge-hub-router",
"parachain-info",
"parachains-common",
"parity-scale-codec",
"polkadot-core-primitives",
"polkadot-parachain-primitives",
"polkadot-runtime-common",
"primitive-types",
"rococo-runtime-constants",
"scale-info",
"smallvec",
"sp-api",
"sp-block-builder",
"sp-consensus-aura",
"sp-core",
"sp-inherents",
"sp-offchain",
"sp-runtime",
"sp-session",
"sp-std",
"sp-storage",
"sp-transaction-pool",
"sp-version",
"sp-weights",
"staging-xcm",
"staging-xcm-builder",
"staging-xcm-executor",
"substrate-wasm-builder",
]
[[package]]
name = "asset-hub-westend-integration-tests"
version = "1.0.0"
@@ -925,6 +1015,7 @@ dependencies = [
"pallet-collator-selection",
"pallet-session",
"pallet-xcm",
"pallet-xcm-bridge-hub-router",
"parachain-info",
"parachains-common",
"parachains-runtimes-test-utils",
@@ -936,6 +1027,7 @@ dependencies = [
"sp-runtime",
"sp-std",
"staging-xcm",
"staging-xcm-builder",
"staging-xcm-executor",
"substrate-wasm-builder",
]
@@ -1490,6 +1582,26 @@ dependencies = [
"sp-runtime",
]
[[package]]
name = "bp-asset-hub-rococo"
version = "0.1.0"
dependencies = [
"bp-xcm-bridge-hub-router",
"frame-support",
"parity-scale-codec",
"scale-info",
]
[[package]]
name = "bp-asset-hub-wococo"
version = "0.1.0"
dependencies = [
"bp-xcm-bridge-hub-router",
"frame-support",
"parity-scale-codec",
"scale-info",
]
[[package]]
name = "bp-bridge-hub-cumulus"
version = "0.1.0"
@@ -1908,6 +2020,8 @@ dependencies = [
name = "bridge-hub-rococo-runtime"
version = "0.1.0"
dependencies = [
"bp-asset-hub-rococo",
"bp-asset-hub-wococo",
"bp-bridge-hub-rococo",
"bp-bridge-hub-wococo",
"bp-header-chain",
@@ -1989,7 +2103,6 @@ dependencies = [
name = "bridge-hub-test-utils"
version = "0.1.0"
dependencies = [
"assert_matches",
"asset-test-utils",
"bp-bridge-hub-rococo",
"bp-bridge-hub-wococo",
@@ -2027,6 +2140,7 @@ dependencies = [
"sp-io",
"sp-keyring",
"sp-runtime",
"sp-tracing",
"staging-xcm",
"staging-xcm-builder",
"staging-xcm-executor",
@@ -3577,6 +3691,7 @@ dependencies = [
name = "cumulus-pallet-xcmp-queue"
version = "0.1.0"
dependencies = [
"bp-xcm-bridge-hub-router",
"cumulus-pallet-parachain-system",
"cumulus-primitives-core",
"frame-benchmarking",
@@ -6335,6 +6450,7 @@ version = "1.0.0"
dependencies = [
"asset-hub-kusama-runtime",
"asset-hub-polkadot-runtime",
"asset-hub-rococo-runtime",
"asset-hub-westend-runtime",
"bp-messages",
"bridge-hub-kusama-runtime",
@@ -10992,7 +11108,6 @@ dependencies = [
"sp-std",
"staging-xcm",
"staging-xcm-builder",
"staging-xcm-executor",
"substrate-wasm-builder",
"westend-runtime-constants",
]
@@ -12410,6 +12525,7 @@ dependencies = [
"assert_cmd",
"asset-hub-kusama-runtime",
"asset-hub-polkadot-runtime",
"asset-hub-rococo-runtime",
"asset-hub-westend-runtime",
"async-trait",
"bridge-hub-kusama-runtime",