From 18cb512768e7367ccc3b9e1a6806303d3b16f83c Mon Sep 17 00:00:00 2001 From: Fahrrader Date: Wed, 28 Dec 2022 22:26:10 +0000 Subject: [PATCH] build(collator-selection): switch to quartz --- --- a/node/cli/src/chain_spec.rs +++ b/node/cli/src/chain_spec.rs @@ -143,7 +143,7 @@ AccountPublic::from(get_from_seed::(seed)).into_account() } -#[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))] +#[cfg(feature = "quartz-runtime")] macro_rules! testnet_genesis { ( $runtime:path, @@ -207,7 +207,7 @@ }}; } -#[cfg(any(feature = "unique-runtime", feature = "quartz-runtime"))] +#[cfg(not(feature = "quartz-runtime"))] macro_rules! testnet_genesis { ( $runtime:path, --- a/runtime/common/construct_runtime/mod.rs +++ b/runtime/common/construct_runtime/mod.rs @@ -32,13 +32,13 @@ ParachainSystem: cumulus_pallet_parachain_system::{Pallet, Call, Config, Storage, Inherent, Event, ValidateUnsigned} = 20, ParachainInfo: parachain_info::{Pallet, Storage, Config} = 21, - #[runtimes(opal)] + #[runtimes(quartz)] Authorship: pallet_authorship::{Pallet, Call, Storage} = 22, - #[runtimes(opal)] + #[runtimes(quartz)] CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event, Config} = 23, - #[runtimes(opal)] + #[runtimes(quartz)] Session: pallet_session::{Pallet, Call, Storage, Event, Config} = 24, Aura: pallet_aura::{Pallet, Config} = 25, @@ -56,7 +56,7 @@ Tokens: orml_tokens = 39, // Contracts: pallet_contracts::{Pallet, Call, Storage, Event} = 38, - #[runtimes(opal)] + #[runtimes(quartz)] Identity: pallet_identity::{Pallet, Call, Storage, Event} = 40, // XCM helpers. --- a/runtime/opal/Cargo.toml +++ b/runtime/opal/Cargo.toml @@ -193,7 +193,6 @@ 'refungible', 'rmrk', 'app-promotion', - 'collator-selection', 'foreign-assets', 'pallet-test-utils', ] --- a/runtime/quartz/Cargo.toml +++ b/runtime/quartz/Cargo.toml @@ -181,7 +181,7 @@ "pallet-maintenance/std", ] limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing'] -quartz-runtime = ['refungible', 'app-promotion', 'foreign-assets'] +quartz-runtime = ['refungible', 'app-promotion', 'collator-selection', 'foreign-assets'] pov-estimate = [] refungible = [] --- a/tests/src/pallet-presence.test.ts +++ b/tests/src/pallet-presence.test.ts @@ -76,13 +76,13 @@ appPromotion, testUtils, ...rmrkPallets, - ...collatorSelection, ); } else if (chain.eq('QUARTZ by UNIQUE')) { requiredPallets.push( refungible, appPromotion, foreignAssets, + ...collatorSelection, ); } else if (chain.eq('UNIQUE')) { // Insert Unique additional pallets here -- gitstuff