Switch All construct_runtimes to New Syntax (#2979)

Clean up all the old syntax.

---------

Co-authored-by: command-bot <>
Co-authored-by: gupnik <nikhilgupta.iitk@gmail.com>
Co-authored-by: Nikhil Gupta <17176722+gupnik@users.noreply.github.com>
Co-authored-by: Maksym H <1177472+mordamax@users.noreply.github.com>
This commit is contained in:
joe petrowski
2024-01-22 08:15:53 +01:00
committed by GitHub
parent d37a45650e
commit 757ae372f7
133 changed files with 792 additions and 847 deletions
@@ -274,26 +274,24 @@ impl pallet_sudo::Config for Runtime {
construct_runtime! {
pub enum Runtime
{
System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>} = 0,
ParachainSystem: cumulus_pallet_parachain_system::{
Pallet, Call, Config<T>, Storage, Inherent, Event<T>, ValidateUnsigned,
} = 1,
ParachainInfo: parachain_info::{Pallet, Storage, Config<T>} = 2,
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 3,
System: frame_system = 0,
ParachainSystem: cumulus_pallet_parachain_system = 1,
ParachainInfo: parachain_info = 2,
Timestamp: pallet_timestamp = 3,
// DMP handler.
CumulusXcm: cumulus_pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 10,
MessageQueue: pallet_message_queue::{Pallet, Call, Storage, Event<T>} = 11,
CumulusXcm: cumulus_pallet_xcm = 10,
MessageQueue: pallet_message_queue = 11,
// The main stage.
Glutton: pallet_glutton::{Pallet, Call, Storage, Event, Config<T>} = 20,
Glutton: pallet_glutton = 20,
// Collator support
Aura: pallet_aura::{Pallet, Storage, Config<T>} = 30,
AuraExt: cumulus_pallet_aura_ext::{Pallet, Storage, Config<T>} = 31,
Aura: pallet_aura = 30,
AuraExt: cumulus_pallet_aura_ext = 31,
// Sudo.
Sudo: pallet_sudo::{Pallet, Call, Storage, Event<T>, Config<T>} = 255,
Sudo: pallet_sudo = 255,
}
}