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
685 list_benchmark!(list, extra, pallet_structure, Structure);685 list_benchmark!(list, extra, pallet_structure, Structure);
686 list_benchmark!(list, extra, pallet_inflation, Inflation);686 list_benchmark!(list, extra, pallet_inflation, Inflation);
687
688 #[cfg(feature = "app-promotion")]
687 list_benchmark!(list, extra, pallet_app_promotion, AppPromotion);689 list_benchmark!(list, extra, pallet_app_promotion, AppPromotion);
690
688 list_benchmark!(list, extra, pallet_fungible, Fungible);691 list_benchmark!(list, extra, pallet_fungible, Fungible);
689 list_benchmark!(list, extra, pallet_nonfungible, Nonfungible);692 list_benchmark!(list, extra, pallet_nonfungible, Nonfungible);
690693
691 #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]694 #[cfg(feature = "refungible")]
692 list_benchmark!(list, extra, pallet_refungible, Refungible);695 list_benchmark!(list, extra, pallet_refungible, Refungible);
693696
694 #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]697 #[cfg(feature = "scheduler")]
695 list_benchmark!(list, extra, pallet_unique_scheduler_v2, Scheduler);698 list_benchmark!(list, extra, pallet_unique_scheduler_v2, Scheduler);
696699
697 #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]700 #[cfg(feature = "rmrk")]
698 list_benchmark!(list, extra, pallet_proxy_rmrk_core, RmrkCore);701 list_benchmark!(list, extra, pallet_proxy_rmrk_core, RmrkCore);
699702
700 #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]703 #[cfg(feature = "rmrk")]
701 list_benchmark!(list, extra, pallet_proxy_rmrk_equip, RmrkEquip);704 list_benchmark!(list, extra, pallet_proxy_rmrk_equip, RmrkEquip);
702705
703 #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]706 #[cfg(feature = "foreign-assets")]
704 list_benchmark!(list, extra, pallet_foreign_assets, ForeignAssets);707 list_benchmark!(list, extra, pallet_foreign_assets, ForeignAssets);
705708
706709
745 add_benchmark!(params, batches, pallet_structure, Structure);748 add_benchmark!(params, batches, pallet_structure, Structure);
746 add_benchmark!(params, batches, pallet_inflation, Inflation);749 add_benchmark!(params, batches, pallet_inflation, Inflation);
750
751 #[cfg(feature = "app-promotion")]
747 add_benchmark!(params, batches, pallet_app_promotion, AppPromotion);752 add_benchmark!(params, batches, pallet_app_promotion, AppPromotion);
753
748 add_benchmark!(params, batches, pallet_fungible, Fungible);754 add_benchmark!(params, batches, pallet_fungible, Fungible);
749 add_benchmark!(params, batches, pallet_nonfungible, Nonfungible);755 add_benchmark!(params, batches, pallet_nonfungible, Nonfungible);
750756
751 #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]757 #[cfg(feature = "refungible")]
752 add_benchmark!(params, batches, pallet_refungible, Refungible);758 add_benchmark!(params, batches, pallet_refungible, Refungible);
753759
754 #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]760 #[cfg(feature = "scheduler")]
755 add_benchmark!(params, batches, pallet_unique_scheduler_v2, Scheduler);761 add_benchmark!(params, batches, pallet_unique_scheduler_v2, Scheduler);
756762
757 #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]763 #[cfg(feature = "rmrk")]
758 add_benchmark!(params, batches, pallet_proxy_rmrk_core, RmrkCore);764 add_benchmark!(params, batches, pallet_proxy_rmrk_core, RmrkCore);
759765
760 #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]766 #[cfg(feature = "rmrk")]
761 add_benchmark!(params, batches, pallet_proxy_rmrk_equip, RmrkEquip);767 add_benchmark!(params, batches, pallet_proxy_rmrk_equip, RmrkEquip);
762768
763 #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]769 #[cfg(feature = "foreign-assets")]
764 add_benchmark!(params, batches, pallet_foreign_assets, ForeignAssets);770 add_benchmark!(params, batches, pallet_foreign_assets, ForeignAssets);
765771
766 // add_benchmark!(params, batches, pallet_evm_coder_substrate, EvmCoderSubstrate);772 // add_benchmark!(params, batches, pallet_evm_coder_substrate, EvmCoderSubstrate);
modifiedruntime/quartz/Cargo.tomldiffbeforeafterboth
--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/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',
@@ -81,6 +82,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',
@@ -128,6 +130,7 @@
     'serde',
     'pallet-inflation/std',
     'pallet-configuration/std',
+    'pallet-app-promotion/std',
     'pallet-common/std',
     'pallet-structure/std',
     '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',