mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
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:
@@ -666,68 +666,66 @@ construct_runtime!(
|
||||
pub enum Runtime
|
||||
{
|
||||
// System support stuff.
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>} = 0,
|
||||
ParachainSystem: cumulus_pallet_parachain_system::{
|
||||
Pallet, Call, Config<T>, Storage, Inherent, Event<T>, ValidateUnsigned,
|
||||
} = 1,
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 2,
|
||||
ParachainInfo: parachain_info::{Pallet, Storage, Config<T>} = 3,
|
||||
System: frame_system = 0,
|
||||
ParachainSystem: cumulus_pallet_parachain_system = 1,
|
||||
Timestamp: pallet_timestamp = 2,
|
||||
ParachainInfo: parachain_info = 3,
|
||||
|
||||
// Monetary stuff.
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 10,
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event<T>} = 11,
|
||||
Balances: pallet_balances = 10,
|
||||
TransactionPayment: pallet_transaction_payment = 11,
|
||||
|
||||
// Collator support. The order of these 4 are important and shall not change.
|
||||
Authorship: pallet_authorship::{Pallet, Storage} = 20,
|
||||
CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 21,
|
||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 22,
|
||||
Aura: pallet_aura::{Pallet, Storage, Config<T>} = 23,
|
||||
AuraExt: cumulus_pallet_aura_ext::{Pallet, Storage, Config<T>} = 24,
|
||||
Authorship: pallet_authorship = 20,
|
||||
CollatorSelection: pallet_collator_selection = 21,
|
||||
Session: pallet_session = 22,
|
||||
Aura: pallet_aura = 23,
|
||||
AuraExt: cumulus_pallet_aura_ext = 24,
|
||||
|
||||
// XCM helpers.
|
||||
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 30,
|
||||
PolkadotXcm: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin, Config<T>} = 31,
|
||||
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 32,
|
||||
XcmpQueue: cumulus_pallet_xcmp_queue = 30,
|
||||
PolkadotXcm: pallet_xcm = 31,
|
||||
CumulusXcm: cumulus_pallet_xcm = 32,
|
||||
|
||||
// Handy utilities.
|
||||
Utility: pallet_utility::{Pallet, Call, Event} = 40,
|
||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 36,
|
||||
Utility: pallet_utility = 40,
|
||||
Multisig: pallet_multisig = 36,
|
||||
|
||||
// Bridge relayers pallet, used by several bridges here.
|
||||
BridgeRelayers: pallet_bridge_relayers::{Pallet, Call, Storage, Event<T>} = 47,
|
||||
BridgeRelayers: pallet_bridge_relayers = 47,
|
||||
|
||||
// With-Westend GRANDPA bridge module.
|
||||
BridgeWestendGrandpa: pallet_bridge_grandpa::<Instance3>::{Pallet, Call, Storage, Event<T>, Config<T>} = 48,
|
||||
BridgeWestendGrandpa: pallet_bridge_grandpa::<Instance3> = 48,
|
||||
// With-Westend parachain bridge module.
|
||||
BridgeWestendParachains: pallet_bridge_parachains::<Instance3>::{Pallet, Call, Storage, Event<T>} = 49,
|
||||
BridgeWestendParachains: pallet_bridge_parachains::<Instance3> = 49,
|
||||
// With-Westend messaging bridge module.
|
||||
BridgeWestendMessages: pallet_bridge_messages::<Instance3>::{Pallet, Call, Storage, Event<T>, Config<T>} = 51,
|
||||
BridgeWestendMessages: pallet_bridge_messages::<Instance3> = 51,
|
||||
// With-Westend bridge hub pallet.
|
||||
XcmOverBridgeHubWestend: pallet_xcm_bridge_hub::<Instance1>::{Pallet} = 52,
|
||||
XcmOverBridgeHubWestend: pallet_xcm_bridge_hub::<Instance1> = 52,
|
||||
|
||||
// With-Rococo Bulletin GRANDPA bridge module.
|
||||
//
|
||||
// we can't use `BridgeRococoBulletinGrandpa` name here, because the same Bulletin runtime will be
|
||||
// used for both Rococo and Polkadot Bulletin chains AND this name affects runtime storage keys, used
|
||||
// by the relayer process
|
||||
BridgePolkadotBulletinGrandpa: pallet_bridge_grandpa::<Instance4>::{Pallet, Call, Storage, Event<T>, Config<T>} = 60,
|
||||
// we can't use `BridgeRococoBulletinGrandpa` name here, because the same Bulletin runtime
|
||||
// will be used for both Rococo and Polkadot Bulletin chains AND this name affects runtime
|
||||
// storage keys, used by the relayer process.
|
||||
BridgePolkadotBulletinGrandpa: pallet_bridge_grandpa::<Instance4> = 60,
|
||||
// With-Rococo Bulletin messaging bridge module.
|
||||
//
|
||||
// we can't use `BridgeRococoBulletinMessages` name here, because the same Bulletin runtime will be
|
||||
// used for both Rococo and Polkadot Bulletin chains AND this name affects runtime storage keys, used
|
||||
// by this runtime and the relayer process
|
||||
BridgePolkadotBulletinMessages: pallet_bridge_messages::<Instance4>::{Pallet, Call, Storage, Event<T>, Config<T>} = 61,
|
||||
// we can't use `BridgeRococoBulletinMessages` name here, because the same Bulletin runtime
|
||||
// will be used for both Rococo and Polkadot Bulletin chains AND this name affects runtime
|
||||
// storage keys, used by this runtime and the relayer process.
|
||||
BridgePolkadotBulletinMessages: pallet_bridge_messages::<Instance4> = 61,
|
||||
// With-Rococo Bulletin bridge hub pallet.
|
||||
XcmOverPolkadotBulletin: pallet_xcm_bridge_hub::<Instance2>::{Pallet} = 62,
|
||||
XcmOverPolkadotBulletin: pallet_xcm_bridge_hub::<Instance2> = 62,
|
||||
|
||||
EthereumInboundQueue: snowbridge_pallet_inbound_queue::{Pallet, Call, Storage, Event<T>} = 80,
|
||||
EthereumOutboundQueue: snowbridge_pallet_outbound_queue::{Pallet, Call, Storage, Event<T>} = 81,
|
||||
EthereumBeaconClient: snowbridge_pallet_ethereum_client::{Pallet, Call, Storage, Event<T>} = 82,
|
||||
EthereumSystem: snowbridge_pallet_system::{Pallet, Call, Storage, Config<T>, Event<T>} = 83,
|
||||
EthereumInboundQueue: snowbridge_pallet_inbound_queue = 80,
|
||||
EthereumOutboundQueue: snowbridge_pallet_outbound_queue = 81,
|
||||
EthereumBeaconClient: snowbridge_pallet_ethereum_client = 82,
|
||||
EthereumSystem: snowbridge_pallet_system = 83,
|
||||
|
||||
// Message Queue. Importantly, is registered last so that messages are processed after
|
||||
// the `on_initialize` hooks of bridging pallets.
|
||||
MessageQueue: pallet_message_queue::{Pallet, Call, Storage, Event<T>} = 250,
|
||||
MessageQueue: pallet_message_queue = 250,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user