mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 01:11:04 +00:00
Add ParasSudoWrapper to test-runtime and bring back register_parachain to test-service (#1811)
* Make register/deregister parachain dispatchables This makes `register_parachain` and `deregister_parachain` of `Registrar` dispatchables. Besides that it brings back the functionality of the test node to register a parachain. * Fix tests * PR review comments
This commit is contained in:
@@ -63,8 +63,7 @@ use sp_core::OpaqueMetadata;
|
||||
use sp_staking::SessionIndex;
|
||||
use pallet_session::historical as session_historical;
|
||||
use frame_system::EnsureRoot;
|
||||
use runtime_common::paras_sudo_wrapper as paras_sudo_wrapper;
|
||||
use runtime_common::paras_registrar;
|
||||
use runtime_common::{paras_sudo_wrapper, paras_registrar};
|
||||
|
||||
use runtime_parachains::origin as parachains_origin;
|
||||
use runtime_parachains::configuration as parachains_configuration;
|
||||
@@ -740,9 +739,9 @@ impl pallet_authorship::Trait for Runtime {
|
||||
type EventHandler = (Staking, ImOnline);
|
||||
}
|
||||
|
||||
impl parachains_origin::Trait for Runtime { }
|
||||
impl parachains_origin::Trait for Runtime {}
|
||||
|
||||
impl parachains_configuration::Trait for Runtime { }
|
||||
impl parachains_configuration::Trait for Runtime {}
|
||||
|
||||
impl parachains_inclusion::Trait for Runtime {
|
||||
type Event = Event;
|
||||
@@ -752,17 +751,17 @@ impl parachains_paras::Trait for Runtime {
|
||||
type Origin = Origin;
|
||||
}
|
||||
|
||||
impl parachains_router::Trait for Runtime { }
|
||||
impl parachains_router::Trait for Runtime {}
|
||||
|
||||
impl parachains_inclusion_inherent::Trait for Runtime { }
|
||||
impl parachains_inclusion_inherent::Trait for Runtime {}
|
||||
|
||||
impl parachains_scheduler::Trait for Runtime { }
|
||||
impl parachains_scheduler::Trait for Runtime {}
|
||||
|
||||
impl parachains_initializer::Trait for Runtime {
|
||||
type Randomness = Babe;
|
||||
}
|
||||
|
||||
impl paras_sudo_wrapper::Trait for Runtime { }
|
||||
impl paras_sudo_wrapper::Trait for Runtime {}
|
||||
|
||||
impl paras_registrar::Trait for Runtime {
|
||||
type Currency = Balances;
|
||||
|
||||
Reference in New Issue
Block a user