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
+33 -33
View File
@@ -670,52 +670,52 @@ construct_runtime! {
pub enum Runtime
{
// Basic stuff; balances is uncallable initially.
System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},
System: frame_system,
// Must be before session.
Babe: pallet_babe::{Pallet, Call, Storage, Config<T>},
Babe: pallet_babe,
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
Indices: pallet_indices::{Pallet, Call, Storage, Config<T>, Event<T>},
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event<T>},
Timestamp: pallet_timestamp,
Indices: pallet_indices,
Balances: pallet_balances,
TransactionPayment: pallet_transaction_payment,
// Consensus support.
Authorship: pallet_authorship::{Pallet, Storage},
Staking: pallet_staking::{Pallet, Call, Storage, Config<T>, Event<T>},
Offences: pallet_offences::{Pallet, Storage, Event},
Historical: session_historical::{Pallet},
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>},
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config<T>, Event},
AuthorityDiscovery: pallet_authority_discovery::{Pallet, Config<T>},
Authorship: pallet_authorship,
Staking: pallet_staking,
Offences: pallet_offences,
Historical: session_historical,
Session: pallet_session,
Grandpa: pallet_grandpa,
AuthorityDiscovery: pallet_authority_discovery,
// Claims. Usable initially.
Claims: claims::{Pallet, Call, Storage, Event<T>, Config<T>, ValidateUnsigned},
Claims: claims,
// Vesting. Usable initially, but removed once all vesting is finished.
Vesting: pallet_vesting::{Pallet, Call, Storage, Event<T>, Config<T>},
Vesting: pallet_vesting,
// Parachains runtime modules
Configuration: parachains_configuration::{Pallet, Call, Storage, Config<T>},
ParaInclusion: parachains_inclusion::{Pallet, Call, Storage, Event<T>},
ParaInherent: parachains_paras_inherent::{Pallet, Call, Storage, Inherent},
Initializer: parachains_initializer::{Pallet, Call, Storage},
Paras: parachains_paras::{Pallet, Call, Storage, Event, ValidateUnsigned},
ParasShared: parachains_shared::{Pallet, Call, Storage},
Scheduler: parachains_scheduler::{Pallet, Storage},
ParasSudoWrapper: paras_sudo_wrapper::{Pallet, Call},
ParasOrigin: parachains_origin::{Pallet, Origin},
ParaSessionInfo: parachains_session_info::{Pallet, Storage},
Hrmp: parachains_hrmp::{Pallet, Call, Storage, Event<T>},
Dmp: parachains_dmp::{Pallet, Storage},
Xcm: pallet_xcm::{Pallet, Call, Event<T>, Origin},
ParasDisputes: parachains_disputes::{Pallet, Storage, Event<T>},
ParasSlashing: parachains_slashing::{Pallet, Call, Storage, ValidateUnsigned},
ParaAssignmentProvider: parachains_assigner_parachains::{Pallet},
Configuration: parachains_configuration,
ParaInclusion: parachains_inclusion,
ParaInherent: parachains_paras_inherent,
Initializer: parachains_initializer,
Paras: parachains_paras,
ParasShared: parachains_shared,
Scheduler: parachains_scheduler,
ParasSudoWrapper: paras_sudo_wrapper,
ParasOrigin: parachains_origin,
ParaSessionInfo: parachains_session_info,
Hrmp: parachains_hrmp,
Dmp: parachains_dmp,
Xcm: pallet_xcm,
ParasDisputes: parachains_disputes,
ParasSlashing: parachains_slashing,
ParaAssignmentProvider: parachains_assigner_parachains,
Sudo: pallet_sudo::{Pallet, Call, Storage, Config<T>, Event<T>},
Sudo: pallet_sudo,
TestNotifier: pallet_test_notifier::{Pallet, Call, Event<T>},
TestNotifier: pallet_test_notifier,
}
}