difftreelog
Merge pull request #810 from UniqueNetwork/fix/app-promotion-benchmarks
in: master
8 files changed
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5550,7 +5550,7 @@
[[package]]
name = "pallet-app-promotion"
-version = "0.1.2"
+version = "0.1.3"
dependencies = [
"frame-benchmarking",
"frame-support",
pallets/app-promotion/CHANGELOG.mddiffbeforeafterboth--- a/pallets/app-promotion/CHANGELOG.md
+++ b/pallets/app-promotion/CHANGELOG.md
@@ -4,6 +4,12 @@
<!-- bureaucrate goes here -->
+## [0.1.3] - 2022-12-25
+
+### Fixed
+
+- Benchmarks for `payoutStakers` and `unstake` extrinsics.
+
## [0.1.2] - 2022-12-20
### Fixed
pallets/app-promotion/Cargo.tomldiffbeforeafterboth--- a/pallets/app-promotion/Cargo.toml
+++ b/pallets/app-promotion/Cargo.toml
@@ -9,13 +9,13 @@
license = 'GPLv3'
name = 'pallet-app-promotion'
repository = 'https://github.com/UniqueNetwork/unique-chain'
-version = '0.1.2'
+version = '0.1.3'
[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']
[features]
-default = ['std']
+default = ['std',]
runtime-benchmarks = [
'frame-benchmarking',
'frame-support/runtime-benchmarks',
pallets/app-promotion/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/app-promotion/src/benchmarking.rs
+++ b/pallets/app-promotion/src/benchmarking.rs
@@ -77,27 +77,36 @@
} : _(RawOrigin::Root, T::CrossAccountId::from_sub(pallet_admin))
payout_stakers{
- let b in 1..101;
+ let b in 1..100;
let pallet_admin = account::<T::AccountId>("admin", 1, SEED);
let share = Perbill::from_rational(1u32, 20);
PromototionPallet::<T>::set_admin_address(RawOrigin::Root.into(), T::CrossAccountId::from_sub(pallet_admin.clone()))?;
<T as Config>::Currency::make_free_balance_be(&pallet_admin, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
+ <T as Config>::Currency::make_free_balance_be(&<T as pallet::Config>::TreasuryAccountId::get(), Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
- let staker: T::AccountId = account("caller", 0, SEED);
- <T as Config>::Currency::make_free_balance_be(&staker, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
let stakers: Vec<T::AccountId> = (0..b).map(|index| account("staker", index, SEED)).collect();
stakers.iter().for_each(|staker| {
<T as Config>::Currency::make_free_balance_be(&staker, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
});
- (0..10).try_for_each(|_| {
+ (1..11).try_for_each(|i| {
+ <frame_system::Pallet<T>>::set_block_number(i.into());
+ T::RelayBlockNumberProvider::set_block_number((2*i).into());
+ assert_eq!(<frame_system::Pallet<T>>::block_number(), i.into());
+ assert_eq!(T::RelayBlockNumberProvider::current_block_number(), (2*i).into());
stakers.iter()
- .map(|staker| {
- PromototionPallet::<T>::stake(RawOrigin::Signed(staker.clone()).into(), Into::<BalanceOf<T>>::into(100u128) * T::Nominal::get())
- }).collect::<Result<Vec<_>, _>>()?;
- <frame_system::Pallet<T>>::finalize();
+ .map(|staker| {
+ PromototionPallet::<T>::stake(RawOrigin::Signed(staker.clone()).into(), Into::<BalanceOf<T>>::into(100u128) * T::Nominal::get())
+ }).collect::<Result<Vec<_>, _>>()?;
+
Result::<(), sp_runtime::DispatchError>::Ok(())
})?;
+
+ let stakes = Staked::<T>::iter_prefix((&stakers[0],)).into_iter().collect::<Vec<_>>();
+ assert_eq!(stakes.len(), 10);
+
+ <frame_system::Pallet<T>>::set_block_number(15_000.into());
+ T::RelayBlockNumberProvider::set_block_number(30_000.into());
} : _(RawOrigin::Signed(pallet_admin.clone()), Some(b as u8))
stake {
@@ -110,9 +119,12 @@
let caller = account::<T::AccountId>("caller", 0, SEED);
let share = Perbill::from_rational(1u32, 20);
let _ = <T as Config>::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
- (0..10).map(|_| {
+ (1..11).map(|i| {
// used to change block number
- <frame_system::Pallet<T>>::finalize();
+ <frame_system::Pallet<T>>::set_block_number(i.into());
+ T::RelayBlockNumberProvider::set_block_number((2*i).into());
+ assert_eq!(<frame_system::Pallet<T>>::block_number(), i.into());
+ assert_eq!(T::RelayBlockNumberProvider::current_block_number(), (2*i).into());
PromototionPallet::<T>::stake(RawOrigin::Signed(caller.clone()).into(), share * <T as Config>::Currency::total_balance(&caller))
}).collect::<Result<Vec<_>, _>>()?;
pallets/app-promotion/src/weights.rsdiffbeforeafterboth--- a/pallets/app-promotion/src/weights.rs
+++ b/pallets/app-promotion/src/weights.rs
@@ -3,7 +3,7 @@
//! Autogenerated weights for pallet_app_promotion
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2022-09-07, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2022-12-25, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
@@ -51,77 +51,84 @@
// Storage: AppPromotion PendingUnstake (r:1 w:0)
// Storage: System Account (r:1 w:1)
fn on_initialize(b: u32, ) -> Weight {
- Weight::from_ref_time(2_651_000)
- // Standard Error: 103_000
- .saturating_add(Weight::from_ref_time(6_024_000).saturating_mul(b as u64))
+ Weight::from_ref_time(3_079_948 as u64)
+ // Standard Error: 30_376
+ .saturating_add(Weight::from_ref_time(6_343_630 as u64).saturating_mul(b as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(b as u64)))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(b as u64)))
}
// Storage: AppPromotion Admin (r:0 w:1)
fn set_admin_address() -> Weight {
- Weight::from_ref_time(7_117_000)
+ Weight::from_ref_time(6_653_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: AppPromotion Admin (r:1 w:0)
+ // Storage: Configuration AppPromomotionConfigurationOverride (r:1 w:0)
// Storage: ParachainSystem ValidationData (r:1 w:0)
- // Storage: AppPromotion NextCalculatedRecord (r:1 w:1)
- // Storage: AppPromotion Staked (r:2 w:0)
+ // Storage: AppPromotion PreviousCalculatedRecord (r:1 w:1)
+ // Storage: AppPromotion Staked (r:11 w:10)
+ // Storage: System Account (r:2 w:2)
+ // Storage: Balances Locks (r:1 w:1)
+ // Storage: AppPromotion TotalStaked (r:1 w:1)
fn payout_stakers(b: u32, ) -> Weight {
- Weight::from_ref_time(9_958_000)
- // Standard Error: 8_000
- .saturating_add(Weight::from_ref_time(4_406_000).saturating_mul(b as u64))
- .saturating_add(T::DbWeight::get().reads(4 as u64))
- .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(b as u64)))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
+ Weight::from_ref_time(74_048_000 as u64)
+ // Standard Error: 33_223
+ .saturating_add(Weight::from_ref_time(57_702_092 as u64).saturating_mul(b as u64))
+ .saturating_add(T::DbWeight::get().reads(7 as u64))
+ .saturating_add(T::DbWeight::get().reads((12 as u64).saturating_mul(b as u64)))
+ .saturating_add(T::DbWeight::get().writes(3 as u64))
+ .saturating_add(T::DbWeight::get().writes((12 as u64).saturating_mul(b as u64)))
}
// Storage: AppPromotion StakesPerAccount (r:1 w:1)
+ // Storage: Configuration AppPromomotionConfigurationOverride (r:1 w:0)
// Storage: System Account (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
// Storage: ParachainSystem ValidationData (r:1 w:0)
// Storage: AppPromotion Staked (r:1 w:1)
// Storage: AppPromotion TotalStaked (r:1 w:1)
fn stake() -> Weight {
- Weight::from_ref_time(20_574_000)
- .saturating_add(T::DbWeight::get().reads(6 as u64))
+ Weight::from_ref_time(20_314_000 as u64)
+ .saturating_add(T::DbWeight::get().reads(7 as u64))
.saturating_add(T::DbWeight::get().writes(5 as u64))
}
+ // Storage: Configuration AppPromomotionConfigurationOverride (r:1 w:0)
// Storage: AppPromotion PendingUnstake (r:1 w:1)
- // Storage: AppPromotion Staked (r:2 w:1)
+ // Storage: AppPromotion Staked (r:11 w:10)
// Storage: Balances Locks (r:1 w:1)
// Storage: System Account (r:1 w:1)
// Storage: AppPromotion TotalStaked (r:1 w:1)
// Storage: AppPromotion StakesPerAccount (r:0 w:1)
fn unstake() -> Weight {
- Weight::from_ref_time(31_703_000)
- .saturating_add(T::DbWeight::get().reads(6 as u64))
- .saturating_add(T::DbWeight::get().writes(6 as u64))
+ Weight::from_ref_time(64_582_000 as u64)
+ .saturating_add(T::DbWeight::get().reads(16 as u64))
+ .saturating_add(T::DbWeight::get().writes(15 as u64))
}
// Storage: AppPromotion Admin (r:1 w:0)
// Storage: Common CollectionById (r:1 w:1)
fn sponsor_collection() -> Weight {
- Weight::from_ref_time(12_932_000)
+ Weight::from_ref_time(16_364_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: AppPromotion Admin (r:1 w:0)
// Storage: Common CollectionById (r:1 w:1)
fn stop_sponsoring_collection() -> Weight {
- Weight::from_ref_time(12_453_000)
+ Weight::from_ref_time(15_710_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: AppPromotion Admin (r:1 w:0)
// Storage: EvmContractHelpers Sponsoring (r:0 w:1)
fn sponsor_contract() -> Weight {
- Weight::from_ref_time(11_952_000)
+ Weight::from_ref_time(12_669_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: AppPromotion Admin (r:1 w:0)
// Storage: EvmContractHelpers Sponsoring (r:1 w:1)
fn stop_sponsoring_contract() -> Weight {
- Weight::from_ref_time(12_538_000)
+ Weight::from_ref_time(14_406_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -132,77 +139,84 @@
// Storage: AppPromotion PendingUnstake (r:1 w:0)
// Storage: System Account (r:1 w:1)
fn on_initialize(b: u32, ) -> Weight {
- Weight::from_ref_time(2_651_000)
- // Standard Error: 103_000
- .saturating_add(Weight::from_ref_time(6_024_000).saturating_mul(b as u64))
+ Weight::from_ref_time(3_079_948 as u64)
+ // Standard Error: 30_376
+ .saturating_add(Weight::from_ref_time(6_343_630 as u64).saturating_mul(b as u64))
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(b as u64)))
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(b as u64)))
}
// Storage: AppPromotion Admin (r:0 w:1)
fn set_admin_address() -> Weight {
- Weight::from_ref_time(7_117_000)
+ Weight::from_ref_time(6_653_000 as u64)
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: AppPromotion Admin (r:1 w:0)
+ // Storage: Configuration AppPromomotionConfigurationOverride (r:1 w:0)
// Storage: ParachainSystem ValidationData (r:1 w:0)
- // Storage: AppPromotion NextCalculatedRecord (r:1 w:1)
- // Storage: AppPromotion Staked (r:2 w:0)
+ // Storage: AppPromotion PreviousCalculatedRecord (r:1 w:1)
+ // Storage: AppPromotion Staked (r:11 w:10)
+ // Storage: System Account (r:2 w:2)
+ // Storage: Balances Locks (r:1 w:1)
+ // Storage: AppPromotion TotalStaked (r:1 w:1)
fn payout_stakers(b: u32, ) -> Weight {
- Weight::from_ref_time(9_958_000)
- // Standard Error: 8_000
- .saturating_add(Weight::from_ref_time(4_406_000).saturating_mul(b as u64))
- .saturating_add(RocksDbWeight::get().reads(4 as u64))
- .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(b as u64)))
- .saturating_add(RocksDbWeight::get().writes(1 as u64))
+ Weight::from_ref_time(74_048_000 as u64)
+ // Standard Error: 33_223
+ .saturating_add(Weight::from_ref_time(57_702_092 as u64).saturating_mul(b as u64))
+ .saturating_add(RocksDbWeight::get().reads(7 as u64))
+ .saturating_add(RocksDbWeight::get().reads((12 as u64).saturating_mul(b as u64)))
+ .saturating_add(RocksDbWeight::get().writes(3 as u64))
+ .saturating_add(RocksDbWeight::get().writes((12 as u64).saturating_mul(b as u64)))
}
// Storage: AppPromotion StakesPerAccount (r:1 w:1)
+ // Storage: Configuration AppPromomotionConfigurationOverride (r:1 w:0)
// Storage: System Account (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
// Storage: ParachainSystem ValidationData (r:1 w:0)
// Storage: AppPromotion Staked (r:1 w:1)
// Storage: AppPromotion TotalStaked (r:1 w:1)
fn stake() -> Weight {
- Weight::from_ref_time(20_574_000)
- .saturating_add(RocksDbWeight::get().reads(6 as u64))
+ Weight::from_ref_time(20_314_000 as u64)
+ .saturating_add(RocksDbWeight::get().reads(7 as u64))
.saturating_add(RocksDbWeight::get().writes(5 as u64))
}
+ // Storage: Configuration AppPromomotionConfigurationOverride (r:1 w:0)
// Storage: AppPromotion PendingUnstake (r:1 w:1)
- // Storage: AppPromotion Staked (r:2 w:1)
+ // Storage: AppPromotion Staked (r:11 w:10)
// Storage: Balances Locks (r:1 w:1)
// Storage: System Account (r:1 w:1)
// Storage: AppPromotion TotalStaked (r:1 w:1)
// Storage: AppPromotion StakesPerAccount (r:0 w:1)
fn unstake() -> Weight {
- Weight::from_ref_time(31_703_000)
- .saturating_add(RocksDbWeight::get().reads(6 as u64))
- .saturating_add(RocksDbWeight::get().writes(6 as u64))
+ Weight::from_ref_time(64_582_000 as u64)
+ .saturating_add(RocksDbWeight::get().reads(16 as u64))
+ .saturating_add(RocksDbWeight::get().writes(15 as u64))
}
// Storage: AppPromotion Admin (r:1 w:0)
// Storage: Common CollectionById (r:1 w:1)
fn sponsor_collection() -> Weight {
- Weight::from_ref_time(12_932_000)
+ Weight::from_ref_time(16_364_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: AppPromotion Admin (r:1 w:0)
// Storage: Common CollectionById (r:1 w:1)
fn stop_sponsoring_collection() -> Weight {
- Weight::from_ref_time(12_453_000)
+ Weight::from_ref_time(15_710_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: AppPromotion Admin (r:1 w:0)
// Storage: EvmContractHelpers Sponsoring (r:0 w:1)
fn sponsor_contract() -> Weight {
- Weight::from_ref_time(11_952_000)
+ Weight::from_ref_time(12_669_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: AppPromotion Admin (r:1 w:0)
// Storage: EvmContractHelpers Sponsoring (r:1 w:1)
fn stop_sponsoring_contract() -> Weight {
- Weight::from_ref_time(12_538_000)
+ Weight::from_ref_time(14_406_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
runtime/common/mod.rsdiffbeforeafterboth--- a/runtime/common/mod.rs
+++ b/runtime/common/mod.rs
@@ -145,6 +145,10 @@
.map(|d| d.relay_parent_number)
.unwrap_or_default()
}
+ #[cfg(feature = "runtime-benchmarks")]
+ fn set_block_number(block: Self::BlockNumber) {
+ cumulus_pallet_parachain_system::RelaychainBlockNumberProvider::<T>::set_block_number(block)
+ }
}
pub(crate) struct CheckInherents;
runtime/opal/Cargo.tomldiffbeforeafterboth1################################################################################2# Package34[package]5authors = ['Unique Network <support@uniquenetwork.io>']6build = 'build.rs'7description = 'Opal Runtime'8edition = '2021'9homepage = 'https://unique.network'10license = 'GPLv3'11name = 'opal-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', 'opal-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-common/runtime-benchmarks',32 'pallet-structure/runtime-benchmarks',33 'pallet-fungible/runtime-benchmarks',34 'pallet-refungible/runtime-benchmarks',35 'pallet-nonfungible/runtime-benchmarks',36 'pallet-proxy-rmrk-core/runtime-benchmarks',37 'pallet-proxy-rmrk-equip/runtime-benchmarks',38 'pallet-foreign-assets/runtime-benchmarks',39 'pallet-unique/runtime-benchmarks',40 'pallet-inflation/runtime-benchmarks',41 'pallet-app-promotion/runtime-benchmarks',42 'pallet-unique-scheduler-v2/runtime-benchmarks',43 'pallet-xcm/runtime-benchmarks',44 'sp-runtime/runtime-benchmarks',45 'xcm-builder/runtime-benchmarks',46 'pallet-maintenance/runtime-benchmarks',47 'cumulus-pallet-parachain-system/runtime-benchmarks'48]49try-runtime = [50 'frame-try-runtime',51 'frame-try-runtime?/try-runtime',52 'frame-executive/try-runtime',53 'frame-support/try-runtime',54 'frame-system/try-runtime',55 'cumulus-pallet-parachain-system/try-runtime',56 'parachain-info/try-runtime',57 'pallet-aura/try-runtime',58 'cumulus-pallet-aura-ext/try-runtime',59 'pallet-balances/try-runtime',60 'pallet-randomness-collective-flip/try-runtime',61 'pallet-timestamp/try-runtime',62 'pallet-transaction-payment/try-runtime',63 'pallet-treasury/try-runtime',64 'pallet-sudo/try-runtime',65 'orml-vesting/try-runtime',66 'orml-xtokens/try-runtime',67 'orml-tokens/try-runtime',68 'cumulus-pallet-xcmp-queue/try-runtime',69 'pallet-xcm/try-runtime',70 'cumulus-pallet-xcm/try-runtime',71 'cumulus-pallet-dmp-queue/try-runtime',72 'pallet-inflation/try-runtime',73 'pallet-unique/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-ethereum/try-runtime',86 'pallet-evm/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 'pallet-base-fee/try-runtime',92 'pallet-unique-scheduler-v2/try-runtime',93 'pallet-maintenance/try-runtime',94 'pallet-test-utils?/try-runtime',95 'fp-self-contained/try-runtime',96]97std = [98 'codec/std',99 'cumulus-pallet-aura-ext/std',100 'cumulus-pallet-parachain-system/std',101 'cumulus-pallet-xcm/std',102 'cumulus-pallet-xcmp-queue/std',103 'cumulus-primitives-core/std',104 'cumulus-primitives-utility/std',105 'frame-try-runtime/std',106 'frame-executive/std',107 'frame-support/std',108 'frame-system/std',109 'frame-system-rpc-runtime-api/std',110 'pallet-aura/std',111 'pallet-balances/std',112 # 'pallet-contracts/std',113 # 'pallet-contracts-primitives/std',114 # 'pallet-contracts-rpc-runtime-api/std',115 # 'pallet-contract-helpers/std',116 'pallet-randomness-collective-flip/std',117 'pallet-sudo/std',118 'pallet-timestamp/std',119 'pallet-transaction-payment/std',120 'pallet-transaction-payment-rpc-runtime-api/std',121 'pallet-treasury/std',122 'pallet-evm/std',123 'pallet-evm-migration/std',124 'pallet-evm-contract-helpers/std',125 'pallet-evm-transaction-payment/std',126 'pallet-evm-coder-substrate/std',127 'pallet-ethereum/std',128 'pallet-base-fee/std',129 'fp-rpc/std',130 'up-rpc/std',131 'up-pov-estimate-rpc/std',132 'app-promotion-rpc/std',133 'fp-evm-mapping/std',134 'fp-self-contained/std',135 'parachain-info/std',136 'serde',137 'pallet-inflation/std',138 'pallet-configuration/std',139 'pallet-app-promotion/std',140 'pallet-common/std',141 'pallet-structure/std',142 'pallet-fungible/std',143 'pallet-refungible/std',144 'pallet-nonfungible/std',145 'pallet-proxy-rmrk-core/std',146 'pallet-proxy-rmrk-equip/std',147 'pallet-unique/std',148 'pallet-unique-scheduler-v2/std',149 'pallet-charge-transaction/std',150 'up-data-structs/std',151 'sp-api/std',152 'sp-block-builder/std',153 "sp-consensus-aura/std",154 'sp-core/std',155 'sp-inherents/std',156 'sp-io/std',157 'sp-offchain/std',158 'sp-runtime/std',159 'sp-session/std',160 'sp-std/std',161 'sp-transaction-pool/std',162 'sp-version/std',163 'xcm/std',164 'xcm-builder/std',165 'xcm-executor/std',166 'up-common/std',167 'rmrk-rpc/std',168 'evm-coder/std',169 'up-sponsorship/std',170171 "orml-vesting/std",172 "orml-tokens/std",173 "orml-xtokens/std",174 "orml-traits/std",175 "pallet-foreign-assets/std",176177 'pallet-maintenance/std',178 'pallet-test-utils?/std',179]180limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']181opal-runtime = [182 'refungible',183 'rmrk',184 'app-promotion',185 'foreign-assets',186 'pallet-test-utils',187]188become-sapphire = []189pov-estimate = []190191refungible = []192scheduler = []193rmrk = []194foreign-assets = []195app-promotion = []196197################################################################################198# Substrate Dependencies199200[dependencies.codec]201default-features = false202features = ['derive']203package = 'parity-scale-codec'204version = '3.1.2'205206[dependencies.frame-benchmarking]207default-features = false208git = "https://github.com/paritytech/substrate"209optional = true210branch = "polkadot-v0.9.36"211212[dependencies.frame-try-runtime]213default-features = false214git = "https://github.com/paritytech/substrate"215optional = true216branch = "polkadot-v0.9.36"217218[dependencies.frame-executive]219default-features = false220git = "https://github.com/paritytech/substrate"221branch = "polkadot-v0.9.36"222223[dependencies.frame-support]224default-features = false225git = "https://github.com/paritytech/substrate"226branch = "polkadot-v0.9.36"227228[dependencies.frame-system]229default-features = false230git = "https://github.com/paritytech/substrate"231branch = "polkadot-v0.9.36"232233[dependencies.frame-system-benchmarking]234default-features = false235git = "https://github.com/paritytech/substrate"236optional = true237branch = "polkadot-v0.9.36"238239[dependencies.frame-system-rpc-runtime-api]240default-features = false241git = "https://github.com/paritytech/substrate"242branch = "polkadot-v0.9.36"243244[dependencies.hex-literal]245optional = true246version = '0.3.3'247248[dependencies.serde]249default-features = false250features = ['derive']251optional = true252version = '1.0.130'253254[dependencies.pallet-aura]255default-features = false256git = "https://github.com/paritytech/substrate"257branch = "polkadot-v0.9.36"258259[dependencies.pallet-balances]260default-features = false261git = "https://github.com/paritytech/substrate"262branch = "polkadot-v0.9.36"263264# Contracts specific packages265# [dependencies.pallet-contracts]266# git = 'https://github.com/paritytech/substrate'267# default-features = false268# branch = 'master'269# version = '4.0.0-dev'270271# [dependencies.pallet-contracts-primitives]272# git = 'https://github.com/paritytech/substrate'273# default-features = false274# branch = 'master'275# version = '4.0.0-dev'276277# [dependencies.pallet-contracts-rpc-runtime-api]278# git = 'https://github.com/paritytech/substrate'279# default-features = false280# branch = 'master'281# version = '4.0.0-dev'282283[dependencies.pallet-randomness-collective-flip]284default-features = false285git = "https://github.com/paritytech/substrate"286branch = "polkadot-v0.9.36"287288[dependencies.pallet-sudo]289default-features = false290git = "https://github.com/paritytech/substrate"291branch = "polkadot-v0.9.36"292293[dependencies.pallet-timestamp]294default-features = false295git = "https://github.com/paritytech/substrate"296branch = "polkadot-v0.9.36"297298[dependencies.pallet-transaction-payment]299default-features = false300git = "https://github.com/paritytech/substrate"301branch = "polkadot-v0.9.36"302303[dependencies.pallet-transaction-payment-rpc-runtime-api]304default-features = false305git = "https://github.com/paritytech/substrate"306branch = "polkadot-v0.9.36"307308[dependencies.pallet-treasury]309default-features = false310git = "https://github.com/paritytech/substrate"311branch = "polkadot-v0.9.36"312313[dependencies.sp-arithmetic]314default-features = false315git = "https://github.com/paritytech/substrate"316branch = "polkadot-v0.9.36"317318[dependencies.sp-api]319default-features = false320git = "https://github.com/paritytech/substrate"321branch = "polkadot-v0.9.36"322323[dependencies.sp-block-builder]324default-features = false325git = "https://github.com/paritytech/substrate"326branch = "polkadot-v0.9.36"327328[dependencies.sp-core]329default-features = false330git = "https://github.com/paritytech/substrate"331branch = "polkadot-v0.9.36"332333[dependencies.sp-consensus-aura]334default-features = false335git = "https://github.com/paritytech/substrate"336branch = "polkadot-v0.9.36"337338[dependencies.sp-inherents]339default-features = false340git = "https://github.com/paritytech/substrate"341branch = "polkadot-v0.9.36"342343[dependencies.sp-io]344default-features = false345git = "https://github.com/paritytech/substrate"346branch = "polkadot-v0.9.36"347348[dependencies.sp-offchain]349default-features = false350git = "https://github.com/paritytech/substrate"351branch = "polkadot-v0.9.36"352353[dependencies.sp-runtime]354default-features = false355git = "https://github.com/paritytech/substrate"356branch = "polkadot-v0.9.36"357358[dependencies.sp-session]359default-features = false360git = "https://github.com/paritytech/substrate"361branch = "polkadot-v0.9.36"362363[dependencies.sp-std]364default-features = false365git = "https://github.com/paritytech/substrate"366branch = "polkadot-v0.9.36"367368[dependencies.sp-transaction-pool]369default-features = false370git = "https://github.com/paritytech/substrate"371branch = "polkadot-v0.9.36"372373[dependencies.sp-version]374default-features = false375git = "https://github.com/paritytech/substrate"376branch = "polkadot-v0.9.36"377378[dependencies.smallvec]379version = '1.6.1'380381################################################################################382# Cumulus dependencies383384[dependencies.parachain-info]385default-features = false386git = "https://github.com/paritytech/cumulus"387branch = "polkadot-v0.9.36"388389[dependencies.cumulus-pallet-aura-ext]390git = "https://github.com/paritytech/cumulus"391branch = "polkadot-v0.9.36"392default-features = false393394[dependencies.cumulus-pallet-parachain-system]395git = "https://github.com/paritytech/cumulus"396branch = "polkadot-v0.9.36"397default-features = false398399[dependencies.cumulus-primitives-core]400git = "https://github.com/paritytech/cumulus"401branch = "polkadot-v0.9.36"402default-features = false403404[dependencies.cumulus-pallet-xcm]405git = "https://github.com/paritytech/cumulus"406branch = "polkadot-v0.9.36"407default-features = false408409[dependencies.cumulus-pallet-dmp-queue]410git = "https://github.com/paritytech/cumulus"411branch = "polkadot-v0.9.36"412default-features = false413414[dependencies.cumulus-pallet-xcmp-queue]415git = "https://github.com/paritytech/cumulus"416branch = "polkadot-v0.9.36"417default-features = false418419[dependencies.cumulus-primitives-utility]420git = "https://github.com/paritytech/cumulus"421branch = "polkadot-v0.9.36"422default-features = false423424[dependencies.cumulus-primitives-timestamp]425git = "https://github.com/paritytech/cumulus"426branch = "polkadot-v0.9.36"427default-features = false428429################################################################################430# Polkadot dependencies431432[dependencies.polkadot-parachain]433git = "https://github.com/paritytech/polkadot"434branch = "release-v0.9.36"435default-features = false436437[dependencies.xcm]438git = "https://github.com/paritytech/polkadot"439branch = "release-v0.9.36"440default-features = false441442[dependencies.xcm-builder]443git = "https://github.com/paritytech/polkadot"444branch = "release-v0.9.36"445default-features = false446447[dependencies.xcm-executor]448git = "https://github.com/paritytech/polkadot"449branch = "release-v0.9.36"450default-features = false451452[dependencies.pallet-xcm]453git = "https://github.com/paritytech/polkadot"454branch = "release-v0.9.36"455default-features = false456457################################################################################458# local dependencies459460[dependencies]461orml-vesting.workspace = true462orml-xtokens.workspace = true463orml-tokens.workspace = true464orml-traits.workspace = true465466log = { version = "0.4.16", default-features = false }467up-common = { path = "../../primitives/common", default-features = false }468scale-info = { version = "2.0.1", default-features = false, features = [469 "derive",470] }471derivative = "2.2.0"472pallet-unique = { path = '../../pallets/unique', default-features = false }473up-rpc = { path = "../../primitives/rpc", default-features = false }474up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", default-features = false }475app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }476rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }477fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }478fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }479pallet-inflation = { path = '../../pallets/inflation', default-features = false }480pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }481up-data-structs = { path = '../../primitives/data-structs', default-features = false }482pallet-configuration = { default-features = false, path = "../../pallets/configuration" }483pallet-common = { default-features = false, path = "../../pallets/common" }484pallet-structure = { default-features = false, path = "../../pallets/structure" }485pallet-fungible = { default-features = false, path = "../../pallets/fungible" }486pallet-refungible = { default-features = false, path = "../../pallets/refungible" }487pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }488pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }489pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }490pallet-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" }491pallet-unique-scheduler-v2 = { path = '../../pallets/scheduler-v2', default-features = false }492pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }493pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }494pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }495pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }496pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }497pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }498pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }499fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }500fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }501pallet-evm-precompile-simple = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }502evm-coder = { default-features = false, path = '../../crates/evm-coder' }503up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.36' }504pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }505pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }506precompile-utils-macro = { path = "../common/ethereum/precompiles/utils/macro" }507num_enum = { version = "0.5.3", default-features = false }508509################################################################################510# Test dependencies511512pallet-test-utils = { optional = true, default-features = false, path = "../../test-pallets/utils" }513514################################################################################515# Other Dependencies516517impl-trait-for-tuples = "0.2.2"518519################################################################################520# Dev Dependencies521522[dev-dependencies.logtest]523version = "2.0.0"524525################################################################################526# Build Dependencies527528[build-dependencies.substrate-wasm-builder]529git = "https://github.com/paritytech/substrate"530branch = "polkadot-v0.9.36"runtime/quartz/Cargo.tomldiffbeforeafterboth--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -43,6 +43,7 @@
'sp-runtime/runtime-benchmarks',
'xcm-builder/runtime-benchmarks',
'pallet-maintenance/runtime-benchmarks',
+ 'cumulus-pallet-parachain-system/runtime-benchmarks',
]
try-runtime = [
'frame-try-runtime',