mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 22:01:04 +00:00
Update Westend / People Runtimes for Post-Migration (#3026)
This commit is contained in:
+1
-1
@@ -291,7 +291,7 @@ fn assert_reap_id_relay(total_deposit: Balance, id: &Identity) {
|
|||||||
assert_eq!(reserved_balance, total_deposit);
|
assert_eq!(reserved_balance, total_deposit);
|
||||||
|
|
||||||
assert_ok!(WestendIdentityMigrator::reap_identity(
|
assert_ok!(WestendIdentityMigrator::reap_identity(
|
||||||
WestendOrigin::root(),
|
WestendOrigin::signed(WestendRelaySender::get()),
|
||||||
WestendRelaySender::get()
|
WestendRelaySender::get()
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|||||||
@@ -30,8 +30,7 @@ use frame_support::{
|
|||||||
genesis_builder_helper::{build_config, create_default_config},
|
genesis_builder_helper::{build_config, create_default_config},
|
||||||
parameter_types,
|
parameter_types,
|
||||||
traits::{
|
traits::{
|
||||||
ConstBool, ConstU32, ConstU64, ConstU8, Contains, EitherOfDiverse, EverythingBut,
|
ConstBool, ConstU32, ConstU64, ConstU8, EitherOfDiverse, Everything, TransformOrigin,
|
||||||
TransformOrigin,
|
|
||||||
},
|
},
|
||||||
weights::{ConstantMultiplier, Weight},
|
weights::{ConstantMultiplier, Weight},
|
||||||
PalletId,
|
PalletId,
|
||||||
@@ -124,7 +123,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
|||||||
spec_name: create_runtime_str!("people-westend"),
|
spec_name: create_runtime_str!("people-westend"),
|
||||||
impl_name: create_runtime_str!("people-westend"),
|
impl_name: create_runtime_str!("people-westend"),
|
||||||
authoring_version: 1,
|
authoring_version: 1,
|
||||||
spec_version: 1_006_000,
|
spec_version: 1_006_001,
|
||||||
impl_version: 0,
|
impl_version: 0,
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
transaction_version: 0,
|
transaction_version: 0,
|
||||||
@@ -162,16 +161,9 @@ parameter_types! {
|
|||||||
pub const SS58Prefix: u8 = 42;
|
pub const SS58Prefix: u8 = 42;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct IdentityCalls;
|
|
||||||
impl Contains<RuntimeCall> for IdentityCalls {
|
|
||||||
fn contains(c: &RuntimeCall) -> bool {
|
|
||||||
matches!(c, RuntimeCall::Identity(_))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive_impl(frame_system::config_preludes::ParaChainDefaultConfig as frame_system::DefaultConfig)]
|
#[derive_impl(frame_system::config_preludes::ParaChainDefaultConfig as frame_system::DefaultConfig)]
|
||||||
impl frame_system::Config for Runtime {
|
impl frame_system::Config for Runtime {
|
||||||
type BaseCallFilter = EverythingBut<IdentityCalls>;
|
type BaseCallFilter = Everything;
|
||||||
type BlockWeights = RuntimeBlockWeights;
|
type BlockWeights = RuntimeBlockWeights;
|
||||||
type BlockLength = RuntimeBlockLength;
|
type BlockLength = RuntimeBlockLength;
|
||||||
type AccountId = AccountId;
|
type AccountId = AccountId;
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ use frame_support::{
|
|||||||
weights::{ConstantMultiplier, WeightMeter},
|
weights::{ConstantMultiplier, WeightMeter},
|
||||||
PalletId,
|
PalletId,
|
||||||
};
|
};
|
||||||
use frame_system::EnsureRoot;
|
use frame_system::{EnsureRoot, EnsureSigned};
|
||||||
use pallet_grandpa::{fg_primitives, AuthorityId as GrandpaId};
|
use pallet_grandpa::{fg_primitives, AuthorityId as GrandpaId};
|
||||||
use pallet_identity::legacy::IdentityInfo;
|
use pallet_identity::legacy::IdentityInfo;
|
||||||
use pallet_session::historical as session_historical;
|
use pallet_session::historical as session_historical;
|
||||||
@@ -147,7 +147,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
|||||||
spec_name: create_runtime_str!("westend"),
|
spec_name: create_runtime_str!("westend"),
|
||||||
impl_name: create_runtime_str!("parity-westend"),
|
impl_name: create_runtime_str!("parity-westend"),
|
||||||
authoring_version: 2,
|
authoring_version: 2,
|
||||||
spec_version: 1_006_000,
|
spec_version: 1_006_001,
|
||||||
impl_version: 0,
|
impl_version: 0,
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
transaction_version: 24,
|
transaction_version: 24,
|
||||||
@@ -1342,8 +1342,7 @@ impl auctions::Config for Runtime {
|
|||||||
|
|
||||||
impl identity_migrator::Config for Runtime {
|
impl identity_migrator::Config for Runtime {
|
||||||
type RuntimeEvent = RuntimeEvent;
|
type RuntimeEvent = RuntimeEvent;
|
||||||
// To be changed to `EnsureSigned` once there is a People Chain to migrate to.
|
type Reaper = EnsureSigned<AccountId>;
|
||||||
type Reaper = EnsureRoot<AccountId>;
|
|
||||||
type ReapIdentityHandler = ToParachainIdentityReaper<Runtime, Self::AccountId>;
|
type ReapIdentityHandler = ToParachainIdentityReaper<Runtime, Self::AccountId>;
|
||||||
type WeightInfo = weights::runtime_common_identity_migrator::WeightInfo<Runtime>;
|
type WeightInfo = weights::runtime_common_identity_migrator::WeightInfo<Runtime>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user