git.delta.rocks / unique-network / refs/commits / 4387b1a2d0e7

difftreelog

Merge pull request #771 from UniqueNetwork/fix/runtime-benchmark-list

ut-akuznetsov2022-12-15parents: #0ad755c #ed9d832.patch.diff
in: master

3 files changed

modifiedruntime/common/runtime_apis.rsdiffbeforeafterboth
--- a/runtime/common/runtime_apis.rs
+++ b/runtime/common/runtime_apis.rs
@@ -684,23 +684,26 @@
                     list_benchmark!(list, extra, pallet_unique, Unique);
                     list_benchmark!(list, extra, pallet_structure, Structure);
                     list_benchmark!(list, extra, pallet_inflation, Inflation);
+
+                    #[cfg(feature = "app-promotion")]
                     list_benchmark!(list, extra, pallet_app_promotion, AppPromotion);
+
                     list_benchmark!(list, extra, pallet_fungible, Fungible);
                     list_benchmark!(list, extra, pallet_nonfungible, Nonfungible);
 
-                    #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
+                    #[cfg(feature = "refungible")]
                     list_benchmark!(list, extra, pallet_refungible, Refungible);
 
-                    #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
+                    #[cfg(feature = "scheduler")]
                     list_benchmark!(list, extra, pallet_unique_scheduler_v2, Scheduler);
 
-                    #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
+                    #[cfg(feature = "rmrk")]
                     list_benchmark!(list, extra, pallet_proxy_rmrk_core, RmrkCore);
 
-                    #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
+                    #[cfg(feature = "rmrk")]
                     list_benchmark!(list, extra, pallet_proxy_rmrk_equip, RmrkEquip);
 
-                    #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
+                    #[cfg(feature = "foreign-assets")]
                     list_benchmark!(list, extra, pallet_foreign_assets, ForeignAssets);
 
 
@@ -744,23 +747,26 @@
                     add_benchmark!(params, batches, pallet_unique, Unique);
                     add_benchmark!(params, batches, pallet_structure, Structure);
                     add_benchmark!(params, batches, pallet_inflation, Inflation);
+
+                    #[cfg(feature = "app-promotion")]
                     add_benchmark!(params, batches, pallet_app_promotion, AppPromotion);
+
                     add_benchmark!(params, batches, pallet_fungible, Fungible);
                     add_benchmark!(params, batches, pallet_nonfungible, Nonfungible);
 
-                    #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
+                    #[cfg(feature = "refungible")]
                     add_benchmark!(params, batches, pallet_refungible, Refungible);
 
-                    #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
+                    #[cfg(feature = "scheduler")]
                     add_benchmark!(params, batches, pallet_unique_scheduler_v2, Scheduler);
 
-                    #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
+                    #[cfg(feature = "rmrk")]
                     add_benchmark!(params, batches, pallet_proxy_rmrk_core, RmrkCore);
 
-                    #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
+                    #[cfg(feature = "rmrk")]
                     add_benchmark!(params, batches, pallet_proxy_rmrk_equip, RmrkEquip);
 
-                    #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
+                    #[cfg(feature = "foreign-assets")]
                     add_benchmark!(params, batches, pallet_foreign_assets, ForeignAssets);
 
                     // add_benchmark!(params, batches, pallet_evm_coder_substrate, EvmCoderSubstrate);
modifiedruntime/quartz/Cargo.tomldiffbeforeafterboth
40 'pallet-unique/runtime-benchmarks',40 'pallet-unique/runtime-benchmarks',
41 'pallet-foreign-assets/runtime-benchmarks',41 'pallet-foreign-assets/runtime-benchmarks',
42 'pallet-inflation/runtime-benchmarks',42 'pallet-inflation/runtime-benchmarks',
43 'pallet-app-promotion/runtime-benchmarks',
43 'pallet-xcm/runtime-benchmarks',44 'pallet-xcm/runtime-benchmarks',
44 'sp-runtime/runtime-benchmarks',45 'sp-runtime/runtime-benchmarks',
45 'xcm-builder/runtime-benchmarks',46 'xcm-builder/runtime-benchmarks',
81 'pallet-app-promotion/try-runtime',82 'pallet-app-promotion/try-runtime',
82 'pallet-foreign-assets/try-runtime',83 'pallet-foreign-assets/try-runtime',
83 'pallet-ethereum/try-runtime',84 'pallet-ethereum/try-runtime',
85 'pallet-evm/try-runtime',
84 'pallet-evm-coder-substrate/try-runtime',86 'pallet-evm-coder-substrate/try-runtime',
85 'pallet-evm-contract-helpers/try-runtime',87 'pallet-evm-contract-helpers/try-runtime',
86 'pallet-evm-transaction-payment/try-runtime',88 'pallet-evm-transaction-payment/try-runtime',
128 'serde',130 'serde',
129 'pallet-inflation/std',131 'pallet-inflation/std',
130 'pallet-configuration/std',132 'pallet-configuration/std',
133 'pallet-app-promotion/std',
131 'pallet-common/std',134 'pallet-common/std',
132 'pallet-structure/std',135 'pallet-structure/std',
133 'pallet-fungible/std',136 'pallet-fungible/std',
modifiedruntime/unique/Cargo.tomldiffbeforeafterboth
--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -40,6 +40,7 @@
     'pallet-unique/runtime-benchmarks',
     'pallet-foreign-assets/runtime-benchmarks',
     'pallet-inflation/runtime-benchmarks',
+    'pallet-app-promotion/runtime-benchmarks',
     'pallet-xcm/runtime-benchmarks',
     'sp-runtime/runtime-benchmarks',
     'xcm-builder/runtime-benchmarks',
@@ -82,6 +83,7 @@
     'pallet-app-promotion/try-runtime',
     'pallet-foreign-assets/try-runtime',
     'pallet-ethereum/try-runtime',
+    'pallet-evm/try-runtime',
     'pallet-evm-coder-substrate/try-runtime',
     'pallet-evm-contract-helpers/try-runtime',
     'pallet-evm-transaction-payment/try-runtime',
@@ -129,6 +131,7 @@
     'serde',
     'pallet-inflation/std',
     'pallet-configuration/std',
+    'pallet-app-promotion/std',
     'pallet-common/std',
     'pallet-structure/std',
     'pallet-fungible/std',