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

difftreelog

Foreign assets benchmark

Dev2022-09-12parent: #838ab9f.patch.diff
in: master

8 files changed

modifiedMakefilediffbeforeafterboth
128bench-rmrk-equip:128bench-rmrk-equip:
129 make _bench PALLET=proxy-rmrk-equip129 make _bench PALLET=proxy-rmrk-equip
130
131.PHONY: bench-foreign-assets
132bench-foreign-assets:
133 make _bench PALLET=foreign-assets
130134
131.PHONY: bench135.PHONY: bench
132bench: bench-evm-migration bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible bench-scheduler bench-rmrk-core bench-rmrk-equip136bench: bench-evm-migration bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible bench-scheduler bench-rmrk-core bench-rmrk-equip bench-foreign-assets
133137
modifiedpallets/foreign-assets/Cargo.tomldiffbeforeafterboth
22xcm-executor = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.27", default-features = false }22xcm-executor = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.27", default-features = false }
23#orml-tokens = { git = 'https://github.com/UniqueNetwork/open-runtime-module-library', branch = 'unique-polkadot-v0.9.24', version = "0.4.1-dev", default-features = false }23#orml-tokens = { git = 'https://github.com/UniqueNetwork/open-runtime-module-library', branch = 'unique-polkadot-v0.9.24', version = "0.4.1-dev", default-features = false }
24orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", branch = "polkadot-v0.9.27", version = "0.4.1-dev", default-features = false }24orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", branch = "polkadot-v0.9.27", version = "0.4.1-dev", default-features = false }
25#git = "https://github.com/open-web3-stack/open-runtime-module-library"25frame-benchmarking = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.27" }
26#branch = "polkadot-v0.9.27"
2726
28[dev-dependencies]27[dev-dependencies]
29serde_json = "1.0.68"28serde_json = "1.0.68"
51 "orml-tokens/std"50 "orml-tokens/std"
52]51]
53try-runtime = ["frame-support/try-runtime"]52try-runtime = ["frame-support/try-runtime"]
5453runtime-benchmarks = ['frame-benchmarking', 'pallet-common/runtime-benchmarks']
addedpallets/foreign-assets/src/benchmarking.rsdiffbeforeafterboth

no changes

modifiedpallets/foreign-assets/src/lib.rsdiffbeforeafterboth
124mod impl_fungibles;124mod impl_fungibles;
125mod weights;125mod weights;
126
127#[cfg(feature = "runtime-benchmarks")]
128mod benchmarking;
126129
127pub use module::*;130pub use module::*;
128pub use weights::WeightInfo;131pub use weights::WeightInfo;
303 let data: CreateCollectionData<T::AccountId> = CreateCollectionData {306 let data: CreateCollectionData<T::AccountId> = CreateCollectionData {
304 name: name.try_into().unwrap(),307 name: name.try_into().unwrap(),
305 description: description.try_into().unwrap(),308 description: description.try_into().unwrap(),
306 mode: CollectionMode::Fungible(18),309 mode: CollectionMode::Fungible(md.decimals),
307 ..Default::default()310 ..Default::default()
308 };311 };
309312
modifiedruntime/common/runtime_apis.rsdiffbeforeafterboth
653 #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]653 #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
654 list_benchmark!(list, extra, pallet_proxy_rmrk_equip, RmrkEquip);654 list_benchmark!(list, extra, pallet_proxy_rmrk_equip, RmrkEquip);
655
656 #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
657 list_benchmark!(list, extra, pallet_foreign_assets, ForeignAssets);
658
655659
656 // list_benchmark!(list, extra, pallet_evm_coder_substrate, EvmCoderSubstrate);660 // list_benchmark!(list, extra, pallet_evm_coder_substrate, EvmCoderSubstrate);
708 #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]712 #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
709 add_benchmark!(params, batches, pallet_proxy_rmrk_equip, RmrkEquip);713 add_benchmark!(params, batches, pallet_proxy_rmrk_equip, RmrkEquip);
714
715 #[cfg(not(any(feature = "unique-runtime", feature = "quartz-runtime")))]
716 add_benchmark!(params, batches, pallet_foreign_assets, ForeignAssets);
710717
711 // add_benchmark!(params, batches, pallet_evm_coder_substrate, EvmCoderSubstrate);718 // add_benchmark!(params, batches, pallet_evm_coder_substrate, EvmCoderSubstrate);
712719
modifiedruntime/opal/Cargo.tomldiffbeforeafterboth
35 'pallet-nonfungible/runtime-benchmarks',35 'pallet-nonfungible/runtime-benchmarks',
36 'pallet-proxy-rmrk-core/runtime-benchmarks',36 'pallet-proxy-rmrk-core/runtime-benchmarks',
37 'pallet-proxy-rmrk-equip/runtime-benchmarks',37 'pallet-proxy-rmrk-equip/runtime-benchmarks',
38 'pallet-foreign-assets/runtime-benchmarks',
38 'pallet-unique/runtime-benchmarks',39 'pallet-unique/runtime-benchmarks',
39 'pallet-inflation/runtime-benchmarks',40 'pallet-inflation/runtime-benchmarks',
40 'pallet-unique-scheduler/runtime-benchmarks',41 'pallet-unique-scheduler/runtime-benchmarks',
modifiedruntime/quartz/Cargo.tomldiffbeforeafterboth
36 'pallet-proxy-rmrk-core/runtime-benchmarks',36 'pallet-proxy-rmrk-core/runtime-benchmarks',
37 'pallet-proxy-rmrk-equip/runtime-benchmarks',37 'pallet-proxy-rmrk-equip/runtime-benchmarks',
38 'pallet-unique/runtime-benchmarks',38 'pallet-unique/runtime-benchmarks',
39 'pallet-foreign-assets/runtime-benchmarks',
39 'pallet-inflation/runtime-benchmarks',40 'pallet-inflation/runtime-benchmarks',
40 'pallet-unique-scheduler/runtime-benchmarks',41 'pallet-unique-scheduler/runtime-benchmarks',
41 'pallet-xcm/runtime-benchmarks',42 'pallet-xcm/runtime-benchmarks',
modifiedruntime/unique/Cargo.tomldiffbeforeafterboth
36 'pallet-proxy-rmrk-core/runtime-benchmarks',36 'pallet-proxy-rmrk-core/runtime-benchmarks',
37 'pallet-proxy-rmrk-equip/runtime-benchmarks',37 'pallet-proxy-rmrk-equip/runtime-benchmarks',
38 'pallet-unique/runtime-benchmarks',38 'pallet-unique/runtime-benchmarks',
39 'pallet-foreign-assets/runtime-benchmarks',
39 'pallet-inflation/runtime-benchmarks',40 'pallet-inflation/runtime-benchmarks',
40 'pallet-unique-scheduler/runtime-benchmarks',41 'pallet-unique-scheduler/runtime-benchmarks',
41 'pallet-xcm/runtime-benchmarks',42 'pallet-xcm/runtime-benchmarks',