mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 07:27:55 +00:00
Skeleton of the Router module (#1726)
The purpose of this commit is to establish a foundation of the router module, it paves the way for the implementation of other features.
This commit is contained in:
@@ -22,14 +22,14 @@ use frame_support::{
|
||||
weights::DispatchClass,
|
||||
};
|
||||
use frame_system::ensure_root;
|
||||
use runtime_parachains::paras::{
|
||||
self,
|
||||
ParaGenesisArgs,
|
||||
use runtime_parachains::{
|
||||
router,
|
||||
paras::{self, ParaGenesisArgs},
|
||||
};
|
||||
use primitives::v1::Id as ParaId;
|
||||
|
||||
/// The module's configuration trait.
|
||||
pub trait Trait: paras::Trait { }
|
||||
pub trait Trait: paras::Trait + router::Trait { }
|
||||
|
||||
decl_error! {
|
||||
pub enum Error for Module<T: Trait> { }
|
||||
@@ -57,6 +57,7 @@ decl_module! {
|
||||
pub fn sudo_schedule_para_cleanup(origin, id: ParaId) -> DispatchResult {
|
||||
ensure_root(origin)?;
|
||||
paras::Module::<T>::schedule_para_cleanup(id);
|
||||
router::Module::<T>::schedule_para_cleanup(id);
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user