From e20675808f927c0b3767f3c9f0726a1300f50a02 Mon Sep 17 00:00:00 2001 From: vedhavyas Date: Thu, 17 Oct 2024 22:27:24 +0530 Subject: [PATCH] include xcm migrations --- runtime/astar/src/lib.rs | 7 ++++++- runtime/shibuya/src/lib.rs | 10 ++++++---- runtime/shiden/src/lib.rs | 7 ++++++- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/runtime/astar/src/lib.rs b/runtime/astar/src/lib.rs index 1aeefe29ac..bec0dc69f6 100644 --- a/runtime/astar/src/lib.rs +++ b/runtime/astar/src/lib.rs @@ -1212,6 +1212,11 @@ impl pallet_migrations::Config for Runtime { type WeightInfo = pallet_migrations::weights::SubstrateWeight; } +impl cumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime { + // This must be the same as the `ChannelInfo` from the `Config`: + type ChannelList = ParachainSystem; +} + construct_runtime!( pub struct Runtime { @@ -1333,7 +1338,7 @@ parameter_types! { pub type Migrations = (Unreleased, Permanent); /// Unreleased migrations. Add new ones here: -pub type Unreleased = (); +pub type Unreleased = (cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5,); /// Migrations/checks that do not need to be versioned and can run on every upgrade. pub type Permanent = (pallet_xcm::migration::MigrateToLatestXcmVersion,); diff --git a/runtime/shibuya/src/lib.rs b/runtime/shibuya/src/lib.rs index bfa98788ff..45499b450f 100644 --- a/runtime/shibuya/src/lib.rs +++ b/runtime/shibuya/src/lib.rs @@ -1530,6 +1530,11 @@ impl pallet_migrations::Config for Runtime { #[cfg(feature = "runtime-benchmarks")] impl vesting_mbm::Config for Runtime {} +impl cumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime { + // This must be the same as the `ChannelInfo` from the `Config`: + type ChannelList = ParachainSystem; +} + construct_runtime!( pub struct Runtime { @@ -1643,10 +1648,7 @@ pub type Executive = frame_executive::Executive< pub type Migrations = (Unreleased, Permanent); /// Unreleased migrations. Add new ones here: -pub type Unreleased = ( - pallet_dapp_staking::migration::AdjustEraMigration, - pallet_inflation::migration::AdjustBlockRewardMigration, -); +pub type Unreleased = (cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5,); /// Migrations/checks that do not need to be versioned and can run on every upgrade. pub type Permanent = (pallet_xcm::migration::MigrateToLatestXcmVersion,); diff --git a/runtime/shiden/src/lib.rs b/runtime/shiden/src/lib.rs index bbcb1355f4..77a3ae7af8 100644 --- a/runtime/shiden/src/lib.rs +++ b/runtime/shiden/src/lib.rs @@ -1211,6 +1211,11 @@ impl pallet_migrations::Config for Runtime { type WeightInfo = pallet_migrations::weights::SubstrateWeight; } +impl cumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime { + // This must be the same as the `ChannelInfo` from the `Config`: + type ChannelList = ParachainSystem; +} + construct_runtime!( pub struct Runtime { @@ -1333,7 +1338,7 @@ parameter_types! { pub type Migrations = (Unreleased, Permanent); /// Unreleased migrations. Add new ones here: -pub type Unreleased = (); +pub type Unreleased = (cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5,); /// Migrations/checks that do not need to be versioned and can run on every upgrade. pub type Permanent = (pallet_xcm::migration::MigrateToLatestXcmVersion,);