From 2a280196d7a5f7f1f1b2f554cad8aa28a8c22000 Mon Sep 17 00:00:00 2001 From: joepetrowski Date: Thu, 13 Jun 2024 15:10:59 +0200 Subject: [PATCH 1/3] update versions --- CHANGELOG.md | 11 ++++++++++- relay/kusama/src/lib.rs | 2 +- .../asset-hubs/asset-hub-kusama/src/lib.rs | 4 ++-- .../asset-hubs/asset-hub-polkadot/src/lib.rs | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4122bdd62b..1a49244ba0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,16 @@ Changelog for the runtimes governed by the Polkadot Fellowship. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). -## [Unreleased] +## [1.2.6] 13.06.2024 + +Note: This release only affects the following runtimes and is not a full system release: + +- Polkadot Relay Chain +- Polkadot Asset Hub +- Polkadot People +- Kusama Relay Chain +- Kusama Asset Hub +- Kusama People ### Added diff --git a/relay/kusama/src/lib.rs b/relay/kusama/src/lib.rs index 2c81b5268c..ded3ff7838 100644 --- a/relay/kusama/src/lib.rs +++ b/relay/kusama/src/lib.rs @@ -161,7 +161,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("kusama"), impl_name: create_runtime_str!("parity-kusama"), authoring_version: 2, - spec_version: 1_002_005, + spec_version: 1_002_006, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 26, diff --git a/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs b/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs index 1e0ad3b0a3..6af57dad08 100644 --- a/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs +++ b/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs @@ -112,7 +112,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("statemine"), impl_name: create_runtime_str!("statemine"), authoring_version: 1, - spec_version: 1_002_005, + spec_version: 1_002_006, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 15, @@ -128,7 +128,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("statemine"), impl_name: create_runtime_str!("statemine"), authoring_version: 1, - spec_version: 1_002_005, + spec_version: 1_002_006, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 15, diff --git a/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs b/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs index 3f5d1a65bb..e7de6ca0a8 100644 --- a/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs +++ b/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs @@ -146,7 +146,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("statemint"), impl_name: create_runtime_str!("statemint"), authoring_version: 1, - spec_version: 1_002_005, + spec_version: 1_002_006, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 15, From 2228766d13015e96eb2b8f0a9645c343a5503a6a Mon Sep 17 00:00:00 2001 From: joepetrowski Date: Thu, 13 Jun 2024 15:24:09 +0200 Subject: [PATCH 2/3] polkadot people phase 2 and release --- CHANGELOG.md | 12 ++++++++++++ .../people-polkadot/src/tests/reap_identity.rs | 3 +-- relay/polkadot/src/lib.rs | 7 +++---- .../people/people-polkadot/src/lib.rs | 17 ++++------------- 4 files changed, 20 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a49244ba0..7f0c044b4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,18 @@ Changelog for the runtimes governed by the Polkadot Fellowship. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [1.2.7] + +Note: This release only affects the following runtimes and is not a full system release: + +- Polkadot Relay Chain +- Polkadot Asset Hub +- Polkadot People + +### Changed + +- Updated Relay and People configurations to complete launch ([polkadot-fellows/runtimes#350](https://github.com/polkadot-fellows/runtimes/pull/350)) + ## [1.2.6] 13.06.2024 Note: This release only affects the following runtimes and is not a full system release: diff --git a/integration-tests/emulated/tests/people/people-polkadot/src/tests/reap_identity.rs b/integration-tests/emulated/tests/people/people-polkadot/src/tests/reap_identity.rs index 18226fd901..fb67e9e0e1 100644 --- a/integration-tests/emulated/tests/people/people-polkadot/src/tests/reap_identity.rs +++ b/integration-tests/emulated/tests/people/people-polkadot/src/tests/reap_identity.rs @@ -301,8 +301,7 @@ fn assert_reap_id_relay(total_deposit: Balance, id: &Identity) { assert_ok!(PolkadotIdentityMigrator::reap_identity( // Note: Root for launch testing, Signed once we open migrations. - // PolkadotOrigin::signed(PolkadotRelaySender::get()), - PolkadotOrigin::root(), + PolkadotOrigin::signed(PolkadotRelaySender::get()), PolkadotRelaySender::get() )); diff --git a/relay/polkadot/src/lib.rs b/relay/polkadot/src/lib.rs index fb9f0d1b95..8b1f72dd7f 100644 --- a/relay/polkadot/src/lib.rs +++ b/relay/polkadot/src/lib.rs @@ -68,7 +68,7 @@ use frame_support::{ weights::{ConstantMultiplier, WeightMeter}, PalletId, }; -use frame_system::EnsureRoot; +use frame_system::{EnsureRoot, EnsureSigned}; use pallet_grandpa::{fg_primitives, AuthorityId as GrandpaId}; use pallet_identity::legacy::IdentityInfo; use pallet_session::historical as session_historical; @@ -152,7 +152,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("polkadot"), impl_name: create_runtime_str!("parity-polkadot"), authoring_version: 0, - spec_version: 1_002_006, + spec_version: 1_002_007, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 26, @@ -859,9 +859,8 @@ impl pallet_identity::Config for Runtime { impl identity_migrator::Config for Runtime { type RuntimeEvent = RuntimeEvent; - // To be updated to `EnsureSigned` once the parachain is producing blocks. #[cfg(not(feature = "runtime-benchmarks"))] - type Reaper = EnsureRoot; + type Reaper = EnsureSigned; #[cfg(feature = "runtime-benchmarks")] type Reaper = impls::benchmarks::InitializeReaperForBenchmarking>; diff --git a/system-parachains/people/people-polkadot/src/lib.rs b/system-parachains/people/people-polkadot/src/lib.rs index fbd9b96d40..717c1f7b91 100644 --- a/system-parachains/people/people-polkadot/src/lib.rs +++ b/system-parachains/people/people-polkadot/src/lib.rs @@ -31,8 +31,8 @@ use frame_support::{ genesis_builder_helper::{build_config, create_default_config}, parameter_types, traits::{ - tokens::imbalance::ResolveTo, ConstBool, ConstU32, ConstU64, ConstU8, Contains, - EitherOfDiverse, EverythingBut, InstanceFilter, TransformOrigin, + tokens::imbalance::ResolveTo, ConstBool, ConstU32, ConstU64, ConstU8, EitherOfDiverse, + Everything, InstanceFilter, TransformOrigin, }, weights::{ConstantMultiplier, Weight}, PalletId, @@ -128,7 +128,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("people-polkadot"), impl_name: create_runtime_str!("people-polkadot"), authoring_version: 1, - spec_version: 1_002_006, + spec_version: 1_002_007, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 0, @@ -166,18 +166,9 @@ parameter_types! { pub const SS58Prefix: u8 = 0; } -/// A type to identify calls to the Identity pallet. These will be filtered to prevent invocation, -/// locking the state of the pallet and preventing updates to identities until the chain is stable. -pub struct IsIdentityCall; -impl Contains for IsIdentityCall { - fn contains(c: &RuntimeCall) -> bool { - matches!(c, RuntimeCall::Identity(_)) - } -} - #[derive_impl(frame_system::config_preludes::ParaChainDefaultConfig as frame_system::DefaultConfig)] impl frame_system::Config for Runtime { - type BaseCallFilter = EverythingBut; + type BaseCallFilter = Everything; type AccountId = AccountId; type Nonce = Nonce; type Hash = Hash; From d262e08516ecf6cf89a5c07cf05fed77bf1bdffc Mon Sep 17 00:00:00 2001 From: joepetrowski Date: Fri, 14 Jun 2024 06:29:28 +0200 Subject: [PATCH 3/3] fix import --- relay/polkadot/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/relay/polkadot/src/lib.rs b/relay/polkadot/src/lib.rs index 8b1f72dd7f..a3826f1eac 100644 --- a/relay/polkadot/src/lib.rs +++ b/relay/polkadot/src/lib.rs @@ -68,7 +68,7 @@ use frame_support::{ weights::{ConstantMultiplier, WeightMeter}, PalletId, }; -use frame_system::{EnsureRoot, EnsureSigned}; +use frame_system::EnsureRoot; use pallet_grandpa::{fg_primitives, AuthorityId as GrandpaId}; use pallet_identity::legacy::IdentityInfo; use pallet_session::historical as session_historical; @@ -136,6 +136,9 @@ pub mod xcm_config; use impls::ToParachainIdentityReaper; +#[cfg(not(feature = "runtime-benchmarks"))] +use frame_system::EnsureSigned; + pub const LOG_TARGET: &str = "runtime::polkadot"; use polkadot_runtime_common as runtime_common;