Skip to content
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- [#9202](https://github.com/paritytech/polkadot-sdk/pull/9202): `apply_authorized_force_set_current_code` does not need to consume the whole block
- Proxy type `NonTranfer`: Use a whitelist of calls and remove some not useful calls from the whitelist ([polkadot-fellows/runtimes/pull/646](https://github.com/polkadot-fellows/runtimes/pull/646))
- Add Snowbridge V2 pallets, to enable Snowbridge V2 bridging: [polkadot-fellows/runtimes/pull/796](https://github.com/polkadot-fellows/runtimes/pull/796))
- Moves single block migrations from frame_executive::Executive to frame_system::Config. [polkadot-fellows/runtimes/pull/844](https://github.com/polkadot-fellows/runtimes/pull/844)

## [1.6.1] 24.06.2025

Expand Down
12 changes: 4 additions & 8 deletions relay/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ impl frame_system::Config for Runtime {
type SS58Prefix = SS58Prefix;
type OnSetCode = ();
type MaxConsumers = frame_support::traits::ConstU32<16>;
type SingleBlockMigrations = ();
type SingleBlockMigrations = migrations::SingleBlockMigrations;
type MultiBlockMigrator = ();
type PreInherents = ();
type PostInherents = ();
Expand Down Expand Up @@ -2195,12 +2195,6 @@ pub type TxExtension = (
frame_metadata_hash_extension::CheckMetadataHash<Runtime>,
);

/// All migrations that will run on the next runtime upgrade.
///
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
pub type Migrations = (migrations::Unreleased, migrations::Permanent);

/// The runtime migrations per release.
#[allow(deprecated, missing_docs)]
pub mod migrations {
Expand All @@ -2214,6 +2208,9 @@ pub mod migrations {
/// Migrations/checks that do not need to be versioned and can run on every update.
pub type Permanent = pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>;

/// All migrations that will run on the next runtime upgrade.
pub type SingleBlockMigrations = (Unreleased, Permanent);

/// Kick off the Asset Hub Migration.
pub struct KickOffAhm<T>(pub core::marker::PhantomData<T>);
impl<T: pallet_rc_migrator::Config> OnRuntimeUpgrade for KickOffAhm<T> {
Expand Down Expand Up @@ -2259,7 +2256,6 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
Migrations,
>;
/// The payload being signed in the transactions.
pub type SignedPayload = generic::SignedPayload<RuntimeCall, TxExtension>;
Expand Down
12 changes: 4 additions & 8 deletions relay/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ impl frame_system::Config for Runtime {
type SS58Prefix = SS58Prefix;
type OnSetCode = ();
type MaxConsumers = frame_support::traits::ConstU32<16>;
type SingleBlockMigrations = ();
type SingleBlockMigrations = migrations::SingleBlockMigrations;
type MultiBlockMigrator = ();
type PreInherents = ();
type PostInherents = ();
Expand Down Expand Up @@ -1927,12 +1927,6 @@ pub type TxExtension = (
frame_metadata_hash_extension::CheckMetadataHash<Runtime>,
);

/// All migrations that will run on the next runtime upgrade.
///
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
pub type Migrations = (migrations::Unreleased, migrations::Permanent);

/// The runtime migrations per release.
#[allow(deprecated, missing_docs)]
pub mod migrations {
Expand All @@ -1943,6 +1937,9 @@ pub mod migrations {

/// Migrations/checks that do not need to be versioned and can run on every update.
pub type Permanent = pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>;

/// All migrations that will run on the next runtime upgrade.
pub type SingleBlockMigrations = (Unreleased, Permanent);
}

/// Unchecked extrinsic type as expected by this runtime.
Expand All @@ -1955,7 +1952,6 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
Migrations,
>;

/// The payload being signed in transactions.
Expand Down
12 changes: 4 additions & 8 deletions system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ impl frame_system::Config for Runtime {
type SS58Prefix = SS58Prefix;
type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode<Self>;
type MaxConsumers = ConstU32<256>;
type SingleBlockMigrations = ();
type SingleBlockMigrations = migrations::SingleBlockMigrations;
type MultiBlockMigrator = MultiBlockMigrations;
type PreInherents = ();
type PostInherents = ();
Expand Down Expand Up @@ -1691,12 +1691,6 @@ impl EthExtra for EthExtraImpl {
pub type UncheckedExtrinsic =
pallet_revive::evm::runtime::UncheckedExtrinsic<Address, Signature, EthExtraImpl>;

/// All migrations that will run on the next runtime upgrade.
///
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
/// upgrades in case the government decides to do so. THE ORDER IS IMPORTANT.
pub type Migrations = (migrations::Unreleased, migrations::Permanent);

/// The runtime migrations per release.
#[allow(deprecated, missing_docs)]
pub mod migrations {
Expand All @@ -1708,6 +1702,9 @@ pub mod migrations {
/// Migrations/checks that do not need to be versioned and can run on every update.
pub type Permanent = pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>;

/// All single block migrations that will run on the next runtime upgrade.
pub type SingleBlockMigrations = (Unreleased, Permanent);

/// MBM migrations to apply on runtime upgrade.
pub type MbmMigrations = pallet_revive::migrations::v1::Migration<Runtime>;
}
Expand All @@ -1719,7 +1716,6 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
Migrations,
>;

#[cfg(feature = "runtime-benchmarks")]
Expand Down
12 changes: 4 additions & 8 deletions system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ impl frame_system::Config for Runtime {
type SS58Prefix = SS58Prefix;
type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode<Self>;
type MaxConsumers = ConstU32<64>;
type SingleBlockMigrations = ();
type SingleBlockMigrations = migrations::SingleBlockMigrations;
type MultiBlockMigrator = ();
type PreInherents = ();
type PostInherents = ();
Expand Down Expand Up @@ -1458,12 +1458,6 @@ pub type TxExtension = (
pub type UncheckedExtrinsic =
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, TxExtension>;

/// All migrations that will run on the next runtime upgrade.
///
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
pub type Migrations = (migrations::Unreleased, migrations::Permanent);

/// The runtime migrations per release.
#[allow(deprecated, missing_docs)]
pub mod migrations {
Expand All @@ -1482,6 +1476,9 @@ pub mod migrations {
/// Migrations/checks that do not need to be versioned and can run on every update.
pub type Permanent = pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>;

/// All single block migrations that will run on the next runtime upgrade.
pub type SingleBlockMigrations = (Unreleased, Permanent);

/// MBM migrations to apply on runtime upgrade.
pub type MbmMigrations = ();
}
Expand All @@ -1493,7 +1490,6 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
Migrations,
>;

#[cfg(feature = "runtime-benchmarks")]
Expand Down
12 changes: 4 additions & 8 deletions system-parachains/bridge-hubs/bridge-hub-kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,6 @@ bridge_runtime_common::generate_bridge_reject_obsolete_headers_and_messages! {
pub type UncheckedExtrinsic =
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, TxExtension>;

/// All migrations that will run on the next runtime upgrade.
///
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
pub type Migrations = (migrations::Unreleased, migrations::Permanent);

/// The runtime migrations per release.
#[allow(deprecated, missing_docs)]
pub mod migrations {
Expand All @@ -155,6 +149,9 @@ pub mod migrations {
/// Migrations/checks that do not need to be versioned and can run on every update.
pub type Permanent = pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>;

/// All migrations that will run on the next runtime upgrade.
pub type SingleBlockMigrations = (Unreleased, Permanent);

/// MBM migrations to apply on runtime upgrade.
pub type MbmMigrations = ();
}
Expand All @@ -166,7 +163,6 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
Migrations,
>;

impl_opaque_keys! {
Expand Down Expand Up @@ -268,7 +264,7 @@ impl frame_system::Config for Runtime {
/// The action to take on a Runtime Upgrade
type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode<Self>;
type MaxConsumers = ConstU32<16>;
type SingleBlockMigrations = ();
type SingleBlockMigrations = migrations::SingleBlockMigrations;
type MultiBlockMigrator = ();
type PreInherents = ();
type PostInherents = ();
Expand Down
12 changes: 4 additions & 8 deletions system-parachains/bridge-hubs/bridge-hub-polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,6 @@ parameter_types! {
pub const NativeToForeignIdKey: &'static str = "NativeToForeignId";
}

/// All migrations that will run on the next runtime upgrade.
///
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
pub type Migrations = (migrations::Unreleased, migrations::Permanent);

/// The runtime migrations per release.
#[allow(deprecated, missing_docs)]
pub mod migrations {
Expand Down Expand Up @@ -185,6 +179,9 @@ pub mod migrations {
/// Migrations/checks that do not need to be versioned and can run on every update.
pub type Permanent = pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>;

/// All migrations that will run on the next runtime upgrade.
pub type SingleBlockMigrations = (Unreleased, Permanent);

/// MBM migrations to apply on runtime upgrade.
pub type MbmMigrations = ();
}
Expand All @@ -196,7 +193,6 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
Migrations,
>;

impl_opaque_keys! {
Expand Down Expand Up @@ -298,7 +294,7 @@ impl frame_system::Config for Runtime {
/// The action to take on a Runtime Upgrade
type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode<Self>;
type MaxConsumers = ConstU32<16>;
type SingleBlockMigrations = ();
type SingleBlockMigrations = migrations::SingleBlockMigrations;
type MultiBlockMigrator = ();
type PreInherents = ();
type PostInherents = ();
Expand Down
12 changes: 4 additions & 8 deletions system-parachains/collectives/collectives-polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ impl frame_system::Config for Runtime {
type SS58Prefix = ConstU16<0>;
type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode<Self>;
type MaxConsumers = frame_support::traits::ConstU32<16>;
type SingleBlockMigrations = ();
type SingleBlockMigrations = migrations::SingleBlockMigrations;
type MultiBlockMigrator = ();
type PreInherents = ();
type PostInherents = ();
Expand Down Expand Up @@ -839,12 +839,6 @@ pub type TxExtension = (
pub type UncheckedExtrinsic =
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, TxExtension>;

/// All migrations that will run on the next runtime upgrade.
///
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
pub type Migrations = (migrations::Unreleased, migrations::Permanent);

/// The runtime migrations per release.
#[allow(deprecated, missing_docs)]
pub mod migrations {
Expand All @@ -862,6 +856,9 @@ pub mod migrations {
/// Migrations/checks that do not need to be versioned and can run on every update.
pub type Permanent = pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>;

/// All migrations that will run on the next runtime upgrade.
pub type SingleBlockMigrations = (Unreleased, Permanent);

/// MBM migrations to apply on runtime upgrade.
pub type MbmMigrations = ();
}
Expand All @@ -873,7 +870,6 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
Migrations,
>;

#[cfg(feature = "runtime-benchmarks")]
Expand Down
12 changes: 4 additions & 8 deletions system-parachains/coretime/coretime-kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,6 @@ pub type TxExtensions = (
pub type UncheckedExtrinsic =
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, TxExtensions>;

/// All migrations that will run on the next runtime upgrade.
///
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
pub type Migrations = (migrations::Unreleased, migrations::Permanent);

/// The runtime migrations per release.
#[allow(deprecated, missing_docs)]
pub mod migrations {
Expand All @@ -131,6 +125,9 @@ pub mod migrations {

/// Migrations/checks that do not need to be versioned and can run on every update.
pub type Permanent = pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>;

/// All migrations that will run on the next runtime upgrade.
pub type SingleBlockMigrations = (Unreleased, Permanent);
}

/// Executive: handles dispatch to the various modules.
Expand All @@ -140,7 +137,6 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
Migrations,
>;

impl_opaque_keys! {
Expand Down Expand Up @@ -254,7 +250,7 @@ impl frame_system::Config for Runtime {
/// The action to take on a Runtime Upgrade
type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode<Self>;
type MaxConsumers = ConstU32<16>;
type SingleBlockMigrations = ();
type SingleBlockMigrations = migrations::SingleBlockMigrations;
type MultiBlockMigrator = ();
type PreInherents = ();
type PostInherents = ();
Expand Down
12 changes: 4 additions & 8 deletions system-parachains/coretime/coretime-polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,6 @@ pub type TxExtension = (
pub type UncheckedExtrinsic =
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, TxExtension>;

/// All migrations that will run on the next runtime upgrade.
///
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
pub type Migrations = (migrations::Unreleased, migrations::Permanent);

/// The runtime migrations per release.
#[allow(deprecated, missing_docs)]
pub mod migrations {
Expand All @@ -138,6 +132,9 @@ pub mod migrations {

/// Migrations/checks that do not need to be versioned and can run on every update.
pub type Permanent = pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>;

/// All migrations that will run on the next runtime upgrade.
pub type SingleBlockMigrations = (Unreleased, Permanent);
}

/// Executive: handles dispatch to the various modules.
Expand All @@ -147,7 +144,6 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
Migrations,
>;

impl_opaque_keys! {
Expand Down Expand Up @@ -267,7 +263,7 @@ impl frame_system::Config for Runtime {
/// The action to take on a Runtime Upgrade
type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode<Self>;
type MaxConsumers = ConstU32<16>;
type SingleBlockMigrations = ();
type SingleBlockMigrations = migrations::SingleBlockMigrations;
type MultiBlockMigrator = ();
type PreInherents = ();
type PostInherents = ();
Expand Down
Loading
Loading