git.delta.rocks / unique-network / refs/commits / 9f1da529327c

difftreelog

fix test-pallet included only in opal

Daniel Shiposha2022-10-11parent: #18c626a.patch.diff
in: master

8 files changed

modifiedCargo.lockdiffbeforeafterboth
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8805,7 +8805,6 @@
  "pallet-structure",
  "pallet-sudo",
  "pallet-template-transaction-payment",
- "pallet-test-utils",
  "pallet-timestamp",
  "pallet-transaction-payment",
  "pallet-transaction-payment-rpc-runtime-api",
@@ -12879,7 +12878,6 @@
  "pallet-structure",
  "pallet-sudo",
  "pallet-template-transaction-payment",
- "pallet-test-utils",
  "pallet-timestamp",
  "pallet-transaction-payment",
  "pallet-transaction-payment-rpc-runtime-api",
modifiednode/cli/Cargo.tomldiffbeforeafterboth
--- a/node/cli/Cargo.toml
+++ b/node/cli/Cargo.toml
@@ -335,8 +335,3 @@
     'quartz-runtime?/try-runtime',
     'opal-runtime?/try-runtime',
 ]
-
-test-pallets = [
-    'unique-runtime?/test-pallets',
-    'quartz-runtime?/test-pallets',
-]
modifiedruntime/common/config/mod.rsdiffbeforeafterboth
--- a/runtime/common/config/mod.rs
+++ b/runtime/common/config/mod.rs
@@ -22,5 +22,5 @@
 pub mod substrate;
 pub mod xcm;
 
-#[cfg(feature = "test-pallets")]
+#[cfg(feature = "pallet-test-utils")]
 pub mod test_pallets;
modifiedruntime/common/construct_runtime/mod.rsdiffbeforeafterboth
--- a/runtime/common/construct_runtime/mod.rs
+++ b/runtime/common/construct_runtime/mod.rs
@@ -94,10 +94,8 @@
                 EvmTransactionPayment: pallet_evm_transaction_payment::{Pallet} = 152,
                 EvmMigration: pallet_evm_migration::{Pallet, Call, Storage} = 153,
 
-                #[test_pallets]
-                {
-                    TestUtils: pallet_test_utils,
-                }
+                #[runtimes(opal)]
+                TestUtils: pallet_test_utils = 255,
             }
         }
     }
modifiedruntime/common/construct_runtime/util.rsdiffbeforeafterboth
--- a/runtime/common/construct_runtime/util.rs
+++ b/runtime/common/construct_runtime/util.rs
@@ -27,24 +27,11 @@
                 $pallet_name:ident: $pallet_mod:ident$(::{$($pallet_parts:ty),*})? = $index:literal
             ),*
             $(,)?
