Skip to content

Commit d8f2419

Browse files
authored
Release 1.7.0 (#859)
Release runtimes `1.7.0`: - Update CHANGELOG - bump runtime spec versions to `1_007_000` - remove already run migrations (Kusama chains `1.6.1` and Polkadot chains `1.5.1`)
1 parent 67dc0c5 commit d8f2419

File tree

14 files changed

+253
-202
lines changed

14 files changed

+253
-202
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Changelog for the runtimes governed by the Polkadot Fellowship.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7-
## [Unreleased]
7+
## [1.7.0] 22.08.2025
88

99
### Fixed
1010

relay/kusama/src/lib.rs

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
180180
spec_name: alloc::borrow::Cow::Borrowed("kusama"),
181181
impl_name: alloc::borrow::Cow::Borrowed("parity-kusama"),
182182
authoring_version: 2,
183-
spec_version: 1_006_001,
183+
spec_version: 1_007_000,
184184
impl_version: 0,
185185
apis: RUNTIME_API_VERSIONS,
186186
transaction_version: 26,
@@ -1972,24 +1972,12 @@ pub type Migrations = (migrations::Unreleased, migrations::Permanent);
19721972
#[allow(deprecated, missing_docs)]
19731973
pub mod migrations {
19741974
use super::*;
1975-
use pallet_balances::WeightInfo;
1976-
1977-
parameter_types! {
1978-
/// Weight for balance unreservations
1979-
pub BalanceTransferAllowDeath: Weight = weights::pallet_balances_native::WeightInfo::<Runtime>::transfer_allow_death();
1980-
}
19811975

19821976
/// Unreleased migrations. Add new ones here:
1983-
pub type Unreleased = (
1984-
pallet_staking::migrations::v16::MigrateV15ToV16<Runtime>,
1985-
pallet_session::migrations::v1::MigrateV0ToV1<
1986-
Runtime,
1987-
pallet_staking::migrations::v17::MigrateDisabledToSession<Runtime>,
1988-
>,
1989-
);
1977+
pub type Unreleased = ();
19901978

19911979
/// Migrations/checks that do not need to be versioned and can run on every update.
1992-
pub type Permanent = (pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,);
1980+
pub type Permanent = pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>;
19931981
}
19941982

19951983
/// Unchecked extrinsic type as expected by this runtime.

relay/polkadot/src/lib.rs

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
164164
spec_name: alloc::borrow::Cow::Borrowed("polkadot"),
165165
impl_name: alloc::borrow::Cow::Borrowed("parity-polkadot"),
166166
authoring_version: 0,
167-
spec_version: 1_006_001,
167+
spec_version: 1_007_000,
168168
impl_version: 0,
169169
apis: RUNTIME_API_VERSIONS,
170170
transaction_version: 26,
@@ -1729,27 +1729,12 @@ pub type Migrations = (migrations::Unreleased, migrations::Permanent);
17291729
#[allow(deprecated, missing_docs)]
17301730
pub mod migrations {
17311731
use super::*;
1732-
use pallet_balances::WeightInfo;
1733-
1734-
parameter_types! {
1735-
/// Weight for balance unreservations
1736-
pub BalanceTransferAllowDeath: Weight = weights::pallet_balances::WeightInfo::<Runtime>::transfer_allow_death();
1737-
}
17381732

17391733
/// Unreleased migrations. Add new ones here:
1740-
pub type Unreleased = (
1741-
parachains_shared::migration::MigrateToV1<Runtime>,
1742-
parachains_scheduler::migration::MigrateV2ToV3<Runtime>,
1743-
pallet_child_bounties::migration::MigrateV0ToV1<Runtime, BalanceTransferAllowDeath>,
1744-
pallet_staking::migrations::v16::MigrateV15ToV16<Runtime>,
1745-
pallet_session::migrations::v1::MigrateV0ToV1<
1746-
Runtime,
1747-
pallet_staking::migrations::v17::MigrateDisabledToSession<Runtime>,
1748-
>,
1749-
);
1734+
pub type Unreleased = ();
17501735

17511736
/// Migrations/checks that do not need to be versioned and can run on every update.
1752-
pub type Permanent = (pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,);
1737+
pub type Permanent = pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>;
17531738
}
17541739

17551740
/// Unchecked extrinsic type as expected by this runtime.

system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
129129
spec_name: Cow::Borrowed("statemine"),
130130
impl_name: Cow::Borrowed("statemine"),
131131
authoring_version: 1,
132-
spec_version: 1_006_001,
132+
spec_version: 1_007_000,
133133
impl_version: 0,
134134
apis: RUNTIME_API_VERSIONS,
135135
transaction_version: 15,
@@ -215,7 +215,7 @@ parameter_types! {
215215
impl pallet_migrations::Config for Runtime {
216216
type RuntimeEvent = RuntimeEvent;
217217
#[cfg(not(feature = "runtime-benchmarks"))]
218-
type Migrations = pallet_revive::migrations::v1::Migration<Runtime>;
218+
type Migrations = migrations::MbmMigrations;
219219
// Benchmarks need mocked migrations to guarantee that they succeed.
220220
#[cfg(feature = "runtime-benchmarks")]
221221
type Migrations = pallet_migrations::mock_helpers::MockedMigrations;
@@ -1192,16 +1192,26 @@ impl EthExtra for EthExtraImpl {
11921192
pub type UncheckedExtrinsic =
11931193
pallet_revive::evm::runtime::UncheckedExtrinsic<Address, Signature, EthExtraImpl>;
11941194

1195-
/// Migrations to apply on runtime upgrade.
1196-
pub type Migrations = (
1197-
pallet_session::migrations::v1::MigrateV0ToV1<
1198-
Runtime,
1199-
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
1200-
>,
1201-
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
1202-
// permanent
1203-
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
1204-
);
1195+
/// All migrations that will run on the next runtime upgrade.
1196+
///
1197+
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
1198+
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
1199+
pub type Migrations = (migrations::Unreleased, migrations::Permanent);
1200+
1201+
/// The runtime migrations per release.
1202+
#[allow(deprecated, missing_docs)]
1203+
pub mod migrations {
1204+
use super::*;
1205+
1206+
/// Unreleased migrations. Add new ones here:
1207+
pub type Unreleased = ();
1208+
1209+
/// Migrations/checks that do not need to be versioned and can run on every update.
1210+
pub type Permanent = pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>;
1211+
1212+
/// MBM migrations to apply on runtime upgrade.
1213+
pub type MbmMigrations = pallet_revive::migrations::v1::Migration<Runtime>;
1214+
}
12051215

12061216
/// Executive: handles dispatch to the various modules.
12071217
pub type Executive = frame_executive::Executive<

system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
169169
impl_name: Cow::Borrowed("statemint"),
170170
spec_name: Cow::Borrowed("statemint"),
171171
authoring_version: 1,
172-
spec_version: 1_006_001,
172+
spec_version: 1_007_000,
173173
impl_version: 0,
174174
apis: RUNTIME_API_VERSIONS,
175175
transaction_version: 15,
@@ -1074,16 +1074,32 @@ pub type TxExtension = (
10741074
pub type UncheckedExtrinsic =
10751075
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, TxExtension>;
10761076

1077-
/// Migrations to apply on runtime upgrade.
1078-
pub type Migrations = (
1079-
pallet_session::migrations::v1::MigrateV0ToV1<
1080-
Runtime,
1081-
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
1082-
>,
1083-
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
1084-
// permanent
1085-
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
1086-
);
1077+
/// All migrations that will run on the next runtime upgrade.
1078+
///
1079+
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
1080+
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
1081+
pub type Migrations = (migrations::Unreleased, migrations::Permanent);
1082+
1083+
/// The runtime migrations per release.
1084+
#[allow(deprecated, missing_docs)]
1085+
pub mod migrations {
1086+
use super::*;
1087+
1088+
/// Unreleased migrations. Add new ones here:
1089+
pub type Unreleased = (
1090+
pallet_session::migrations::v1::MigrateV0ToV1<
1091+
Runtime,
1092+
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
1093+
>,
1094+
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
1095+
);
1096+
1097+
/// Migrations/checks that do not need to be versioned and can run on every update.
1098+
pub type Permanent = pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>;
1099+
1100+
/// MBM migrations to apply on runtime upgrade.
1101+
pub type MbmMigrations = ();
1102+
}
10871103

10881104
/// Executive: handles dispatch to the various modules.
10891105
pub type Executive = frame_executive::Executive<

system-parachains/bridge-hubs/bridge-hub-kusama/src/lib.rs

Lines changed: 19 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -137,38 +137,26 @@ bridge_runtime_common::generate_bridge_reject_obsolete_headers_and_messages! {
137137
pub type UncheckedExtrinsic =
138138
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, TxExtension>;
139139

140-
parameter_types! {
141-
pub EthereumInboundQueueName: &'static str = "EthereumInboundQueue";
142-
pub EthereumOutboundQueueName: &'static str = "EthereumOutboundQueue";
143-
pub EthereumBeaconClientName: &'static str = "EthereumBeaconClient";
144-
pub EthereumSystemName: &'static str = "EthereumSystem";
145-
}
140+
/// All migrations that will run on the next runtime upgrade.
141+
///
142+
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
143+
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
144+
pub type Migrations = (migrations::Unreleased, migrations::Permanent);
145+
146+
/// The runtime migrations per release.
147+
#[allow(deprecated, missing_docs)]
148+
pub mod migrations {
149+
use super::*;
146150

147-
parameter_types! {
148-
pub const BridgePolkadotMessagesPalletName: &'static str = "BridgePolkadotMessages";
149-
pub const OutboundLanesCongestedSignalsKey: &'static str = "OutboundLanesCongestedSignals";
150-
}
151+
/// Unreleased migrations. Add new ones here:
152+
pub type Unreleased = ();
151153

152-
/// Migrations to apply on runtime upgrade.
153-
pub type Migrations = (
154-
// Unreleased
155-
bridge_to_polkadot_config::migration::MigrateToXcm5<
156-
Runtime,
157-
bridge_to_polkadot_config::XcmOverBridgeHubPolkadotInstance,
158-
>,
159-
pallet_session::migrations::v1::MigrateV0ToV1<
160-
Runtime,
161-
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
162-
>,
163-
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
164-
pallet_bridge_relayers::migration::v2::MigrationToV2<
165-
Runtime,
166-
bridge_to_polkadot_config::RelayersForLegacyLaneIdsMessagesInstance,
167-
bp_messages::LegacyLaneId,
168-
>,
169-
// permanent
170-
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
171-
);
154+
/// Migrations/checks that do not need to be versioned and can run on every update.
155+
pub type Permanent = pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>;
156+
157+
/// MBM migrations to apply on runtime upgrade.
158+
pub type MbmMigrations = ();
159+
}
172160

173161
/// Executive: handles dispatch to the various modules.
174162
pub type Executive = frame_executive::Executive<
@@ -191,7 +179,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
191179
spec_name: Cow::Borrowed("bridge-hub-kusama"),
192180
impl_name: Cow::Borrowed("bridge-hub-kusama"),
193181
authoring_version: 1,
194-
spec_version: 1_006_001,
182+
spec_version: 1_007_000,
195183
impl_version: 0,
196184
apis: RUNTIME_API_VERSIONS,
197185
transaction_version: 5,

system-parachains/bridge-hubs/bridge-hub-polkadot/src/lib.rs

Lines changed: 41 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -147,31 +147,46 @@ parameter_types! {
147147
pub const NativeToForeignIdKey: &'static str = "NativeToForeignId";
148148
}
149149

150-
/// Migrations to apply on runtime upgrade.
151-
pub type Migrations = (
152-
// Unreleased
153-
bridge_to_kusama_config::migration::MigrateToXcm5<
154-
Runtime,
155-
bridge_to_kusama_config::XcmOverBridgeHubKusamaInstance,
156-
>,
157-
frame_support::migrations::RemoveStorage<
158-
EthereumSystemPalletName,
159-
NativeToForeignIdKey,
160-
RocksDbWeight,
161-
>,
162-
pallet_session::migrations::v1::MigrateV0ToV1<
163-
Runtime,
164-
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
165-
>,
166-
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
167-
pallet_bridge_relayers::migration::v2::MigrationToV2<
168-
Runtime,
169-
bridge_common_config::BridgeRelayersInstance,
170-
bp_messages::LegacyLaneId,
171-
>,
172-
// permanent
173-
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
174-
);
150+
/// All migrations that will run on the next runtime upgrade.
151+
///
152+
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
153+
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
154+
pub type Migrations = (migrations::Unreleased, migrations::Permanent);
155+
156+
/// The runtime migrations per release.
157+
#[allow(deprecated, missing_docs)]
158+
pub mod migrations {
159+
use super::*;
160+
161+
/// Unreleased migrations. Add new ones here:
162+
pub type Unreleased = (
163+
bridge_to_kusama_config::migration::MigrateToXcm5<
164+
Runtime,
165+
bridge_to_kusama_config::XcmOverBridgeHubKusamaInstance,
166+
>,
167+
frame_support::migrations::RemoveStorage<
168+
EthereumSystemPalletName,
169+
NativeToForeignIdKey,
170+
RocksDbWeight,
171+
>,
172+
pallet_session::migrations::v1::MigrateV0ToV1<
173+
Runtime,
174+
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
175+
>,
176+
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
177+
pallet_bridge_relayers::migration::v2::MigrationToV2<
178+
Runtime,
179+
bridge_common_config::BridgeRelayersInstance,
180+
bp_messages::LegacyLaneId,
181+
>,
182+
);
183+
184+
/// Migrations/checks that do not need to be versioned and can run on every update.
185+
pub type Permanent = pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>;
186+
187+
/// MBM migrations to apply on runtime upgrade.
188+
pub type MbmMigrations = ();
189+
}
175190

176191
/// Executive: handles dispatch to the various modules.
177192
pub type Executive = frame_executive::Executive<
@@ -194,7 +209,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
194209
spec_name: Cow::Borrowed("bridge-hub-polkadot"),
195210
impl_name: Cow::Borrowed("bridge-hub-polkadot"),
196211
authoring_version: 1,
197-
spec_version: 1_006_001,
212+
spec_version: 1_007_000,
198213
impl_version: 0,
199214
apis: RUNTIME_API_VERSIONS,
200215
transaction_version: 4,

system-parachains/collectives/collectives-polkadot/src/lib.rs

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
130130
spec_name: Cow::Borrowed("collectives"),
131131
impl_name: Cow::Borrowed("collectives"),
132132
authoring_version: 1,
133-
spec_version: 1_006_001,
133+
spec_version: 1_007_000,
134134
impl_version: 0,
135135
apis: RUNTIME_API_VERSIONS,
136136
transaction_version: 7,
@@ -830,17 +830,32 @@ pub type TxExtension = (
830830
pub type UncheckedExtrinsic =
831831
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, TxExtension>;
832832

833-
/// All migrations executed on runtime upgrade as a nested tuple of types implementing
834-
/// `OnRuntimeUpgrade`. Included migrations must be idempotent.
835-
type Migrations = (
836-
pallet_session::migrations::v1::MigrateV0ToV1<
837-
Runtime,
838-
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
839-
>,
840-
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
841-
// permanent
842-
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
843-
);
833+
/// All migrations that will run on the next runtime upgrade.
834+
///
835+
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
836+
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
837+
pub type Migrations = (migrations::Unreleased, migrations::Permanent);
838+
839+
/// The runtime migrations per release.
840+
#[allow(deprecated, missing_docs)]
841+
pub mod migrations {
842+
use super::*;
843+
844+
/// Unreleased migrations. Add new ones here:
845+
pub type Unreleased = (
846+
pallet_session::migrations::v1::MigrateV0ToV1<
847+
Runtime,
848+
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
849+
>,
850+
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
851+
);
852+
853+
/// Migrations/checks that do not need to be versioned and can run on every update.
854+
pub type Permanent = pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>;
855+
856+
/// MBM migrations to apply on runtime upgrade.
857+
pub type MbmMigrations = ();
858+
}
844859

845860
/// Executive: handles dispatch to the various modules.
846861
pub type Executive = frame_executive::Executive<

0 commit comments

Comments
 (0)