git.delta.rocks / unique-network / refs/commits / aa6b9ea4ef79

difftreelog

Merge pull request #821 from UniqueNetwork/refactor/simplify-construct-runtime-macro

Yaroslav Bolyukin2023-01-10parents: #fe83568 #96fe90f.patch.diff
in: master
Simplify construct runtime macro

11 files changed

modifiedCargo.lockdiffbeforeafterboth
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8942,6 +8942,7 @@
  "pallet-structure",
  "pallet-sudo",
  "pallet-template-transaction-payment",
+ "pallet-test-utils",
  "pallet-timestamp",
  "pallet-transaction-payment",
  "pallet-transaction-payment-rpc-runtime-api",
@@ -13174,6 +13175,7 @@
  "pallet-structure",
  "pallet-sudo",
  "pallet-template-transaction-payment",
+ "pallet-test-utils",
  "pallet-timestamp",
  "pallet-transaction-payment",
  "pallet-transaction-payment-rpc-runtime-api",
addedruntime/common/construct_runtime.rsdiffbeforeafterboth
--- /dev/null
+++ b/runtime/common/construct_runtime.rs
@@ -0,0 +1,113 @@
+// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// Unique Network is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
+#[macro_export]
+macro_rules! construct_runtime {
+    () => {
+            frame_support::construct_runtime! {
+
+            pub enum Runtime where
+                Block = Block,
+                NodeBlock = opaque::Block,
+                UncheckedExtrinsic = UncheckedExtrinsic
+            {
+                System: frame_system = 0,
+
+                ParachainSystem: cumulus_pallet_parachain_system::{Pallet, Call, Config, Storage, Inherent, Event<T>, ValidateUnsigned} = 20,
+                ParachainInfo: parachain_info::{Pallet, Storage, Config} = 21,
+
+                #[cfg(feature = "collator-selection")]
+                Authorship: pallet_authorship::{Pallet, Call, Storage} = 22,
+
+                #[cfg(feature = "collator-selection")]
+                CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 23,
+
+                #[cfg(feature = "collator-selection")]
+                Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 24,
+
+                Aura: pallet_aura::{Pallet, Config<T>} = 25,
+                AuraExt: cumulus_pallet_aura_ext::{Pallet, Config} = 26,
+
+                Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 30,
+                RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage} = 31,
+                Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 32,
+                TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event<T>} = 33,
+                Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event<T>} = 34,
+                Sudo: pallet_sudo::{Pallet, Call, Storage, Config<T>, Event<T>} = 35,
+                Vesting: orml_vesting::{Pallet, Storage, Call, Event<T>, Config<T>} = 37,
+
+                XTokens: orml_xtokens = 38,
+                Tokens: orml_tokens = 39,
+                // Contracts: pallet_contracts::{Pallet, Call, Storage, Event<T>} = 38,
+
+                #[cfg(feature = "collator-selection")]
+                Identity: pallet_identity::{Pallet, Call, Storage, Event<T>} = 40,
+
+                // XCM helpers.
+                XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 50,
+                PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin} = 51,
+                CumulusXcm: cumulus_pallet_xcm::{Pallet, Call, Event<T>, Origin} = 52,
+                DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 53,
+
+                // Unique Pallets
+                Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,
+                Unique: pallet_unique::{Pallet, Call, Storage} = 61,
+
+                // #[cfg(feature = "scheduler")]
+                // Scheduler: pallet_unique_scheduler_v2::{Pallet, Call, Storage, Event<T>} = 62,
+
+                Configuration: pallet_configuration::{Pallet, Call, Storage, Event<T>} = 63,
+
+                Charging: pallet_charge_transaction::{Pallet, Call, Storage } = 64,
+                // ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,
+                Common: pallet_common::{Pallet, Storage, Event<T>} = 66,
+                Fungible: pallet_fungible::{Pallet, Storage} = 67,
+
+                #[cfg(feature = "refungible")]
+                Refungible: pallet_refungible::{Pallet, Storage} = 68,
+
+                Nonfungible: pallet_nonfungible::{Pallet, Storage} = 69,
+                Structure: pallet_structure::{Pallet, Call, Storage, Event<T>} = 70,
+
+                #[cfg(feature = "rmrk")]
+                RmrkCore: pallet_proxy_rmrk_core::{Pallet, Call, Storage, Event<T>} = 71,
+
+                #[cfg(feature = "rmrk")]
+                RmrkEquip: pallet_proxy_rmrk_equip::{Pallet, Call, Storage, Event<T>} = 72,
+
+                #[cfg(feature = "app-promotion")]
+                AppPromotion: pallet_app_promotion::{Pallet, Call, Storage, Event<T>} = 73,
+
+                #[cfg(feature = "foreign-assets")]
+                ForeignAssets: pallet_foreign_assets::{Pallet, Call, Storage, Event<T>} = 80,
+
+                // Frontier
+                EVM: pallet_evm::{Pallet, Config, Call, Storage, Event<T>} = 100,
+                Ethereum: pallet_ethereum::{Pallet, Config, Call, Storage, Event, Origin} = 101,
+
+                EvmCoderSubstrate: pallet_evm_coder_substrate::{Pallet, Storage} = 150,
+                EvmContractHelpers: pallet_evm_contract_helpers::{Pallet, Storage, Event<T>} = 151,
+                EvmTransactionPayment: pallet_evm_transaction_payment::{Pallet} = 152,
+                EvmMigration: pallet_evm_migration::{Pallet, Call, Storage, Event<T>} = 153,
+
+                Maintenance: pallet_maintenance::{Pallet, Call, Storage, Event<T>} = 154,
+
+                #[cfg(feature = "pallet-test-utils")]
+                TestUtils: pallet_test_utils = 255,
+            }
+        }
+    }
+}
deletedruntime/common/construct_runtime/mod.rsdiffbeforeafterboth
--- a/runtime/common/construct_runtime/mod.rs
+++ /dev/null
@@ -1,116 +0,0 @@
-// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
-// This file is part of Unique Network.
-
-// Unique Network is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// Unique Network is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License
-// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
-
-mod util;
-
-#[macro_export]
-macro_rules! construct_runtime {
-    ($select_runtime:ident) => {
-        $crate::construct_runtime_impl! {
-            select_runtime($select_runtime);
-
-            pub enum Runtime where
-                Block = Block,
-                NodeBlock = opaque::Block,
-                UncheckedExtrinsic = UncheckedExtrinsic
-            {
-                System: frame_system = 0,
-
-                ParachainSystem: cumulus_pallet_parachain_system::{Pallet, Call, Config, Storage, Inherent, Event<T>, ValidateUnsigned} = 20,
-                ParachainInfo: parachain_info::{Pallet, Storage, Config} = 21,
-
-                #[runtimes(quartz)]
-                Authorship: pallet_authorship::{Pallet, Call, Storage} = 22,
-
-                #[runtimes(quartz)]
-                CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 23,
-
-                #[runtimes(quartz)]
-                Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 24,
-
-                Aura: pallet_aura::{Pallet, Config<T>} = 25,
-                AuraExt: cumulus_pallet_aura_ext::{Pallet, Config} = 26,
-
-                Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 30,
-                RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage} = 31,
-                Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 32,
-                TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event<T>} = 33,
-                Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event<T>} = 34,
-                Sudo: pallet_sudo::{Pallet, Call, Storage, Config<T>, Event<T>} = 35,
-                Vesting: orml_vesting::{Pallet, Storage, Call, Event<T>, Config<T>} = 37,
-
-                XTokens: orml_xtokens = 38,
-                Tokens: orml_tokens = 39,
-                // Contracts: pallet_contracts::{Pallet, Call, Storage, Event<T>} = 38,
-
-                #[runtimes(quartz)]
-                Identity: pallet_identity::{Pallet, Call, Storage, Event<T>} = 40,
-
-                // XCM helpers.
-                XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 50,
-                PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin} = 51,
-                CumulusXcm: cumulus_pallet_xcm::{Pallet, Call, Event<T>, Origin} = 52,
-                DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 53,
-
-                // Unique Pallets
-                Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,
-                Unique: pallet_unique::{Pallet, Call, Storage} = 61,
-
-                // #[runtimes(opal)]
-                // Scheduler: pallet_unique_scheduler_v2::{Pallet, Call, Storage, Event<T>} = 62,
-
-                Configuration: pallet_configuration::{Pallet, Call, Storage, Event<T>} = 63,
-
-                Charging: pallet_charge_transaction::{Pallet, Call, Storage } = 64,
-                // ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,
-                Common: pallet_common::{Pallet, Storage, Event<T>} = 66,
-                Fungible: pallet_fungible::{Pallet, Storage} = 67,
-
-                #[runtimes(opal, quartz)]
-                Refungible: pallet_refungible::{Pallet, Storage} = 68,
-
-                Nonfungible: pallet_nonfungible::{Pallet, Storage} = 69,
-                Structure: pallet_structure::{Pallet, Call, Storage, Event<T>} = 70,
-
-                #[runtimes(opal)]
-                RmrkCore: pallet_proxy_rmrk_core::{Pallet, Call, Storage, Event<T>} = 71,
-
-                #[runtimes(opal)]
-                RmrkEquip: pallet_proxy_rmrk_equip::{Pallet, Call, Storage, Event<T>} = 72,
-
-                #[runtimes(opal, quartz)]
-                AppPromotion: pallet_app_promotion::{Pallet, Call, Storage, Event<T>} = 73,
-
-                #[runtimes(opal, quartz, unique)]
-                ForeignAssets: pallet_foreign_assets::{Pallet, Call, Storage, Event<T>} = 80,
-
-                // Frontier
-                EVM: pallet_evm::{Pallet, Config, Call, Storage, Event<T>} = 100,
-                Ethereum: pallet_ethereum::{Pallet, Config, Call, Storage, Event, Origin} = 101,
-
-                EvmCoderSubstrate: pallet_evm_coder_substrate::{Pallet, Storage} = 150,
-                EvmContractHelpers: pallet_evm_contract_helpers::{Pallet, Storage, Event<T>} = 151,
-                EvmTransactionPayment: pallet_evm_transaction_payment::{Pallet} = 152,
-                EvmMigration: pallet_evm_migration::{Pallet, Call, Storage, Event<T>} = 153,
-
-                Maintenance: pallet_maintenance::{Pallet, Call, Storage, Event<T>} = 154,
-
-                #[runtimes(opal)]
-                TestUtils: pallet_test_utils = 255,
-            }
-        }
-    }
-}
deletedruntime/common/construct_runtime/util.rsdiffbeforeafterboth
--- a/runtime/common/construct_runtime/util.rs
+++ /dev/null
@@ -1,222 +0,0 @@
-// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
-// This file is part of Unique Network.
-
-// Unique Network is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// Unique Network is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License
-// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
-
-#[macro_export]
-macro_rules! construct_runtime_impl {
-    (
-        select_runtime($select_runtime:ident);
-
-        pub enum Runtime where
-            $($where_ident:ident = $where_ty:ty),* $(,)?
-        {
-            $(
-                $(#[runtimes($($pallet_runtimes:ident),+ $(,)?)])?
-                $pallet_name:ident: $pallet_mod:ident$(::{$($pallet_parts:ty),*})? = $index:literal
-            ),*
-            $(,)?
-        }
-    ) => {
-        $crate::construct_runtime_helper! {
-            select_runtime($select_runtime),
-            selected_pallets(),
-
-            where_clause($($where_ident = $where_ty),*),
-            pallets(
-                $(
-                    $(#[runtimes($($pallet_runtimes),+)])?
-                    $pallet_name: $pallet_mod$(::{$($pallet_parts),*})? = $index
-                ),*,
-            )
-        }
-    }
-}
-
-#[macro_export]
-macro_rules! construct_runtime_helper {
-    (
-        select_runtime($select_runtime:ident),
-        selected_pallets($($selected_pallets:tt)*),
-
-        where_clause($($where_clause:tt)*),
-        pallets(
-            #[runtimes($($pallet_runtimes:ident),+)]
-            $pallet_name:ident: $pallet_mod:ident$(::{$($pallet_parts:ty),*})? = $index:literal,
-
-            $($pallets_tl:tt)*
-        )
-    ) => {
-        $crate::add_runtime_specific_pallets! {
-            select_runtime($select_runtime),
-            runtimes($($pallet_runtimes),+,),
-            selected_pallets($($selected_pallets)*),
-
-            where_clause($($where_clause)*),
-            pallets(
-                $pallet_name: $pallet_mod$(::{$($pallet_parts),*})? = $index,
-                $($pallets_tl)*
-            )
-        }
-    };
-
-    (
-        select_runtime($select_runtime:ident),
-        selected_pallets($($selected_pallets:tt)*),
-
-        where_clause($($where_clause:tt)*),
-        pallets(
-            $pallet_name:ident: $pallet_mod:ident$(::{$($pallet_parts:ty),*})? = $index:literal,
-
-            $($pallets_tl:tt)*
-        )
-    ) => {
-        $crate::construct_runtime_helper! {
-            select_runtime($select_runtime),
-            selected_pallets(
-                $($selected_pallets)*
-                $pallet_name: $pallet_mod$(::{$($pallet_parts),*})? = $index,
-            ),
-
-            where_clause($($where_clause)*),
-            pallets($($pallets_tl)*)
-        }
-    };
-
-    (
-        select_runtime($select_runtime:ident),
-        selected_pallets($($selected_pallets:tt)*),
-
-        where_clause($($where_clause:tt)*),
-        pallets()
-    ) => {
-        frame_support::construct_runtime! {
-            pub enum Runtime where
-                $($where_clause)*
-            {
-                $($selected_pallets)*
-            }
-        }
-    };
-}
-
-#[macro_export]
-macro_rules! add_runtime_specific_pallets {
-    (
-        select_runtime(opal),
-        runtimes(opal, $($_runtime_tl:tt)*),
-        selected_pallets($($selected_pallets:tt)*),
-
-        where_clause($($where_clause:tt)*),
-        pallets(
-            $pallet_name:ident: $pallet_mod:ident$(::{$($pallet_parts:ty),*})? = $index:literal,
-            $($pallets_tl:tt)*
-        )
-    ) => {
-        $crate::construct_runtime_helper! {
-            select_runtime(opal),
-            selected_pallets(
-                $($selected_pallets)*
-                $pallet_name: $pallet_mod$(::{$($pallet_parts),*})? = $index,
-            ),
-
-            where_clause($($where_clause)*),
-            pallets($($pallets_tl)*)
-        }
-    };
-
-    (
-        select_runtime(quartz),
-        runtimes(quartz, $($_runtime_tl:tt)*),
-        selected_pallets($($selected_pallets:tt)*),
-
-        where_clause($($where_clause:tt)*),
-        pallets(
-            $pallet_name:ident: $pallet_mod:ident$(::{$($pallet_parts:ty),*})? = $index:literal,
-            $($pallets_tl:tt)*
-        )
-    ) => {
-        $crate::construct_runtime_helper! {
-            select_runtime(quartz),
-            selected_pallets(
-                $($selected_pallets)*
-                $pallet_name: $pallet_mod$(::{$($pallet_parts),*})? = $index,
-            ),
-
-            where_clause($($where_clause)*),
-            pallets($($pallets_tl)*)
-        }
-    };
-
-    (
-        select_runtime(unique),
-        runtimes(unique, $($_runtime_tl:tt)*),
-        selected_pallets($($selected_pallets:tt)*),
-
-        where_clause($($where_clause:tt)*),
-        pallets(
-            $pallet_name:ident: $pallet_mod:ident$(::{$($pallet_parts:ty),*})? = $index:literal,
-            $($pallets_tl:tt)*
-        )
-    ) => {
-        $crate::construct_runtime_helper! {
-            select_runtime(unique),
-            selected_pallets(
-                $($selected_pallets)*
-                $pallet_name: $pallet_mod$(::{$($pallet_parts),*})? = $index,
-            ),
-
-            where_clause($($where_clause)*),
-            pallets($($pallets_tl)*)
-        }
-    };
-
-    (
-        select_runtime($select_runtime:ident),
-        runtimes($_current_runtime:ident, $($runtime_tl:tt)*),
-        selected_pallets($($selected_pallets:tt)*),
-
-        where_clause($($where_clause:tt)*),
-        pallets($($pallets:tt)*)
-    ) => {
-        $crate::add_runtime_specific_pallets! {
-            select_runtime($select_runtime),
-            runtimes($($runtime_tl)*),
-            selected_pallets($($selected_pallets)*),
-
-            where_clause($($where_clause)*),
-            pallets($($pallets)*)
-        }
-    };
-
-    (
-        select_runtime($select_runtime:ident),
-        runtimes(),
-        selected_pallets($($selected_pallets:tt)*),
-
-        where_clause($($where_clause:tt)*),
-        pallets(
-            $_pallet_name:ident: $_pallet_mod:ident$(::{$($_pallet_parts:ty),*})? = $_index:literal,
-            $($pallets_tl:tt)*
-        )
-    ) => {
-        $crate::construct_runtime_helper! {
-            select_runtime($select_runtime),
-            selected_pallets($($selected_pallets)*),
-
-            where_clause($($where_clause)*),
-            pallets($($pallets_tl)*)
-        }
-    };
-}
modifiedruntime/common/identity.rsdiffbeforeafterboth
--- a/runtime/common/identity.rs
+++ b/runtime/common/identity.rs
@@ -21,11 +21,12 @@
 
 use sp_runtime::{
 	traits::{DispatchInfoOf, SignedExtension},
-	transaction_validity::{
-		TransactionValidity, ValidTransaction, InvalidTransaction, TransactionValidityError,
-	},
+	transaction_validity::{TransactionValidity, ValidTransaction, TransactionValidityError},
 };
 
+#[cfg(feature = "collator-selection")]
+use sp_runtime::transaction_validity::InvalidTransaction;
+
 #[derive(Debug, Encode, Decode, PartialEq, Eq, Clone, TypeInfo)]
 pub struct DisableIdentityCalls;
 
modifiedruntime/opal/Cargo.tomldiffbeforeafterboth
--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -98,7 +98,7 @@
     'pallet-base-fee/try-runtime',
     'pallet-unique-scheduler-v2/try-runtime',
     'pallet-maintenance/try-runtime',
-    'pallet-test-utils?/try-runtime',
+    'pallet-test-utils/try-runtime',
     'fp-self-contained/try-runtime',
 ]
 std = [
@@ -186,7 +186,7 @@
     "pallet-foreign-assets/std",
 
     'pallet-maintenance/std',
-    'pallet-test-utils?/std',
+    'pallet-test-utils/std',
 ]
 limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']
 opal-runtime = [
@@ -204,6 +204,7 @@
 foreign-assets = []
 app-promotion = []
 collator-selection = []
+pallet-test-utils = []
 
 ################################################################################
 # Substrate Dependencies
@@ -532,7 +533,7 @@
 ################################################################################
 # Test dependencies
 
-pallet-test-utils = { optional = true, default-features = false, path = "../../test-pallets/utils" }
+pallet-test-utils = { default-features = false, path = "../../test-pallets/utils" }
 
 ################################################################################
 # Other Dependencies
modifiedruntime/opal/src/lib.rsdiffbeforeafterboth
--- a/runtime/opal/src/lib.rs
+++ b/runtime/opal/src/lib.rs
@@ -65,7 +65,7 @@
 	pub const ChainId: u64 = 8882;
 }
 
-construct_runtime!(opal);
+construct_runtime!();
 
 impl_common_runtime_apis!();
 
modifiedruntime/quartz/Cargo.tomldiffbeforeafterboth
before · runtime/quartz/Cargo.toml
1################################################################################2# Package34[package]5authors = ['Unique Network <support@uniquenetwork.io>']6build = 'build.rs'7description = 'Quartz Runtime'8edition = '2021'9homepage = 'https://unique.network'10license = 'GPLv3'11name = 'quartz-runtime'12repository = 'https://github.com/UniqueNetwork/unique-chain'13version.workspace = true1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std', 'quartz-runtime']20runtime-benchmarks = [21    'hex-literal',22    'frame-benchmarking',23    'frame-support/runtime-benchmarks',24    'frame-system-benchmarking',25    'frame-system/runtime-benchmarks',26    'pallet-ethereum/runtime-benchmarks',27    'pallet-evm-migration/runtime-benchmarks',28    'pallet-evm-coder-substrate/runtime-benchmarks',29    'pallet-balances/runtime-benchmarks',30    'pallet-timestamp/runtime-benchmarks',31    'pallet-configuration/runtime-benchmarks',32    'pallet-common/runtime-benchmarks',33    'pallet-structure/runtime-benchmarks',34    'pallet-fungible/runtime-benchmarks',35    'pallet-refungible/runtime-benchmarks',36    'pallet-nonfungible/runtime-benchmarks',37    'pallet-proxy-rmrk-core/runtime-benchmarks',38    'pallet-proxy-rmrk-equip/runtime-benchmarks',39    'pallet-unique/runtime-benchmarks',40    'pallet-foreign-assets/runtime-benchmarks',41    'pallet-inflation/runtime-benchmarks',42    'pallet-collator-selection/runtime-benchmarks',43    'pallet-identity/runtime-benchmarks',44    'pallet-app-promotion/runtime-benchmarks',45    'pallet-xcm/runtime-benchmarks',46    'sp-runtime/runtime-benchmarks',47    'xcm-builder/runtime-benchmarks',48    'pallet-maintenance/runtime-benchmarks',49    'cumulus-pallet-parachain-system/runtime-benchmarks',50]51try-runtime = [52    'frame-try-runtime',53    'frame-executive/try-runtime',54    'frame-support/try-runtime',55    'frame-system/try-runtime',56    'cumulus-pallet-parachain-system/try-runtime',57    'parachain-info/try-runtime',58    'pallet-aura/try-runtime',59    'cumulus-pallet-aura-ext/try-runtime',60    'pallet-balances/try-runtime',61    'pallet-randomness-collective-flip/try-runtime',62    'pallet-timestamp/try-runtime',63    'pallet-transaction-payment/try-runtime',64    'pallet-treasury/try-runtime',65    'pallet-sudo/try-runtime',66    'orml-vesting/try-runtime',67    'orml-xtokens/try-runtime',68    'orml-tokens/try-runtime',69    'cumulus-pallet-xcmp-queue/try-runtime',70    'pallet-xcm/try-runtime',71    'cumulus-pallet-xcm/try-runtime',72    'cumulus-pallet-dmp-queue/try-runtime',73	"pallet-authorship/try-runtime",74	"pallet-collator-selection/try-runtime",75	"pallet-session/try-runtime",76	"pallet-identity/try-runtime",77    'pallet-inflation/try-runtime',78    'pallet-unique/try-runtime',79    'pallet-configuration/try-runtime',80    'pallet-charge-transaction/try-runtime',81    'pallet-common/try-runtime',82    'pallet-fungible/try-runtime',83    'pallet-refungible/try-runtime',84    'pallet-nonfungible/try-runtime',85    'pallet-structure/try-runtime',86    'pallet-proxy-rmrk-core/try-runtime',87    'pallet-proxy-rmrk-equip/try-runtime',88    'pallet-app-promotion/try-runtime',89    'pallet-foreign-assets/try-runtime',90    'pallet-ethereum/try-runtime',91    'pallet-evm/try-runtime',92    'pallet-evm-coder-substrate/try-runtime',93    'pallet-evm-contract-helpers/try-runtime',94    'pallet-evm-transaction-payment/try-runtime',95    'pallet-evm-migration/try-runtime',96    'pallet-maintenance/try-runtime',97    'fp-self-contained/try-runtime',98]99std = [100    'codec/std',101    'cumulus-pallet-aura-ext/std',102    'cumulus-pallet-parachain-system/std',103    'cumulus-pallet-xcm/std',104    'cumulus-pallet-xcmp-queue/std',105    'cumulus-primitives-core/std',106    'cumulus-primitives-utility/std',107    'frame-try-runtime/std',108    'frame-executive/std',109    'frame-support/std',110    'frame-system/std',111    'frame-system-rpc-runtime-api/std',112    'pallet-aura/std',113    'pallet-balances/std',114    # 'pallet-contracts/std',115    # 'pallet-contracts-primitives/std',116    # 'pallet-contracts-rpc-runtime-api/std',117    # 'pallet-contract-helpers/std',118	"pallet-authorship/std",119	'pallet-collator-selection/std',120	"pallet-session/std",121	"pallet-identity/std",122    'pallet-randomness-collective-flip/std',123    'pallet-sudo/std',124    'pallet-timestamp/std',125    'pallet-transaction-payment/std',126    'pallet-transaction-payment-rpc-runtime-api/std',127    'pallet-treasury/std',128    'pallet-evm/std',129    'pallet-evm-migration/std',130    'pallet-evm-contract-helpers/std',131    'pallet-evm-transaction-payment/std',132    'pallet-evm-coder-substrate/std',133    'pallet-ethereum/std',134    'pallet-base-fee/std',135    'fp-rpc/std',136    'up-rpc/std',137    'up-pov-estimate-rpc/std',138    'app-promotion-rpc/std',139    'fp-evm-mapping/std',140    'fp-self-contained/std',141    'parachain-info/std',142    'serde',143    'pallet-inflation/std',144    'pallet-configuration/std',145    'pallet-app-promotion/std',146    'pallet-common/std',147    'pallet-structure/std',148    'pallet-fungible/std',149    'pallet-refungible/std',150    'pallet-nonfungible/std',151    'pallet-proxy-rmrk-core/std',152    'pallet-proxy-rmrk-equip/std',153    'pallet-unique/std',154    'pallet-charge-transaction/std',155    'up-data-structs/std',156    'sp-api/std',157    'sp-block-builder/std',158    "sp-consensus-aura/std",159    'sp-core/std',160    'sp-inherents/std',161    'sp-io/std',162    'sp-offchain/std',163    'sp-runtime/std',164    'sp-session/std',165    'sp-std/std',166    'sp-transaction-pool/std',167    'sp-version/std',168    'xcm/std',169    'xcm-builder/std',170    'xcm-executor/std',171    'up-common/std',172    'rmrk-rpc/std',173    'evm-coder/std',174    'up-sponsorship/std',175176    "orml-vesting/std",177    "orml-tokens/std",178    "orml-xtokens/std",179    "orml-traits/std",180    "pallet-foreign-assets/std",181    "pallet-maintenance/std",182]183limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']184quartz-runtime = ['refungible', 'app-promotion', 'collator-selection', 'foreign-assets']185become-sapphire = []186pov-estimate = []187188refungible = []189scheduler = []190rmrk = []191foreign-assets = []192collator-selection = []193app-promotion = []194195################################################################################196# Substrate Dependencies197198[dependencies.codec]199default-features = false200features = ['derive']201package = 'parity-scale-codec'202version = '3.1.2'203204[dependencies.frame-benchmarking]205default-features = false206git = "https://github.com/paritytech/substrate"207optional = true208branch = "polkadot-v0.9.36"209210[dependencies.frame-try-runtime]211default-features = false212git = "https://github.com/paritytech/substrate"213optional = true214branch = "polkadot-v0.9.36"215216[dependencies.frame-executive]217default-features = false218git = "https://github.com/paritytech/substrate"219branch = "polkadot-v0.9.36"220221[dependencies.frame-support]222default-features = false223git = "https://github.com/paritytech/substrate"224branch = "polkadot-v0.9.36"225226[dependencies.frame-system]227default-features = false228git = "https://github.com/paritytech/substrate"229branch = "polkadot-v0.9.36"230231[dependencies.frame-system-benchmarking]232default-features = false233git = "https://github.com/paritytech/substrate"234optional = true235branch = "polkadot-v0.9.36"236237[dependencies.frame-system-rpc-runtime-api]238default-features = false239git = "https://github.com/paritytech/substrate"240branch = "polkadot-v0.9.36"241242[dependencies.hex-literal]243optional = true244version = '0.3.3'245246[dependencies.serde]247default-features = false248features = ['derive']249optional = true250version = '1.0.130'251252[dependencies.pallet-aura]253default-features = false254git = "https://github.com/paritytech/substrate"255branch = "polkadot-v0.9.36"256257[dependencies.pallet-authorship]258default-features = false259git = 'https://github.com/paritytech/substrate'260branch = 'polkadot-v0.9.36'261262[dependencies.pallet-session]263default-features = false264git = 'https://github.com/paritytech/substrate'265branch = 'polkadot-v0.9.36'266267[dependencies.pallet-balances]268default-features = false269git = "https://github.com/paritytech/substrate"270branch = "polkadot-v0.9.36"271272# Contracts specific packages273# [dependencies.pallet-contracts]274# git = 'https://github.com/paritytech/substrate'275# default-features = false276# branch = 'master'277# version = '4.0.0-dev'278279# [dependencies.pallet-contracts-primitives]280# git = 'https://github.com/paritytech/substrate'281# default-features = false282# branch = 'master'283# version = '4.0.0-dev'284285# [dependencies.pallet-contracts-rpc-runtime-api]286# git = 'https://github.com/paritytech/substrate'287# default-features = false288# branch = 'master'289# version = '4.0.0-dev'290291[dependencies.pallet-randomness-collective-flip]292default-features = false293git = "https://github.com/paritytech/substrate"294branch = "polkadot-v0.9.36"295296[dependencies.pallet-sudo]297default-features = false298git = "https://github.com/paritytech/substrate"299branch = "polkadot-v0.9.36"300301[dependencies.pallet-timestamp]302default-features = false303git = "https://github.com/paritytech/substrate"304branch = "polkadot-v0.9.36"305306[dependencies.pallet-transaction-payment]307default-features = false308git = "https://github.com/paritytech/substrate"309branch = "polkadot-v0.9.36"310311[dependencies.pallet-transaction-payment-rpc-runtime-api]312default-features = false313git = "https://github.com/paritytech/substrate"314branch = "polkadot-v0.9.36"315316[dependencies.pallet-treasury]317default-features = false318git = "https://github.com/paritytech/substrate"319branch = "polkadot-v0.9.36"320321[dependencies.sp-arithmetic]322default-features = false323git = "https://github.com/paritytech/substrate"324branch = "polkadot-v0.9.36"325326[dependencies.sp-api]327default-features = false328git = "https://github.com/paritytech/substrate"329branch = "polkadot-v0.9.36"330331[dependencies.sp-block-builder]332default-features = false333git = "https://github.com/paritytech/substrate"334branch = "polkadot-v0.9.36"335336[dependencies.sp-core]337default-features = false338git = "https://github.com/paritytech/substrate"339branch = "polkadot-v0.9.36"340341[dependencies.sp-consensus-aura]342default-features = false343git = "https://github.com/paritytech/substrate"344branch = "polkadot-v0.9.36"345346[dependencies.sp-inherents]347default-features = false348git = "https://github.com/paritytech/substrate"349branch = "polkadot-v0.9.36"350351[dependencies.sp-io]352default-features = false353git = "https://github.com/paritytech/substrate"354branch = "polkadot-v0.9.36"355356[dependencies.sp-offchain]357default-features = false358git = "https://github.com/paritytech/substrate"359branch = "polkadot-v0.9.36"360361[dependencies.sp-runtime]362default-features = false363git = "https://github.com/paritytech/substrate"364branch = "polkadot-v0.9.36"365366[dependencies.sp-session]367default-features = false368git = "https://github.com/paritytech/substrate"369branch = "polkadot-v0.9.36"370371[dependencies.sp-std]372default-features = false373git = "https://github.com/paritytech/substrate"374branch = "polkadot-v0.9.36"375376[dependencies.sp-transaction-pool]377default-features = false378git = "https://github.com/paritytech/substrate"379branch = "polkadot-v0.9.36"380381[dependencies.sp-version]382default-features = false383git = "https://github.com/paritytech/substrate"384branch = "polkadot-v0.9.36"385386[dependencies.smallvec]387version = '1.6.1'388389################################################################################390# Cumulus dependencies391392[dependencies.parachain-info]393default-features = false394git = "https://github.com/paritytech/cumulus"395branch = "polkadot-v0.9.36"396397[dependencies.cumulus-pallet-aura-ext]398git = "https://github.com/paritytech/cumulus"399branch = "polkadot-v0.9.36"400default-features = false401402[dependencies.cumulus-pallet-parachain-system]403git = "https://github.com/paritytech/cumulus"404branch = "polkadot-v0.9.36"405default-features = false406407[dependencies.cumulus-primitives-core]408git = "https://github.com/paritytech/cumulus"409branch = "polkadot-v0.9.36"410default-features = false411412[dependencies.cumulus-pallet-xcm]413git = "https://github.com/paritytech/cumulus"414branch = "polkadot-v0.9.36"415default-features = false416417[dependencies.cumulus-pallet-dmp-queue]418git = "https://github.com/paritytech/cumulus"419branch = "polkadot-v0.9.36"420default-features = false421422[dependencies.cumulus-pallet-xcmp-queue]423git = "https://github.com/paritytech/cumulus"424branch = "polkadot-v0.9.36"425default-features = false426427[dependencies.cumulus-primitives-utility]428git = "https://github.com/paritytech/cumulus"429branch = "polkadot-v0.9.36"430default-features = false431432[dependencies.cumulus-primitives-timestamp]433git = "https://github.com/paritytech/cumulus"434branch = "polkadot-v0.9.36"435default-features = false436437################################################################################438# Polkadot dependencies439440[dependencies.polkadot-parachain]441git = "https://github.com/paritytech/polkadot"442branch = "release-v0.9.36"443default-features = false444445[dependencies.xcm]446git = "https://github.com/paritytech/polkadot"447branch = "release-v0.9.36"448default-features = false449450[dependencies.xcm-builder]451git = "https://github.com/paritytech/polkadot"452branch = "release-v0.9.36"453default-features = false454455[dependencies.xcm-executor]456git = "https://github.com/paritytech/polkadot"457branch = "release-v0.9.36"458default-features = false459460[dependencies.pallet-xcm]461git = "https://github.com/paritytech/polkadot"462branch = "release-v0.9.36"463default-features = false464465################################################################################466# RMRK dependencies467468# todo git469[dependencies.rmrk-rpc]470default-features = false471path = "../../primitives/rmrk-rpc"472473################################################################################474# local dependencies475476[dependencies]477orml-vesting.workspace = true478orml-xtokens.workspace = true479orml-tokens.workspace = true480orml-traits.workspace = true481482log = { version = "0.4.16", default-features = false }483up-common = { path = "../../primitives/common", default-features = false }484scale-info = { version = "2.0.1", default-features = false, features = [485    "derive",486] }487derivative = "2.2.0"488pallet-unique = { path = '../../pallets/unique', default-features = false }489up-rpc = { path = "../../primitives/rpc", default-features = false }490up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", default-features = false }491app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }492fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }493fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }494pallet-inflation = { path = '../../pallets/inflation', default-features = false }495pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }496up-data-structs = { path = '../../primitives/data-structs', default-features = false }497pallet-collator-selection = { default-features = false, path = "../../pallets/collator-selection" }498pallet-identity = { default-features = false, path = "../../pallets/identity" }499pallet-configuration = { default-features = false, path = "../../pallets/configuration" }500pallet-common = { default-features = false, path = "../../pallets/common" }501pallet-structure = { default-features = false, path = "../../pallets/structure" }502pallet-fungible = { default-features = false, path = "../../pallets/fungible" }503pallet-refungible = { default-features = false, path = "../../pallets/refungible" }504pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }505pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }506pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }507# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }508pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.36", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }509pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }510pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }511pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }512pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }513pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }514pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }515pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }516fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }517fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }518pallet-evm-precompile-simple = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }519evm-coder = { default-features = false, path = '../../crates/evm-coder' }520up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.36' }521pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }522pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }523precompile-utils-macro = { path = "../common/ethereum/precompiles/utils/macro" }524num_enum = { version = "0.5.3", default-features = false }525526################################################################################527# Other Dependencies528529impl-trait-for-tuples = "0.2.2"530531################################################################################532# Dev Dependencies533534[dev-dependencies.logtest]535version = "2.0.0"536537################################################################################538# Build Dependencies539540[build-dependencies.substrate-wasm-builder]541git = "https://github.com/paritytech/substrate"542branch = "polkadot-v0.9.36"
after · runtime/quartz/Cargo.toml
1################################################################################2# Package34[package]5authors = ['Unique Network <support@uniquenetwork.io>']6build = 'build.rs'7description = 'Quartz Runtime'8edition = '2021'9homepage = 'https://unique.network'10license = 'GPLv3'11name = 'quartz-runtime'12repository = 'https://github.com/UniqueNetwork/unique-chain'13version.workspace = true1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std', 'quartz-runtime']20runtime-benchmarks = [21    'hex-literal',22    'frame-benchmarking',23    'frame-support/runtime-benchmarks',24    'frame-system-benchmarking',25    'frame-system/runtime-benchmarks',26    'pallet-ethereum/runtime-benchmarks',27    'pallet-evm-migration/runtime-benchmarks',28    'pallet-evm-coder-substrate/runtime-benchmarks',29    'pallet-balances/runtime-benchmarks',30    'pallet-timestamp/runtime-benchmarks',31    'pallet-configuration/runtime-benchmarks',32    'pallet-common/runtime-benchmarks',33    'pallet-structure/runtime-benchmarks',34    'pallet-fungible/runtime-benchmarks',35    'pallet-refungible/runtime-benchmarks',36    'pallet-nonfungible/runtime-benchmarks',37    'pallet-proxy-rmrk-core/runtime-benchmarks',38    'pallet-proxy-rmrk-equip/runtime-benchmarks',39    'pallet-unique/runtime-benchmarks',40    'pallet-foreign-assets/runtime-benchmarks',41    'pallet-inflation/runtime-benchmarks',42    'pallet-collator-selection/runtime-benchmarks',43    'pallet-identity/runtime-benchmarks',44    'pallet-app-promotion/runtime-benchmarks',45    'pallet-xcm/runtime-benchmarks',46    'sp-runtime/runtime-benchmarks',47    'xcm-builder/runtime-benchmarks',48    'pallet-maintenance/runtime-benchmarks',49    'cumulus-pallet-parachain-system/runtime-benchmarks',50]51try-runtime = [52    'frame-try-runtime',53    'frame-executive/try-runtime',54    'frame-support/try-runtime',55    'frame-system/try-runtime',56    'cumulus-pallet-parachain-system/try-runtime',57    'parachain-info/try-runtime',58    'pallet-aura/try-runtime',59    'cumulus-pallet-aura-ext/try-runtime',60    'pallet-balances/try-runtime',61    'pallet-randomness-collective-flip/try-runtime',62    'pallet-timestamp/try-runtime',63    'pallet-transaction-payment/try-runtime',64    'pallet-treasury/try-runtime',65    'pallet-sudo/try-runtime',66    'orml-vesting/try-runtime',67    'orml-xtokens/try-runtime',68    'orml-tokens/try-runtime',69    'cumulus-pallet-xcmp-queue/try-runtime',70    'pallet-xcm/try-runtime',71    'cumulus-pallet-xcm/try-runtime',72    'cumulus-pallet-dmp-queue/try-runtime',73	"pallet-authorship/try-runtime",74	"pallet-collator-selection/try-runtime",75	"pallet-session/try-runtime",76	"pallet-identity/try-runtime",77    'pallet-inflation/try-runtime',78    'pallet-unique/try-runtime',79    'pallet-configuration/try-runtime',80    'pallet-charge-transaction/try-runtime',81    'pallet-common/try-runtime',82    'pallet-fungible/try-runtime',83    'pallet-refungible/try-runtime',84    'pallet-nonfungible/try-runtime',85    'pallet-structure/try-runtime',86    'pallet-proxy-rmrk-core/try-runtime',87    'pallet-proxy-rmrk-equip/try-runtime',88    'pallet-app-promotion/try-runtime',89    'pallet-foreign-assets/try-runtime',90    'pallet-ethereum/try-runtime',91    'pallet-evm/try-runtime',92    'pallet-evm-coder-substrate/try-runtime',93    'pallet-evm-contract-helpers/try-runtime',94    'pallet-evm-transaction-payment/try-runtime',95    'pallet-evm-migration/try-runtime',96    'pallet-maintenance/try-runtime',97    'fp-self-contained/try-runtime',98]99std = [100    'codec/std',101    'cumulus-pallet-aura-ext/std',102    'cumulus-pallet-parachain-system/std',103    'cumulus-pallet-xcm/std',104    'cumulus-pallet-xcmp-queue/std',105    'cumulus-primitives-core/std',106    'cumulus-primitives-utility/std',107    'frame-try-runtime/std',108    'frame-executive/std',109    'frame-support/std',110    'frame-system/std',111    'frame-system-rpc-runtime-api/std',112    'pallet-aura/std',113    'pallet-balances/std',114    # 'pallet-contracts/std',115    # 'pallet-contracts-primitives/std',116    # 'pallet-contracts-rpc-runtime-api/std',117    # 'pallet-contract-helpers/std',118	"pallet-authorship/std",119	'pallet-collator-selection/std',120	"pallet-session/std",121	"pallet-identity/std",122    'pallet-randomness-collective-flip/std',123    'pallet-sudo/std',124    'pallet-timestamp/std',125    'pallet-transaction-payment/std',126    'pallet-transaction-payment-rpc-runtime-api/std',127    'pallet-treasury/std',128    'pallet-evm/std',129    'pallet-evm-migration/std',130    'pallet-evm-contract-helpers/std',131    'pallet-evm-transaction-payment/std',132    'pallet-evm-coder-substrate/std',133    'pallet-ethereum/std',134    'pallet-base-fee/std',135    'fp-rpc/std',136    'up-rpc/std',137    'up-pov-estimate-rpc/std',138    'app-promotion-rpc/std',139    'fp-evm-mapping/std',140    'fp-self-contained/std',141    'parachain-info/std',142    'serde',143    'pallet-inflation/std',144    'pallet-configuration/std',145    'pallet-app-promotion/std',146    'pallet-common/std',147    'pallet-structure/std',148    'pallet-fungible/std',149    'pallet-refungible/std',150    'pallet-nonfungible/std',151    'pallet-proxy-rmrk-core/std',152    'pallet-proxy-rmrk-equip/std',153    'pallet-unique/std',154    'pallet-charge-transaction/std',155    'up-data-structs/std',156    'sp-api/std',157    'sp-block-builder/std',158    "sp-consensus-aura/std",159    'sp-core/std',160    'sp-inherents/std',161    'sp-io/std',162    'sp-offchain/std',163    'sp-runtime/std',164    'sp-session/std',165    'sp-std/std',166    'sp-transaction-pool/std',167    'sp-version/std',168    'xcm/std',169    'xcm-builder/std',170    'xcm-executor/std',171    'up-common/std',172    'rmrk-rpc/std',173    'evm-coder/std',174    'up-sponsorship/std',175176    "orml-vesting/std",177    "orml-tokens/std",178    "orml-xtokens/std",179    "orml-traits/std",180    "pallet-foreign-assets/std",181    "pallet-maintenance/std",182]183limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']184quartz-runtime = ['refungible', 'app-promotion', 'collator-selection', 'foreign-assets']185become-sapphire = []186pov-estimate = []187188refungible = []189scheduler = []190rmrk = []191foreign-assets = []192collator-selection = []193app-promotion = []194195################################################################################196# Substrate Dependencies197198[dependencies.codec]199default-features = false200features = ['derive']201package = 'parity-scale-codec'202version = '3.1.2'203204[dependencies.frame-benchmarking]205default-features = false206git = "https://github.com/paritytech/substrate"207optional = true208branch = "polkadot-v0.9.36"209210[dependencies.frame-try-runtime]211default-features = false212git = "https://github.com/paritytech/substrate"213optional = true214branch = "polkadot-v0.9.36"215216[dependencies.frame-executive]217default-features = false218git = "https://github.com/paritytech/substrate"219branch = "polkadot-v0.9.36"220221[dependencies.frame-support]222default-features = false223git = "https://github.com/paritytech/substrate"224branch = "polkadot-v0.9.36"225226[dependencies.frame-system]227default-features = false228git = "https://github.com/paritytech/substrate"229branch = "polkadot-v0.9.36"230231[dependencies.frame-system-benchmarking]232default-features = false233git = "https://github.com/paritytech/substrate"234optional = true235branch = "polkadot-v0.9.36"236237[dependencies.frame-system-rpc-runtime-api]238default-features = false239git = "https://github.com/paritytech/substrate"240branch = "polkadot-v0.9.36"241242[dependencies.hex-literal]243optional = true244version = '0.3.3'245246[dependencies.serde]247default-features = false248features = ['derive']249optional = true250version = '1.0.130'251252[dependencies.pallet-aura]253default-features = false254git = "https://github.com/paritytech/substrate"255branch = "polkadot-v0.9.36"256257[dependencies.pallet-authorship]258default-features = false259git = 'https://github.com/paritytech/substrate'260branch = 'polkadot-v0.9.36'261262[dependencies.pallet-session]263default-features = false264git = 'https://github.com/paritytech/substrate'265branch = 'polkadot-v0.9.36'266267[dependencies.pallet-balances]268default-features = false269git = "https://github.com/paritytech/substrate"270branch = "polkadot-v0.9.36"271272# Contracts specific packages273# [dependencies.pallet-contracts]274# git = 'https://github.com/paritytech/substrate'275# default-features = false276# branch = 'master'277# version = '4.0.0-dev'278279# [dependencies.pallet-contracts-primitives]280# git = 'https://github.com/paritytech/substrate'281# default-features = false282# branch = 'master'283# version = '4.0.0-dev'284285# [dependencies.pallet-contracts-rpc-runtime-api]286# git = 'https://github.com/paritytech/substrate'287# default-features = false288# branch = 'master'289# version = '4.0.0-dev'290291[dependencies.pallet-randomness-collective-flip]292default-features = false293git = "https://github.com/paritytech/substrate"294branch = "polkadot-v0.9.36"295296[dependencies.pallet-sudo]297default-features = false298git = "https://github.com/paritytech/substrate"299branch = "polkadot-v0.9.36"300301[dependencies.pallet-timestamp]302default-features = false303git = "https://github.com/paritytech/substrate"304branch = "polkadot-v0.9.36"305306[dependencies.pallet-transaction-payment]307default-features = false308git = "https://github.com/paritytech/substrate"309branch = "polkadot-v0.9.36"310311[dependencies.pallet-transaction-payment-rpc-runtime-api]312default-features = false313git = "https://github.com/paritytech/substrate"314branch = "polkadot-v0.9.36"315316[dependencies.pallet-treasury]317default-features = false318git = "https://github.com/paritytech/substrate"319branch = "polkadot-v0.9.36"320321[dependencies.sp-arithmetic]322default-features = false323git = "https://github.com/paritytech/substrate"324branch = "polkadot-v0.9.36"325326[dependencies.sp-api]327default-features = false328git = "https://github.com/paritytech/substrate"329branch = "polkadot-v0.9.36"330331[dependencies.sp-block-builder]332default-features = false333git = "https://github.com/paritytech/substrate"334branch = "polkadot-v0.9.36"335336[dependencies.sp-core]337default-features = false338git = "https://github.com/paritytech/substrate"339branch = "polkadot-v0.9.36"340341[dependencies.sp-consensus-aura]342default-features = false343git = "https://github.com/paritytech/substrate"344branch = "polkadot-v0.9.36"345346[dependencies.sp-inherents]347default-features = false348git = "https://github.com/paritytech/substrate"349branch = "polkadot-v0.9.36"350351[dependencies.sp-io]352default-features = false353git = "https://github.com/paritytech/substrate"354branch = "polkadot-v0.9.36"355356[dependencies.sp-offchain]357default-features = false358git = "https://github.com/paritytech/substrate"359branch = "polkadot-v0.9.36"360361[dependencies.sp-runtime]362default-features = false363git = "https://github.com/paritytech/substrate"364branch = "polkadot-v0.9.36"365366[dependencies.sp-session]367default-features = false368git = "https://github.com/paritytech/substrate"369branch = "polkadot-v0.9.36"370371[dependencies.sp-std]372default-features = false373git = "https://github.com/paritytech/substrate"374branch = "polkadot-v0.9.36"375376[dependencies.sp-transaction-pool]377default-features = false378git = "https://github.com/paritytech/substrate"379branch = "polkadot-v0.9.36"380381[dependencies.sp-version]382default-features = false383git = "https://github.com/paritytech/substrate"384branch = "polkadot-v0.9.36"385386[dependencies.smallvec]387version = '1.6.1'388389################################################################################390# Cumulus dependencies391392[dependencies.parachain-info]393default-features = false394git = "https://github.com/paritytech/cumulus"395branch = "polkadot-v0.9.36"396397[dependencies.cumulus-pallet-aura-ext]398git = "https://github.com/paritytech/cumulus"399branch = "polkadot-v0.9.36"400default-features = false401402[dependencies.cumulus-pallet-parachain-system]403git = "https://github.com/paritytech/cumulus"404branch = "polkadot-v0.9.36"405default-features = false406407[dependencies.cumulus-primitives-core]408git = "https://github.com/paritytech/cumulus"409branch = "polkadot-v0.9.36"410default-features = false411412[dependencies.cumulus-pallet-xcm]413git = "https://github.com/paritytech/cumulus"414branch = "polkadot-v0.9.36"415default-features = false416417[dependencies.cumulus-pallet-dmp-queue]418git = "https://github.com/paritytech/cumulus"419branch = "polkadot-v0.9.36"420default-features = false421422[dependencies.cumulus-pallet-xcmp-queue]423git = "https://github.com/paritytech/cumulus"424branch = "polkadot-v0.9.36"425default-features = false426427[dependencies.cumulus-primitives-utility]428git = "https://github.com/paritytech/cumulus"429branch = "polkadot-v0.9.36"430default-features = false431432[dependencies.cumulus-primitives-timestamp]433git = "https://github.com/paritytech/cumulus"434branch = "polkadot-v0.9.36"435default-features = false436437################################################################################438# Polkadot dependencies439440[dependencies.polkadot-parachain]441git = "https://github.com/paritytech/polkadot"442branch = "release-v0.9.36"443default-features = false444445[dependencies.xcm]446git = "https://github.com/paritytech/polkadot"447branch = "release-v0.9.36"448default-features = false449450[dependencies.xcm-builder]451git = "https://github.com/paritytech/polkadot"452branch = "release-v0.9.36"453default-features = false454455[dependencies.xcm-executor]456git = "https://github.com/paritytech/polkadot"457branch = "release-v0.9.36"458default-features = false459460[dependencies.pallet-xcm]461git = "https://github.com/paritytech/polkadot"462branch = "release-v0.9.36"463default-features = false464465################################################################################466# RMRK dependencies467468# todo git469[dependencies.rmrk-rpc]470default-features = false471path = "../../primitives/rmrk-rpc"472473################################################################################474# local dependencies475476[dependencies]477orml-vesting.workspace = true478orml-xtokens.workspace = true479orml-tokens.workspace = true480orml-traits.workspace = true481482log = { version = "0.4.16", default-features = false }483up-common = { path = "../../primitives/common", default-features = false }484scale-info = { version = "2.0.1", default-features = false, features = [485    "derive",486] }487derivative = "2.2.0"488pallet-unique = { path = '../../pallets/unique', default-features = false }489up-rpc = { path = "../../primitives/rpc", default-features = false }490up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", default-features = false }491app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }492fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }493fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }494pallet-inflation = { path = '../../pallets/inflation', default-features = false }495pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }496up-data-structs = { path = '../../primitives/data-structs', default-features = false }497pallet-collator-selection = { default-features = false, path = "../../pallets/collator-selection" }498pallet-identity = { default-features = false, path = "../../pallets/identity" }499pallet-configuration = { default-features = false, path = "../../pallets/configuration" }500pallet-common = { default-features = false, path = "../../pallets/common" }501pallet-structure = { default-features = false, path = "../../pallets/structure" }502pallet-fungible = { default-features = false, path = "../../pallets/fungible" }503pallet-refungible = { default-features = false, path = "../../pallets/refungible" }504pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }505pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }506pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }507# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }508pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.36", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }509pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }510pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }511pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }512pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }513pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }514pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }515pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }516fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }517fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }518pallet-evm-precompile-simple = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }519evm-coder = { default-features = false, path = '../../crates/evm-coder' }520up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.36' }521pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }522pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }523precompile-utils-macro = { path = "../common/ethereum/precompiles/utils/macro" }524num_enum = { version = "0.5.3", default-features = false }525526################################################################################527# Test dependencies528529pallet-test-utils = { default-features = false, path = "../../test-pallets/utils" }530531################################################################################532# Other Dependencies533534impl-trait-for-tuples = "0.2.2"535536################################################################################537# Dev Dependencies538539[dev-dependencies.logtest]540version = "2.0.0"541542################################################################################543# Build Dependencies544545[build-dependencies.substrate-wasm-builder]546git = "https://github.com/paritytech/substrate"547branch = "polkadot-v0.9.36"
modifiedruntime/quartz/src/lib.rsdiffbeforeafterboth
--- a/runtime/quartz/src/lib.rs
+++ b/runtime/quartz/src/lib.rs
@@ -77,7 +77,7 @@
 	pub const ChainId: u64 = 8881;
 }
 
-construct_runtime!(quartz);
+construct_runtime!();
 
 impl_common_runtime_apis!();
 
modifiedruntime/unique/Cargo.tomldiffbeforeafterboth
--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -516,6 +516,11 @@
 num_enum = { version = "0.5.3", default-features = false }
 
 ################################################################################
+# Test dependencies
+
+pallet-test-utils = { default-features = false, path = "../../test-pallets/utils" }
+
+################################################################################
 # Other Dependencies
 
 impl-trait-for-tuples = "0.2.2"
modifiedruntime/unique/src/lib.rsdiffbeforeafterboth
--- a/runtime/unique/src/lib.rs
+++ b/runtime/unique/src/lib.rs
@@ -65,7 +65,7 @@
 	pub const ChainId: u64 = 8880;
 }
 
-construct_runtime!(unique);
+construct_runtime!();
 
 impl_common_runtime_apis!();