-
-            #[test_pallets]
-            {
-                $(
-                    $test_pallet_name:ident: $test_pallet_mod:ident
-                ),*
-                $(,)?
-            }
         }
     ) => {
         $crate::construct_runtime_helper! {
             select_runtime($select_runtime),
             selected_pallets(),
-            test_pallets(
-                $(
-                    $test_pallet_name: $test_pallet_mod
-                ),*
-            ),
 
             where_clause($($where_ident = $where_ty),*),
             pallets(
@@ -62,7 +49,6 @@
     (
         select_runtime($select_runtime:ident),
         selected_pallets($($selected_pallets:tt)*),
-        test_pallets($($test_pallets:tt)*),
 
         where_clause($($where_clause:tt)*),
         pallets(
@@ -76,7 +62,6 @@
             select_runtime($select_runtime),
             runtimes($($pallet_runtimes),+,),
             selected_pallets($($selected_pallets)*),
-            test_pallets($($test_pallets)*),
 
             where_clause($($where_clause)*),
             pallets(
@@ -89,7 +74,6 @@
     (
         select_runtime($select_runtime:ident),
         selected_pallets($($selected_pallets:tt)*),
-        test_pallets($($test_pallets:tt)*),
 
         where_clause($($where_clause:tt)*),
         pallets(
@@ -104,7 +88,6 @@
                 $($selected_pallets)*
                 $pallet_name: $pallet_mod$(::{$($pallet_parts),*})? = $index,
             ),
-            test_pallets($($test_pallets)*),
 
             where_clause($($where_clause)*),
             pallets($($pallets_tl)*)
@@ -114,12 +97,10 @@
     (
         select_runtime($select_runtime:ident),
         selected_pallets($($selected_pallets:tt)*),
-        test_pallets($($test_pallets:tt)*),
 
         where_clause($($where_clause:tt)*),
         pallets()
     ) => {
-        #[cfg(not(feature = "test-pallets"))]
         frame_support::construct_runtime! {
             pub enum Runtime where
                 $($where_clause)*
@@ -127,16 +108,6 @@
                 $($selected_pallets)*
             }
         }
-
-        #[cfg(feature = "test-pallets")]
-        frame_support::construct_runtime! {
-            pub enum Runtime where
-                $($where_clause)*
-            {
-                $($selected_pallets)*
-                $($test_pallets)*
-            }
-        }
     };
 }
 
@@ -146,7 +117,6 @@
         select_runtime(opal),
         runtimes(opal, $($_runtime_tl:tt)*),
         selected_pallets($($selected_pallets:tt)*),
-        test_pallets($($test_pallets:tt)*),
 
         where_clause($($where_clause:tt)*),
         pallets(
@@ -160,7 +130,6 @@
                 $($selected_pallets)*
                 $pallet_name: $pallet_mod$(::{$($pallet_parts),*})? = $index,
             ),
-            test_pallets($($test_pallets)*),
 
             where_clause($($where_clause)*),
             pallets($($pallets_tl)*)
@@ -171,7 +140,6 @@
         select_runtime(quartz),
         runtimes(quartz, $($_runtime_tl:tt)*),
         selected_pallets($($selected_pallets:tt)*),
-        test_pallets($($test_pallets:tt)*),
 
         where_clause($($where_clause:tt)*),
         pallets(
@@ -185,7 +153,6 @@
                 $($selected_pallets)*
                 $pallet_name: $pallet_mod$(::{$($pallet_parts),*})? = $index,
             ),
-            test_pallets($($test_pallets)*),
 
             where_clause($($where_clause)*),
             pallets($($pallets_tl)*)
@@ -196,7 +163,6 @@
         select_runtime(unique),
         runtimes(unique, $($_runtime_tl:tt)*),
         selected_pallets($($selected_pallets:tt)*),
-        test_pallets($($test_pallets:tt)*),
 
         where_clause($($where_clause:tt)*),
         pallets(
@@ -210,7 +176,6 @@
                 $($selected_pallets)*
                 $pallet_name: $pallet_mod$(::{$($pallet_parts),*})? = $index,
             ),
-            test_pallets($($test_pallets)*),
 
             where_clause($($where_clause)*),
             pallets($($pallets_tl)*)
@@ -221,7 +186,6 @@
         select_runtime($select_runtime:ident),
         runtimes($_current_runtime:ident, $($runtime_tl:tt)*),
         selected_pallets($($selected_pallets:tt)*),
-        test_pallets($($test_pallets:tt)*),
 
         where_clause($($where_clause:tt)*),
         pallets($($pallets:tt)*)
@@ -230,7 +194,6 @@
             select_runtime($select_runtime),
             runtimes($($runtime_tl)*),
             selected_pallets($($selected_pallets)*),
-            test_pallets($($test_pallets)*),
 
             where_clause($($where_clause)*),
             pallets($($pallets)*)
@@ -241,7 +204,6 @@
         select_runtime($select_runtime:ident),
         runtimes(),
         selected_pallets($($selected_pallets:tt)*),
-        test_pallets($($test_pallets:tt)*),
 
         where_clause($($where_clause:tt)*),
         pallets(
@@ -252,7 +214,6 @@
         $crate::construct_runtime_helper! {
             select_runtime($select_runtime),
             selected_pallets($($selected_pallets)*),
-            test_pallets($($test_pallets)*),
 
             where_clause($($where_clause)*),
             pallets($($pallets_tl)*)
modifiedruntime/opal/Cargo.tomldiffbeforeafterboth
before · runtime/opal/Cargo.toml
1################################################################################2# Package34cargo-features = ["workspace-inheritance"]56[package]7authors = ['Unique Network <support@uniquenetwork.io>']8build = 'build.rs'9description = 'Opal Runtime'10edition = '2021'11homepage = 'https://unique.network'12license = 'GPLv3'13name = 'opal-runtime'14repository = 'https://github.com/UniqueNetwork/unique-chain'15version = "0.9.30"1617[package.metadata.docs.rs]18targets = ['x86_64-unknown-linux-gnu']1920[features]21default = ['std', 'opal-runtime']22runtime-benchmarks = [23    'hex-literal',24    'frame-benchmarking',25    'frame-support/runtime-benchmarks',26    'frame-system-benchmarking',27    'frame-system/runtime-benchmarks',28    'pallet-ethereum/runtime-benchmarks',29    'pallet-evm-migration/runtime-benchmarks',30    'pallet-evm-coder-substrate/runtime-benchmarks',31    'pallet-balances/runtime-benchmarks',32    'pallet-timestamp/runtime-benchmarks',33    'pallet-common/runtime-benchmarks',34    'pallet-structure/runtime-benchmarks',35    'pallet-fungible/runtime-benchmarks',36    'pallet-refungible/runtime-benchmarks',37    'pallet-nonfungible/runtime-benchmarks',38    'pallet-proxy-rmrk-core/runtime-benchmarks',39    'pallet-proxy-rmrk-equip/runtime-benchmarks',40    'pallet-foreign-assets/runtime-benchmarks',41    'pallet-unique/runtime-benchmarks',42    'pallet-inflation/runtime-benchmarks',43    'pallet-app-promotion/runtime-benchmarks',44    'pallet-unique-scheduler/runtime-benchmarks',45    'pallet-xcm/runtime-benchmarks',46    'sp-runtime/runtime-benchmarks',47    'xcm-builder/runtime-benchmarks',48]49try-runtime = [50    'frame-try-runtime',51    'frame-executive/try-runtime',52    'frame-support/try-runtime',53    'frame-system/try-runtime',54    'cumulus-pallet-parachain-system/try-runtime',55    'parachain-info/try-runtime',56    'pallet-aura/try-runtime',57    'cumulus-pallet-aura-ext/try-runtime',58    'pallet-balances/try-runtime',59    'pallet-randomness-collective-flip/try-runtime',60    'pallet-timestamp/try-runtime',61    'pallet-transaction-payment/try-runtime',62    'pallet-treasury/try-runtime',63    'pallet-sudo/try-runtime',64    'orml-vesting/try-runtime',65    'orml-xtokens/try-runtime',66    'orml-tokens/try-runtime',67    'cumulus-pallet-xcmp-queue/try-runtime',68    'pallet-xcm/try-runtime',69    'cumulus-pallet-xcm/try-runtime',70    'cumulus-pallet-dmp-queue/try-runtime',71    'pallet-inflation/try-runtime',72    'pallet-unique/try-runtime',73    'pallet-unique-scheduler/try-runtime',74    'pallet-configuration/try-runtime',75    'pallet-charge-transaction/try-runtime',76    'pallet-common/try-runtime',77    'pallet-fungible/try-runtime',78    'pallet-refungible/try-runtime',79    'pallet-nonfungible/try-runtime',80    'pallet-structure/try-runtime',81    'pallet-proxy-rmrk-core/try-runtime',82    'pallet-proxy-rmrk-equip/try-runtime',83    'pallet-app-promotion/try-runtime',84    'pallet-foreign-assets/try-runtime',85    'pallet-evm/try-runtime',86    'pallet-ethereum/try-runtime',87    'pallet-evm-coder-substrate/try-runtime',88    'pallet-evm-contract-helpers/try-runtime',89    'pallet-evm-transaction-payment/try-runtime',90    'pallet-evm-migration/try-runtime',91]92std = [93    'codec/std',94    'cumulus-pallet-aura-ext/std',95    'cumulus-pallet-parachain-system/std',96    'cumulus-pallet-xcm/std',97    'cumulus-pallet-xcmp-queue/std',98    'cumulus-primitives-core/std',99    'cumulus-primitives-utility/std',100    'frame-try-runtime/std',101    'frame-executive/std',102    'frame-support/std',103    'frame-system/std',104    'frame-system-rpc-runtime-api/std',105    'pallet-aura/std',106    'pallet-balances/std',107    # 'pallet-contracts/std',108    # 'pallet-contracts-primitives/std',109    # 'pallet-contracts-rpc-runtime-api/std',110    # 'pallet-contract-helpers/std',111    'pallet-randomness-collective-flip/std',112    'pallet-sudo/std',113    'pallet-timestamp/std',114    'pallet-transaction-payment/std',115    'pallet-transaction-payment-rpc-runtime-api/std',116    'pallet-treasury/std',117    'pallet-evm/std',118    'pallet-evm-migration/std',119    'pallet-evm-contract-helpers/std',120    'pallet-evm-transaction-payment/std',121    'pallet-evm-coder-substrate/std',122    'pallet-ethereum/std',123    'pallet-base-fee/std',124    'fp-rpc/std',125    'up-rpc/std',126    'app-promotion-rpc/std',127    'fp-evm-mapping/std',128    'fp-self-contained/std',129    'parachain-info/std',130    'serde',131    'pallet-inflation/std',132    'pallet-configuration/std',133    'pallet-app-promotion/std',134    'pallet-common/std',135    'pallet-structure/std',136    'pallet-fungible/std',137    'pallet-refungible/std',138    'pallet-nonfungible/std',139    'pallet-proxy-rmrk-core/std',140    'pallet-proxy-rmrk-equip/std',141    'pallet-unique/std',142    'pallet-unique-scheduler/std',143    'pallet-charge-transaction/std',144    'up-data-structs/std',145    'sp-api/std',146    'sp-block-builder/std',147    "sp-consensus-aura/std",148    'sp-core/std',149    'sp-inherents/std',150    'sp-io/std',151    'sp-offchain/std',152    'sp-runtime/std',153    'sp-session/std',154    'sp-std/std',155    'sp-transaction-pool/std',156    'sp-version/std',157    'xcm/std',158    'xcm-builder/std',159    'xcm-executor/std',160    'up-common/std',161    'rmrk-rpc/std',162    'evm-coder/std',163    'up-sponsorship/std',164165    "orml-vesting/std",166    "orml-tokens/std",167    "orml-xtokens/std",168    "orml-traits/std",169    "pallet-foreign-assets/std",170171    'pallet-test-utils?/std',172]173test-pallets = ['pallet-test-utils']174limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']175opal-runtime = ['refungible', 'rmrk', 'app-promotion', 'foreign-assets']176177refungible = []178scheduler = []179rmrk = []180foreign-assets = []181app-promotion = []182183################################################################################184# Substrate Dependencies185186[dependencies.codec]187default-features = false188features = ['derive']189package = 'parity-scale-codec'190version = '3.1.2'191192[dependencies.frame-benchmarking]193default-features = false194git = "https://github.com/paritytech/substrate"195optional = true196branch = "polkadot-v0.9.30"197198[dependencies.frame-try-runtime]199default-features = false200git = "https://github.com/paritytech/substrate"201optional = true202branch = "polkadot-v0.9.30"203204[dependencies.frame-executive]205default-features = false206git = "https://github.com/paritytech/substrate"207branch = "polkadot-v0.9.30"208209[dependencies.frame-support]210default-features = false211git = "https://github.com/paritytech/substrate"212branch = "polkadot-v0.9.30"213214[dependencies.frame-system]215default-features = false216git = "https://github.com/paritytech/substrate"217branch = "polkadot-v0.9.30"218219[dependencies.frame-system-benchmarking]220default-features = false221git = "https://github.com/paritytech/substrate"222optional = true223branch = "polkadot-v0.9.30"224225[dependencies.frame-system-rpc-runtime-api]226default-features = false227git = "https://github.com/paritytech/substrate"228branch = "polkadot-v0.9.30"229230[dependencies.hex-literal]231optional = true232version = '0.3.3'233234[dependencies.serde]235default-features = false236features = ['derive']237optional = true238version = '1.0.130'239240[dependencies.pallet-aura]241default-features = false242git = "https://github.com/paritytech/substrate"243branch = "polkadot-v0.9.30"244245[dependencies.pallet-balances]246default-features = false247git = "https://github.com/paritytech/substrate"248branch = "polkadot-v0.9.30"249250# Contracts specific packages251# [dependencies.pallet-contracts]252# git = 'https://github.com/paritytech/substrate'253# default-features = false254# branch = 'master'255# version = '4.0.0-dev'256257# [dependencies.pallet-contracts-primitives]258# git = 'https://github.com/paritytech/substrate'259# default-features = false260# branch = 'master'261# version = '4.0.0-dev'262263# [dependencies.pallet-contracts-rpc-runtime-api]264# git = 'https://github.com/paritytech/substrate'265# default-features = false266# branch = 'master'267# version = '4.0.0-dev'268269[dependencies.pallet-randomness-collective-flip]270default-features = false271git = "https://github.com/paritytech/substrate"272branch = "polkadot-v0.9.30"273274[dependencies.pallet-sudo]275default-features = false276git = "https://github.com/paritytech/substrate"277branch = "polkadot-v0.9.30"278279[dependencies.pallet-timestamp]280default-features = false281git = "https://github.com/paritytech/substrate"282branch = "polkadot-v0.9.30"283284[dependencies.pallet-transaction-payment]285default-features = false286git = "https://github.com/paritytech/substrate"287branch = "polkadot-v0.9.30"288289[dependencies.pallet-transaction-payment-rpc-runtime-api]290default-features = false291git = "https://github.com/paritytech/substrate"292branch = "polkadot-v0.9.30"293294[dependencies.pallet-treasury]295default-features = false296git = "https://github.com/paritytech/substrate"297branch = "polkadot-v0.9.30"298299[dependencies.sp-arithmetic]300default-features = false301git = "https://github.com/paritytech/substrate"302branch = "polkadot-v0.9.30"303304[dependencies.sp-api]305default-features = false306git = "https://github.com/paritytech/substrate"307branch = "polkadot-v0.9.30"308309[dependencies.sp-block-builder]310default-features = false311git = "https://github.com/paritytech/substrate"312branch = "polkadot-v0.9.30"313314[dependencies.sp-core]315default-features = false316git = "https://github.com/paritytech/substrate"317branch = "polkadot-v0.9.30"318319[dependencies.sp-consensus-aura]320default-features = false321git = "https://github.com/paritytech/substrate"322branch = "polkadot-v0.9.30"323324[dependencies.sp-inherents]325default-features = false326git = "https://github.com/paritytech/substrate"327branch = "polkadot-v0.9.30"328329[dependencies.sp-io]330default-features = false331git = "https://github.com/paritytech/substrate"332branch = "polkadot-v0.9.30"333334[dependencies.sp-offchain]335default-features = false336git = "https://github.com/paritytech/substrate"337branch = "polkadot-v0.9.30"338339[dependencies.sp-runtime]340default-features = false341git = "https://github.com/paritytech/substrate"342branch = "polkadot-v0.9.30"343344[dependencies.sp-session]345default-features = false346git = "https://github.com/paritytech/substrate"347branch = "polkadot-v0.9.30"348349[dependencies.sp-std]350default-features = false351git = "https://github.com/paritytech/substrate"352branch = "polkadot-v0.9.30"353354[dependencies.sp-transaction-pool]355default-features = false356git = "https://github.com/paritytech/substrate"357branch = "polkadot-v0.9.30"358359[dependencies.sp-version]360default-features = false361git = "https://github.com/paritytech/substrate"362branch = "polkadot-v0.9.30"363364[dependencies.smallvec]365version = '1.6.1'366367################################################################################368# Cumulus dependencies369370[dependencies.parachain-info]371default-features = false372git = "https://github.com/paritytech/cumulus"373branch = "polkadot-v0.9.30"374375[dependencies.cumulus-pallet-aura-ext]376git = "https://github.com/paritytech/cumulus"377branch = "polkadot-v0.9.30"378default-features = false379380[dependencies.cumulus-pallet-parachain-system]381git = "https://github.com/paritytech/cumulus"382branch = "polkadot-v0.9.30"383default-features = false384385[dependencies.cumulus-primitives-core]386git = "https://github.com/paritytech/cumulus"387branch = "polkadot-v0.9.30"388default-features = false389390[dependencies.cumulus-pallet-xcm]391git = "https://github.com/paritytech/cumulus"392branch = "polkadot-v0.9.30"393default-features = false394395[dependencies.cumulus-pallet-dmp-queue]396git = "https://github.com/paritytech/cumulus"397branch = "polkadot-v0.9.30"398default-features = false399400[dependencies.cumulus-pallet-xcmp-queue]401git = "https://github.com/paritytech/cumulus"402branch = "polkadot-v0.9.30"403default-features = false404405[dependencies.cumulus-primitives-utility]406git = "https://github.com/paritytech/cumulus"407branch = "polkadot-v0.9.30"408default-features = false409410[dependencies.cumulus-primitives-timestamp]411git = "https://github.com/paritytech/cumulus"412branch = "polkadot-v0.9.30"413default-features = false414415################################################################################416# Polkadot dependencies417418[dependencies.polkadot-parachain]419git = "https://github.com/paritytech/polkadot"420branch = "release-v0.9.30"421default-features = false422423[dependencies.xcm]424git = "https://github.com/paritytech/polkadot"425branch = "release-v0.9.30"426default-features = false427428[dependencies.xcm-builder]429git = "https://github.com/paritytech/polkadot"430branch = "release-v0.9.30"431default-features = false432433[dependencies.xcm-executor]434git = "https://github.com/paritytech/polkadot"435branch = "release-v0.9.30"436default-features = false437438[dependencies.pallet-xcm]439git = "https://github.com/paritytech/polkadot"440branch = "release-v0.9.30"441default-features = false442443################################################################################444# local dependencies445446[dependencies]447orml-vesting.workspace = true448orml-xtokens.workspace = true449orml-tokens.workspace = true450orml-traits.workspace = true451452log = { version = "0.4.16", default-features = false }453up-common = { path = "../../primitives/common", default-features = false }454scale-info = { version = "2.0.1", default-features = false, features = [455    "derive",456] }457derivative = "2.2.0"458pallet-unique = { path = '../../pallets/unique', default-features = false }459up-rpc = { path = "../../primitives/rpc", default-features = false }460app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }461rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }462fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }463pallet-inflation = { path = '../../pallets/inflation', default-features = false }464pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }465up-data-structs = { path = '../../primitives/data-structs', default-features = false }466pallet-configuration = { default-features = false, path = "../../pallets/configuration" }467pallet-common = { default-features = false, path = "../../pallets/common" }468pallet-structure = { default-features = false, path = "../../pallets/structure" }469pallet-fungible = { default-features = false, path = "../../pallets/fungible" }470pallet-refungible = { default-features = false, path = "../../pallets/refungible" }471pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }472pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }473pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }474pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }475pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.30", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }476pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }477pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }478pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }479pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }480pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }481pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }482pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }483fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }484fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }485evm-coder = { default-features = false, path = '../../crates/evm-coder' }486up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.30' }487pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }488489################################################################################490# Test dependencies491492pallet-test-utils = { optional = true, default-features = false, path = "../../test-pallets/utils" }493494################################################################################495# Other Dependencies496497impl-trait-for-tuples = "0.2.2"498499################################################################################500# Dev Dependencies501502[dev-dependencies.logtest]503version = "2.0.0"504505################################################################################506# Build Dependencies507508[build-dependencies.substrate-wasm-builder]509git = "https://github.com/paritytech/substrate"510branch = "polkadot-v0.9.30"
after · runtime/opal/Cargo.toml
1################################################################################2# Package34cargo-features = ["workspace-inheritance"]56[package]7authors = ['Unique Network <support@uniquenetwork.io>']8build = 'build.rs'9description = 'Opal Runtime'10edition = '2021'11homepage = 'https://unique.network'12license = 'GPLv3'13name = 'opal-runtime'14repository = 'https://github.com/UniqueNetwork/unique-chain'15version = "0.9.30"1617[package.metadata.docs.rs]18targets = ['x86_64-unknown-linux-gnu']1920[features]21default = ['std', 'opal-runtime']22runtime-benchmarks = [23    'hex-literal',24    'frame-benchmarking',25    'frame-support/runtime-benchmarks',26    'frame-system-benchmarking',27    'frame-system/runtime-benchmarks',28    'pallet-ethereum/runtime-benchmarks',29    'pallet-evm-migration/runtime-benchmarks',30    'pallet-evm-coder-substrate/runtime-benchmarks',31    'pallet-balances/runtime-benchmarks',32    'pallet-timestamp/runtime-benchmarks',33    'pallet-common/runtime-benchmarks',34    'pallet-structure/runtime-benchmarks',35    'pallet-fungible/runtime-benchmarks',36    'pallet-refungible/runtime-benchmarks',37    'pallet-nonfungible/runtime-benchmarks',38    'pallet-proxy-rmrk-core/runtime-benchmarks',39    'pallet-proxy-rmrk-equip/runtime-benchmarks',40    'pallet-foreign-assets/runtime-benchmarks',41    'pallet-unique/runtime-benchmarks',42    'pallet-inflation/runtime-benchmarks',43    'pallet-app-promotion/runtime-benchmarks',44    'pallet-unique-scheduler/runtime-benchmarks',45    'pallet-xcm/runtime-benchmarks',46    'sp-runtime/runtime-benchmarks',47    'xcm-builder/runtime-benchmarks',48]49try-runtime = [50    'frame-try-runtime',51    'frame-executive/try-runtime',52    'frame-support/try-runtime',53    'frame-system/try-runtime',54    'cumulus-pallet-parachain-system/try-runtime',55    'parachain-info/try-runtime',56    'pallet-aura/try-runtime',57    'cumulus-pallet-aura-ext/try-runtime',58    'pallet-balances/try-runtime',59    'pallet-randomness-collective-flip/try-runtime',60    'pallet-timestamp/try-runtime',61    'pallet-transaction-payment/try-runtime',62    'pallet-treasury/try-runtime',63    'pallet-sudo/try-runtime',64    'orml-vesting/try-runtime',65    'orml-xtokens/try-runtime',66    'orml-tokens/try-runtime',67    'cumulus-pallet-xcmp-queue/try-runtime',68    'pallet-xcm/try-runtime',69    'cumulus-pallet-xcm/try-runtime',70    'cumulus-pallet-dmp-queue/try-runtime',71    'pallet-inflation/try-runtime',72    'pallet-unique/try-runtime',73    'pallet-unique-scheduler/try-runtime',74    'pallet-configuration/try-runtime',75    'pallet-charge-transaction/try-runtime',76    'pallet-common/try-runtime',77    'pallet-fungible/try-runtime',78    'pallet-refungible/try-runtime',79    'pallet-nonfungible/try-runtime',80    'pallet-structure/try-runtime',81    'pallet-proxy-rmrk-core/try-runtime',82    'pallet-proxy-rmrk-equip/try-runtime',83    'pallet-app-promotion/try-runtime',84    'pallet-foreign-assets/try-runtime',85    'pallet-evm/try-runtime',86    'pallet-ethereum/try-runtime',87    'pallet-evm-coder-substrate/try-runtime',88    'pallet-evm-contract-helpers/try-runtime',89    'pallet-evm-transaction-payment/try-runtime',90    'pallet-evm-migration/try-runtime',91]92std = [93    'codec/std',94    'cumulus-pallet-aura-ext/std',95    'cumulus-pallet-parachain-system/std',96    'cumulus-pallet-xcm/std',97    'cumulus-pallet-xcmp-queue/std',98    'cumulus-primitives-core/std',99    'cumulus-primitives-utility/std',100    'frame-try-runtime/std',101    'frame-executive/std',102    'frame-support/std',103    'frame-system/std',104    'frame-system-rpc-runtime-api/std',105    'pallet-aura/std',106    'pallet-balances/std',107    # 'pallet-contracts/std',108    # 'pallet-contracts-primitives/std',109    # 'pallet-contracts-rpc-runtime-api/std',110    # 'pallet-contract-helpers/std',111    'pallet-randomness-collective-flip/std',112    'pallet-sudo/std',113    'pallet-timestamp/std',114    'pallet-transaction-payment/std',115    'pallet-transaction-payment-rpc-runtime-api/std',116    'pallet-treasury/std',117    'pallet-evm/std',118    'pallet-evm-migration/std',119    'pallet-evm-contract-helpers/std',120    'pallet-evm-transaction-payment/std',121    'pallet-evm-coder-substrate/std',122    'pallet-ethereum/std',123    'pallet-base-fee/std',124    'fp-rpc/std',125    'up-rpc/std',126    'app-promotion-rpc/std',127    'fp-evm-mapping/std',128    'fp-self-contained/std',129    'parachain-info/std',130    'serde',131    'pallet-inflation/std',132    'pallet-configuration/std',133    'pallet-app-promotion/std',134    'pallet-common/std',135    'pallet-structure/std',136    'pallet-fungible/std',137    'pallet-refungible/std',138    'pallet-nonfungible/std',139    'pallet-proxy-rmrk-core/std',140    'pallet-proxy-rmrk-equip/std',141    'pallet-unique/std',142    'pallet-unique-scheduler/std',143    'pallet-charge-transaction/std',144    'up-data-structs/std',145    'sp-api/std',146    'sp-block-builder/std',147    "sp-consensus-aura/std",148    'sp-core/std',149    'sp-inherents/std',150    'sp-io/std',151    'sp-offchain/std',152    'sp-runtime/std',153    'sp-session/std',154    'sp-std/std',155    'sp-transaction-pool/std',156    'sp-version/std',157    'xcm/std',158    'xcm-builder/std',159    'xcm-executor/std',160    'up-common/std',161    'rmrk-rpc/std',162    'evm-coder/std',163    'up-sponsorship/std',164165    "orml-vesting/std",166    "orml-tokens/std",167    "orml-xtokens/std",168    "orml-traits/std",169    "pallet-foreign-assets/std",170171    'pallet-test-utils?/std',172]173limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']174opal-runtime = ['refungible', 'scheduler', 'rmrk', 'app-promotion', 'foreign-assets', 'pallet-test-utils']175176refungible = []177scheduler = []178rmrk = []179foreign-assets = []180app-promotion = []181182################################################################################183# Substrate Dependencies184185[dependencies.codec]186default-features = false187features = ['derive']188package = 'parity-scale-codec'189version = '3.1.2'190191[dependencies.frame-benchmarking]192default-features = false193git = "https://github.com/paritytech/substrate"194optional = true195branch = "polkadot-v0.9.30"196197[dependencies.frame-try-runtime]198default-features = false199git = "https://github.com/paritytech/substrate"200optional = true201branch = "polkadot-v0.9.30"202203[dependencies.frame-executive]204default-features = false205git = "https://github.com/paritytech/substrate"206branch = "polkadot-v0.9.30"207208[dependencies.frame-support]209default-features = false210git = "https://github.com/paritytech/substrate"211branch = "polkadot-v0.9.30"212213[dependencies.frame-system]214default-features = false215git = "https://github.com/paritytech/substrate"216branch = "polkadot-v0.9.30"217218[dependencies.frame-system-benchmarking]219default-features = false220git = "https://github.com/paritytech/substrate"221optional = true222branch = "polkadot-v0.9.30"223224[dependencies.frame-system-rpc-runtime-api]225default-features = false226git = "https://github.com/paritytech/substrate"227branch = "polkadot-v0.9.30"228229[dependencies.hex-literal]230optional = true231version = '0.3.3'232233[dependencies.serde]234default-features = false235features = ['derive']236optional = true237version = '1.0.130'238239[dependencies.pallet-aura]240default-features = false241git = "https://github.com/paritytech/substrate"242branch = "polkadot-v0.9.30"243244[dependencies.pallet-balances]245default-features = false246git = "https://github.com/paritytech/substrate"247branch = "polkadot-v0.9.30"248249# Contracts specific packages250# [dependencies.pallet-contracts]251# git = 'https://github.com/paritytech/substrate'252# default-features = false253# branch = 'master'254# version = '4.0.0-dev'255256# [dependencies.pallet-contracts-primitives]257# git = 'https://github.com/paritytech/substrate'258# default-features = false259# branch = 'master'260# version = '4.0.0-dev'261262# [dependencies.pallet-contracts-rpc-runtime-api]263# git = 'https://github.com/paritytech/substrate'264# default-features = false265# branch = 'master'266# version = '4.0.0-dev'267268[dependencies.pallet-randomness-collective-flip]269default-features = false270git = "https://github.com/paritytech/substrate"271branch = "polkadot-v0.9.30"272273[dependencies.pallet-sudo]274default-features = false275git = "https://github.com/paritytech/substrate"276branch = "polkadot-v0.9.30"277278[dependencies.pallet-timestamp]279default-features = false280git = "https://github.com/paritytech/substrate"281branch = "polkadot-v0.9.30"282283[dependencies.pallet-transaction-payment]284default-features = false285git = "https://github.com/paritytech/substrate"286branch = "polkadot-v0.9.30"287288[dependencies.pallet-transaction-payment-rpc-runtime-api]289default-features = false290git = "https://github.com/paritytech/substrate"291branch = "polkadot-v0.9.30"292293[dependencies.pallet-treasury]294default-features = false295git = "https://github.com/paritytech/substrate"296branch = "polkadot-v0.9.30"297298[dependencies.sp-arithmetic]299default-features = false300git = "https://github.com/paritytech/substrate"301branch = "polkadot-v0.9.30"302303[dependencies.sp-api]304default-features = false305git = "https://github.com/paritytech/substrate"306branch = "polkadot-v0.9.30"307308[dependencies.sp-block-builder]309default-features = false310git = "https://github.com/paritytech/substrate"311branch = "polkadot-v0.9.30"312313[dependencies.sp-core]314default-features = false315git = "https://github.com/paritytech/substrate"316branch = "polkadot-v0.9.30"317318[dependencies.sp-consensus-aura]319default-features = false320git = "https://github.com/paritytech/substrate"321branch = "polkadot-v0.9.30"322323[dependencies.sp-inherents]324default-features = false325git = "https://github.com/paritytech/substrate"326branch = "polkadot-v0.9.30"327328[dependencies.sp-io]329default-features = false330git = "https://github.com/paritytech/substrate"331branch = "polkadot-v0.9.30"332333[dependencies.sp-offchain]334default-features = false335git = "https://github.com/paritytech/substrate"336branch = "polkadot-v0.9.30"337338[dependencies.sp-runtime]339default-features = false340git = "https://github.com/paritytech/substrate"341branch = "polkadot-v0.9.30"342343[dependencies.sp-session]344default-features = false345git = "https://github.com/paritytech/substrate"346branch = "polkadot-v0.9.30"347348[dependencies.sp-std]349default-features = false350git = "https://github.com/paritytech/substrate"351branch = "polkadot-v0.9.30"352353[dependencies.sp-transaction-pool]354default-features = false355git = "https://github.com/paritytech/substrate"356branch = "polkadot-v0.9.30"357358[dependencies.sp-version]359default-features = false360git = "https://github.com/paritytech/substrate"361branch = "polkadot-v0.9.30"362363[dependencies.smallvec]364version = '1.6.1'365366################################################################################367# Cumulus dependencies368369[dependencies.parachain-info]370default-features = false371git = "https://github.com/paritytech/cumulus"372branch = "polkadot-v0.9.30"373374[dependencies.cumulus-pallet-aura-ext]375git = "https://github.com/paritytech/cumulus"376branch = "polkadot-v0.9.30"377default-features = false378379[dependencies.cumulus-pallet-parachain-system]380git = "https://github.com/paritytech/cumulus"381branch = "polkadot-v0.9.30"382default-features = false383384[dependencies.cumulus-primitives-core]385git = "https://github.com/paritytech/cumulus"386branch = "polkadot-v0.9.30"387default-features = false388389[dependencies.cumulus-pallet-xcm]390git = "https://github.com/paritytech/cumulus"391branch = "polkadot-v0.9.30"392default-features = false393394[dependencies.cumulus-pallet-dmp-queue]395git = "https://github.com/paritytech/cumulus"396branch = "polkadot-v0.9.30"397default-features = false398399[dependencies.cumulus-pallet-xcmp-queue]400git = "https://github.com/paritytech/cumulus"401branch = "polkadot-v0.9.30"402default-features = false403404[dependencies.cumulus-primitives-utility]405git = "https://github.com/paritytech/cumulus"406branch = "polkadot-v0.9.30"407default-features = false408409[dependencies.cumulus-primitives-timestamp]410git = "https://github.com/paritytech/cumulus"411branch = "polkadot-v0.9.30"412default-features = false413414################################################################################415# Polkadot dependencies416417[dependencies.polkadot-parachain]418git = "https://github.com/paritytech/polkadot"419branch = "release-v0.9.30"420default-features = false421422[dependencies.xcm]423git = "https://github.com/paritytech/polkadot"424branch = "release-v0.9.30"425default-features = false426427[dependencies.xcm-builder]428git = "https://github.com/paritytech/polkadot"429branch = "release-v0.9.30"430default-features = false431432[dependencies.xcm-executor]433git = "https://github.com/paritytech/polkadot"434branch = "release-v0.9.30"435default-features = false436437[dependencies.pallet-xcm]438git = "https://github.com/paritytech/polkadot"439branch = "release-v0.9.30"440default-features = false441442################################################################################443# local dependencies444445[dependencies]446orml-vesting.workspace = true447orml-xtokens.workspace = true448orml-tokens.workspace = true449orml-traits.workspace = true450451log = { version = "0.4.16", default-features = false }452up-common = { path = "../../primitives/common", default-features = false }453scale-info = { version = "2.0.1", default-features = false, features = [454    "derive",455] }456derivative = "2.2.0"457pallet-unique = { path = '../../pallets/unique', default-features = false }458up-rpc = { path = "../../primitives/rpc", default-features = false }459app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }460rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }461fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }462pallet-inflation = { path = '../../pallets/inflation', default-features = false }463pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }464up-data-structs = { path = '../../primitives/data-structs', default-features = false }465pallet-configuration = { default-features = false, path = "../../pallets/configuration" }466pallet-common = { default-features = false, path = "../../pallets/common" }467pallet-structure = { default-features = false, path = "../../pallets/structure" }468pallet-fungible = { default-features = false, path = "../../pallets/fungible" }469pallet-refungible = { default-features = false, path = "../../pallets/refungible" }470pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }471pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }472pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }473pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }474pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.30", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }475pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }476pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }477pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }478pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }479pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }480pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }481pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }482fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }483fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30" }484evm-coder = { default-features = false, path = '../../crates/evm-coder' }485up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.30' }486pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }487488################################################################################489# Test dependencies490491pallet-test-utils = { optional = true, default-features = false, path = "../../test-pallets/utils" }492493################################################################################494# Other Dependencies495496impl-trait-for-tuples = "0.2.2"497498################################################################################499# Dev Dependencies500501[dev-dependencies.logtest]502version = "2.0.0"503504################################################################################505# Build Dependencies506507[build-dependencies.substrate-wasm-builder]508git = "https://github.com/paritytech/substrate"509branch = "polkadot-v0.9.30"
modifiedruntime/quartz/Cargo.tomldiffbeforeafterboth
--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -165,10 +165,7 @@
     "orml-xtokens/std",
     "orml-traits/std",
     "pallet-foreign-assets/std",
-
-    'pallet-test-utils?/std',
 ]
-test-pallets = ['pallet-test-utils']
 limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']
 quartz-runtime = ['refungible']
 
@@ -490,11 +487,6 @@
 evm-coder = { default-features = false, path = '../../crates/evm-coder' }
 up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.30' }
 pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }
-
-################################################################################
-# Test dependencies
-
-pallet-test-utils = { optional = true, default-features = false, path = "../../test-pallets/utils" }
 
 ################################################################################
 # Other Dependencies
modifiedruntime/unique/Cargo.tomldiffbeforeafterboth
--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -166,10 +166,7 @@
     "orml-xtokens/std",
     "orml-traits/std",
     "pallet-foreign-assets/std",
-
-    'pallet-test-utils?/std',
 ]
-test-pallets = ['pallet-test-utils']
 limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']
 unique-runtime = []
 
@@ -484,11 +481,6 @@
 evm-coder = { default-features = false, path = '../../crates/evm-coder' }
 up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.30' }
 pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }
-
-################################################################################
-# Test dependencies
-
-pallet-test-utils = { optional = true, default-features = false, path = "../../test-pallets/utils" }
 
 ################################################################################
 # Other Dependencies