From 67af9b90c99041f871d7f184aa1e38b0a8c90e37 Mon Sep 17 00:00:00 2001 From: Adrian Catangiu Date: Fri, 17 May 2024 14:35:33 +0300 Subject: [PATCH] Add pallet-xcm::transfer_assets_using_type_and_then() for complex asset transfers (#311) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bump `pallet-xcm` to 8.0.5 to include `transfer_assets_using_type_and_then()` call to facilitate moving bridged assets around the ecosystem. Example [test for bridged asset AssetHub->Parachain](https://github.com/paritytech/polkadot-sdk/blob/e0584a153df63ff138d12764085422ed06de548a/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/hybrid_transfers.rs#L150C1-L156C54) - the actual call used [here](https://github.com/paritytech/polkadot-sdk/blob/e0584a153df63ff138d12764085422ed06de548a/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/hybrid_transfers.rs#L57C1-L70C3). Example [test for bridged asset Parachain->AssetHub](https://github.com/paritytech/polkadot-sdk/blob/e0584a153df63ff138d12764085422ed06de548a/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/hybrid_transfers.rs#L278C1-L285C54) - the actual call used [here](https://github.com/paritytech/polkadot-sdk/blob/e0584a153df63ff138d12764085422ed06de548a/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/hybrid_transfers.rs#L76C2-L89C3). More details on the backported call available here: https://github.com/paritytech/polkadot-sdk/pull/4462 Fixes #281 --------- Signed-off-by: Adrian Catangiu Co-authored-by: Branislav Kontur Co-authored-by: Bastian Köcher --- CHANGELOG.md | 1 + Cargo.lock | 8 ++++---- Cargo.toml | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db032c4027..fad68b5c5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Add `pallet-vesting` to Asset Hubs ([polkadot-fellows/runtimes#269](https://github.com/polkadot-fellows/runtimes/pull/269)) - Add Pay Salary Collectives test ([polkadot-fellows/runtimes#260](https://github.com/polkadot-fellows/runtimes/pull/260)) +- Add `pallet-xcm::transfer_assets_using_type_and_then()` for complex asset transfers ([polkadot-fellows/runtimes#311](https://github.com/polkadot-fellows/runtimes/pull/311)) ### Removed diff --git a/Cargo.lock b/Cargo.lock index ef1ade44eb..4cd32aa1d8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8426,9 +8426,9 @@ dependencies = [ [[package]] name = "pallet-xcm" -version = "8.0.4" +version = "8.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c13f5c598737e84294880333170d1df3868a11ad7ee79d0b1d1af37365e1c277" +checksum = "ba9138b04168b07b1aff4a2079f5514753c31dddba40e5fb471b9cda7da27ad6" dependencies = [ "bounded-collections", "frame-benchmarking", @@ -14395,9 +14395,9 @@ dependencies = [ [[package]] name = "staging-xcm-executor" -version = "8.0.1" +version = "8.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a638f4c8735cc04b5c93920a1f59e679f48b131315a07d146798e0decebf7720" +checksum = "74b5c5f2a1d610c5e20e5fae2680c9a28380f305afafeed62f341bfbce57b79a" dependencies = [ "environmental", "frame-benchmarking", diff --git a/Cargo.toml b/Cargo.toml index 902f741c2d..e8b5a48b0f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -129,7 +129,7 @@ pallet-uniques = { version = "29.0.0", default-features = false } pallet-utility = { version = "29.0.0", default-features = false } pallet-vesting = { version = "29.0.0", default-features = false } pallet-whitelist = { version = "28.0.0", default-features = false } -pallet-xcm = { version = "8.0.4", default-features = false } +pallet-xcm = { version = "8.0.5", default-features = false } pallet-xcm-benchmarks = { version = "8.0.2", default-features = false } pallet-xcm-bridge-hub = { version = "0.3.0", default-features = false } pallet-xcm-bridge-hub-router = { version = "0.6.0", default-features = false } @@ -192,7 +192,7 @@ sp-weights = { version = "28.0.0", default-features = false } staging-parachain-info = { version = "0.8.0", default-features = false } staging-xcm = { version = "8.0.1", default-features = false } staging-xcm-builder = { version = "8.0.1", default-features = false } -staging-xcm-executor = { version = "8.0.1", default-features = false } +staging-xcm-executor = { version = "8.0.2", default-features = false } static_assertions = { version = "1.1.0" } substrate-wasm-builder = { version = "18.0.0" } tokio = { version = "1.36.0" }