mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 23:31:07 +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:
@@ -493,7 +493,7 @@ impl pallet_parachain_template::Config for Runtime {
|
||||
|
||||
// Create the runtime by composing the FRAME pallets that were previously configured.
|
||||
construct_runtime!(
|
||||
pub struct Runtime {
|
||||
pub enum Runtime {
|
||||
// System support stuff.
|
||||
System: frame_system = 0,
|
||||
ParachainSystem: cumulus_pallet_parachain_system = 1,
|
||||
|
||||
@@ -895,48 +895,45 @@ 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} = 3,
|
||||
ParachainInfo: parachain_info::{Pallet, Storage, Config<T>} = 4,
|
||||
System: frame_system = 0,
|
||||
ParachainSystem: cumulus_pallet_parachain_system = 1,
|
||||
Timestamp: pallet_timestamp = 3,
|
||||
ParachainInfo: parachain_info = 4,
|
||||
|
||||
// Monetary stuff.
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 10,
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event<T>} = 11,
|
||||
AssetTxPayment: pallet_asset_conversion_tx_payment::{Pallet, Event<T>} = 13,
|
||||
Balances: pallet_balances = 10,
|
||||
TransactionPayment: pallet_transaction_payment = 11,
|
||||
AssetTxPayment: pallet_asset_conversion_tx_payment = 13,
|
||||
|
||||
// Collator support. the order of these 5 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,
|
||||
MessageQueue: pallet_message_queue::{Pallet, Call, Storage, Event<T>} = 34,
|
||||
XcmpQueue: cumulus_pallet_xcmp_queue = 30,
|
||||
PolkadotXcm: pallet_xcm = 31,
|
||||
CumulusXcm: cumulus_pallet_xcm = 32,
|
||||
MessageQueue: pallet_message_queue = 34,
|
||||
|
||||
// Handy utilities.
|
||||
Utility: pallet_utility::{Pallet, Call, Event} = 40,
|
||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 41,
|
||||
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 42,
|
||||
Utility: pallet_utility = 40,
|
||||
Multisig: pallet_multisig = 41,
|
||||
Proxy: pallet_proxy = 42,
|
||||
|
||||
// Bridge utilities.
|
||||
ToWestendXcmRouter: pallet_xcm_bridge_hub_router::<Instance3>::{Pallet, Storage, Call} = 45,
|
||||
ToWestendXcmRouter: pallet_xcm_bridge_hub_router::<Instance3> = 45,
|
||||
|
||||
// The main stage.
|
||||
Assets: pallet_assets::<Instance1>::{Pallet, Call, Storage, Event<T>} = 50,
|
||||
Uniques: pallet_uniques::{Pallet, Call, Storage, Event<T>} = 51,
|
||||
Nfts: pallet_nfts::{Pallet, Call, Storage, Event<T>} = 52,
|
||||
ForeignAssets: pallet_assets::<Instance2>::{Pallet, Call, Storage, Event<T>} = 53,
|
||||
NftFractionalization: pallet_nft_fractionalization::{Pallet, Call, Storage, Event<T>, HoldReason} = 54,
|
||||
|
||||
PoolAssets: pallet_assets::<Instance3>::{Pallet, Call, Storage, Event<T>} = 55,
|
||||
AssetConversion: pallet_asset_conversion::{Pallet, Call, Storage, Event<T>} = 56,
|
||||
Assets: pallet_assets::<Instance1> = 50,
|
||||
Uniques: pallet_uniques = 51,
|
||||
Nfts: pallet_nfts = 52,
|
||||
ForeignAssets: pallet_assets::<Instance2> = 53,
|
||||
NftFractionalization: pallet_nft_fractionalization = 54,
|
||||
PoolAssets: pallet_assets::<Instance3> = 55,
|
||||
AssetConversion: pallet_asset_conversion = 56,
|
||||
|
||||
#[cfg(feature = "state-trie-version-1")]
|
||||
StateTrieMigration: pallet_state_trie_migration = 70,
|
||||
|
||||
@@ -870,48 +870,46 @@ 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,
|
||||
System: frame_system = 0,
|
||||
ParachainSystem: cumulus_pallet_parachain_system = 1,
|
||||
// RandomnessCollectiveFlip = 2 removed
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 3,
|
||||
ParachainInfo: parachain_info::{Pallet, Storage, Config<T>} = 4,
|
||||
Timestamp: pallet_timestamp = 3,
|
||||
ParachainInfo: parachain_info = 4,
|
||||
|
||||
// Monetary stuff.
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 10,
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event<T>} = 11,
|
||||
// AssetTxPayment: pallet_asset_tx_payment::{Pallet, Event<T>} = 12,
|
||||
AssetTxPayment: pallet_asset_conversion_tx_payment::{Pallet, Event<T>} = 13,
|
||||
Balances: pallet_balances = 10,
|
||||
TransactionPayment: pallet_transaction_payment = 11,
|
||||
// AssetTxPayment: pallet_asset_tx_payment = 12,
|
||||
AssetTxPayment: pallet_asset_conversion_tx_payment = 13,
|
||||
|
||||
// Collator support. the order of these 5 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,
|
||||
// Bridge utilities.
|
||||
ToRococoXcmRouter: pallet_xcm_bridge_hub_router::<Instance1>::{Pallet, Storage, Call} = 34,
|
||||
MessageQueue: pallet_message_queue::{Pallet, Call, Storage, Event<T>} = 35,
|
||||
ToRococoXcmRouter: pallet_xcm_bridge_hub_router::<Instance1> = 34,
|
||||
MessageQueue: pallet_message_queue = 35,
|
||||
|
||||
// Handy utilities.
|
||||
Utility: pallet_utility::{Pallet, Call, Event} = 40,
|
||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 41,
|
||||
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 42,
|
||||
Utility: pallet_utility = 40,
|
||||
Multisig: pallet_multisig = 41,
|
||||
Proxy: pallet_proxy = 42,
|
||||
|
||||
// The main stage.
|
||||
Assets: pallet_assets::<Instance1>::{Pallet, Call, Storage, Event<T>} = 50,
|
||||
Uniques: pallet_uniques::{Pallet, Call, Storage, Event<T>} = 51,
|
||||
Nfts: pallet_nfts::{Pallet, Call, Storage, Event<T>} = 52,
|
||||
ForeignAssets: pallet_assets::<Instance2>::{Pallet, Call, Storage, Event<T>} = 53,
|
||||
NftFractionalization: pallet_nft_fractionalization::{Pallet, Call, Storage, Event<T>, HoldReason} = 54,
|
||||
PoolAssets: pallet_assets::<Instance3>::{Pallet, Call, Storage, Event<T>} = 55,
|
||||
AssetConversion: pallet_asset_conversion::{Pallet, Call, Storage, Event<T>} = 56,
|
||||
Assets: pallet_assets::<Instance1> = 50,
|
||||
Uniques: pallet_uniques = 51,
|
||||
Nfts: pallet_nfts = 52,
|
||||
ForeignAssets: pallet_assets::<Instance2> = 53,
|
||||
NftFractionalization: pallet_nft_fractionalization = 54,
|
||||
PoolAssets: pallet_assets::<Instance3> = 55,
|
||||
AssetConversion: pallet_asset_conversion = 56,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -460,43 +460,41 @@ 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,
|
||||
|
||||
// Bridging stuff.
|
||||
BridgeRelayers: pallet_bridge_relayers::{Pallet, Call, Storage, Event<T>} = 41,
|
||||
BridgeRococoGrandpa: pallet_bridge_grandpa::<Instance1>::{Pallet, Call, Storage, Event<T>, Config<T>} = 42,
|
||||
BridgeRococoParachains: pallet_bridge_parachains::<Instance1>::{Pallet, Call, Storage, Event<T>} = 43,
|
||||
BridgeRococoMessages: pallet_bridge_messages::<Instance1>::{Pallet, Call, Storage, Event<T>, Config<T>} = 44,
|
||||
XcmOverBridgeHubRococo: pallet_xcm_bridge_hub::<Instance1>::{Pallet} = 45,
|
||||
BridgeRelayers: pallet_bridge_relayers = 41,
|
||||
BridgeRococoGrandpa: pallet_bridge_grandpa::<Instance1> = 42,
|
||||
BridgeRococoParachains: pallet_bridge_parachains::<Instance1> = 43,
|
||||
BridgeRococoMessages: pallet_bridge_messages::<Instance1> = 44,
|
||||
XcmOverBridgeHubRococo: pallet_xcm_bridge_hub::<Instance1> = 45,
|
||||
|
||||
// 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,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -635,64 +635,62 @@ 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 5 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,
|
||||
MessageQueue: pallet_message_queue::{Pallet, Call, Storage, Event<T>} = 34,
|
||||
XcmpQueue: cumulus_pallet_xcmp_queue = 30,
|
||||
PolkadotXcm: pallet_xcm = 31,
|
||||
CumulusXcm: cumulus_pallet_xcm = 32,
|
||||
MessageQueue: pallet_message_queue = 34,
|
||||
|
||||
// Handy utilities.
|
||||
Utility: pallet_utility::{Pallet, Call, Event} = 40,
|
||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 41,
|
||||
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 42,
|
||||
Preimage: pallet_preimage::{Pallet, Call, Storage, Event<T>, HoldReason} = 43,
|
||||
Scheduler: pallet_scheduler::{Pallet, Call, Storage, Event<T>} = 44,
|
||||
AssetRate: pallet_asset_rate::{Pallet, Call, Storage, Event<T>} = 45,
|
||||
Utility: pallet_utility = 40,
|
||||
Multisig: pallet_multisig = 41,
|
||||
Proxy: pallet_proxy = 42,
|
||||
Preimage: pallet_preimage = 43,
|
||||
Scheduler: pallet_scheduler = 44,
|
||||
AssetRate: pallet_asset_rate = 45,
|
||||
|
||||
// The main stage.
|
||||
|
||||
// The Alliance.
|
||||
Alliance: pallet_alliance::{Pallet, Call, Storage, Event<T>, Config<T>} = 50,
|
||||
AllianceMotion: pallet_collective::<Instance1>::{Pallet, Call, Storage, Origin<T>, Event<T>, Config<T>} = 51,
|
||||
Alliance: pallet_alliance = 50,
|
||||
AllianceMotion: pallet_collective::<Instance1> = 51,
|
||||
|
||||
// The Fellowship.
|
||||
// pub type FellowshipCollectiveInstance = pallet_ranked_collective::Instance1;
|
||||
FellowshipCollective: pallet_ranked_collective::<Instance1>::{Pallet, Call, Storage, Event<T>} = 60,
|
||||
FellowshipCollective: pallet_ranked_collective::<Instance1> = 60,
|
||||
// pub type FellowshipReferendaInstance = pallet_referenda::Instance1;
|
||||
FellowshipReferenda: pallet_referenda::<Instance1>::{Pallet, Call, Storage, Event<T>} = 61,
|
||||
FellowshipOrigins: pallet_fellowship_origins::{Origin} = 62,
|
||||
FellowshipReferenda: pallet_referenda::<Instance1> = 61,
|
||||
FellowshipOrigins: pallet_fellowship_origins = 62,
|
||||
// pub type FellowshipCoreInstance = pallet_core_fellowship::Instance1;
|
||||
FellowshipCore: pallet_core_fellowship::<Instance1>::{Pallet, Call, Storage, Event<T>} = 63,
|
||||
FellowshipCore: pallet_core_fellowship::<Instance1> = 63,
|
||||
// pub type FellowshipSalaryInstance = pallet_salary::Instance1;
|
||||
FellowshipSalary: pallet_salary::<Instance1>::{Pallet, Call, Storage, Event<T>} = 64,
|
||||
FellowshipSalary: pallet_salary::<Instance1> = 64,
|
||||
// pub type FellowshipTreasuryInstance = pallet_treasury::Instance1;
|
||||
FellowshipTreasury: pallet_treasury::<Instance1>::{Pallet, Call, Storage, Event<T>} = 65,
|
||||
FellowshipTreasury: pallet_treasury::<Instance1> = 65,
|
||||
|
||||
// Ambassador Program.
|
||||
AmbassadorCollective: pallet_ranked_collective::<Instance2>::{Pallet, Call, Storage, Event<T>} = 70,
|
||||
AmbassadorReferenda: pallet_referenda::<Instance2>::{Pallet, Call, Storage, Event<T>} = 71,
|
||||
AmbassadorOrigins: pallet_ambassador_origins::{Origin} = 72,
|
||||
AmbassadorCore: pallet_core_fellowship::<Instance2>::{Pallet, Call, Storage, Event<T>} = 73,
|
||||
AmbassadorSalary: pallet_salary::<Instance2>::{Pallet, Call, Storage, Event<T>} = 74,
|
||||
AmbassadorContent: pallet_collective_content::<Instance1>::{Pallet, Call, Storage, Event<T>} = 75,
|
||||
AmbassadorCollective: pallet_ranked_collective::<Instance2> = 70,
|
||||
AmbassadorReferenda: pallet_referenda::<Instance2> = 71,
|
||||
AmbassadorOrigins: pallet_ambassador_origins = 72,
|
||||
AmbassadorCore: pallet_core_fellowship::<Instance2> = 73,
|
||||
AmbassadorSalary: pallet_salary::<Instance2> = 74,
|
||||
AmbassadorContent: pallet_collective_content::<Instance1> = 75,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -376,40 +376,38 @@ 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,
|
||||
RandomnessCollectiveFlip: pallet_insecure_randomness_collective_flip::{Pallet, Storage} = 2,
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 3,
|
||||
ParachainInfo: parachain_info::{Pallet, Storage, Config<T>} = 4,
|
||||
System: frame_system = 0,
|
||||
ParachainSystem: cumulus_pallet_parachain_system = 1,
|
||||
RandomnessCollectiveFlip: pallet_insecure_randomness_collective_flip = 2,
|
||||
Timestamp: pallet_timestamp = 3,
|
||||
ParachainInfo: parachain_info = 4,
|
||||
|
||||
// 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 5 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,
|
||||
MessageQueue: pallet_message_queue::{Pallet, Call, Storage, Event<T>} = 34,
|
||||
XcmpQueue: cumulus_pallet_xcmp_queue = 30,
|
||||
PolkadotXcm: pallet_xcm = 31,
|
||||
CumulusXcm: cumulus_pallet_xcm = 32,
|
||||
MessageQueue: pallet_message_queue = 34,
|
||||
|
||||
// Smart Contracts.
|
||||
Contracts: pallet_contracts::{Pallet, Call, Storage, Event<T>, HoldReason} = 40,
|
||||
Contracts: pallet_contracts = 40,
|
||||
|
||||
// Handy utilities.
|
||||
Utility: pallet_utility::{Pallet, Call, Event} = 50,
|
||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 51,
|
||||
Utility: pallet_utility = 50,
|
||||
Multisig: pallet_multisig = 51,
|
||||
|
||||
// Sudo
|
||||
Sudo: pallet_sudo::{Pallet, Call, Config<T>, Event<T>, Storage} = 100,
|
||||
Sudo: pallet_sudo = 100,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -400,39 +400,37 @@ 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 5 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 & related
|
||||
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,
|
||||
MessageQueue: pallet_message_queue::{Pallet, Call, Storage, Event<T>} = 34,
|
||||
XcmpQueue: cumulus_pallet_xcmp_queue = 30,
|
||||
PolkadotXcm: pallet_xcm = 31,
|
||||
CumulusXcm: cumulus_pallet_xcm = 32,
|
||||
MessageQueue: pallet_message_queue = 34,
|
||||
|
||||
// Handy utilities.
|
||||
Utility: pallet_utility::{Pallet, Call, Event} = 40,
|
||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 41,
|
||||
Utility: pallet_utility = 40,
|
||||
Multisig: pallet_multisig = 41,
|
||||
|
||||
// The main stage.
|
||||
Identity: pallet_identity::{Pallet, Call, Storage, Event<T>} = 50,
|
||||
Identity: pallet_identity = 50,
|
||||
|
||||
// To migrate deposits
|
||||
IdentityMigrator: identity_migrator::{Pallet, Call, Event<T>} = 248,
|
||||
IdentityMigrator: identity_migrator = 248,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -408,39 +408,37 @@ 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 5 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,
|
||||
MessageQueue: pallet_message_queue::{Pallet, Call, Storage, Event<T>} = 34,
|
||||
XcmpQueue: cumulus_pallet_xcmp_queue = 30,
|
||||
PolkadotXcm: pallet_xcm = 31,
|
||||
CumulusXcm: cumulus_pallet_xcm = 32,
|
||||
MessageQueue: pallet_message_queue = 34,
|
||||
|
||||
// Handy utilities.
|
||||
Utility: pallet_utility::{Pallet, Call, Event} = 40,
|
||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 41,
|
||||
Utility: pallet_utility = 40,
|
||||
Multisig: pallet_multisig = 41,
|
||||
|
||||
// The main stage.
|
||||
Identity: pallet_identity::{Pallet, Call, Storage, Event<T>} = 50,
|
||||
Identity: pallet_identity = 50,
|
||||
|
||||
// To migrate deposits
|
||||
IdentityMigrator: identity_migrator::{Pallet, Call, Event<T>} = 248,
|
||||
IdentityMigrator: identity_migrator = 248,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -230,17 +230,15 @@ impl pallet_timestamp::Config for Runtime {
|
||||
construct_runtime! {
|
||||
pub enum Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Sudo: pallet_sudo::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
||||
System: frame_system,
|
||||
Sudo: pallet_sudo,
|
||||
Timestamp: pallet_timestamp,
|
||||
|
||||
ParachainSystem: cumulus_pallet_parachain_system::{
|
||||
Pallet, Call, Config<T>, Storage, Inherent, Event<T>, ValidateUnsigned,
|
||||
},
|
||||
ParachainInfo: parachain_info::{Pallet, Storage, Config<T>},
|
||||
SoloToPara: cumulus_pallet_solo_to_para::{Pallet, Call, Storage, Event},
|
||||
Aura: pallet_aura::{Pallet, Storage, Config<T>},
|
||||
AuraExt: cumulus_pallet_aura_ext::{Pallet, Storage, Config<T>},
|
||||
ParachainSystem: cumulus_pallet_parachain_system,
|
||||
ParachainInfo: parachain_info,
|
||||
SoloToPara: cumulus_pallet_solo_to_para,
|
||||
Aura: pallet_aura,
|
||||
AuraExt: cumulus_pallet_aura_ext,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -258,19 +258,17 @@ impl pallet_timestamp::Config for Runtime {
|
||||
construct_runtime! {
|
||||
pub enum Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
||||
System: frame_system,
|
||||
Timestamp: pallet_timestamp,
|
||||
|
||||
ParachainSystem: cumulus_pallet_parachain_system::{
|
||||
Pallet, Call, Config<T>, Storage, Inherent, Event<T>, ValidateUnsigned,
|
||||
},
|
||||
ParachainInfo: parachain_info::{Pallet, Storage, Config<T>},
|
||||
ParachainSystem: cumulus_pallet_parachain_system,
|
||||
ParachainInfo: parachain_info,
|
||||
|
||||
CumulusXcm: cumulus_pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin},
|
||||
MessageQueue: pallet_message_queue::{Pallet, Call, Storage, Event<T>},
|
||||
CumulusXcm: cumulus_pallet_xcm,
|
||||
MessageQueue: pallet_message_queue,
|
||||
|
||||
Aura: pallet_aura::{Pallet, Storage, Config<T>},
|
||||
AuraExt: cumulus_pallet_aura_ext::{Pallet, Storage, Config<T>},
|
||||
Aura: pallet_aura,
|
||||
AuraExt: cumulus_pallet_aura_ext,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -634,36 +634,34 @@ 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,
|
||||
AssetTxPayment: pallet_asset_tx_payment::{Pallet, Event<T>} = 12,
|
||||
Balances: pallet_balances = 10,
|
||||
TransactionPayment: pallet_transaction_payment = 11,
|
||||
AssetTxPayment: pallet_asset_tx_payment = 12,
|
||||
|
||||
// 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, Event<T>, Origin, Config<T>} = 31,
|
||||
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 32,
|
||||
MessageQueue: pallet_message_queue::{Pallet, Call, Storage, Event<T>} = 34,
|
||||
XcmpQueue: cumulus_pallet_xcmp_queue = 30,
|
||||
PolkadotXcm: pallet_xcm = 31,
|
||||
CumulusXcm: cumulus_pallet_xcm = 32,
|
||||
MessageQueue: pallet_message_queue = 34,
|
||||
|
||||
// The main stage.
|
||||
Assets: pallet_assets::<Instance1>::{Pallet, Call, Storage, Event<T>} = 50,
|
||||
ForeignAssets: pallet_assets::<Instance2>::{Pallet, Call, Storage, Event<T>} = 51,
|
||||
Assets: pallet_assets::<Instance1> = 50,
|
||||
ForeignAssets: pallet_assets::<Instance2> = 51,
|
||||
|
||||
Sudo: pallet_sudo::{Pallet, Call, Storage, Event<T>, Config<T>} = 255,
|
||||
Sudo: pallet_sudo = 255,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -603,30 +603,28 @@ impl pallet_aura::Config for Runtime {
|
||||
construct_runtime! {
|
||||
pub enum Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
||||
Sudo: pallet_sudo::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Timestamp: pallet_timestamp,
|
||||
Sudo: pallet_sudo,
|
||||
TransactionPayment: pallet_transaction_payment,
|
||||
|
||||
ParachainSystem: cumulus_pallet_parachain_system::{
|
||||
Pallet, Call, Config<T>, Storage, Inherent, Event<T>, ValidateUnsigned,
|
||||
} = 20,
|
||||
ParachainInfo: parachain_info::{Pallet, Storage, Config<T>} = 21,
|
||||
ParachainSystem: cumulus_pallet_parachain_system = 20,
|
||||
ParachainInfo: parachain_info = 21,
|
||||
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 30,
|
||||
Assets: pallet_assets::{Pallet, Call, Storage, Event<T>} = 31,
|
||||
Balances: pallet_balances = 30,
|
||||
Assets: pallet_assets = 31,
|
||||
|
||||
Aura: pallet_aura::{Pallet, Config<T>},
|
||||
AuraExt: cumulus_pallet_aura_ext::{Pallet, Config<T>},
|
||||
Aura: pallet_aura,
|
||||
AuraExt: cumulus_pallet_aura_ext,
|
||||
|
||||
// XCM helpers.
|
||||
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 50,
|
||||
PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin, Config<T>} = 51,
|
||||
CumulusXcm: cumulus_pallet_xcm::{Pallet, Call, Event<T>, Origin} = 52,
|
||||
XcmpQueue: cumulus_pallet_xcmp_queue = 50,
|
||||
PolkadotXcm: pallet_xcm = 51,
|
||||
CumulusXcm: cumulus_pallet_xcm = 52,
|
||||
// RIP DmpQueue 53
|
||||
MessageQueue: pallet_message_queue::{Pallet, Call, Storage, Event<T>} = 54,
|
||||
MessageQueue: pallet_message_queue = 54,
|
||||
|
||||
Spambot: cumulus_ping::{Pallet, Call, Storage, Event<T>} = 99,
|
||||
Spambot: cumulus_ping = 99,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -428,8 +428,8 @@ pub mod pallet {
|
||||
use crate::guides::your_first_pallet::pallet as pallet_currency;
|
||||
|
||||
construct_runtime!(
|
||||
pub struct Runtime {
|
||||
// ---^^^^^^ This is where `struct Runtime` is defined.
|
||||
pub enum Runtime {
|
||||
// ---^^^^^^ This is where `enum Runtime` is defined.
|
||||
System: frame_system,
|
||||
Currency: pallet_currency,
|
||||
}
|
||||
@@ -708,7 +708,7 @@ pub mod pallet_v2 {
|
||||
use crate::guides::your_first_pallet::pallet_v2 as pallet_currency;
|
||||
|
||||
construct_runtime!(
|
||||
pub struct Runtime {
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
Currency: pallet_currency,
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ mod tests {
|
||||
|
||||
#[docify::export(CR)]
|
||||
construct_runtime!(
|
||||
pub struct Runtime {
|
||||
pub enum Runtime {
|
||||
// system-level pallets.
|
||||
System: frame_system,
|
||||
Timestamp: pallet_timestamp,
|
||||
|
||||
@@ -156,9 +156,9 @@ mod tests {
|
||||
use super::pallet as pallet_example;
|
||||
use frame::{prelude::*, testing_prelude::*};
|
||||
|
||||
// The major macro that amalgamates pallets into `struct Runtime`
|
||||
// The major macro that amalgamates pallets into `enum Runtime`
|
||||
construct_runtime!(
|
||||
pub struct Runtime {
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
Example: pallet_example,
|
||||
}
|
||||
|
||||
@@ -658,13 +658,13 @@ mod tests {
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Configuration: parachains_configuration::{Pallet, Call, Storage, Config<T>},
|
||||
ParasShared: parachains_shared::{Pallet, Call, Storage},
|
||||
Parachains: parachains_paras::{Pallet, Call, Storage, Config<T>, Event},
|
||||
Slots: slots::{Pallet, Call, Storage, Event<T>},
|
||||
AssignedSlots: assigned_slots::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Configuration: parachains_configuration,
|
||||
ParasShared: parachains_shared,
|
||||
Parachains: parachains_paras,
|
||||
Slots: slots,
|
||||
AssignedSlots: assigned_slots,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -697,9 +697,9 @@ mod tests {
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Auctions: auctions::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Auctions: auctions,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -727,10 +727,10 @@ mod tests {
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Vesting: pallet_vesting::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Claims: claims::{Pallet, Call, Storage, Config<T>, Event<T>, ValidateUnsigned},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Vesting: pallet_vesting,
|
||||
Claims: claims,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -888,9 +888,9 @@ mod tests {
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Crowdloan: crowdloan::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Crowdloan: crowdloan,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -242,10 +242,10 @@ mod tests {
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Authorship: pallet_authorship::{Pallet, Storage},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Treasury: pallet_treasury::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
System: frame_system,
|
||||
Authorship: pallet_authorship,
|
||||
Balances: pallet_balances,
|
||||
Treasury: pallet_treasury,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -74,25 +74,25 @@ frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
// System Stuff
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Babe: pallet_babe::{Pallet, Call, Storage, Config<T>, ValidateUnsigned},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Babe: pallet_babe,
|
||||
|
||||
// Parachains Runtime
|
||||
Configuration: configuration::{Pallet, Call, Storage, Config<T>},
|
||||
Paras: paras::{Pallet, Call, Storage, Event, Config<T>},
|
||||
ParasShared: shared::{Pallet, Call, Storage},
|
||||
ParachainsOrigin: origin::{Pallet, Origin},
|
||||
Configuration: configuration,
|
||||
Paras: paras,
|
||||
ParasShared: shared,
|
||||
ParachainsOrigin: origin,
|
||||
|
||||
// Para Onboarding Pallets
|
||||
Registrar: paras_registrar::{Pallet, Call, Storage, Event<T>},
|
||||
Auctions: auctions::{Pallet, Call, Storage, Event<T>},
|
||||
Crowdloan: crowdloan::{Pallet, Call, Storage, Event<T>},
|
||||
Slots: slots::{Pallet, Call, Storage, Event<T>},
|
||||
Registrar: paras_registrar,
|
||||
Auctions: auctions,
|
||||
Crowdloan: crowdloan,
|
||||
Slots: slots,
|
||||
|
||||
// Migrators
|
||||
Identity: pallet_identity::{Pallet, Call, Storage, Event<T>},
|
||||
IdentityMigrator: identity_migrator::{Pallet, Call, Event<T>},
|
||||
Identity: pallet_identity,
|
||||
IdentityMigrator: identity_migrator,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -724,13 +724,13 @@ mod tests {
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Configuration: configuration::{Pallet, Call, Storage, Config<T>},
|
||||
Parachains: paras::{Pallet, Call, Storage, Config<T>, Event},
|
||||
ParasShared: shared::{Pallet, Call, Storage},
|
||||
Registrar: paras_registrar::{Pallet, Call, Storage, Event<T>},
|
||||
ParachainsOrigin: origin::{Pallet, Origin},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Configuration: configuration,
|
||||
Parachains: paras,
|
||||
ParasShared: shared,
|
||||
Registrar: paras_registrar,
|
||||
ParachainsOrigin: origin,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -499,10 +499,10 @@ mod tests {
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Vesting: pallet_vesting::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Purchase: purchase::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Vesting: pallet_vesting,
|
||||
Purchase: purchase,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -520,9 +520,9 @@ mod tests {
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Slots: slots::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Slots: slots,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -1315,135 +1315,131 @@ construct_runtime! {
|
||||
pub enum Runtime
|
||||
{
|
||||
// Basic stuff; balances is uncallable initially.
|
||||
System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>} = 0,
|
||||
System: frame_system = 0,
|
||||
|
||||
// Babe must be before session.
|
||||
Babe: pallet_babe::{Pallet, Call, Storage, Config<T>, ValidateUnsigned} = 1,
|
||||
Babe: pallet_babe = 1,
|
||||
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 2,
|
||||
Indices: pallet_indices::{Pallet, Call, Storage, Config<T>, Event<T>} = 3,
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 4,
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event<T>} = 33,
|
||||
Timestamp: pallet_timestamp = 2,
|
||||
Indices: pallet_indices = 3,
|
||||
Balances: pallet_balances = 4,
|
||||
TransactionPayment: pallet_transaction_payment = 33,
|
||||
|
||||
// Consensus support.
|
||||
// Authorship must be before session in order to note author in the correct session and era.
|
||||
Authorship: pallet_authorship::{Pallet, Storage} = 5,
|
||||
Offences: pallet_offences::{Pallet, Storage, Event} = 7,
|
||||
Historical: session_historical::{Pallet} = 34,
|
||||
Authorship: pallet_authorship = 5,
|
||||
Offences: pallet_offences = 7,
|
||||
Historical: session_historical = 34,
|
||||
|
||||
// BEEFY Bridges support.
|
||||
Beefy: pallet_beefy::{Pallet, Call, Storage, Config<T>, ValidateUnsigned} = 240,
|
||||
Beefy: pallet_beefy = 240,
|
||||
// MMR leaf construction must be before session in order to have leaf contents
|
||||
// refer to block<N-1> consistently. see substrate issue #11797 for details.
|
||||
Mmr: pallet_mmr::{Pallet, Storage} = 241,
|
||||
MmrLeaf: pallet_beefy_mmr::{Pallet, Storage} = 242,
|
||||
Mmr: pallet_mmr = 241,
|
||||
MmrLeaf: pallet_beefy_mmr = 242,
|
||||
|
||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 8,
|
||||
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config<T>, Event, ValidateUnsigned} = 10,
|
||||
AuthorityDiscovery: pallet_authority_discovery::{Pallet, Config<T>} = 12,
|
||||
Session: pallet_session = 8,
|
||||
Grandpa: pallet_grandpa = 10,
|
||||
AuthorityDiscovery: pallet_authority_discovery = 12,
|
||||
|
||||
// Governance stuff; uncallable initially.
|
||||
Treasury: pallet_treasury::{Pallet, Call, Storage, Config<T>, Event<T>} = 18,
|
||||
ConvictionVoting: pallet_conviction_voting::{Pallet, Call, Storage, Event<T>} = 20,
|
||||
Referenda: pallet_referenda::{Pallet, Call, Storage, Event<T>} = 21,
|
||||
Treasury: pallet_treasury = 18,
|
||||
ConvictionVoting: pallet_conviction_voting = 20,
|
||||
Referenda: pallet_referenda = 21,
|
||||
// pub type FellowshipCollectiveInstance = pallet_ranked_collective::Instance1;
|
||||
FellowshipCollective: pallet_ranked_collective::<Instance1>::{
|
||||
Pallet, Call, Storage, Event<T>
|
||||
} = 22,
|
||||
FellowshipCollective: pallet_ranked_collective::<Instance1> = 22,
|
||||
// pub type FellowshipReferendaInstance = pallet_referenda::Instance2;
|
||||
FellowshipReferenda: pallet_referenda::<Instance2>::{
|
||||
Pallet, Call, Storage, Event<T>
|
||||
} = 23,
|
||||
Origins: pallet_custom_origins::{Origin} = 43,
|
||||
Whitelist: pallet_whitelist::{Pallet, Call, Storage, Event<T>} = 44,
|
||||
FellowshipReferenda: pallet_referenda::<Instance2> = 23,
|
||||
Origins: pallet_custom_origins = 43,
|
||||
Whitelist: pallet_whitelist = 44,
|
||||
// Claims. Usable initially.
|
||||
Claims: claims::{Pallet, Call, Storage, Event<T>, Config<T>, ValidateUnsigned} = 19,
|
||||
Claims: claims = 19,
|
||||
|
||||
// Utility module.
|
||||
Utility: pallet_utility::{Pallet, Call, Event} = 24,
|
||||
Utility: pallet_utility = 24,
|
||||
|
||||
// Less simple identity module.
|
||||
Identity: pallet_identity::{Pallet, Call, Storage, Event<T>} = 25,
|
||||
Identity: pallet_identity = 25,
|
||||
|
||||
// Society module.
|
||||
Society: pallet_society::{Pallet, Call, Storage, Event<T>} = 26,
|
||||
Society: pallet_society = 26,
|
||||
|
||||
// Social recovery module.
|
||||
Recovery: pallet_recovery::{Pallet, Call, Storage, Event<T>} = 27,
|
||||
Recovery: pallet_recovery = 27,
|
||||
|
||||
// Vesting. Usable initially, but removed once all vesting is finished.
|
||||
Vesting: pallet_vesting::{Pallet, Call, Storage, Event<T>, Config<T>} = 28,
|
||||
Vesting: pallet_vesting = 28,
|
||||
|
||||
// System scheduler.
|
||||
Scheduler: pallet_scheduler::{Pallet, Call, Storage, Event<T>} = 29,
|
||||
Scheduler: pallet_scheduler = 29,
|
||||
|
||||
// Proxy module. Late addition.
|
||||
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 30,
|
||||
Proxy: pallet_proxy = 30,
|
||||
|
||||
// Multisig module. Late addition.
|
||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 31,
|
||||
Multisig: pallet_multisig = 31,
|
||||
|
||||
// Preimage registrar.
|
||||
Preimage: pallet_preimage::{Pallet, Call, Storage, Event<T>, HoldReason} = 32,
|
||||
Preimage: pallet_preimage = 32,
|
||||
|
||||
// Asset rate.
|
||||
AssetRate: pallet_asset_rate::{Pallet, Call, Storage, Event<T>} = 39,
|
||||
AssetRate: pallet_asset_rate = 39,
|
||||
|
||||
// Bounties modules.
|
||||
Bounties: pallet_bounties::{Pallet, Call, Storage, Event<T>} = 35,
|
||||
Bounties: pallet_bounties = 35,
|
||||
ChildBounties: pallet_child_bounties = 40,
|
||||
|
||||
// NIS pallet.
|
||||
Nis: pallet_nis::{Pallet, Call, Storage, Event<T>, HoldReason} = 38,
|
||||
Nis: pallet_nis = 38,
|
||||
// pub type NisCounterpartInstance = pallet_balances::Instance2;
|
||||
NisCounterpartBalances: pallet_balances::<Instance2> = 45,
|
||||
|
||||
// Parachains pallets. Start indices at 50 to leave room.
|
||||
ParachainsOrigin: parachains_origin::{Pallet, Origin} = 50,
|
||||
Configuration: parachains_configuration::{Pallet, Call, Storage, Config<T>} = 51,
|
||||
ParasShared: parachains_shared::{Pallet, Call, Storage} = 52,
|
||||
ParaInclusion: parachains_inclusion::{Pallet, Call, Storage, Event<T>} = 53,
|
||||
ParaInherent: parachains_paras_inherent::{Pallet, Call, Storage, Inherent} = 54,
|
||||
ParaScheduler: parachains_scheduler::{Pallet, Storage} = 55,
|
||||
Paras: parachains_paras::{Pallet, Call, Storage, Event, Config<T>, ValidateUnsigned} = 56,
|
||||
Initializer: parachains_initializer::{Pallet, Call, Storage} = 57,
|
||||
Dmp: parachains_dmp::{Pallet, Storage} = 58,
|
||||
Hrmp: parachains_hrmp::{Pallet, Call, Storage, Event<T>, Config<T>} = 60,
|
||||
ParaSessionInfo: parachains_session_info::{Pallet, Storage} = 61,
|
||||
ParasDisputes: parachains_disputes::{Pallet, Call, Storage, Event<T>} = 62,
|
||||
ParasSlashing: parachains_slashing::{Pallet, Call, Storage, ValidateUnsigned} = 63,
|
||||
MessageQueue: pallet_message_queue::{Pallet, Call, Storage, Event<T>} = 64,
|
||||
OnDemandAssignmentProvider: parachains_assigner_on_demand::{Pallet, Call, Storage, Event<T>} = 66,
|
||||
ParachainsAssignmentProvider: parachains_assigner_parachains::{Pallet} = 67,
|
||||
CoretimeAssignmentProvider: parachains_assigner_coretime::{Pallet, Storage} = 68,
|
||||
ParachainsOrigin: parachains_origin = 50,
|
||||
Configuration: parachains_configuration = 51,
|
||||
ParasShared: parachains_shared = 52,
|
||||
ParaInclusion: parachains_inclusion = 53,
|
||||
ParaInherent: parachains_paras_inherent = 54,
|
||||
ParaScheduler: parachains_scheduler = 55,
|
||||
Paras: parachains_paras = 56,
|
||||
Initializer: parachains_initializer = 57,
|
||||
Dmp: parachains_dmp = 58,
|
||||
Hrmp: parachains_hrmp = 60,
|
||||
ParaSessionInfo: parachains_session_info = 61,
|
||||
ParasDisputes: parachains_disputes = 62,
|
||||
ParasSlashing: parachains_slashing = 63,
|
||||
MessageQueue: pallet_message_queue = 64,
|
||||
OnDemandAssignmentProvider: parachains_assigner_on_demand = 66,
|
||||
ParachainsAssignmentProvider: parachains_assigner_parachains = 67,
|
||||
CoretimeAssignmentProvider: parachains_assigner_coretime = 68,
|
||||
|
||||
// Parachain Onboarding Pallets. Start indices at 70 to leave room.
|
||||
Registrar: paras_registrar::{Pallet, Call, Storage, Event<T>, Config<T>} = 70,
|
||||
Slots: slots::{Pallet, Call, Storage, Event<T>} = 71,
|
||||
Auctions: auctions::{Pallet, Call, Storage, Event<T>} = 72,
|
||||
Crowdloan: crowdloan::{Pallet, Call, Storage, Event<T>} = 73,
|
||||
Coretime: coretime::{Pallet, Call, Event<T>} = 74,
|
||||
Registrar: paras_registrar = 70,
|
||||
Slots: slots = 71,
|
||||
Auctions: auctions = 72,
|
||||
Crowdloan: crowdloan = 73,
|
||||
Coretime: coretime = 74,
|
||||
|
||||
// Pallet for sending XCM.
|
||||
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin, Config<T>} = 99,
|
||||
XcmPallet: pallet_xcm = 99,
|
||||
|
||||
// Pallet for migrating Identity to a parachain. To be removed post-migration.
|
||||
IdentityMigrator: identity_migrator::{Pallet, Call, Event<T>} = 248,
|
||||
IdentityMigrator: identity_migrator = 248,
|
||||
|
||||
ParasSudoWrapper: paras_sudo_wrapper::{Pallet, Call} = 250,
|
||||
AssignedSlots: assigned_slots::{Pallet, Call, Storage, Event<T>, Config<T>} = 251,
|
||||
ParasSudoWrapper: paras_sudo_wrapper = 250,
|
||||
AssignedSlots: assigned_slots = 251,
|
||||
|
||||
// Validator Manager pallet.
|
||||
ValidatorManager: validator_manager::{Pallet, Call, Storage, Event<T>} = 252,
|
||||
ValidatorManager: validator_manager = 252,
|
||||
|
||||
// State trie migration pallet, only temporary.
|
||||
StateTrieMigration: pallet_state_trie_migration = 254,
|
||||
|
||||
// Root testing pallet.
|
||||
RootTesting: pallet_root_testing::{Pallet, Call, Storage, Event<T>} = 249,
|
||||
RootTesting: pallet_root_testing = 249,
|
||||
|
||||
// Sudo.
|
||||
Sudo: pallet_sudo::{Pallet, Call, Storage, Event<T>, Config<T>} = 255,
|
||||
Sudo: pallet_sudo = 255,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1397,121 +1397,121 @@ construct_runtime! {
|
||||
pub enum Runtime
|
||||
{
|
||||
// Basic stuff; balances is uncallable initially.
|
||||
System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>} = 0,
|
||||
System: frame_system = 0,
|
||||
|
||||
// Babe must be before session.
|
||||
Babe: pallet_babe::{Pallet, Call, Storage, Config<T>, ValidateUnsigned} = 1,
|
||||
Babe: pallet_babe = 1,
|
||||
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 2,
|
||||
Indices: pallet_indices::{Pallet, Call, Storage, Config<T>, Event<T>} = 3,
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 4,
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event<T>} = 26,
|
||||
Timestamp: pallet_timestamp = 2,
|
||||
Indices: pallet_indices = 3,
|
||||
Balances: pallet_balances = 4,
|
||||
TransactionPayment: pallet_transaction_payment = 26,
|
||||
|
||||
// Consensus support.
|
||||
// Authorship must be before session in order to note author in the correct session and era.
|
||||
Authorship: pallet_authorship::{Pallet, Storage} = 5,
|
||||
Staking: pallet_staking::{Pallet, Call, Storage, Config<T>, Event<T>} = 6,
|
||||
Offences: pallet_offences::{Pallet, Storage, Event} = 7,
|
||||
Historical: session_historical::{Pallet} = 27,
|
||||
Authorship: pallet_authorship = 5,
|
||||
Staking: pallet_staking = 6,
|
||||
Offences: pallet_offences = 7,
|
||||
Historical: session_historical = 27,
|
||||
|
||||
// BEEFY Bridges support.
|
||||
Beefy: pallet_beefy::{Pallet, Call, Storage, Config<T>, ValidateUnsigned} = 200,
|
||||
// MMR leaf construction must be before session in order to have leaf contents
|
||||
// refer to block<N-1> consistently. see substrate issue #11797 for details.
|
||||
Mmr: pallet_mmr::{Pallet, Storage} = 201,
|
||||
BeefyMmrLeaf: pallet_beefy_mmr::{Pallet, Storage} = 202,
|
||||
Beefy: pallet_beefy = 200,
|
||||
// MMR leaf construction must be before session in order to have leaf contents refer to
|
||||
// block<N-1> consistently. see substrate issue #11797 for details.
|
||||
Mmr: pallet_mmr = 201,
|
||||
BeefyMmrLeaf: pallet_beefy_mmr = 202,
|
||||
|
||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 8,
|
||||
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config<T>, Event, ValidateUnsigned} = 10,
|
||||
AuthorityDiscovery: pallet_authority_discovery::{Pallet, Config<T>} = 12,
|
||||
Session: pallet_session = 8,
|
||||
Grandpa: pallet_grandpa = 10,
|
||||
AuthorityDiscovery: pallet_authority_discovery = 12,
|
||||
|
||||
// Utility module.
|
||||
Utility: pallet_utility::{Pallet, Call, Event} = 16,
|
||||
Utility: pallet_utility = 16,
|
||||
|
||||
// Less simple identity module.
|
||||
Identity: pallet_identity::{Pallet, Call, Storage, Event<T>} = 17,
|
||||
Identity: pallet_identity = 17,
|
||||
|
||||
// Social recovery module.
|
||||
Recovery: pallet_recovery::{Pallet, Call, Storage, Event<T>} = 18,
|
||||
Recovery: pallet_recovery = 18,
|
||||
|
||||
// Vesting. Usable initially, but removed once all vesting is finished.
|
||||
Vesting: pallet_vesting::{Pallet, Call, Storage, Event<T>, Config<T>} = 19,
|
||||
Vesting: pallet_vesting = 19,
|
||||
|
||||
// System scheduler.
|
||||
Scheduler: pallet_scheduler::{Pallet, Call, Storage, Event<T>} = 20,
|
||||
Scheduler: pallet_scheduler = 20,
|
||||
|
||||
// Preimage registrar.
|
||||
Preimage: pallet_preimage::{Pallet, Call, Storage, Event<T>, HoldReason} = 28,
|
||||
Preimage: pallet_preimage = 28,
|
||||
|
||||
// Sudo.
|
||||
Sudo: pallet_sudo::{Pallet, Call, Storage, Event<T>, Config<T>} = 21,
|
||||
Sudo: pallet_sudo = 21,
|
||||
|
||||
// Proxy module. Late addition.
|
||||
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 22,
|
||||
Proxy: pallet_proxy = 22,
|
||||
|
||||
// Multisig module. Late addition.
|
||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 23,
|
||||
Multisig: pallet_multisig = 23,
|
||||
|
||||
// Election pallet. Only works with staking, but placed here to maintain indices.
|
||||
ElectionProviderMultiPhase: pallet_election_provider_multi_phase::{Pallet, Call, Storage, Event<T>, ValidateUnsigned} = 24,
|
||||
ElectionProviderMultiPhase: pallet_election_provider_multi_phase = 24,
|
||||
|
||||
// Provides a semi-sorted list of nominators for staking.
|
||||
VoterList: pallet_bags_list::<Instance1>::{Pallet, Call, Storage, Event<T>} = 25,
|
||||
VoterList: pallet_bags_list::<Instance1> = 25,
|
||||
|
||||
// Nomination pools for staking.
|
||||
NominationPools: pallet_nomination_pools::{Pallet, Call, Storage, Event<T>, Config<T>, FreezeReason} = 29,
|
||||
NominationPools: pallet_nomination_pools = 29,
|
||||
|
||||
// Fast unstake pallet: extension to staking.
|
||||
FastUnstake: pallet_fast_unstake = 30,
|
||||
|
||||
// OpenGov
|
||||
ConvictionVoting: pallet_conviction_voting::{Pallet, Call, Storage, Event<T>} = 31,
|
||||
Referenda: pallet_referenda::{Pallet, Call, Storage, Event<T>} = 32,
|
||||
Origins: pallet_custom_origins::{Origin} = 35,
|
||||
Whitelist: pallet_whitelist::{Pallet, Call, Storage, Event<T>} = 36,
|
||||
ConvictionVoting: pallet_conviction_voting = 31,
|
||||
Referenda: pallet_referenda = 32,
|
||||
Origins: pallet_custom_origins = 35,
|
||||
Whitelist: pallet_whitelist = 36,
|
||||
|
||||
// Treasury
|
||||
Treasury: pallet_treasury::{Pallet, Call, Storage, Config<T>, Event<T>} = 37,
|
||||
Treasury: pallet_treasury = 37,
|
||||
|
||||
// Parachains pallets. Start indices at 40 to leave room.
|
||||
ParachainsOrigin: parachains_origin::{Pallet, Origin} = 41,
|
||||
Configuration: parachains_configuration::{Pallet, Call, Storage, Config<T>} = 42,
|
||||
ParasShared: parachains_shared::{Pallet, Call, Storage} = 43,
|
||||
ParaInclusion: parachains_inclusion::{Pallet, Call, Storage, Event<T>} = 44,
|
||||
ParaInherent: parachains_paras_inherent::{Pallet, Call, Storage, Inherent} = 45,
|
||||
ParaScheduler: parachains_scheduler::{Pallet, Storage} = 46,
|
||||
Paras: parachains_paras::{Pallet, Call, Storage, Event, Config<T>, ValidateUnsigned} = 47,
|
||||
Initializer: parachains_initializer::{Pallet, Call, Storage} = 48,
|
||||
Dmp: parachains_dmp::{Pallet, Storage} = 49,
|
||||
ParachainsOrigin: parachains_origin = 41,
|
||||
Configuration: parachains_configuration = 42,
|
||||
ParasShared: parachains_shared = 43,
|
||||
ParaInclusion: parachains_inclusion = 44,
|
||||
ParaInherent: parachains_paras_inherent = 45,
|
||||
ParaScheduler: parachains_scheduler = 46,
|
||||
Paras: parachains_paras = 47,
|
||||
Initializer: parachains_initializer = 48,
|
||||
Dmp: parachains_dmp = 49,
|
||||
// RIP Ump 50
|
||||
Hrmp: parachains_hrmp::{Pallet, Call, Storage, Event<T>, Config<T>} = 51,
|
||||
ParaSessionInfo: parachains_session_info::{Pallet, Storage} = 52,
|
||||
ParasDisputes: parachains_disputes::{Pallet, Call, Storage, Event<T>} = 53,
|
||||
ParasSlashing: parachains_slashing::{Pallet, Call, Storage, ValidateUnsigned} = 54,
|
||||
ParachainsAssignmentProvider: parachains_assigner_parachains::{Pallet} = 55,
|
||||
Hrmp: parachains_hrmp = 51,
|
||||
ParaSessionInfo: parachains_session_info = 52,
|
||||
ParasDisputes: parachains_disputes = 53,
|
||||
ParasSlashing: parachains_slashing = 54,
|
||||
ParachainsAssignmentProvider: parachains_assigner_parachains = 55,
|
||||
|
||||
// Parachain Onboarding Pallets. Start indices at 60 to leave room.
|
||||
Registrar: paras_registrar::{Pallet, Call, Storage, Event<T>, Config<T>} = 60,
|
||||
Slots: slots::{Pallet, Call, Storage, Event<T>} = 61,
|
||||
ParasSudoWrapper: paras_sudo_wrapper::{Pallet, Call} = 62,
|
||||
Auctions: auctions::{Pallet, Call, Storage, Event<T>} = 63,
|
||||
Crowdloan: crowdloan::{Pallet, Call, Storage, Event<T>} = 64,
|
||||
AssignedSlots: assigned_slots::{Pallet, Call, Storage, Event<T>, Config<T>} = 65,
|
||||
Registrar: paras_registrar = 60,
|
||||
Slots: slots = 61,
|
||||
ParasSudoWrapper: paras_sudo_wrapper = 62,
|
||||
Auctions: auctions = 63,
|
||||
Crowdloan: crowdloan = 64,
|
||||
AssignedSlots: assigned_slots = 65,
|
||||
|
||||
// Pallet for sending XCM.
|
||||
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin, Config<T>} = 99,
|
||||
XcmPallet: pallet_xcm = 99,
|
||||
|
||||
// Generalized message queue
|
||||
MessageQueue: pallet_message_queue::{Pallet, Call, Storage, Event<T>} = 100,
|
||||
MessageQueue: pallet_message_queue = 100,
|
||||
|
||||
// Asset rate.
|
||||
AssetRate: pallet_asset_rate::{Pallet, Call, Storage, Event<T>} = 101,
|
||||
AssetRate: pallet_asset_rate = 101,
|
||||
|
||||
// Root testing pallet.
|
||||
RootTesting: pallet_root_testing::{Pallet, Call, Storage, Event<T>} = 102,
|
||||
RootTesting: pallet_root_testing = 102,
|
||||
|
||||
// Pallet for migrating Identity to a parachain. To be removed post-migration.
|
||||
IdentityMigrator: identity_migrator::{Pallet, Call, Event<T>} = 248,
|
||||
IdentityMigrator: identity_migrator = 248,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -34,9 +34,9 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
XcmBalancesBenchmark: xcm_balances_benchmark::{Pallet},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
XcmBalancesBenchmark: xcm_balances_benchmark,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -39,9 +39,9 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
XcmGenericBenchmarks: generic::{Pallet},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
XcmGenericBenchmarks: generic,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -139,12 +139,12 @@ pub mod pallet_test_notifier {
|
||||
construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
AssetsPallet: pallet_assets::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
ParasOrigin: origin::{Pallet, Origin},
|
||||
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin, Config<T>},
|
||||
TestNotifier: pallet_test_notifier::{Pallet, Call, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
AssetsPallet: pallet_assets,
|
||||
ParasOrigin: origin,
|
||||
XcmPallet: pallet_xcm,
|
||||
TestNotifier: pallet_test_notifier,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ pub type BlockNumber = u32;
|
||||
pub type AccountId = AccountId32;
|
||||
|
||||
construct_runtime!(
|
||||
pub struct Test {
|
||||
pub enum Test {
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Assets: pallet_assets,
|
||||
|
||||
@@ -250,10 +250,10 @@ type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||
construct_runtime!(
|
||||
pub enum Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
ParasOrigin: origin::{Pallet, Origin},
|
||||
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
ParasOrigin: origin,
|
||||
XcmPallet: pallet_xcm,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -457,10 +457,10 @@ type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||
construct_runtime!(
|
||||
pub enum Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
MsgQueue: mock_msg_queue::{Pallet, Storage, Event<T>},
|
||||
PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin},
|
||||
ForeignUniques: pallet_uniques::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
MsgQueue: mock_msg_queue,
|
||||
PolkadotXcm: pallet_xcm,
|
||||
ForeignUniques: pallet_uniques,
|
||||
}
|
||||
);
|
||||
|
||||
@@ -281,11 +281,11 @@ impl pallet_message_queue::Config for Runtime {
|
||||
construct_runtime!(
|
||||
pub enum Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
ParasOrigin: origin::{Pallet, Origin},
|
||||
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin},
|
||||
Uniques: pallet_uniques::{Pallet, Call, Storage, Event<T>},
|
||||
MessageQueue: pallet_message_queue::{Pallet, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
ParasOrigin: origin,
|
||||
XcmPallet: pallet_xcm,
|
||||
Uniques: pallet_uniques,
|
||||
MessageQueue: pallet_message_queue,
|
||||
}
|
||||
);
|
||||
|
||||
@@ -360,9 +360,9 @@ type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||
construct_runtime!(
|
||||
pub enum Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
MsgQueue: mock_msg_queue::{Pallet, Storage, Event<T>},
|
||||
PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
MsgQueue: mock_msg_queue,
|
||||
PolkadotXcm: pallet_xcm,
|
||||
}
|
||||
);
|
||||
|
||||
@@ -252,10 +252,10 @@ impl pallet_message_queue::Config for Runtime {
|
||||
construct_runtime!(
|
||||
pub enum Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
ParasOrigin: origin::{Pallet, Origin},
|
||||
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin},
|
||||
MessageQueue: pallet_message_queue::{Pallet, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
ParasOrigin: origin,
|
||||
XcmPallet: pallet_xcm,
|
||||
MessageQueue: pallet_message_queue,
|
||||
}
|
||||
);
|
||||
|
||||
@@ -63,7 +63,7 @@ type SignedExtra = (
|
||||
);
|
||||
|
||||
construct_runtime!(
|
||||
pub struct Runtime {
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
Timestamp: pallet_timestamp,
|
||||
|
||||
|
||||
@@ -258,7 +258,7 @@ impl pallet_template::Config for Runtime {
|
||||
|
||||
// Create the runtime by composing the FRAME pallets that were previously configured.
|
||||
construct_runtime!(
|
||||
pub struct Runtime {
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
Timestamp: pallet_timestamp,
|
||||
Aura: pallet_aura,
|
||||
|
||||
@@ -2083,8 +2083,7 @@ impl pallet_mixnet::Config for Runtime {
|
||||
}
|
||||
|
||||
construct_runtime!(
|
||||
pub struct Runtime
|
||||
{
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
Utility: pallet_utility,
|
||||
Babe: pallet_babe,
|
||||
@@ -2099,11 +2098,11 @@ construct_runtime!(
|
||||
AssetConversionTxPayment: pallet_asset_conversion_tx_payment,
|
||||
ElectionProviderMultiPhase: pallet_election_provider_multi_phase,
|
||||
Staking: pallet_staking,
|
||||
Beefy: pallet_beefy::{Pallet, Call, Storage, Config<T>, ValidateUnsigned},
|
||||
Beefy: pallet_beefy,
|
||||
// MMR leaf construction must be before session in order to have leaf contents
|
||||
// refer to block<N-1> consistently. see substrate issue #11797 for details.
|
||||
Mmr: pallet_mmr::{Pallet, Storage},
|
||||
MmrLeaf: pallet_beefy_mmr::{Pallet, Storage},
|
||||
Mmr: pallet_mmr,
|
||||
MmrLeaf: pallet_beefy_mmr,
|
||||
Session: pallet_session,
|
||||
Democracy: pallet_democracy,
|
||||
Council: pallet_collective::<Instance1>,
|
||||
@@ -2118,7 +2117,7 @@ construct_runtime!(
|
||||
ImOnline: pallet_im_online,
|
||||
AuthorityDiscovery: pallet_authority_discovery,
|
||||
Offences: pallet_offences,
|
||||
Historical: pallet_session_historical::{Pallet},
|
||||
Historical: pallet_session_historical,
|
||||
RandomnessCollectiveFlip: pallet_insecure_randomness_collective_flip,
|
||||
Identity: pallet_identity,
|
||||
Society: pallet_society,
|
||||
|
||||
@@ -37,9 +37,9 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Assets: pallet_assets::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Assets: pallet_assets,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -35,9 +35,9 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
AtomicSwap: pallet_atomic_swap::{Pallet, Call, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
AtomicSwap: pallet_atomic_swap,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -35,9 +35,9 @@ const SLOT_DURATION: u64 = 2;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
||||
Aura: pallet_aura::{Pallet, Storage, Config<T>},
|
||||
System: frame_system,
|
||||
Timestamp: pallet_timestamp,
|
||||
Aura: pallet_aura,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -187,9 +187,9 @@ mod tests {
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>},
|
||||
AuthorityDiscovery: pallet_authority_discovery::{Pallet, Config<T>},
|
||||
System: frame_system,
|
||||
Session: pallet_session,
|
||||
AuthorityDiscovery: pallet_authority_discovery,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -108,8 +108,8 @@ mod tests {
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Authorship: pallet_authorship::{Pallet, Storage},
|
||||
System: frame_system,
|
||||
Authorship: pallet_authorship,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -68,10 +68,9 @@ impl bags_list::Config for Runtime {
|
||||
|
||||
type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||
frame_support::construct_runtime!(
|
||||
pub struct Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Storage, Event<T>, Config<T>},
|
||||
BagsList: bags_list::{Pallet, Call, Storage, Event<T>},
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
BagsList: bags_list,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -75,11 +75,10 @@ impl VariantCount for TestId {
|
||||
}
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pub struct Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event<T>},
|
||||
pub enum Test {
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
TransactionPayment: pallet_transaction_payment,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -49,11 +49,11 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>},
|
||||
Mmr: pallet_mmr::{Pallet, Storage},
|
||||
Beefy: pallet_beefy::{Pallet, Config<T>, Storage},
|
||||
BeefyMmr: pallet_beefy_mmr::{Pallet, Storage},
|
||||
System: frame_system,
|
||||
Session: pallet_session,
|
||||
Mmr: pallet_mmr,
|
||||
Beefy: pallet_beefy,
|
||||
BeefyMmr: pallet_beefy_mmr,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -350,8 +350,8 @@ mod mock {
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Baseline: crate::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Baseline: crate,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -170,8 +170,8 @@ mod mock {
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Baseline: crate::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Baseline: crate,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ pub mod mock {
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -70,8 +70,8 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
TestPallet: pallet_test::{Pallet, Call, Storage},
|
||||
System: frame_system,
|
||||
TestPallet: pallet_test,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -80,8 +80,8 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
TestPallet: pallet_test::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
TestPallet: pallet_test,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -44,12 +44,12 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Bounties: pallet_bounties::{Pallet, Call, Storage, Event<T>},
|
||||
Bounties1: pallet_bounties::<Instance1>::{Pallet, Call, Storage, Event<T>},
|
||||
Treasury: pallet_treasury::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Treasury1: pallet_treasury::<Instance1>::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Bounties: pallet_bounties,
|
||||
Bounties1: pallet_bounties::<Instance1>,
|
||||
Treasury: pallet_treasury,
|
||||
Treasury1: pallet_treasury::<Instance1>,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -46,11 +46,11 @@ type BountiesError = pallet_bounties::Error<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Bounties: pallet_bounties::{Pallet, Call, Storage, Event<T>},
|
||||
Treasury: pallet_treasury::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
ChildBounties: pallet_child_bounties::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Bounties: pallet_bounties,
|
||||
Treasury: pallet_treasury,
|
||||
ChildBounties: pallet_child_bounties,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -38,11 +38,11 @@ pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic<u32, u64,
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Event<T>},
|
||||
Collective: pallet_collective::<Instance1>::{Pallet, Call, Event<T>, Origin<T>, Config<T>},
|
||||
CollectiveMajority: pallet_collective::<Instance2>::{Pallet, Call, Event<T>, Origin<T>, Config<T>},
|
||||
DefaultCollective: pallet_collective::{Pallet, Call, Event<T>, Origin<T>, Config<T>},
|
||||
Democracy: mock_democracy::{Pallet, Call, Event<T>},
|
||||
System: frame_system,
|
||||
Collective: pallet_collective::<Instance1>,
|
||||
CollectiveMajority: pallet_collective::<Instance2>,
|
||||
DefaultCollective: pallet_collective,
|
||||
Democracy: mock_democracy,
|
||||
}
|
||||
);
|
||||
|
||||
@@ -176,6 +176,7 @@ impl ExtBuilder {
|
||||
|
||||
pub fn build(self) -> sp_io::TestExternalities {
|
||||
let mut ext: sp_io::TestExternalities = RuntimeGenesisConfig {
|
||||
system: frame_system::GenesisConfig::default(),
|
||||
collective: pallet_collective::GenesisConfig {
|
||||
members: self.collective_members,
|
||||
phantom: Default::default(),
|
||||
|
||||
@@ -233,10 +233,10 @@ impl pallet_message_queue::Config for Runtime {
|
||||
|
||||
construct_runtime!(
|
||||
pub enum Runtime {
|
||||
System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
ParasOrigin: origin::{Pallet, Origin},
|
||||
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin},
|
||||
MessageQueue: pallet_message_queue::{Pallet, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
ParasOrigin: origin,
|
||||
XcmPallet: pallet_xcm,
|
||||
MessageQueue: pallet_message_queue,
|
||||
}
|
||||
);
|
||||
|
||||
@@ -71,13 +71,13 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
||||
Randomness: pallet_insecure_randomness_collective_flip::{Pallet, Storage},
|
||||
Utility: pallet_utility::{Pallet, Call, Storage, Event},
|
||||
Contracts: pallet_contracts::{Pallet, Call, Storage, Event<T>, HoldReason},
|
||||
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Timestamp: pallet_timestamp,
|
||||
Randomness: pallet_insecure_randomness_collective_flip,
|
||||
Utility: pallet_utility,
|
||||
Contracts: pallet_contracts,
|
||||
Proxy: pallet_proxy,
|
||||
Dummy: pallet_dummy
|
||||
}
|
||||
);
|
||||
|
||||
@@ -37,9 +37,9 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Voting: pallet_conviction_voting::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Voting: pallet_conviction_voting,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -41,8 +41,8 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
CoreFellowship: pallet_core_fellowship::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
CoreFellowship: pallet_core_fellowship,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -55,11 +55,11 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Preimage: pallet_preimage,
|
||||
Scheduler: pallet_scheduler::{Pallet, Call, Storage, Event<T>},
|
||||
Democracy: pallet_democracy::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Scheduler: pallet_scheduler,
|
||||
Democracy: pallet_democracy,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -54,11 +54,10 @@ pub type UncheckedExtrinsic =
|
||||
sp_runtime::generic::UncheckedExtrinsic<AccountId, RuntimeCall, (), ()>;
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pub struct Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Event<T>, Config<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Event<T>, Config<T>},
|
||||
MultiPhase: multi_phase::{Pallet, Call, Event<T>},
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
MultiPhase: multi_phase,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -194,9 +194,8 @@ mod tests {
|
||||
pub type Block = sp_runtime::generic::Block<Header, UncheckedExtrinsic>;
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pub struct Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Event<T>},
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -1454,9 +1454,9 @@ mod tests {
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Event<T>, Config<T>},
|
||||
Elections: elections_phragmen::{Pallet, Call, Event<T>, Config<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Elections: elections_phragmen,
|
||||
}
|
||||
);
|
||||
|
||||
@@ -1507,6 +1507,7 @@ mod tests {
|
||||
*m.borrow_mut() = self.genesis_members.iter().map(|(m, _)| *m).collect::<Vec<_>>()
|
||||
});
|
||||
let mut ext: sp_io::TestExternalities = RuntimeGenesisConfig {
|
||||
system: frame_system::GenesisConfig::default(),
|
||||
balances: pallet_balances::GenesisConfig::<Test> {
|
||||
balances: vec![
|
||||
(1, 10 * self.balance_factor),
|
||||
|
||||
@@ -39,9 +39,9 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Example: pallet_example_basic::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Example: pallet_example_basic,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ pub mod tests {
|
||||
type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pub struct Runtime {
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
DefaultPallet: pallet_default_config_example,
|
||||
}
|
||||
|
||||
@@ -33,9 +33,9 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Example: pallet_dev_mode::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Example: pallet_dev_mode,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ mod tests {
|
||||
use frame::testing_prelude::*;
|
||||
|
||||
construct_runtime!(
|
||||
pub struct Runtime {
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
MyPallet: my_pallet,
|
||||
}
|
||||
|
||||
@@ -41,8 +41,8 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Example: example_offchain_worker::{Pallet, Call, Storage, Event<T>, ValidateUnsigned},
|
||||
System: frame_system,
|
||||
Example: example_offchain_worker,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ pub type Balance = u32;
|
||||
|
||||
type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||
frame_support::construct_runtime!(
|
||||
pub struct Runtime {
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
TasksExample: tasks_example,
|
||||
}
|
||||
|
||||
@@ -897,12 +897,11 @@ mod tests {
|
||||
}
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pub struct Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event<T>},
|
||||
Custom: custom::{Pallet, Call, ValidateUnsigned, Inherent},
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
TransactionPayment: pallet_transaction_payment,
|
||||
Custom: custom,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -181,7 +181,7 @@ impl fast_unstake::Config for Runtime {
|
||||
type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pub struct Runtime {
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
Timestamp: pallet_timestamp,
|
||||
Balances: pallet_balances,
|
||||
|
||||
@@ -33,8 +33,8 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Glutton: pallet_glutton::{Pallet, Event},
|
||||
System: frame_system,
|
||||
Glutton: pallet_glutton,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -47,9 +47,9 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Identity: pallet_identity::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Identity: pallet_identity,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -42,12 +42,11 @@ use crate::Config;
|
||||
type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pub struct Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>},
|
||||
ImOnline: imonline::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Historical: pallet_session_historical::{Pallet},
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
Session: pallet_session,
|
||||
ImOnline: imonline,
|
||||
Historical: pallet_session_historical,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -32,9 +32,9 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Indices: pallet_indices::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Indices: pallet_indices,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -179,8 +179,8 @@ mod tests {
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
CollectiveFlip: pallet_insecure_randomness_collective_flip::{Pallet, Storage},
|
||||
System: frame_system,
|
||||
CollectiveFlip: pallet_insecure_randomness_collective_flip,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -37,9 +37,9 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Lottery: pallet_lottery::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Lottery: pallet_lottery,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -541,8 +541,8 @@ mod tests {
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Membership: pallet_membership::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
System: frame_system,
|
||||
Membership: pallet_membership,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -28,8 +28,8 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
MMR: pallet_mmr::{Pallet, Storage},
|
||||
System: frame_system,
|
||||
MMR: pallet_mmr,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -52,8 +52,8 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
MessageQueue: pallet_message_queue::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
MessageQueue: pallet_message_queue,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -39,8 +39,8 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
MessageQueue: pallet_message_queue::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
MessageQueue: pallet_message_queue,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -32,9 +32,9 @@ type Block = frame_system::mocking::MockBlockU32<Test>;
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test {
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Multisig: pallet_multisig,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -36,9 +36,9 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Nfts: pallet_nfts::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Nfts: pallet_nfts,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -36,10 +36,8 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
NodeAuthorization: pallet_node_authorization::{
|
||||
Pallet, Call, Storage, Config<T>, Event<T>,
|
||||
},
|
||||
System: frame_system,
|
||||
NodeAuthorization: pallet_node_authorization,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -180,14 +180,13 @@ impl crate::Config for Runtime {}
|
||||
type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pub struct Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Event<T>},
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Staking: pallet_staking::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
VoterList: pallet_bags_list::<Instance1>::{Pallet, Call, Storage, Event<T>},
|
||||
Pools: pallet_nomination_pools::{Pallet, Call, Storage, Event<T>, FreezeReason},
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
Timestamp: pallet_timestamp,
|
||||
Balances: pallet_balances,
|
||||
Staking: pallet_staking,
|
||||
VoterList: pallet_bags_list::<Instance1>,
|
||||
Pools: pallet_nomination_pools,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -295,11 +295,10 @@ impl pools::Config for Runtime {
|
||||
|
||||
type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||
frame_support::construct_runtime!(
|
||||
pub struct Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Storage, Event<T>, Config<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Pools: pools::{Pallet, Call, Storage, Event<T>, FreezeReason},
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Pools: pools,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -192,14 +192,13 @@ impl pallet_nomination_pools::Config for Runtime {
|
||||
type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pub struct Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Event<T>},
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Staking: pallet_staking::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
VoterList: pallet_bags_list::<Instance1>::{Pallet, Call, Storage, Event<T>},
|
||||
Pools: pallet_nomination_pools::{Pallet, Call, Storage, Event<T>, FreezeReason},
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
Timestamp: pallet_timestamp,
|
||||
Balances: pallet_balances,
|
||||
Staking: pallet_staking,
|
||||
VoterList: pallet_bags_list::<Instance1>,
|
||||
Pools: pallet_nomination_pools,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -227,9 +227,9 @@ frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: system::{Pallet, Call, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Staking: pallet_staking::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>},
|
||||
Balances: pallet_balances,
|
||||
Staking: pallet_staking,
|
||||
Session: pallet_session,
|
||||
ImOnline: pallet_im_online::{Pallet, Call, Storage, Event<T>, ValidateUnsigned, Config<T>},
|
||||
Offences: pallet_offences::{Pallet, Storage, Event},
|
||||
Historical: pallet_session_historical::{Pallet},
|
||||
|
||||
@@ -68,10 +68,9 @@ pub fn with_on_offence_fractions<R, F: FnOnce(&mut Vec<Perbill>) -> R>(f: F) ->
|
||||
type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pub struct Runtime
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Offences: offences::{Pallet, Storage, Event},
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
Offences: offences,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -35,10 +35,10 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Proxy: proxy::{Pallet, Call, Storage, Event<T>},
|
||||
Utility: pallet_utility::{Pallet, Call, Event},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Proxy: proxy,
|
||||
Utility: pallet_utility,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ type Class = Rank;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Club: pallet_ranked_collective::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Club: pallet_ranked_collective,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -35,9 +35,9 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Recovery: recovery::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Recovery: recovery,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@ pub type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Remark: pallet_remark::{ Pallet, Call, Event<T> },
|
||||
System: frame_system,
|
||||
Remark: pallet_remark,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -48,13 +48,13 @@ pub const BLOCK_TIME: u64 = 1000;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Staking: pallet_staking::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>},
|
||||
RootOffences: root_offences::{Pallet, Call, Storage, Event<T>},
|
||||
Historical: pallet_session::historical::{Pallet, Storage},
|
||||
System: frame_system,
|
||||
Timestamp: pallet_timestamp,
|
||||
Balances: pallet_balances,
|
||||
Staking: pallet_staking,
|
||||
Session: pallet_session,
|
||||
RootOffences: root_offences,
|
||||
Historical: pallet_session::historical,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -40,8 +40,8 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Salary: pallet_salary::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Salary: pallet_salary,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -97,10 +97,10 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Logger: logger::{Pallet, Call, Event<T>},
|
||||
Scheduler: scheduler::{Pallet, Call, Storage, Event<T>},
|
||||
Preimage: pallet_preimage::{Pallet, Call, Storage, Event<T>, HoldReason},
|
||||
System: frame_system,
|
||||
Logger: logger,
|
||||
Scheduler: scheduler,
|
||||
Preimage: pallet_preimage,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -37,9 +37,9 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
ScoredPool: pallet_scored_pool::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
ScoredPool: pallet_scored_pool,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -38,10 +38,10 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Staking: pallet_staking::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Staking: pallet_staking,
|
||||
Session: pallet_session,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user