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]48try-runtime = [49 'frame-try-runtime',50 'frame-try-runtime?/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-configuration/try-runtime',74 'pallet-charge-transaction/try-runtime',75 'pallet-common/try-runtime',76 'pallet-fungible/try-runtime',77 'pallet-refungible/try-runtime',78 'pallet-nonfungible/try-runtime',79 'pallet-structure/try-runtime',80 'pallet-proxy-rmrk-core/try-runtime',81 'pallet-proxy-rmrk-equip/try-runtime',82 'pallet-app-promotion/try-runtime',83 'pallet-foreign-assets/try-runtime',84 'pallet-ethereum/try-runtime',85 'pallet-evm/try-runtime',86 'pallet-evm-coder-substrate/try-runtime',87 'pallet-evm-contract-helpers/try-runtime',88 'pallet-evm-transaction-payment/try-runtime',89 'pallet-evm-migration/try-runtime',90 'pallet-base-fee/try-runtime',91 'pallet-unique-scheduler-v2/try-runtime',92 'pallet-maintenance/try-runtime',93 'pallet-test-utils?/try-runtime',94 'fp-self-contained/try-runtime',95]96std = [97 'codec/std',98 'cumulus-pallet-aura-ext/std',99 'cumulus-pallet-parachain-system/std',100 'cumulus-pallet-xcm/std',101 'cumulus-pallet-xcmp-queue/std',102 'cumulus-primitives-core/std',103 'cumulus-primitives-utility/std',104 'frame-try-runtime/std',105 'frame-executive/std',106 'frame-support/std',107 'frame-system/std',108 'frame-system-rpc-runtime-api/std',109 'pallet-aura/std',110 'pallet-balances/std',111 # 'pallet-contracts/std',112 # 'pallet-contracts-primitives/std',113 # 'pallet-contracts-rpc-runtime-api/std',114 # 'pallet-contract-helpers/std',115 'pallet-randomness-collective-flip/std',116 'pallet-sudo/std',117 'pallet-timestamp/std',118 'pallet-transaction-payment/std',119 'pallet-transaction-payment-rpc-runtime-api/std',120 'pallet-treasury/std',121 'pallet-evm/std',122 'pallet-evm-migration/std',123 'pallet-evm-contract-helpers/std',124 'pallet-evm-transaction-payment/std',125 'pallet-evm-coder-substrate/std',126 'pallet-ethereum/std',127 'pallet-base-fee/std',128 'fp-rpc/std',129 'up-rpc/std',130 'up-pov-estimate-rpc/std',131 'app-promotion-rpc/std',132 'fp-evm-mapping/std',133 'fp-self-contained/std',134 'parachain-info/std',135 'serde',136 'pallet-inflation/std',137 'pallet-configuration/std',138 'pallet-app-promotion/std',139 'pallet-common/std',140 'pallet-structure/std',141 'pallet-fungible/std',142 'pallet-refungible/std',143 'pallet-nonfungible/std',144 'pallet-proxy-rmrk-core/std',145 'pallet-proxy-rmrk-equip/std',146 'pallet-unique/std',147 'pallet-unique-scheduler-v2/std',148 'pallet-charge-transaction/std',149 'up-data-structs/std',150 'sp-api/std',151 'sp-block-builder/std',152 "sp-consensus-aura/std",153 'sp-core/std',154 'sp-inherents/std',155 'sp-io/std',156 'sp-offchain/std',157 'sp-runtime/std',158 'sp-session/std',159 'sp-std/std',160 'sp-transaction-pool/std',161 'sp-version/std',162 'xcm/std',163 'xcm-builder/std',164 'xcm-executor/std',165 'up-common/std',166 'rmrk-rpc/std',167 'evm-coder/std',168 'up-sponsorship/std',169170 "orml-vesting/std",171 "orml-tokens/std",172 "orml-xtokens/std",173 "orml-traits/std",174 "pallet-foreign-assets/std",175176 'pallet-maintenance/std',177 'pallet-test-utils?/std',178]179limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']180opal-runtime = [181 'refungible',182 'rmrk',183 'app-promotion',184 'foreign-assets',185 'pallet-test-utils',186]187become-sapphire = []188pov-estimate = []189190refungible = []191scheduler = []192rmrk = []193foreign-assets = []194app-promotion = []195196################################################################################197# Substrate Dependencies198199[dependencies.codec]200default-features = false201features = ['derive']202package = 'parity-scale-codec'203version = '3.1.2'204205[dependencies.frame-benchmarking]206default-features = false207git = "https://github.com/paritytech/substrate"208optional = true209branch = "polkadot-v0.9.36"210211[dependencies.frame-try-runtime]212default-features = false213git = "https://github.com/paritytech/substrate"214optional = true215branch = "polkadot-v0.9.36"216217[dependencies.frame-executive]218default-features = false219git = "https://github.com/paritytech/substrate"220branch = "polkadot-v0.9.36"221222[dependencies.frame-support]223default-features = false224git = "https://github.com/paritytech/substrate"225branch = "polkadot-v0.9.36"226227[dependencies.frame-system]228default-features = false229git = "https://github.com/paritytech/substrate"230branch = "polkadot-v0.9.36"231232[dependencies.frame-system-benchmarking]233default-features = false234git = "https://github.com/paritytech/substrate"235optional = true236branch = "polkadot-v0.9.36"237238[dependencies.frame-system-rpc-runtime-api]239default-features = false240git = "https://github.com/paritytech/substrate"241branch = "polkadot-v0.9.36"242243[dependencies.hex-literal]244optional = true245version = '0.3.3'246247[dependencies.serde]248default-features = false249features = ['derive']250optional = true251version = '1.0.130'252253[dependencies.pallet-aura]254default-features = false255git = "https://github.com/paritytech/substrate"256branch = "polkadot-v0.9.36"257258[dependencies.pallet-balances]259default-features = false260git = "https://github.com/paritytech/substrate"261branch = "polkadot-v0.9.36"262263# Contracts specific packages264# [dependencies.pallet-contracts]265# git = 'https://github.com/paritytech/substrate'266# default-features = false267# branch = 'master'268# version = '4.0.0-dev'269270# [dependencies.pallet-contracts-primitives]271# git = 'https://github.com/paritytech/substrate'272# default-features = false273# branch = 'master'274# version = '4.0.0-dev'275276# [dependencies.pallet-contracts-rpc-runtime-api]277# git = 'https://github.com/paritytech/substrate'278# default-features = false279# branch = 'master'280# version = '4.0.0-dev'281282[dependencies.pallet-randomness-collective-flip]283default-features = false284git = "https://github.com/paritytech/substrate"285branch = "polkadot-v0.9.36"286287[dependencies.pallet-sudo]288default-features = false289git = "https://github.com/paritytech/substrate"290branch = "polkadot-v0.9.36"291292[dependencies.pallet-timestamp]293default-features = false294git = "https://github.com/paritytech/substrate"295branch = "polkadot-v0.9.36"296297[dependencies.pallet-transaction-payment]298default-features = false299git = "https://github.com/paritytech/substrate"300branch = "polkadot-v0.9.36"301302[dependencies.pallet-transaction-payment-rpc-runtime-api]303default-features = false304git = "https://github.com/paritytech/substrate"305branch = "polkadot-v0.9.36"306307[dependencies.pallet-treasury]308default-features = false309git = "https://github.com/paritytech/substrate"310branch = "polkadot-v0.9.36"311312[dependencies.sp-arithmetic]313default-features = false314git = "https://github.com/paritytech/substrate"315branch = "polkadot-v0.9.36"316317[dependencies.sp-api]318default-features = false319git = "https://github.com/paritytech/substrate"320branch = "polkadot-v0.9.36"321322[dependencies.sp-block-builder]323default-features = false324git = "https://github.com/paritytech/substrate"325branch = "polkadot-v0.9.36"326327[dependencies.sp-core]328default-features = false329git = "https://github.com/paritytech/substrate"330branch = "polkadot-v0.9.36"331332[dependencies.sp-consensus-aura]333default-features = false334git = "https://github.com/paritytech/substrate"335branch = "polkadot-v0.9.36"336337[dependencies.sp-inherents]338default-features = false339git = "https://github.com/paritytech/substrate"340branch = "polkadot-v0.9.36"341342[dependencies.sp-io]343default-features = false344git = "https://github.com/paritytech/substrate"345branch = "polkadot-v0.9.36"346347[dependencies.sp-offchain]348default-features = false349git = "https://github.com/paritytech/substrate"350branch = "polkadot-v0.9.36"351352[dependencies.sp-runtime]353default-features = false354git = "https://github.com/paritytech/substrate"355branch = "polkadot-v0.9.36"356357[dependencies.sp-session]358default-features = false359git = "https://github.com/paritytech/substrate"360branch = "polkadot-v0.9.36"361362[dependencies.sp-std]363default-features = false364git = "https://github.com/paritytech/substrate"365branch = "polkadot-v0.9.36"366367[dependencies.sp-transaction-pool]368default-features = false369git = "https://github.com/paritytech/substrate"370branch = "polkadot-v0.9.36"371372[dependencies.sp-version]373default-features = false374git = "https://github.com/paritytech/substrate"375branch = "polkadot-v0.9.36"376377[dependencies.smallvec]378version = '1.6.1'379380################################################################################381# Cumulus dependencies382383[dependencies.parachain-info]384default-features = false385git = "https://github.com/paritytech/cumulus"386branch = "polkadot-v0.9.36"387388[dependencies.cumulus-pallet-aura-ext]389git = "https://github.com/paritytech/cumulus"390branch = "polkadot-v0.9.36"391default-features = false392393[dependencies.cumulus-pallet-parachain-system]394git = "https://github.com/paritytech/cumulus"395branch = "polkadot-v0.9.36"396default-features = false397398[dependencies.cumulus-primitives-core]399git = "https://github.com/paritytech/cumulus"400branch = "polkadot-v0.9.36"401default-features = false402403[dependencies.cumulus-pallet-xcm]404git = "https://github.com/paritytech/cumulus"405branch = "polkadot-v0.9.36"406default-features = false407408[dependencies.cumulus-pallet-dmp-queue]409git = "https://github.com/paritytech/cumulus"410branch = "polkadot-v0.9.36"411default-features = false412413[dependencies.cumulus-pallet-xcmp-queue]414git = "https://github.com/paritytech/cumulus"415branch = "polkadot-v0.9.36"416default-features = false417418[dependencies.cumulus-primitives-utility]419git = "https://github.com/paritytech/cumulus"420branch = "polkadot-v0.9.36"421default-features = false422423[dependencies.cumulus-primitives-timestamp]424git = "https://github.com/paritytech/cumulus"425branch = "polkadot-v0.9.36"426default-features = false427428################################################################################429# Polkadot dependencies430431[dependencies.polkadot-parachain]432git = "https://github.com/paritytech/polkadot"433branch = "release-v0.9.36"434default-features = false435436[dependencies.xcm]437git = "https://github.com/paritytech/polkadot"438branch = "release-v0.9.36"439default-features = false440441[dependencies.xcm-builder]442git = "https://github.com/paritytech/polkadot"443branch = "release-v0.9.36"444default-features = false445446[dependencies.xcm-executor]447git = "https://github.com/paritytech/polkadot"448branch = "release-v0.9.36"449default-features = false450451[dependencies.pallet-xcm]452git = "https://github.com/paritytech/polkadot"453branch = "release-v0.9.36"454default-features = false455456################################################################################457# local dependencies458459[dependencies]460orml-vesting.workspace = true461orml-xtokens.workspace = true462orml-tokens.workspace = true463orml-traits.workspace = true464465log = { version = "0.4.16", default-features = false }466up-common = { path = "../../primitives/common", default-features = false }467scale-info = { version = "2.0.1", default-features = false, features = [468 "derive",469] }470derivative = "2.2.0"471pallet-unique = { path = '../../pallets/unique', default-features = false }472up-rpc = { path = "../../primitives/rpc", default-features = false }473up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", default-features = false }474app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }475rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }476fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }477fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }478pallet-inflation = { path = '../../pallets/inflation', default-features = false }479pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }480up-data-structs = { path = '../../primitives/data-structs', default-features = false }481pallet-configuration = { default-features = false, path = "../../pallets/configuration" }482pallet-common = { default-features = false, path = "../../pallets/common" }483pallet-structure = { default-features = false, path = "../../pallets/structure" }484pallet-fungible = { default-features = false, path = "../../pallets/fungible" }485pallet-refungible = { default-features = false, path = "../../pallets/refungible" }486pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }487pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }488pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }489pallet-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" }490pallet-unique-scheduler-v2 = { path = '../../pallets/scheduler-v2', default-features = false }491pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }492pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }493pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }494pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }495pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }496pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }497pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }498fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }499fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }500pallet-evm-precompile-simple = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }501evm-coder = { default-features = false, path = '../../crates/evm-coder' }502up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.36' }503pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }504pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }505precompile-utils-macro = { path = "../common/ethereum/precompiles/utils/macro" }506num_enum = { version = "0.5.3", default-features = false }507508################################################################################509# Test dependencies510511pallet-test-utils = { optional = true, default-features = false, path = "../../test-pallets/utils" }512513################################################################################514# Other Dependencies515516impl-trait-for-tuples = "0.2.2"517518################################################################################519# Dev Dependencies520521[dev-dependencies.logtest]522version = "2.0.0"523524################################################################################525# Build Dependencies526527[build-dependencies.substrate-wasm-builder]528git = "https://github.com/paritytech/substrate"529branch = "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',