From 6d561d0f2514a2072b3bfc7817e56de28f93c040 Mon Sep 17 00:00:00 2001 From: Mateusz Nowakowski Date: Wed, 27 Nov 2024 19:36:20 +0100 Subject: [PATCH 1/3] fix update validation --- pallets/rolldown/src/lib.rs | 2 +- pallets/rolldown/src/tests.rs | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/pallets/rolldown/src/lib.rs b/pallets/rolldown/src/lib.rs index eeb8c51ef..2cbee326c 100644 --- a/pallets/rolldown/src/lib.rs +++ b/pallets/rolldown/src/lib.rs @@ -1449,7 +1449,7 @@ impl Pallet { Error::::WrongRequestId ); - let last_id = lowest_id + + let last_id = lowest_id.saturating_sub(1u128) + (update.pendingDeposits.len() as u128) + (update.pendingCancelResolutions.len() as u128); diff --git a/pallets/rolldown/src/tests.rs b/pallets/rolldown/src/tests.rs index d71f6c002..99c0a8853 100644 --- a/pallets/rolldown/src/tests.rs +++ b/pallets/rolldown/src/tests.rs @@ -979,6 +979,31 @@ fn reject_update_with_invalid_too_high_request_id() { }); } +#[test] +#[serial] +fn reject_update_without_new_updates() { + ExtBuilder::new().execute_with_default_mocks(|| { + forward_to_block::(10); + + let deposit_update = L1UpdateBuilder::default() + .with_requests(vec![L1UpdateRequest::Deposit(Default::default())]) + .with_offset(1u128) + .build(); + + Rolldown::update_l2_from_l1_unsafe(RuntimeOrigin::signed(ALICE), deposit_update.clone()) + .unwrap(); + assert_eq!(LastProcessedRequestOnL2::::get(consts::CHAIN), 0u128.into()); + + forward_to_block::(16); + assert_eq!(LastProcessedRequestOnL2::::get(consts::CHAIN), 1u128.into()); + + assert_err!( + Rolldown::update_l2_from_l1_unsafe(RuntimeOrigin::signed(ALICE), deposit_update), + Error::::WrongRequestId + ); + }); +} + #[test] #[serial] fn reject_second_update_in_the_same_block() { From 6112b0fc40db1a021fb83ba63939c08a7a156a20 Mon Sep 17 00:00:00 2001 From: Mateusz Nowakowski Date: Fri, 29 Nov 2024 23:14:04 +0100 Subject: [PATCH 2/3] apply benchmarks --- rollup/runtime/src/weights/block_weights.rs | 30 +- .../runtime/src/weights/extrinsic_weights.rs | 30 +- rollup/runtime/src/weights/frame_system.rs | 166 +++---- .../src/weights/orml_asset_registry.rs | 56 +-- rollup/runtime/src/weights/orml_tokens.rs | 92 ++-- .../runtime/src/weights/pallet_bootstrap.rs | 52 +-- .../src/weights/pallet_collective_mangata.rs | 236 +++++----- .../src/weights/pallet_crowdloan_rewards.rs | 72 ++- rollup/runtime/src/weights/pallet_fee_lock.rs | 33 +- rollup/runtime/src/weights/pallet_issuance.rs | 48 +- rollup/runtime/src/weights/pallet_market.rs | 98 ++-- .../weights/pallet_multipurpose_liquidity.rs | 64 ++- .../src/weights/pallet_proof_of_stake.rs | 108 +++-- rollup/runtime/src/weights/pallet_rolldown.rs | 313 +++++++++---- rollup/runtime/src/weights/pallet_session.rs | 40 +- .../runtime/src/weights/pallet_timestamp.rs | 20 +- rollup/runtime/src/weights/pallet_treasury.rs | 182 +++++--- .../src/weights/pallet_utility_mangata.rs | 56 ++- .../src/weights/pallet_vesting_mangata.rs | 197 ++++---- rollup/runtime/src/weights/pallet_xyk.rs | 336 +++++++------- .../runtime/src/weights/parachain_staking.rs | 436 +++++++++--------- 21 files changed, 1445 insertions(+), 1220 deletions(-) diff --git a/rollup/runtime/src/weights/block_weights.rs b/rollup/runtime/src/weights/block_weights.rs index 6267eca6c..24993a10c 100644 --- a/rollup/runtime/src/weights/block_weights.rs +++ b/rollup/runtime/src/weights/block_weights.rs @@ -1,20 +1,18 @@ -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09 (Y/M/D) -//! HOSTNAME: `af2cb189db8d`, CPU: `AMD EPYC 7B13` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29 (Y/M/D) +//! HOSTNAME: `98ec9bd8ef1f`, CPU: `AMD EPYC 7B13` //! -//! SHORT-NAME: `block`, LONG-NAME: `BlockExecution`, RUNTIME: `Mangata Kusama Local` +//! SHORT-NAME: `block`, LONG-NAME: `BlockExecution`, RUNTIME: `Rollup Local` //! WARMUPS: `10`, REPEAT: `100` //! WEIGHT-PATH: `` //! WEIGHT-METRIC: `Average`, WEIGHT-MUL: `1.0`, WEIGHT-ADD: `0` // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // overhead -// --execution -// native // --chain -// mangata-kusama-local +// rollup-local // -lblock_builder=debug // --max-ext-per-block // 50000 @@ -29,17 +27,17 @@ parameter_types! { /// Calculated by multiplying the *Average* with `1.0` and adding `0`. /// /// Stats nanoseconds: - /// Min, Max: 26_916_778, 31_638_388 - /// Average: 28_489_486 - /// Median: 28_464_418 - /// Std-Dev: 976072.11 + /// Min, Max: 30_924_759, 36_916_389 + /// Average: 31_490_935 + /// Median: 31_336_589 + /// Std-Dev: 697753.75 /// /// Percentiles nanoseconds: - /// 99th: 31_225_878 - /// 95th: 30_092_347 - /// 75th: 29_178_298 + /// 99th: 33_779_619 + /// 95th: 32_274_600 + /// 75th: 31_631_190 pub const BlockExecutionWeight: Weight = - Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(28_489_486), 0); + Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(31_490_935), 0); } #[cfg(test)] diff --git a/rollup/runtime/src/weights/extrinsic_weights.rs b/rollup/runtime/src/weights/extrinsic_weights.rs index 53bae3097..6d602b628 100644 --- a/rollup/runtime/src/weights/extrinsic_weights.rs +++ b/rollup/runtime/src/weights/extrinsic_weights.rs @@ -1,20 +1,18 @@ -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09 (Y/M/D) -//! HOSTNAME: `af2cb189db8d`, CPU: `AMD EPYC 7B13` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29 (Y/M/D) +//! HOSTNAME: `98ec9bd8ef1f`, CPU: `AMD EPYC 7B13` //! -//! SHORT-NAME: `extrinsic`, LONG-NAME: `ExtrinsicBase`, RUNTIME: `Mangata Kusama Local` +//! SHORT-NAME: `extrinsic`, LONG-NAME: `ExtrinsicBase`, RUNTIME: `Rollup Local` //! WARMUPS: `10`, REPEAT: `100` //! WEIGHT-PATH: `` //! WEIGHT-METRIC: `Average`, WEIGHT-MUL: `1.0`, WEIGHT-ADD: `0` // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // overhead -// --execution -// native // --chain -// mangata-kusama-local +// rollup-local // -lblock_builder=debug // --max-ext-per-block // 50000 @@ -29,17 +27,17 @@ parameter_types! { /// Calculated by multiplying the *Average* with `1.0` and adding `0`. /// /// Stats nanoseconds: - /// Min, Max: 181_689, 199_921 - /// Average: 187_355 - /// Median: 186_772 - /// Std-Dev: 3058.03 + /// Min, Max: 208_592, 256_940 + /// Average: 212_669 + /// Median: 211_383 + /// Std-Dev: 5780.19 /// /// Percentiles nanoseconds: - /// 99th: 195_738 - /// 95th: 192_306 - /// 75th: 188_874 + /// 99th: 242_190 + /// 95th: 217_274 + /// 75th: 212_527 pub const ExtrinsicBaseWeight: Weight = - Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(187_355), 0); + Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(212_669), 0); } #[cfg(test)] diff --git a/rollup/runtime/src/weights/frame_system.rs b/rollup/runtime/src/weights/frame_system.rs index 0d835f29f..899f19ea5 100644 --- a/rollup/runtime/src/weights/frame_system.rs +++ b/rollup/runtime/src/weights/frame_system.rs @@ -18,19 +18,17 @@ //! Autogenerated weights for frame_system //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// mangata-kusama -// --execution -// wasm +// rollup-local // --wasm-execution // compiled // --pallet @@ -71,149 +69,155 @@ pub trait WeightInfo { pub struct ModuleWeight(PhantomData); impl frame_system::WeightInfo for ModuleWeight { fn remark(b: u32, ) -> Weight { - (Weight::from_parts(10_357_957, 0)) - // Standard Error: 0 - .saturating_add((Weight::from_parts(293, 0)).saturating_mul(b as u64)) + (Weight::from_parts(17_595_859, 0)) + // Standard Error: 3 + .saturating_add((Weight::from_parts(320, 0)).saturating_mul(b as u64)) } fn remark_with_event(b: u32, ) -> Weight { - (Weight::from_parts(12_200_000, 0)) - // Standard Error: 2 - .saturating_add((Weight::from_parts(1_560, 0)).saturating_mul(b as u64)) + (Weight::from_parts(13_544_792, 0)) + // Standard Error: 1 + .saturating_add((Weight::from_parts(1_429, 0)).saturating_mul(b as u64)) } // Storage: `System::Digest` (r:1 w:1) // Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1) // Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1) fn set_heap_pages() -> Weight { - (Weight::from_parts(6_710_000, 0)) + (Weight::from_parts(6_691_000, 0)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } - // Storage: `ParachainSystem::ValidationData` (r:1 w:0) - // Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - // Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0) - // Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) - // Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1) - // Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - // Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) - // Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - // Storage: `ParachainSystem::NewValidationCode` (r:0 w:1) - // Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - // Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1) - // Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `System::Digest` (r:1 w:1) + // Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1) + // Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1) fn set_code() -> Weight { - (Weight::from_parts(153_135_378_000, 0)) - .saturating_add(T::DbWeight::get().reads(5 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + (Weight::from_parts(133_505_038_000, 0)) + .saturating_add(T::DbWeight::get().reads(2 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: `Skipped::Metadata` (r:0 w:0) // Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_storage(i: u32, ) -> Weight { - (Weight::from_parts(3_910_000, 0)) - // Standard Error: 2_496 - .saturating_add((Weight::from_parts(1_116_112, 0)).saturating_mul(i as u64)) + (Weight::from_parts(3_780_000, 0)) + // Standard Error: 1_050 + .saturating_add((Weight::from_parts(1_197_417, 0)).saturating_mul(i as u64)) .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64))) } // Storage: `Skipped::Metadata` (r:0 w:0) // Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) fn kill_storage(i: u32, ) -> Weight { - (Weight::from_parts(3_680_000, 0)) - // Standard Error: 1_407 - .saturating_add((Weight::from_parts(747_816, 0)).saturating_mul(i as u64)) + (Weight::from_parts(3_750_000, 0)) + // Standard Error: 1_618 + .saturating_add((Weight::from_parts(855_537, 0)).saturating_mul(i as u64)) .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64))) } // Storage: `Skipped::Metadata` (r:0 w:0) // Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) fn kill_prefix(p: u32, ) -> Weight { - (Weight::from_parts(6_930_000, 0)) - // Standard Error: 2_411 - .saturating_add((Weight::from_parts(1_334_484, 0)).saturating_mul(p as u64)) + (Weight::from_parts(6_800_000, 0)) + // Standard Error: 2_455 + .saturating_add((Weight::from_parts(1_479_400, 0)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(p as u64))) .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64))) } - + // Storage: `System::AuthorizedUpgrade` (r:0 w:1) + // Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`) fn authorize_upgrade() -> Weight { - Weight::from_parts(0, 0) - } - + (Weight::from_parts(16_100_000, 0)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: `System::AuthorizedUpgrade` (r:1 w:1) + // Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`) + // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) + // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) + // Storage: `System::Digest` (r:1 w:1) + // Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1) + // Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1) fn apply_authorized_upgrade() -> Weight { - Weight::from_parts(0, 0) - } + (Weight::from_parts(135_625_658_000, 0)) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().writes(3 as u64)) + } } // For backwards compatibility and tests impl WeightInfo for () { fn remark(b: u32, ) -> Weight { - (Weight::from_parts(10_357_957, 0)) - // Standard Error: 0 - .saturating_add((Weight::from_parts(293, 0)).saturating_mul(b as u64)) + (Weight::from_parts(17_595_859, 0)) + // Standard Error: 3 + .saturating_add((Weight::from_parts(320, 0)).saturating_mul(b as u64)) } fn remark_with_event(b: u32, ) -> Weight { - (Weight::from_parts(12_200_000, 0)) - // Standard Error: 2 - .saturating_add((Weight::from_parts(1_560, 0)).saturating_mul(b as u64)) + (Weight::from_parts(13_544_792, 0)) + // Standard Error: 1 + .saturating_add((Weight::from_parts(1_429, 0)).saturating_mul(b as u64)) } // Storage: `System::Digest` (r:1 w:1) // Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1) // Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1) fn set_heap_pages() -> Weight { - (Weight::from_parts(6_710_000, 0)) + (Weight::from_parts(6_691_000, 0)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } - // Storage: `ParachainSystem::ValidationData` (r:1 w:0) - // Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - // Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0) - // Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) - // Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1) - // Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - // Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) - // Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - // Storage: `ParachainSystem::NewValidationCode` (r:0 w:1) - // Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - // Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1) - // Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `System::Digest` (r:1 w:1) + // Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1) + // Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1) fn set_code() -> Weight { - (Weight::from_parts(153_135_378_000, 0)) - .saturating_add(RocksDbWeight::get().reads(5 as u64)) - .saturating_add(RocksDbWeight::get().writes(3 as u64)) + (Weight::from_parts(133_505_038_000, 0)) + .saturating_add(RocksDbWeight::get().reads(2 as u64)) + .saturating_add(RocksDbWeight::get().writes(2 as u64)) } // Storage: `Skipped::Metadata` (r:0 w:0) // Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_storage(i: u32, ) -> Weight { - (Weight::from_parts(3_910_000, 0)) - // Standard Error: 2_496 - .saturating_add((Weight::from_parts(1_116_112, 0)).saturating_mul(i as u64)) + (Weight::from_parts(3_780_000, 0)) + // Standard Error: 1_050 + .saturating_add((Weight::from_parts(1_197_417, 0)).saturating_mul(i as u64)) .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(i as u64))) } // Storage: `Skipped::Metadata` (r:0 w:0) // Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) fn kill_storage(i: u32, ) -> Weight { - (Weight::from_parts(3_680_000, 0)) - // Standard Error: 1_407 - .saturating_add((Weight::from_parts(747_816, 0)).saturating_mul(i as u64)) + (Weight::from_parts(3_750_000, 0)) + // Standard Error: 1_618 + .saturating_add((Weight::from_parts(855_537, 0)).saturating_mul(i as u64)) .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(i as u64))) } // Storage: `Skipped::Metadata` (r:0 w:0) // Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) fn kill_prefix(p: u32, ) -> Weight { - (Weight::from_parts(6_930_000, 0)) - // Standard Error: 2_411 - .saturating_add((Weight::from_parts(1_334_484, 0)).saturating_mul(p as u64)) + (Weight::from_parts(6_800_000, 0)) + // Standard Error: 2_455 + .saturating_add((Weight::from_parts(1_479_400, 0)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(p as u64))) .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(p as u64))) } - + // Storage: `System::AuthorizedUpgrade` (r:0 w:1) + // Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`) fn authorize_upgrade() -> Weight { - Weight::from_parts(0, 0) - } - + (Weight::from_parts(16_100_000, 0)) + .saturating_add(RocksDbWeight::get().writes(1 as u64)) + } + // Storage: `System::AuthorizedUpgrade` (r:1 w:1) + // Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`) + // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) + // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) + // Storage: `System::Digest` (r:1 w:1) + // Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1) + // Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1) fn apply_authorized_upgrade() -> Weight { - Weight::from_parts(0, 0) - } + (Weight::from_parts(135_625_658_000, 0)) + .saturating_add(RocksDbWeight::get().reads(3 as u64)) + .saturating_add(RocksDbWeight::get().writes(3 as u64)) + } } diff --git a/rollup/runtime/src/weights/orml_asset_registry.rs b/rollup/runtime/src/weights/orml_asset_registry.rs index 1ee3d8f7c..76f2f7928 100644 --- a/rollup/runtime/src/weights/orml_asset_registry.rs +++ b/rollup/runtime/src/weights/orml_asset_registry.rs @@ -18,19 +18,17 @@ //! Autogenerated weights for orml_asset_registry //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// mangata-kusama -// --execution -// wasm +// rollup-local // --wasm-execution // compiled // --pallet @@ -66,24 +64,20 @@ impl orml_asset_registry::WeightInfo for ModuleWeight Weight { - (Weight::from_parts(44_310_000, 0)) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + (Weight::from_parts(28_460_000, 0)) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: `AssetRegistry::Metadata` (r:1 w:1) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) - // Storage: `AssetRegistry::LocationToAssetId` (r:1 w:1) - // Proof: `AssetRegistry::LocationToAssetId` (`max_values`: None, `max_size`: Some(614), added: 3089, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) fn update_asset() -> Weight { - (Weight::from_parts(28_690_000, 0)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + (Weight::from_parts(18_100_000, 0)) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) } } @@ -92,23 +86,19 @@ impl WeightInfo for () { // Storage: `Tokens::NextCurrencyId` (r:1 w:1) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:0) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `AssetRegistry::Metadata` (r:1 w:1) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) - // Storage: `AssetRegistry::LocationToAssetId` (r:1 w:1) - // Proof: `AssetRegistry::LocationToAssetId` (`max_values`: None, `max_size`: Some(614), added: 3089, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) fn register_asset() -> Weight { - (Weight::from_parts(44_310_000, 0)) - .saturating_add(RocksDbWeight::get().reads(4 as u64)) - .saturating_add(RocksDbWeight::get().writes(3 as u64)) + (Weight::from_parts(28_460_000, 0)) + .saturating_add(RocksDbWeight::get().reads(3 as u64)) + .saturating_add(RocksDbWeight::get().writes(2 as u64)) } // Storage: `AssetRegistry::Metadata` (r:1 w:1) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) - // Storage: `AssetRegistry::LocationToAssetId` (r:1 w:1) - // Proof: `AssetRegistry::LocationToAssetId` (`max_values`: None, `max_size`: Some(614), added: 3089, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) fn update_asset() -> Weight { - (Weight::from_parts(28_690_000, 0)) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) - .saturating_add(RocksDbWeight::get().writes(2 as u64)) + (Weight::from_parts(18_100_000, 0)) + .saturating_add(RocksDbWeight::get().reads(1 as u64)) + .saturating_add(RocksDbWeight::get().writes(1 as u64)) } } diff --git a/rollup/runtime/src/weights/orml_tokens.rs b/rollup/runtime/src/weights/orml_tokens.rs index 6e8e1e4f3..f62431770 100644 --- a/rollup/runtime/src/weights/orml_tokens.rs +++ b/rollup/runtime/src/weights/orml_tokens.rs @@ -18,19 +18,17 @@ //! Autogenerated weights for orml_tokens //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// mangata-kusama -// --execution -// wasm +// rollup-local // --wasm-execution // compiled // --pallet @@ -69,73 +67,73 @@ pub trait WeightInfo { pub struct ModuleWeight(PhantomData); impl orml_tokens::WeightInfo for ModuleWeight { // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn transfer() -> Weight { - (Weight::from_parts(51_859_000, 0)) + (Weight::from_parts(43_930_000, 0)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn transfer_all() -> Weight { - (Weight::from_parts(56_780_000, 0)) + (Weight::from_parts(45_840_000, 0)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn transfer_keep_alive() -> Weight { - (Weight::from_parts(51_570_000, 0)) + (Weight::from_parts(41_180_000, 0)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:2 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn force_transfer() -> Weight { - (Weight::from_parts(53_311_000, 0)) + (Weight::from_parts(45_650_000, 0)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn set_balance() -> Weight { - (Weight::from_parts(28_760_000, 0)) + (Weight::from_parts(24_150_000, 0)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: `Tokens::NextCurrencyId` (r:1 w:1) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn create() -> Weight { - (Weight::from_parts(55_380_000, 0)) + (Weight::from_parts(43_090_000, 0)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn mint() -> Weight { - (Weight::from_parts(59_940_000, 0)) + (Weight::from_parts(42_870_000, 0)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -144,73 +142,73 @@ impl orml_tokens::WeightInfo for ModuleWeight { // For backwards compatibility and tests impl WeightInfo for () { // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn transfer() -> Weight { - (Weight::from_parts(51_859_000, 0)) + (Weight::from_parts(43_930_000, 0)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn transfer_all() -> Weight { - (Weight::from_parts(56_780_000, 0)) + (Weight::from_parts(45_840_000, 0)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn transfer_keep_alive() -> Weight { - (Weight::from_parts(51_570_000, 0)) + (Weight::from_parts(41_180_000, 0)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:2 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn force_transfer() -> Weight { - (Weight::from_parts(53_311_000, 0)) + (Weight::from_parts(45_650_000, 0)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn set_balance() -> Weight { - (Weight::from_parts(28_760_000, 0)) + (Weight::from_parts(24_150_000, 0)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } // Storage: `Tokens::NextCurrencyId` (r:1 w:1) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn create() -> Weight { - (Weight::from_parts(55_380_000, 0)) + (Weight::from_parts(43_090_000, 0)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn mint() -> Weight { - (Weight::from_parts(59_940_000, 0)) + (Weight::from_parts(42_870_000, 0)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } diff --git a/rollup/runtime/src/weights/pallet_bootstrap.rs b/rollup/runtime/src/weights/pallet_bootstrap.rs index 4eeba0373..e5d8f451c 100644 --- a/rollup/runtime/src/weights/pallet_bootstrap.rs +++ b/rollup/runtime/src/weights/pallet_bootstrap.rs @@ -18,19 +18,17 @@ //! Autogenerated weights for pallet_bootstrap //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// mangata-kusama -// --execution -// wasm +// rollup-local // --wasm-execution // compiled // --pallet @@ -72,13 +70,13 @@ impl pallet_bootstrap::WeightInfo for ModuleWeight { // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:2 w:0) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Bootstrap::PromoteBootstrapPool` (r:0 w:1) // Proof: `Bootstrap::PromoteBootstrapPool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Bootstrap::ActivePair` (r:0 w:1) // Proof: `Bootstrap::ActivePair` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn schedule_bootstrap() -> Weight { - (Weight::from_parts(31_320_000, 0)) + (Weight::from_parts(25_700_000, 0)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -93,9 +91,9 @@ impl pallet_bootstrap::WeightInfo for ModuleWeight { // Storage: `Bootstrap::BootstrapSchedule` (r:1 w:0) // Proof: `Bootstrap::BootstrapSchedule` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) // Storage: `Bootstrap::Provisions` (r:1 w:1) // Proof: `Bootstrap::Provisions` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Bootstrap::Valuations` (r:1 w:1) @@ -103,7 +101,7 @@ impl pallet_bootstrap::WeightInfo for ModuleWeight { // Storage: `Bootstrap::ProvisionAccounts` (r:0 w:1) // Proof: `Bootstrap::ProvisionAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) fn provision() -> Weight { - (Weight::from_parts(95_910_000, 0)) + (Weight::from_parts(80_350_000, 0)) .saturating_add(T::DbWeight::get().reads(10 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } @@ -124,11 +122,11 @@ impl pallet_bootstrap::WeightInfo for ModuleWeight { // Storage: `Bootstrap::VestedProvisions` (r:2 w:0) // Proof: `Bootstrap::VestedProvisions` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::PromotedPoolRewards` (r:1 w:0) // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::RewardsInfo` (r:1 w:1) // Proof: `ProofOfStake::RewardsInfo` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) @@ -136,7 +134,7 @@ impl pallet_bootstrap::WeightInfo for ModuleWeight { // Storage: `Bootstrap::ProvisionAccounts` (r:0 w:1) // Proof: `Bootstrap::ProvisionAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) fn claim_and_activate_liquidity_tokens() -> Weight { - (Weight::from_parts(221_220_000, 0)) + (Weight::from_parts(184_391_000, 0)) .saturating_add(T::DbWeight::get().reads(17 as u64)) .saturating_add(T::DbWeight::get().writes(8 as u64)) } @@ -155,7 +153,7 @@ impl pallet_bootstrap::WeightInfo for ModuleWeight { // Storage: `Bootstrap::MintedLiquidity` (r:1 w:1) // Proof: `Bootstrap::MintedLiquidity` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Tokens::Accounts` (r:1 w:0) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Bootstrap::BootstrapSchedule` (r:1 w:1) // Proof: `Bootstrap::BootstrapSchedule` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Bootstrap::ArchivedBootstrap` (r:1 w:1) @@ -167,7 +165,7 @@ impl pallet_bootstrap::WeightInfo for ModuleWeight { // Storage: `Bootstrap::ActivePair` (r:0 w:1) // Proof: `Bootstrap::ActivePair` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn finalize() -> Weight { - (Weight::from_parts(73_640_000, 0)) + (Weight::from_parts(64_060_000, 0)) .saturating_add(T::DbWeight::get().reads(10 as u64)) .saturating_add(T::DbWeight::get().writes(7 as u64)) } @@ -182,13 +180,13 @@ impl WeightInfo for () { // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:2 w:0) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Bootstrap::PromoteBootstrapPool` (r:0 w:1) // Proof: `Bootstrap::PromoteBootstrapPool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Bootstrap::ActivePair` (r:0 w:1) // Proof: `Bootstrap::ActivePair` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn schedule_bootstrap() -> Weight { - (Weight::from_parts(31_320_000, 0)) + (Weight::from_parts(25_700_000, 0)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } @@ -203,9 +201,9 @@ impl WeightInfo for () { // Storage: `Bootstrap::BootstrapSchedule` (r:1 w:0) // Proof: `Bootstrap::BootstrapSchedule` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) // Storage: `Bootstrap::Provisions` (r:1 w:1) // Proof: `Bootstrap::Provisions` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Bootstrap::Valuations` (r:1 w:1) @@ -213,7 +211,7 @@ impl WeightInfo for () { // Storage: `Bootstrap::ProvisionAccounts` (r:0 w:1) // Proof: `Bootstrap::ProvisionAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) fn provision() -> Weight { - (Weight::from_parts(95_910_000, 0)) + (Weight::from_parts(80_350_000, 0)) .saturating_add(RocksDbWeight::get().reads(10 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } @@ -234,11 +232,11 @@ impl WeightInfo for () { // Storage: `Bootstrap::VestedProvisions` (r:2 w:0) // Proof: `Bootstrap::VestedProvisions` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::PromotedPoolRewards` (r:1 w:0) // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::RewardsInfo` (r:1 w:1) // Proof: `ProofOfStake::RewardsInfo` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) @@ -246,7 +244,7 @@ impl WeightInfo for () { // Storage: `Bootstrap::ProvisionAccounts` (r:0 w:1) // Proof: `Bootstrap::ProvisionAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`) fn claim_and_activate_liquidity_tokens() -> Weight { - (Weight::from_parts(221_220_000, 0)) + (Weight::from_parts(184_391_000, 0)) .saturating_add(RocksDbWeight::get().reads(17 as u64)) .saturating_add(RocksDbWeight::get().writes(8 as u64)) } @@ -265,7 +263,7 @@ impl WeightInfo for () { // Storage: `Bootstrap::MintedLiquidity` (r:1 w:1) // Proof: `Bootstrap::MintedLiquidity` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Tokens::Accounts` (r:1 w:0) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Bootstrap::BootstrapSchedule` (r:1 w:1) // Proof: `Bootstrap::BootstrapSchedule` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Bootstrap::ArchivedBootstrap` (r:1 w:1) @@ -277,7 +275,7 @@ impl WeightInfo for () { // Storage: `Bootstrap::ActivePair` (r:0 w:1) // Proof: `Bootstrap::ActivePair` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn finalize() -> Weight { - (Weight::from_parts(73_640_000, 0)) + (Weight::from_parts(64_060_000, 0)) .saturating_add(RocksDbWeight::get().reads(10 as u64)) .saturating_add(RocksDbWeight::get().writes(7 as u64)) } diff --git a/rollup/runtime/src/weights/pallet_collective_mangata.rs b/rollup/runtime/src/weights/pallet_collective_mangata.rs index a03ba1258..58b0e0667 100644 --- a/rollup/runtime/src/weights/pallet_collective_mangata.rs +++ b/rollup/runtime/src/weights/pallet_collective_mangata.rs @@ -18,19 +18,17 @@ //! Autogenerated weights for pallet_collective_mangata //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// mangata-kusama -// --execution -// wasm +// rollup-local // --wasm-execution // compiled // --pallet @@ -80,11 +78,11 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: `Council::Prime` (r:0 w:1) // Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_members(m: u32, _n: u32, p: u32, ) -> Weight { - (Weight::from_parts(49_500_000, 0)) - // Standard Error: 70_155 - .saturating_add((Weight::from_parts(4_698_580, 0)).saturating_mul(m as u64)) - // Standard Error: 70_155 - .saturating_add((Weight::from_parts(9_659_834, 0)).saturating_mul(p as u64)) + (Weight::from_parts(148_080_000, 0)) + // Standard Error: 70_056 + .saturating_add((Weight::from_parts(4_005_859, 0)).saturating_mul(m as u64)) + // Standard Error: 70_056 + .saturating_add((Weight::from_parts(8_923_337, 0)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(p as u64))) .saturating_add(T::DbWeight::get().writes(2 as u64)) @@ -93,11 +91,11 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: `Council::Members` (r:1 w:0) // Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn execute(b: u32, m: u32, ) -> Weight { - (Weight::from_parts(29_220_221, 0)) - // Standard Error: 140 - .saturating_add((Weight::from_parts(2_429, 0)).saturating_mul(b as u64)) - // Standard Error: 1_443 - .saturating_add((Weight::from_parts(4_412, 0)).saturating_mul(m as u64)) + (Weight::from_parts(24_704_254, 0)) + // Standard Error: 118 + .saturating_add((Weight::from_parts(2_079, 0)).saturating_mul(b as u64)) + // Standard Error: 1_220 + .saturating_add((Weight::from_parts(22_735, 0)).saturating_mul(m as u64)) .saturating_add(T::DbWeight::get().reads(1 as u64)) } // Storage: `Council::Members` (r:1 w:0) @@ -105,11 +103,11 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: `Council::ProposalOf` (r:1 w:0) // Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) fn propose_execute(b: u32, m: u32, ) -> Weight { - (Weight::from_parts(31_829_788, 0)) - // Standard Error: 151 - .saturating_add((Weight::from_parts(2_231, 0)).saturating_mul(b as u64)) - // Standard Error: 1_557 - .saturating_add((Weight::from_parts(35_246, 0)).saturating_mul(m as u64)) + (Weight::from_parts(27_339_153, 0)) + // Standard Error: 134 + .saturating_add((Weight::from_parts(2_475, 0)).saturating_mul(b as u64)) + // Standard Error: 1_384 + .saturating_add((Weight::from_parts(36_408, 0)).saturating_mul(m as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) } // Storage: `Council::Members` (r:1 w:0) @@ -125,13 +123,13 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: `Council::Voting` (r:0 w:1) // Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_parts(46_091_730, 0)) - // Standard Error: 319 - .saturating_add((Weight::from_parts(5_410, 0)).saturating_mul(b as u64)) - // Standard Error: 3_332 - .saturating_add((Weight::from_parts(14_379, 0)).saturating_mul(m as u64)) - // Standard Error: 3_289 - .saturating_add((Weight::from_parts(307_260, 0)).saturating_mul(p as u64)) + (Weight::from_parts(41_070_816, 0)) + // Standard Error: 232 + .saturating_add((Weight::from_parts(3_561, 0)).saturating_mul(b as u64)) + // Standard Error: 2_427 + .saturating_add((Weight::from_parts(21_020, 0)).saturating_mul(m as u64)) + // Standard Error: 2_396 + .saturating_add((Weight::from_parts(324_501, 0)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -140,9 +138,9 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: `Council::Voting` (r:1 w:1) // Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) fn vote(m: u32, ) -> Weight { - (Weight::from_parts(43_669_294, 0)) - // Standard Error: 2_626 - .saturating_add((Weight::from_parts(43_911, 0)).saturating_mul(m as u64)) + (Weight::from_parts(41_208_337, 0)) + // Standard Error: 1_645 + .saturating_add((Weight::from_parts(61_793, 0)).saturating_mul(m as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -152,17 +150,19 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Council::ProposalProposedTime` (r:1 w:1) // Proof: `Council::ProposalProposedTime` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `FoundationMembers::Members` (r:1 w:0) + // Proof: `FoundationMembers::Members` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`) // Storage: `Council::Proposals` (r:1 w:1) // Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Council::ProposalOf` (r:0 w:1) // Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) fn close_early_disapproved(m: u32, p: u32, ) -> Weight { - (Weight::from_parts(62_669_590, 0)) - // Standard Error: 4_434 - .saturating_add((Weight::from_parts(61_080, 0)).saturating_mul(m as u64)) - // Standard Error: 4_324 - .saturating_add((Weight::from_parts(335_148, 0)).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(4 as u64)) + (Weight::from_parts(62_025_353, 0)) + // Standard Error: 3_748 + .saturating_add((Weight::from_parts(28_097, 0)).saturating_mul(m as u64)) + // Standard Error: 3_655 + .saturating_add((Weight::from_parts(336_610, 0)).saturating_mul(p as u64)) + .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } // Storage: `Council::Members` (r:1 w:0) @@ -171,19 +171,21 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Council::ProposalProposedTime` (r:1 w:1) // Proof: `Council::ProposalProposedTime` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `FoundationMembers::Members` (r:1 w:0) + // Proof: `FoundationMembers::Members` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`) // Storage: `Council::ProposalOf` (r:1 w:1) // Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Council::Proposals` (r:1 w:1) // Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_parts(93_764_711, 0)) - // Standard Error: 617 - .saturating_add((Weight::from_parts(4_363, 0)).saturating_mul(b as u64)) - // Standard Error: 6_521 - .saturating_add((Weight::from_parts(10_992, 0)).saturating_mul(m as u64)) - // Standard Error: 6_357 - .saturating_add((Weight::from_parts(342_855, 0)).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(5 as u64)) + (Weight::from_parts(80_472_792, 0)) + // Standard Error: 785 + .saturating_add((Weight::from_parts(3_376, 0)).saturating_mul(b as u64)) + // Standard Error: 8_300 + .saturating_add((Weight::from_parts(84_207, 0)).saturating_mul(m as u64)) + // Standard Error: 8_090 + .saturating_add((Weight::from_parts(373_260, 0)).saturating_mul(p as u64)) + .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } // Storage: `Council::Members` (r:1 w:0) @@ -199,11 +201,11 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: `Council::ProposalOf` (r:0 w:1) // Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) fn close_disapproved(m: u32, p: u32, ) -> Weight { - (Weight::from_parts(70_879_635, 0)) - // Standard Error: 4_851 - .saturating_add((Weight::from_parts(35_945, 0)).saturating_mul(m as u64)) - // Standard Error: 4_730 - .saturating_add((Weight::from_parts(309_764, 0)).saturating_mul(p as u64)) + (Weight::from_parts(56_432_300, 0)) + // Standard Error: 4_211 + .saturating_add((Weight::from_parts(69_518, 0)).saturating_mul(m as u64)) + // Standard Error: 4_106 + .saturating_add((Weight::from_parts(338_049, 0)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -220,13 +222,13 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: `Council::Proposals` (r:1 w:1) // Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn close_approved(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_parts(88_548_132, 0)) - // Standard Error: 616 - .saturating_add((Weight::from_parts(8_945, 0)).saturating_mul(b as u64)) - // Standard Error: 6_515 - .saturating_add((Weight::from_parts(53_020, 0)).saturating_mul(m as u64)) - // Standard Error: 6_351 - .saturating_add((Weight::from_parts(379_369, 0)).saturating_mul(p as u64)) + (Weight::from_parts(81_511_415, 0)) + // Standard Error: 512 + .saturating_add((Weight::from_parts(3_154, 0)).saturating_mul(b as u64)) + // Standard Error: 5_417 + .saturating_add((Weight::from_parts(37_847, 0)).saturating_mul(m as u64)) + // Standard Error: 5_280 + .saturating_add((Weight::from_parts(347_334, 0)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -239,9 +241,9 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: `Council::ProposalOf` (r:0 w:1) // Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) fn disapprove_proposal(p: u32, ) -> Weight { - (Weight::from_parts(35_334_531, 0)) - // Standard Error: 3_100 - .saturating_add((Weight::from_parts(261_922, 0)).saturating_mul(p as u64)) + (Weight::from_parts(29_340_936, 0)) + // Standard Error: 1_590 + .saturating_add((Weight::from_parts(274_517, 0)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -258,11 +260,11 @@ impl WeightInfo for () { // Storage: `Council::Prime` (r:0 w:1) // Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_members(m: u32, _n: u32, p: u32, ) -> Weight { - (Weight::from_parts(49_500_000, 0)) - // Standard Error: 70_155 - .saturating_add((Weight::from_parts(4_698_580, 0)).saturating_mul(m as u64)) - // Standard Error: 70_155 - .saturating_add((Weight::from_parts(9_659_834, 0)).saturating_mul(p as u64)) + (Weight::from_parts(148_080_000, 0)) + // Standard Error: 70_056 + .saturating_add((Weight::from_parts(4_005_859, 0)).saturating_mul(m as u64)) + // Standard Error: 70_056 + .saturating_add((Weight::from_parts(8_923_337, 0)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(p as u64))) .saturating_add(RocksDbWeight::get().writes(2 as u64)) @@ -271,11 +273,11 @@ impl WeightInfo for () { // Storage: `Council::Members` (r:1 w:0) // Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn execute(b: u32, m: u32, ) -> Weight { - (Weight::from_parts(29_220_221, 0)) - // Standard Error: 140 - .saturating_add((Weight::from_parts(2_429, 0)).saturating_mul(b as u64)) - // Standard Error: 1_443 - .saturating_add((Weight::from_parts(4_412, 0)).saturating_mul(m as u64)) + (Weight::from_parts(24_704_254, 0)) + // Standard Error: 118 + .saturating_add((Weight::from_parts(2_079, 0)).saturating_mul(b as u64)) + // Standard Error: 1_220 + .saturating_add((Weight::from_parts(22_735, 0)).saturating_mul(m as u64)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) } // Storage: `Council::Members` (r:1 w:0) @@ -283,11 +285,11 @@ impl WeightInfo for () { // Storage: `Council::ProposalOf` (r:1 w:0) // Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) fn propose_execute(b: u32, m: u32, ) -> Weight { - (Weight::from_parts(31_829_788, 0)) - // Standard Error: 151 - .saturating_add((Weight::from_parts(2_231, 0)).saturating_mul(b as u64)) - // Standard Error: 1_557 - .saturating_add((Weight::from_parts(35_246, 0)).saturating_mul(m as u64)) + (Weight::from_parts(27_339_153, 0)) + // Standard Error: 134 + .saturating_add((Weight::from_parts(2_475, 0)).saturating_mul(b as u64)) + // Standard Error: 1_384 + .saturating_add((Weight::from_parts(36_408, 0)).saturating_mul(m as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) } // Storage: `Council::Members` (r:1 w:0) @@ -303,13 +305,13 @@ impl WeightInfo for () { // Storage: `Council::Voting` (r:0 w:1) // Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_parts(46_091_730, 0)) - // Standard Error: 319 - .saturating_add((Weight::from_parts(5_410, 0)).saturating_mul(b as u64)) - // Standard Error: 3_332 - .saturating_add((Weight::from_parts(14_379, 0)).saturating_mul(m as u64)) - // Standard Error: 3_289 - .saturating_add((Weight::from_parts(307_260, 0)).saturating_mul(p as u64)) + (Weight::from_parts(41_070_816, 0)) + // Standard Error: 232 + .saturating_add((Weight::from_parts(3_561, 0)).saturating_mul(b as u64)) + // Standard Error: 2_427 + .saturating_add((Weight::from_parts(21_020, 0)).saturating_mul(m as u64)) + // Standard Error: 2_396 + .saturating_add((Weight::from_parts(324_501, 0)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } @@ -318,9 +320,9 @@ impl WeightInfo for () { // Storage: `Council::Voting` (r:1 w:1) // Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) fn vote(m: u32, ) -> Weight { - (Weight::from_parts(43_669_294, 0)) - // Standard Error: 2_626 - .saturating_add((Weight::from_parts(43_911, 0)).saturating_mul(m as u64)) + (Weight::from_parts(41_208_337, 0)) + // Standard Error: 1_645 + .saturating_add((Weight::from_parts(61_793, 0)).saturating_mul(m as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -330,17 +332,19 @@ impl WeightInfo for () { // Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Council::ProposalProposedTime` (r:1 w:1) // Proof: `Council::ProposalProposedTime` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `FoundationMembers::Members` (r:1 w:0) + // Proof: `FoundationMembers::Members` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`) // Storage: `Council::Proposals` (r:1 w:1) // Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Council::ProposalOf` (r:0 w:1) // Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) fn close_early_disapproved(m: u32, p: u32, ) -> Weight { - (Weight::from_parts(62_669_590, 0)) - // Standard Error: 4_434 - .saturating_add((Weight::from_parts(61_080, 0)).saturating_mul(m as u64)) - // Standard Error: 4_324 - .saturating_add((Weight::from_parts(335_148, 0)).saturating_mul(p as u64)) - .saturating_add(RocksDbWeight::get().reads(4 as u64)) + (Weight::from_parts(62_025_353, 0)) + // Standard Error: 3_748 + .saturating_add((Weight::from_parts(28_097, 0)).saturating_mul(m as u64)) + // Standard Error: 3_655 + .saturating_add((Weight::from_parts(336_610, 0)).saturating_mul(p as u64)) + .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } // Storage: `Council::Members` (r:1 w:0) @@ -349,19 +353,21 @@ impl WeightInfo for () { // Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Council::ProposalProposedTime` (r:1 w:1) // Proof: `Council::ProposalProposedTime` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `FoundationMembers::Members` (r:1 w:0) + // Proof: `FoundationMembers::Members` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`) // Storage: `Council::ProposalOf` (r:1 w:1) // Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Council::Proposals` (r:1 w:1) // Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_parts(93_764_711, 0)) - // Standard Error: 617 - .saturating_add((Weight::from_parts(4_363, 0)).saturating_mul(b as u64)) - // Standard Error: 6_521 - .saturating_add((Weight::from_parts(10_992, 0)).saturating_mul(m as u64)) - // Standard Error: 6_357 - .saturating_add((Weight::from_parts(342_855, 0)).saturating_mul(p as u64)) - .saturating_add(RocksDbWeight::get().reads(5 as u64)) + (Weight::from_parts(80_472_792, 0)) + // Standard Error: 785 + .saturating_add((Weight::from_parts(3_376, 0)).saturating_mul(b as u64)) + // Standard Error: 8_300 + .saturating_add((Weight::from_parts(84_207, 0)).saturating_mul(m as u64)) + // Standard Error: 8_090 + .saturating_add((Weight::from_parts(373_260, 0)).saturating_mul(p as u64)) + .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } // Storage: `Council::Members` (r:1 w:0) @@ -377,11 +383,11 @@ impl WeightInfo for () { // Storage: `Council::ProposalOf` (r:0 w:1) // Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) fn close_disapproved(m: u32, p: u32, ) -> Weight { - (Weight::from_parts(70_879_635, 0)) - // Standard Error: 4_851 - .saturating_add((Weight::from_parts(35_945, 0)).saturating_mul(m as u64)) - // Standard Error: 4_730 - .saturating_add((Weight::from_parts(309_764, 0)).saturating_mul(p as u64)) + (Weight::from_parts(56_432_300, 0)) + // Standard Error: 4_211 + .saturating_add((Weight::from_parts(69_518, 0)).saturating_mul(m as u64)) + // Standard Error: 4_106 + .saturating_add((Weight::from_parts(338_049, 0)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -398,13 +404,13 @@ impl WeightInfo for () { // Storage: `Council::Proposals` (r:1 w:1) // Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn close_approved(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_parts(88_548_132, 0)) - // Standard Error: 616 - .saturating_add((Weight::from_parts(8_945, 0)).saturating_mul(b as u64)) - // Standard Error: 6_515 - .saturating_add((Weight::from_parts(53_020, 0)).saturating_mul(m as u64)) - // Standard Error: 6_351 - .saturating_add((Weight::from_parts(379_369, 0)).saturating_mul(p as u64)) + (Weight::from_parts(81_511_415, 0)) + // Standard Error: 512 + .saturating_add((Weight::from_parts(3_154, 0)).saturating_mul(b as u64)) + // Standard Error: 5_417 + .saturating_add((Weight::from_parts(37_847, 0)).saturating_mul(m as u64)) + // Standard Error: 5_280 + .saturating_add((Weight::from_parts(347_334, 0)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -417,9 +423,9 @@ impl WeightInfo for () { // Storage: `Council::ProposalOf` (r:0 w:1) // Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) fn disapprove_proposal(p: u32, ) -> Weight { - (Weight::from_parts(35_334_531, 0)) - // Standard Error: 3_100 - .saturating_add((Weight::from_parts(261_922, 0)).saturating_mul(p as u64)) + (Weight::from_parts(29_340_936, 0)) + // Standard Error: 1_590 + .saturating_add((Weight::from_parts(274_517, 0)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } diff --git a/rollup/runtime/src/weights/pallet_crowdloan_rewards.rs b/rollup/runtime/src/weights/pallet_crowdloan_rewards.rs index 276b1e97c..2601a0565 100644 --- a/rollup/runtime/src/weights/pallet_crowdloan_rewards.rs +++ b/rollup/runtime/src/weights/pallet_crowdloan_rewards.rs @@ -18,19 +18,17 @@ //! Autogenerated weights for pallet_crowdloan_rewards //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// mangata-kusama -// --execution -// wasm +// rollup-local // --wasm-execution // compiled // --pallet @@ -77,7 +75,7 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei // Storage: `Crowdloan::CrowdloanAllocation` (r:0 w:1) // Proof: `Crowdloan::CrowdloanAllocation` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_crowdloan_allocation() -> Weight { - (Weight::from_parts(12_770_000, 0)) + (Weight::from_parts(11_700_000, 0)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -98,9 +96,9 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei // Storage: `Crowdloan::AccountsPayable` (r:100 w:100) // Proof: `Crowdloan::AccountsPayable` (`max_values`: None, `max_size`: None, mode: `Measured`) fn initialize_reward_vec(x: u32, ) -> Weight { - (Weight::from_parts(140_806_355, 0)) - // Standard Error: 72_364 - .saturating_add((Weight::from_parts(25_290_013, 0)).saturating_mul(x as u64)) + (Weight::from_parts(116_459_308, 0)) + // Standard Error: 36_116 + .saturating_add((Weight::from_parts(21_988_497, 0)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(x as u64))) .saturating_add(T::DbWeight::get().writes(2 as u64)) @@ -119,7 +117,7 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei // Storage: `Crowdloan::CrowdloanPeriod` (r:0 w:1) // Proof: `Crowdloan::CrowdloanPeriod` (`max_values`: None, `max_size`: None, mode: `Measured`) fn complete_initialization() -> Weight { - (Weight::from_parts(26_630_000, 0)) + (Weight::from_parts(24_320_000, 0)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -132,19 +130,19 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Crowdloan::CrowdloanPeriod` (r:1 w:0) // Proof: `Crowdloan::CrowdloanPeriod` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:1) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn claim() -> Weight { - (Weight::from_parts(130_990_000, 0)) + (Weight::from_parts(100_220_000, 0)) .saturating_add(T::DbWeight::get().reads(10 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } @@ -153,7 +151,7 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei // Storage: `Crowdloan::AccountsPayable` (r:2 w:2) // Proof: `Crowdloan::AccountsPayable` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_reward_address() -> Weight { - (Weight::from_parts(34_830_000, 0)) + (Weight::from_parts(29_540_000, 0)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -166,7 +164,7 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei // Storage: `Crowdloan::AccountsPayable` (r:1 w:1) // Proof: `Crowdloan::AccountsPayable` (`max_values`: None, `max_size`: None, mode: `Measured`) fn associate_native_identity() -> Weight { - (Weight::from_parts(117_000_000, 0)) + (Weight::from_parts(96_270_000, 0)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -175,9 +173,9 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei // Storage: `Crowdloan::AccountsPayable` (r:2 w:2) // Proof: `Crowdloan::AccountsPayable` (`max_values`: None, `max_size`: None, mode: `Measured`) fn change_association_with_relay_keys(x: u32, ) -> Weight { - (Weight::from_parts(27_532_509, 0)) - // Standard Error: 138_004 - .saturating_add((Weight::from_parts(60_668_712, 0)).saturating_mul(x as u64)) + (Weight::from_parts(65_550_833, 0)) + // Standard Error: 101_555 + .saturating_add((Weight::from_parts(51_585_316, 0)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -194,7 +192,7 @@ impl WeightInfo for () { // Storage: `Crowdloan::CrowdloanAllocation` (r:0 w:1) // Proof: `Crowdloan::CrowdloanAllocation` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_crowdloan_allocation() -> Weight { - (Weight::from_parts(12_770_000, 0)) + (Weight::from_parts(11_700_000, 0)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -215,9 +213,9 @@ impl WeightInfo for () { // Storage: `Crowdloan::AccountsPayable` (r:100 w:100) // Proof: `Crowdloan::AccountsPayable` (`max_values`: None, `max_size`: None, mode: `Measured`) fn initialize_reward_vec(x: u32, ) -> Weight { - (Weight::from_parts(140_806_355, 0)) - // Standard Error: 72_364 - .saturating_add((Weight::from_parts(25_290_013, 0)).saturating_mul(x as u64)) + (Weight::from_parts(116_459_308, 0)) + // Standard Error: 36_116 + .saturating_add((Weight::from_parts(21_988_497, 0)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().reads((3 as u64).saturating_mul(x as u64))) .saturating_add(RocksDbWeight::get().writes(2 as u64)) @@ -236,7 +234,7 @@ impl WeightInfo for () { // Storage: `Crowdloan::CrowdloanPeriod` (r:0 w:1) // Proof: `Crowdloan::CrowdloanPeriod` (`max_values`: None, `max_size`: None, mode: `Measured`) fn complete_initialization() -> Weight { - (Weight::from_parts(26_630_000, 0)) + (Weight::from_parts(24_320_000, 0)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -249,19 +247,19 @@ impl WeightInfo for () { // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Crowdloan::CrowdloanPeriod` (r:1 w:0) // Proof: `Crowdloan::CrowdloanPeriod` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:1) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn claim() -> Weight { - (Weight::from_parts(130_990_000, 0)) + (Weight::from_parts(100_220_000, 0)) .saturating_add(RocksDbWeight::get().reads(10 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } @@ -270,7 +268,7 @@ impl WeightInfo for () { // Storage: `Crowdloan::AccountsPayable` (r:2 w:2) // Proof: `Crowdloan::AccountsPayable` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_reward_address() -> Weight { - (Weight::from_parts(34_830_000, 0)) + (Weight::from_parts(29_540_000, 0)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -283,7 +281,7 @@ impl WeightInfo for () { // Storage: `Crowdloan::AccountsPayable` (r:1 w:1) // Proof: `Crowdloan::AccountsPayable` (`max_values`: None, `max_size`: None, mode: `Measured`) fn associate_native_identity() -> Weight { - (Weight::from_parts(117_000_000, 0)) + (Weight::from_parts(96_270_000, 0)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } @@ -292,9 +290,9 @@ impl WeightInfo for () { // Storage: `Crowdloan::AccountsPayable` (r:2 w:2) // Proof: `Crowdloan::AccountsPayable` (`max_values`: None, `max_size`: None, mode: `Measured`) fn change_association_with_relay_keys(x: u32, ) -> Weight { - (Weight::from_parts(27_532_509, 0)) - // Standard Error: 138_004 - .saturating_add((Weight::from_parts(60_668_712, 0)).saturating_mul(x as u64)) + (Weight::from_parts(65_550_833, 0)) + // Standard Error: 101_555 + .saturating_add((Weight::from_parts(51_585_316, 0)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } diff --git a/rollup/runtime/src/weights/pallet_fee_lock.rs b/rollup/runtime/src/weights/pallet_fee_lock.rs index 6461e303c..e78a953c4 100644 --- a/rollup/runtime/src/weights/pallet_fee_lock.rs +++ b/rollup/runtime/src/weights/pallet_fee_lock.rs @@ -19,31 +19,30 @@ //! Autogenerated weights for pallet_fee_lock //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-11-07, STEPS: `2`, REPEAT: 2, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// /home/striker/work/mangata-ws/mangata-node/scripts/..//target/release/rollup-node +// target/release/rollup-node // benchmark // pallet +// -l=info,runtime::collective=warn,xyk=warn // --chain // rollup-local -// --execution -// wasm // --wasm-execution // compiled // --pallet -// pallet_fee_lock +// * // --extrinsic // * // --steps -// 2 +// 50 // --repeat -// 2 -// --output -// ./benchmarks/pallet_fee_lock_weights.rs +// 20 // --template // ./templates/module-weight-template.hbs +// --output +// ./benchmarks/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -77,20 +76,20 @@ impl pallet_fee_lock::WeightInfo for ModuleWeight { // Storage: `FeeLock::UnlockQueueEnd` (r:1 w:1) // Proof: `FeeLock::UnlockQueueEnd` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn process_fee_lock() -> Weight { - (Weight::from_parts(39_182_000, 0)) + (Weight::from_parts(46_960_000, 0)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } // Storage: `Xyk::Pools` (r:2 w:0) // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) fn get_swap_valuation_for_token() -> Weight { - (Weight::from_parts(10_686_000, 0)) + (Weight::from_parts(14_920_000, 0)) .saturating_add(T::DbWeight::get().reads(2 as u64)) } // Storage: `FeeLock::FeeLockMetadata` (r:1 w:1) // Proof: `FeeLock::FeeLockMetadata` (`max_values`: Some(1), `max_size`: Some(438), added: 933, mode: `MaxEncodedLen`) fn update_fee_lock_metadata() -> Weight { - (Weight::from_parts(22_559_000, 0)) + (Weight::from_parts(22_310_000, 0)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -105,7 +104,7 @@ impl pallet_fee_lock::WeightInfo for ModuleWeight { // Storage: `FeeLock::UnlockQueue` (r:1 w:1) // Proof: `FeeLock::UnlockQueue` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) fn unlock_fee() -> Weight { - (Weight::from_parts(39_182_000, 0)) + (Weight::from_parts(46_020_000, 0)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -126,20 +125,20 @@ impl WeightInfo for () { // Storage: `FeeLock::UnlockQueueEnd` (r:1 w:1) // Proof: `FeeLock::UnlockQueueEnd` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn process_fee_lock() -> Weight { - (Weight::from_parts(39_182_000, 0)) + (Weight::from_parts(46_960_000, 0)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } // Storage: `Xyk::Pools` (r:2 w:0) // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) fn get_swap_valuation_for_token() -> Weight { - (Weight::from_parts(10_686_000, 0)) + (Weight::from_parts(14_920_000, 0)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) } // Storage: `FeeLock::FeeLockMetadata` (r:1 w:1) // Proof: `FeeLock::FeeLockMetadata` (`max_values`: Some(1), `max_size`: Some(438), added: 933, mode: `MaxEncodedLen`) fn update_fee_lock_metadata() -> Weight { - (Weight::from_parts(22_559_000, 0)) + (Weight::from_parts(22_310_000, 0)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -154,7 +153,7 @@ impl WeightInfo for () { // Storage: `FeeLock::UnlockQueue` (r:1 w:1) // Proof: `FeeLock::UnlockQueue` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) fn unlock_fee() -> Weight { - (Weight::from_parts(39_182_000, 0)) + (Weight::from_parts(46_020_000, 0)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } diff --git a/rollup/runtime/src/weights/pallet_issuance.rs b/rollup/runtime/src/weights/pallet_issuance.rs index 80133fbb4..df83321e1 100644 --- a/rollup/runtime/src/weights/pallet_issuance.rs +++ b/rollup/runtime/src/weights/pallet_issuance.rs @@ -18,19 +18,17 @@ //! Autogenerated weights for pallet_issuance //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// mangata-kusama -// --execution -// wasm +// rollup-local // --wasm-execution // compiled // --pallet @@ -71,35 +69,35 @@ impl pallet_issuance::WeightInfo for ModuleWeight { // Storage: `Tokens::TotalIssuance` (r:1 w:0) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn init_issuance_config() -> Weight { - (Weight::from_parts(24_910_000, 0)) + (Weight::from_parts(17_810_000, 0)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: `Issuance::IsTGEFinalized` (r:1 w:1) // Proof: `Issuance::IsTGEFinalized` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn finalize_tge() -> Weight { - (Weight::from_parts(14_820_000, 0)) + (Weight::from_parts(9_720_000, 0)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: `Issuance::IsTGEFinalized` (r:1 w:0) // Proof: `Issuance::IsTGEFinalized` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Vesting::Vesting` (r:100 w:100) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:100 w:100) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:100 w:100) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:100 w:100) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Issuance::TGETotal` (r:1 w:1) // Proof: `Issuance::TGETotal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn execute_tge(x: u32, ) -> Weight { - (Weight::from_parts(39_640_002, 0)) - // Standard Error: 225_590 - .saturating_add((Weight::from_parts(84_065_197, 0)).saturating_mul(x as u64)) + (Weight::from_parts(41_367_508, 0)) + // Standard Error: 30_952 + .saturating_add((Weight::from_parts(55_608_672, 0)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().reads((4 as u64).saturating_mul(x as u64))) .saturating_add(T::DbWeight::get().writes(2 as u64)) @@ -116,35 +114,35 @@ impl WeightInfo for () { // Storage: `Tokens::TotalIssuance` (r:1 w:0) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn init_issuance_config() -> Weight { - (Weight::from_parts(24_910_000, 0)) + (Weight::from_parts(17_810_000, 0)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: `Issuance::IsTGEFinalized` (r:1 w:1) // Proof: `Issuance::IsTGEFinalized` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn finalize_tge() -> Weight { - (Weight::from_parts(14_820_000, 0)) + (Weight::from_parts(9_720_000, 0)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: `Issuance::IsTGEFinalized` (r:1 w:0) // Proof: `Issuance::IsTGEFinalized` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Vesting::Vesting` (r:100 w:100) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:100 w:100) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:100 w:100) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:100 w:100) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Issuance::TGETotal` (r:1 w:1) // Proof: `Issuance::TGETotal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn execute_tge(x: u32, ) -> Weight { - (Weight::from_parts(39_640_002, 0)) - // Standard Error: 225_590 - .saturating_add((Weight::from_parts(84_065_197, 0)).saturating_mul(x as u64)) + (Weight::from_parts(41_367_508, 0)) + // Standard Error: 30_952 + .saturating_add((Weight::from_parts(55_608_672, 0)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().reads((4 as u64).saturating_mul(x as u64))) .saturating_add(RocksDbWeight::get().writes(2 as u64)) diff --git a/rollup/runtime/src/weights/pallet_market.rs b/rollup/runtime/src/weights/pallet_market.rs index db7309afc..7ff9c5529 100644 --- a/rollup/runtime/src/weights/pallet_market.rs +++ b/rollup/runtime/src/weights/pallet_market.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_market //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-11-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: @@ -94,7 +94,7 @@ impl pallet_market::WeightInfo for ModuleWeight { // Storage: `Xyk::LiquidityPools` (r:0 w:1) // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) fn create_pool_xyk() -> Weight { - (Weight::from_parts(170_010_000, 0)) + (Weight::from_parts(168_069_000, 0)) .saturating_add(T::DbWeight::get().reads(14 as u64)) .saturating_add(T::DbWeight::get().writes(12 as u64)) } @@ -121,7 +121,7 @@ impl pallet_market::WeightInfo for ModuleWeight { // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) fn mint_liquidity_xyk() -> Weight { - (Weight::from_parts(216_450_000, 0)) + (Weight::from_parts(219_140_000, 0)) .saturating_add(T::DbWeight::get().reads(16 as u64)) .saturating_add(T::DbWeight::get().writes(10 as u64)) } @@ -152,7 +152,7 @@ impl pallet_market::WeightInfo for ModuleWeight { // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) fn mint_liquidity_fixed_amounts_xyk() -> Weight { - (Weight::from_parts(407_209_000, 0)) + (Weight::from_parts(398_450_000, 0)) .saturating_add(T::DbWeight::get().reads(25 as u64)) .saturating_add(T::DbWeight::get().writes(14 as u64)) } @@ -177,7 +177,7 @@ impl pallet_market::WeightInfo for ModuleWeight { // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn mint_liquidity_using_vesting_native_tokens_by_vesting_index_xyk() -> Weight { - (Weight::from_parts(237_820_000, 0)) + (Weight::from_parts(236_580_000, 0)) .saturating_add(T::DbWeight::get().reads(17 as u64)) .saturating_add(T::DbWeight::get().writes(11 as u64)) } @@ -202,7 +202,7 @@ impl pallet_market::WeightInfo for ModuleWeight { // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn mint_liquidity_using_vesting_native_tokens_xyk() -> Weight { - (Weight::from_parts(239_980_000, 0)) + (Weight::from_parts(235_820_000, 0)) .saturating_add(T::DbWeight::get().reads(17 as u64)) .saturating_add(T::DbWeight::get().writes(11 as u64)) } @@ -221,7 +221,7 @@ impl pallet_market::WeightInfo for ModuleWeight { // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn burn_liquidity_xyk() -> Weight { - (Weight::from_parts(153_580_000, 0)) + (Weight::from_parts(150_050_000, 0)) .saturating_add(T::DbWeight::get().reads(12 as u64)) .saturating_add(T::DbWeight::get().writes(7 as u64)) } @@ -242,9 +242,9 @@ impl pallet_market::WeightInfo for ModuleWeight { // Storage: `System::Account` (r:2 w:2) // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn multiswap_asset_xyk(y: u32, ) -> Weight { - (Weight::from_parts(309_150_000, 0)) - // Standard Error: 341_216 - .saturating_add((Weight::from_parts(236_593_363, 0)).saturating_mul(y as u64)) + (Weight::from_parts(301_140_000, 0)) + // Standard Error: 451_112 + .saturating_add((Weight::from_parts(244_981_331, 0)).saturating_mul(y as u64)) .saturating_add(T::DbWeight::get().reads(20 as u64)) .saturating_add(T::DbWeight::get().reads((11 as u64).saturating_mul(y as u64))) .saturating_add(T::DbWeight::get().writes(1 as u64)) @@ -267,9 +267,9 @@ impl pallet_market::WeightInfo for ModuleWeight { // Storage: `System::Account` (r:2 w:2) // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn multiswap_asset_buy_xyk(y: u32, ) -> Weight { - (Weight::from_parts(334_430_000, 0)) - // Standard Error: 468_448 - .saturating_add((Weight::from_parts(255_448_728, 0)).saturating_mul(y as u64)) + (Weight::from_parts(324_330_000, 0)) + // Standard Error: 375_075 + .saturating_add((Weight::from_parts(255_932_380, 0)).saturating_mul(y as u64)) .saturating_add(T::DbWeight::get().reads(20 as u64)) .saturating_add(T::DbWeight::get().reads((11 as u64).saturating_mul(y as u64))) .saturating_add(T::DbWeight::get().writes(1 as u64)) @@ -290,7 +290,7 @@ impl pallet_market::WeightInfo for ModuleWeight { // Storage: `StableSwap::Pools` (r:0 w:1) // Proof: `StableSwap::Pools` (`max_values`: None, `max_size`: Some(66), added: 2541, mode: `MaxEncodedLen`) fn create_pool_sswap() -> Weight { - (Weight::from_parts(173_740_000, 0)) + (Weight::from_parts(168_240_000, 0)) .saturating_add(T::DbWeight::get().reads(12 as u64)) .saturating_add(T::DbWeight::get().writes(10 as u64)) } @@ -315,7 +315,7 @@ impl pallet_market::WeightInfo for ModuleWeight { // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) fn mint_liquidity_sswap() -> Weight { - (Weight::from_parts(215_460_000, 0)) + (Weight::from_parts(211_870_000, 0)) .saturating_add(T::DbWeight::get().reads(15 as u64)) .saturating_add(T::DbWeight::get().writes(9 as u64)) } @@ -342,7 +342,7 @@ impl pallet_market::WeightInfo for ModuleWeight { // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) fn mint_liquidity_fixed_amounts_sswap() -> Weight { - (Weight::from_parts(260_690_000, 0)) + (Weight::from_parts(257_160_000, 0)) .saturating_add(T::DbWeight::get().reads(18 as u64)) .saturating_add(T::DbWeight::get().writes(11 as u64)) } @@ -365,7 +365,7 @@ impl pallet_market::WeightInfo for ModuleWeight { // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn mint_liquidity_using_vesting_native_tokens_by_vesting_index_sswap() -> Weight { - (Weight::from_parts(237_010_000, 0)) + (Weight::from_parts(231_400_000, 0)) .saturating_add(T::DbWeight::get().reads(16 as u64)) .saturating_add(T::DbWeight::get().writes(10 as u64)) } @@ -388,7 +388,7 @@ impl pallet_market::WeightInfo for ModuleWeight { // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn mint_liquidity_using_vesting_native_tokens_sswap() -> Weight { - (Weight::from_parts(235_200_000, 0)) + (Weight::from_parts(230_020_000, 0)) .saturating_add(T::DbWeight::get().reads(16 as u64)) .saturating_add(T::DbWeight::get().writes(10 as u64)) } @@ -405,7 +405,7 @@ impl pallet_market::WeightInfo for ModuleWeight { // Storage: `System::Account` (r:1 w:0) // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn burn_liquidity_sswap() -> Weight { - (Weight::from_parts(125_970_000, 0)) + (Weight::from_parts(127_700_000, 0)) .saturating_add(T::DbWeight::get().reads(11 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } @@ -426,9 +426,9 @@ impl pallet_market::WeightInfo for ModuleWeight { // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn multiswap_asset_sswap(y: u32, ) -> Weight { - (Weight::from_parts(289_970_000, 0)) - // Standard Error: 256_965 - .saturating_add((Weight::from_parts(220_298_290, 0)).saturating_mul(y as u64)) + (Weight::from_parts(285_870_000, 0)) + // Standard Error: 235_063 + .saturating_add((Weight::from_parts(219_219_563, 0)).saturating_mul(y as u64)) .saturating_add(T::DbWeight::get().reads(20 as u64)) .saturating_add(T::DbWeight::get().reads((12 as u64).saturating_mul(y as u64))) .saturating_add(T::DbWeight::get().writes(13 as u64)) @@ -451,9 +451,9 @@ impl pallet_market::WeightInfo for ModuleWeight { // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn multiswap_asset_buy_sswap(y: u32, ) -> Weight { - (Weight::from_parts(331_599_000, 0)) - // Standard Error: 265_694 - .saturating_add((Weight::from_parts(261_837_989, 0)).saturating_mul(y as u64)) + (Weight::from_parts(326_140_000, 0)) + // Standard Error: 277_369 + .saturating_add((Weight::from_parts(254_697_373, 0)).saturating_mul(y as u64)) .saturating_add(T::DbWeight::get().reads(20 as u64)) .saturating_add(T::DbWeight::get().reads((12 as u64).saturating_mul(y as u64))) .saturating_add(T::DbWeight::get().writes(13 as u64)) @@ -482,7 +482,7 @@ impl WeightInfo for () { // Storage: `Xyk::LiquidityPools` (r:0 w:1) // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) fn create_pool_xyk() -> Weight { - (Weight::from_parts(170_010_000, 0)) + (Weight::from_parts(168_069_000, 0)) .saturating_add(RocksDbWeight::get().reads(14 as u64)) .saturating_add(RocksDbWeight::get().writes(12 as u64)) } @@ -509,7 +509,7 @@ impl WeightInfo for () { // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) fn mint_liquidity_xyk() -> Weight { - (Weight::from_parts(216_450_000, 0)) + (Weight::from_parts(219_140_000, 0)) .saturating_add(RocksDbWeight::get().reads(16 as u64)) .saturating_add(RocksDbWeight::get().writes(10 as u64)) } @@ -540,7 +540,7 @@ impl WeightInfo for () { // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) fn mint_liquidity_fixed_amounts_xyk() -> Weight { - (Weight::from_parts(407_209_000, 0)) + (Weight::from_parts(398_450_000, 0)) .saturating_add(RocksDbWeight::get().reads(25 as u64)) .saturating_add(RocksDbWeight::get().writes(14 as u64)) } @@ -565,7 +565,7 @@ impl WeightInfo for () { // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn mint_liquidity_using_vesting_native_tokens_by_vesting_index_xyk() -> Weight { - (Weight::from_parts(237_820_000, 0)) + (Weight::from_parts(236_580_000, 0)) .saturating_add(RocksDbWeight::get().reads(17 as u64)) .saturating_add(RocksDbWeight::get().writes(11 as u64)) } @@ -590,7 +590,7 @@ impl WeightInfo for () { // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn mint_liquidity_using_vesting_native_tokens_xyk() -> Weight { - (Weight::from_parts(239_980_000, 0)) + (Weight::from_parts(235_820_000, 0)) .saturating_add(RocksDbWeight::get().reads(17 as u64)) .saturating_add(RocksDbWeight::get().writes(11 as u64)) } @@ -609,7 +609,7 @@ impl WeightInfo for () { // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn burn_liquidity_xyk() -> Weight { - (Weight::from_parts(153_580_000, 0)) + (Weight::from_parts(150_050_000, 0)) .saturating_add(RocksDbWeight::get().reads(12 as u64)) .saturating_add(RocksDbWeight::get().writes(7 as u64)) } @@ -630,9 +630,9 @@ impl WeightInfo for () { // Storage: `System::Account` (r:2 w:2) // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn multiswap_asset_xyk(y: u32, ) -> Weight { - (Weight::from_parts(309_150_000, 0)) - // Standard Error: 341_216 - .saturating_add((Weight::from_parts(236_593_363, 0)).saturating_mul(y as u64)) + (Weight::from_parts(301_140_000, 0)) + // Standard Error: 451_112 + .saturating_add((Weight::from_parts(244_981_331, 0)).saturating_mul(y as u64)) .saturating_add(RocksDbWeight::get().reads(20 as u64)) .saturating_add(RocksDbWeight::get().reads((11 as u64).saturating_mul(y as u64))) .saturating_add(RocksDbWeight::get().writes(1 as u64)) @@ -655,9 +655,9 @@ impl WeightInfo for () { // Storage: `System::Account` (r:2 w:2) // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn multiswap_asset_buy_xyk(y: u32, ) -> Weight { - (Weight::from_parts(334_430_000, 0)) - // Standard Error: 468_448 - .saturating_add((Weight::from_parts(255_448_728, 0)).saturating_mul(y as u64)) + (Weight::from_parts(324_330_000, 0)) + // Standard Error: 375_075 + .saturating_add((Weight::from_parts(255_932_380, 0)).saturating_mul(y as u64)) .saturating_add(RocksDbWeight::get().reads(20 as u64)) .saturating_add(RocksDbWeight::get().reads((11 as u64).saturating_mul(y as u64))) .saturating_add(RocksDbWeight::get().writes(1 as u64)) @@ -678,7 +678,7 @@ impl WeightInfo for () { // Storage: `StableSwap::Pools` (r:0 w:1) // Proof: `StableSwap::Pools` (`max_values`: None, `max_size`: Some(66), added: 2541, mode: `MaxEncodedLen`) fn create_pool_sswap() -> Weight { - (Weight::from_parts(173_740_000, 0)) + (Weight::from_parts(168_240_000, 0)) .saturating_add(RocksDbWeight::get().reads(12 as u64)) .saturating_add(RocksDbWeight::get().writes(10 as u64)) } @@ -703,7 +703,7 @@ impl WeightInfo for () { // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) fn mint_liquidity_sswap() -> Weight { - (Weight::from_parts(215_460_000, 0)) + (Weight::from_parts(211_870_000, 0)) .saturating_add(RocksDbWeight::get().reads(15 as u64)) .saturating_add(RocksDbWeight::get().writes(9 as u64)) } @@ -730,7 +730,7 @@ impl WeightInfo for () { // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) fn mint_liquidity_fixed_amounts_sswap() -> Weight { - (Weight::from_parts(260_690_000, 0)) + (Weight::from_parts(257_160_000, 0)) .saturating_add(RocksDbWeight::get().reads(18 as u64)) .saturating_add(RocksDbWeight::get().writes(11 as u64)) } @@ -753,7 +753,7 @@ impl WeightInfo for () { // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn mint_liquidity_using_vesting_native_tokens_by_vesting_index_sswap() -> Weight { - (Weight::from_parts(237_010_000, 0)) + (Weight::from_parts(231_400_000, 0)) .saturating_add(RocksDbWeight::get().reads(16 as u64)) .saturating_add(RocksDbWeight::get().writes(10 as u64)) } @@ -776,7 +776,7 @@ impl WeightInfo for () { // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn mint_liquidity_using_vesting_native_tokens_sswap() -> Weight { - (Weight::from_parts(235_200_000, 0)) + (Weight::from_parts(230_020_000, 0)) .saturating_add(RocksDbWeight::get().reads(16 as u64)) .saturating_add(RocksDbWeight::get().writes(10 as u64)) } @@ -793,7 +793,7 @@ impl WeightInfo for () { // Storage: `System::Account` (r:1 w:0) // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn burn_liquidity_sswap() -> Weight { - (Weight::from_parts(125_970_000, 0)) + (Weight::from_parts(127_700_000, 0)) .saturating_add(RocksDbWeight::get().reads(11 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } @@ -814,9 +814,9 @@ impl WeightInfo for () { // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn multiswap_asset_sswap(y: u32, ) -> Weight { - (Weight::from_parts(289_970_000, 0)) - // Standard Error: 256_965 - .saturating_add((Weight::from_parts(220_298_290, 0)).saturating_mul(y as u64)) + (Weight::from_parts(285_870_000, 0)) + // Standard Error: 235_063 + .saturating_add((Weight::from_parts(219_219_563, 0)).saturating_mul(y as u64)) .saturating_add(RocksDbWeight::get().reads(20 as u64)) .saturating_add(RocksDbWeight::get().reads((12 as u64).saturating_mul(y as u64))) .saturating_add(RocksDbWeight::get().writes(13 as u64)) @@ -839,9 +839,9 @@ impl WeightInfo for () { // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn multiswap_asset_buy_sswap(y: u32, ) -> Weight { - (Weight::from_parts(331_599_000, 0)) - // Standard Error: 265_694 - .saturating_add((Weight::from_parts(261_837_989, 0)).saturating_mul(y as u64)) + (Weight::from_parts(326_140_000, 0)) + // Standard Error: 277_369 + .saturating_add((Weight::from_parts(254_697_373, 0)).saturating_mul(y as u64)) .saturating_add(RocksDbWeight::get().reads(20 as u64)) .saturating_add(RocksDbWeight::get().reads((12 as u64).saturating_mul(y as u64))) .saturating_add(RocksDbWeight::get().writes(13 as u64)) diff --git a/rollup/runtime/src/weights/pallet_multipurpose_liquidity.rs b/rollup/runtime/src/weights/pallet_multipurpose_liquidity.rs index b95cc8855..a249e89ef 100644 --- a/rollup/runtime/src/weights/pallet_multipurpose_liquidity.rs +++ b/rollup/runtime/src/weights/pallet_multipurpose_liquidity.rs @@ -18,19 +18,17 @@ //! Autogenerated weights for pallet_multipurpose_liquidity //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// mangata-kusama -// --execution -// wasm +// rollup-local // --wasm-execution // compiled // --pallet @@ -64,34 +62,34 @@ pub trait WeightInfo { pub struct ModuleWeight(PhantomData); impl pallet_multipurpose_liquidity::WeightInfo for ModuleWeight { // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:1) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `MultiPurposeLiquidity::RelockStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::RelockStatus` (`max_values`: None, `max_size`: Some(1845), added: 4320, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::RelockStatus` (`max_values`: None, `max_size`: Some(1849), added: 4324, mode: `MaxEncodedLen`) fn reserve_vesting_liquidity_tokens() -> Weight { - (Weight::from_parts(117_650_000, 0)) + (Weight::from_parts(105_780_000, 0)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } // Storage: `MultiPurposeLiquidity::RelockStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::RelockStatus` (`max_values`: None, `max_size`: Some(1845), added: 4320, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::RelockStatus` (`max_values`: None, `max_size`: Some(1849), added: 4324, mode: `MaxEncodedLen`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:1) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) fn unreserve_and_relock_instance() -> Weight { - (Weight::from_parts(119_580_000, 0)) + (Weight::from_parts(100_320_000, 0)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -100,34 +98,34 @@ impl pallet_multipurpose_liquidity::WeightInfo for Modu // For backwards compatibility and tests impl WeightInfo for () { // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:1) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `MultiPurposeLiquidity::RelockStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::RelockStatus` (`max_values`: None, `max_size`: Some(1845), added: 4320, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::RelockStatus` (`max_values`: None, `max_size`: Some(1849), added: 4324, mode: `MaxEncodedLen`) fn reserve_vesting_liquidity_tokens() -> Weight { - (Weight::from_parts(117_650_000, 0)) + (Weight::from_parts(105_780_000, 0)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } // Storage: `MultiPurposeLiquidity::RelockStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::RelockStatus` (`max_values`: None, `max_size`: Some(1845), added: 4320, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::RelockStatus` (`max_values`: None, `max_size`: Some(1849), added: 4324, mode: `MaxEncodedLen`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:1) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) fn unreserve_and_relock_instance() -> Weight { - (Weight::from_parts(119_580_000, 0)) + (Weight::from_parts(100_320_000, 0)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } diff --git a/rollup/runtime/src/weights/pallet_proof_of_stake.rs b/rollup/runtime/src/weights/pallet_proof_of_stake.rs index f8bf3e354..da3580711 100644 --- a/rollup/runtime/src/weights/pallet_proof_of_stake.rs +++ b/rollup/runtime/src/weights/pallet_proof_of_stake.rs @@ -18,19 +18,17 @@ //! Autogenerated weights for pallet_proof_of_stake //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// mangata-kusama -// --execution -// wasm +// rollup-local // --wasm-execution // compiled // --pallet @@ -74,33 +72,33 @@ impl pallet_proof_of_stake::WeightInfo for ModuleWeight // Storage: `ProofOfStake::RewardsInfo` (r:1 w:1) // Proof: `ProofOfStake::RewardsInfo` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) fn claim_native_rewards() -> Weight { - (Weight::from_parts(91_511_000, 0)) + (Weight::from_parts(80_830_000, 0)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::PromotedPoolRewards` (r:1 w:1) // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn update_pool_promotion() -> Weight { - (Weight::from_parts(24_930_000, 0)) + (Weight::from_parts(20_890_000, 0)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: `ProofOfStake::PromotedPoolRewards` (r:1 w:0) // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::RewardsInfo` (r:1 w:1) // Proof: `ProofOfStake::RewardsInfo` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) fn activate_liquidity_for_native_rewards() -> Weight { - (Weight::from_parts(99_350_000, 0)) + (Weight::from_parts(90_249_000, 0)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -113,26 +111,26 @@ impl pallet_proof_of_stake::WeightInfo for ModuleWeight // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) fn deactivate_liquidity_for_native_rewards() -> Weight { - (Weight::from_parts(93_880_000, 0)) + (Weight::from_parts(80_270_000, 0)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } // Storage: `Xyk::LiquidityAssets` (r:1 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:1 w:0) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:0) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::SchedulesListMetadata` (r:1 w:1) // Proof: `ProofOfStake::SchedulesListMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ProofOfStake::RewardsSchedulesList` (r:1 w:2) @@ -140,16 +138,16 @@ impl pallet_proof_of_stake::WeightInfo for ModuleWeight // Storage: `ProofOfStake::RewardTokensPerPool` (r:0 w:1) // Proof: `ProofOfStake::RewardTokensPerPool` (`max_values`: None, `max_size`: None, mode: `Measured`) fn reward_pool() -> Weight { - (Weight::from_parts(151_500_000, 0)) + (Weight::from_parts(149_310_000, 0)) .saturating_add(T::DbWeight::get().reads(9 as u64)) .saturating_add(T::DbWeight::get().writes(7 as u64)) } // Storage: `ProofOfStake::RewardTokensPerPool` (r:2 w:0) // Proof: `ProofOfStake::RewardTokensPerPool` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::ActivatedLockedLiquidityForSchedules` (r:1 w:1) // Proof: `ProofOfStake::ActivatedLockedLiquidityForSchedules` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `ProofOfStake::ScheduleRewardsPerLiquidity` (r:1 w:0) @@ -161,7 +159,7 @@ impl pallet_proof_of_stake::WeightInfo for ModuleWeight // Storage: `ProofOfStake::TotalActivatedLiquidityForSchedules` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidityForSchedules` (`max_values`: None, `max_size`: None, mode: `Measured`) fn activate_liquidity_for_3rdparty_rewards() -> Weight { - (Weight::from_parts(130_410_000, 0)) + (Weight::from_parts(110_431_000, 0)) .saturating_add(T::DbWeight::get().reads(9 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } @@ -178,13 +176,13 @@ impl pallet_proof_of_stake::WeightInfo for ModuleWeight // Storage: `ProofOfStake::ActivatedLockedLiquidityForSchedules` (r:1 w:1) // Proof: `ProofOfStake::ActivatedLockedLiquidityForSchedules` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::ActivatedNativeRewardsLiq` (r:1 w:1) // Proof: `ProofOfStake::ActivatedNativeRewardsLiq` (`max_values`: None, `max_size`: None, mode: `Measured`) fn deactivate_liquidity_for_3rdparty_rewards() -> Weight { - (Weight::from_parts(137_660_000, 0)) + (Weight::from_parts(118_440_000, 0)) .saturating_add(T::DbWeight::get().reads(11 as u64)) .saturating_add(T::DbWeight::get().writes(7 as u64)) } @@ -199,9 +197,9 @@ impl pallet_proof_of_stake::WeightInfo for ModuleWeight // Storage: `ProofOfStake::RewardsInfoForScheduleRewards` (r:1 w:1) // Proof: `ProofOfStake::RewardsInfoForScheduleRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) fn claim_3rdparty_rewards() -> Weight { - (Weight::from_parts(148_570_000, 0)) + (Weight::from_parts(132_200_000, 0)) .saturating_add(T::DbWeight::get().reads(8 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -214,33 +212,33 @@ impl WeightInfo for () { // Storage: `ProofOfStake::RewardsInfo` (r:1 w:1) // Proof: `ProofOfStake::RewardsInfo` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) fn claim_native_rewards() -> Weight { - (Weight::from_parts(91_511_000, 0)) + (Weight::from_parts(80_830_000, 0)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::PromotedPoolRewards` (r:1 w:1) // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn update_pool_promotion() -> Weight { - (Weight::from_parts(24_930_000, 0)) + (Weight::from_parts(20_890_000, 0)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: `ProofOfStake::PromotedPoolRewards` (r:1 w:0) // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::RewardsInfo` (r:1 w:1) // Proof: `ProofOfStake::RewardsInfo` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) fn activate_liquidity_for_native_rewards() -> Weight { - (Weight::from_parts(99_350_000, 0)) + (Weight::from_parts(90_249_000, 0)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -253,26 +251,26 @@ impl WeightInfo for () { // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) fn deactivate_liquidity_for_native_rewards() -> Weight { - (Weight::from_parts(93_880_000, 0)) + (Weight::from_parts(80_270_000, 0)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } // Storage: `Xyk::LiquidityAssets` (r:1 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:1 w:0) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:0) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::SchedulesListMetadata` (r:1 w:1) // Proof: `ProofOfStake::SchedulesListMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ProofOfStake::RewardsSchedulesList` (r:1 w:2) @@ -280,16 +278,16 @@ impl WeightInfo for () { // Storage: `ProofOfStake::RewardTokensPerPool` (r:0 w:1) // Proof: `ProofOfStake::RewardTokensPerPool` (`max_values`: None, `max_size`: None, mode: `Measured`) fn reward_pool() -> Weight { - (Weight::from_parts(151_500_000, 0)) + (Weight::from_parts(149_310_000, 0)) .saturating_add(RocksDbWeight::get().reads(9 as u64)) .saturating_add(RocksDbWeight::get().writes(7 as u64)) } // Storage: `ProofOfStake::RewardTokensPerPool` (r:2 w:0) // Proof: `ProofOfStake::RewardTokensPerPool` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::ActivatedLockedLiquidityForSchedules` (r:1 w:1) // Proof: `ProofOfStake::ActivatedLockedLiquidityForSchedules` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `ProofOfStake::ScheduleRewardsPerLiquidity` (r:1 w:0) @@ -301,7 +299,7 @@ impl WeightInfo for () { // Storage: `ProofOfStake::TotalActivatedLiquidityForSchedules` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidityForSchedules` (`max_values`: None, `max_size`: None, mode: `Measured`) fn activate_liquidity_for_3rdparty_rewards() -> Weight { - (Weight::from_parts(130_410_000, 0)) + (Weight::from_parts(110_431_000, 0)) .saturating_add(RocksDbWeight::get().reads(9 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } @@ -318,13 +316,13 @@ impl WeightInfo for () { // Storage: `ProofOfStake::ActivatedLockedLiquidityForSchedules` (r:1 w:1) // Proof: `ProofOfStake::ActivatedLockedLiquidityForSchedules` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::ActivatedNativeRewardsLiq` (r:1 w:1) // Proof: `ProofOfStake::ActivatedNativeRewardsLiq` (`max_values`: None, `max_size`: None, mode: `Measured`) fn deactivate_liquidity_for_3rdparty_rewards() -> Weight { - (Weight::from_parts(137_660_000, 0)) + (Weight::from_parts(118_440_000, 0)) .saturating_add(RocksDbWeight::get().reads(11 as u64)) .saturating_add(RocksDbWeight::get().writes(7 as u64)) } @@ -339,9 +337,9 @@ impl WeightInfo for () { // Storage: `ProofOfStake::RewardsInfoForScheduleRewards` (r:1 w:1) // Proof: `ProofOfStake::RewardsInfoForScheduleRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) fn claim_3rdparty_rewards() -> Weight { - (Weight::from_parts(148_570_000, 0)) + (Weight::from_parts(132_200_000, 0)) .saturating_add(RocksDbWeight::get().reads(8 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } diff --git a/rollup/runtime/src/weights/pallet_rolldown.rs b/rollup/runtime/src/weights/pallet_rolldown.rs index 010d7f301..d7c13383d 100644 --- a/rollup/runtime/src/weights/pallet_rolldown.rs +++ b/rollup/runtime/src/weights/pallet_rolldown.rs @@ -19,31 +19,30 @@ //! Autogenerated weights for pallet_rolldown //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-10-29, STEPS: `2`, REPEAT: 2, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// /home/striker/work/mangata-ws/mangata-node/scripts/..//target/release/rollup-node +// target/release/rollup-node // benchmark // pallet +// -l=info,runtime::collective=warn,xyk=warn // --chain // rollup-local -// --execution -// wasm // --wasm-execution // compiled // --pallet -// pallet_rolldown +// * // --extrinsic // * // --steps -// 2 +// 50 // --repeat -// 2 -// --output -// ./benchmarks/pallet_rolldown_weights.rs +// 20 // --template // ./templates/module-weight-template.hbs +// --output +// ./benchmarks/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -69,22 +68,10 @@ pub trait WeightInfo { fn ferry_deposit_unsafe() -> Weight; fn process_deposit() -> Weight; fn process_cancel_resolution() -> Weight; - fn load_next_update_from_execution_queue() -> Weight{ - (Weight::from_parts(22_558_000, 0)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) - } - fn schedule_request_for_execution_if_dispute_period_has_passsed() -> Weight{ - (Weight::from_parts(22_558_000, 0)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) - } - fn maybe_create_batch() -> Weight{ - (Weight::from_parts(22_558_000, 0)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) - } - fn execute_requests_from_execute_queue() -> Weight{ - (Weight::from_parts(22_558_000, 0)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) - } + fn load_next_update_from_execution_queue() -> Weight; + fn schedule_request_for_execution_if_dispute_period_has_passsed() -> Weight; + fn maybe_create_batch() -> Weight; + fn execute_requests_from_execute_queue() -> Weight; } /// Weights for pallet_rolldown using the Mangata node and recommended hardware. @@ -93,7 +80,7 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Storage: `Rolldown::ManualBatchExtraFee` (r:0 w:1) // Proof: `Rolldown::ManualBatchExtraFee` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn set_manual_batch_extra_fee() -> Weight { - (Weight::from_parts(22_558_000, 0)) + (Weight::from_parts(8_090_000, 0)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) @@ -113,7 +100,7 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Storage: `Rolldown::L2RequestsBatch` (r:0 w:1) // Proof: `Rolldown::L2RequestsBatch` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) fn create_batch() -> Weight { - (Weight::from_parts(58_178_000, 0)) + (Weight::from_parts(66_250_000, 0)) .saturating_add(T::DbWeight::get().reads(8 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -126,7 +113,7 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Storage: `Rolldown::L2RequestsBatch` (r:0 w:1) // Proof: `Rolldown::L2RequestsBatch` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) fn force_create_batch() -> Weight { - (Weight::from_parts(28_495_000, 0)) + (Weight::from_parts(29_170_000, 0)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -136,6 +123,8 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Proof: `SequencerStaking::SelectedSequencer` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Rolldown::LastProcessedRequestOnL2` (r:1 w:0) // Proof: `Rolldown::LastProcessedRequestOnL2` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) + // Storage: `Rolldown::DisputePeriod` (r:1 w:0) + // Proof: `Rolldown::DisputePeriod` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) // Storage: `Rolldown::SequencersRights` (r:1 w:1) // Proof: `Rolldown::SequencersRights` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Rolldown::PendingSequencerUpdates` (r:1 w:1) @@ -148,12 +137,14 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Proof: `SequencerStaking::Points` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`) // Storage: `Rolldown::LastUpdateBySequencer` (r:0 w:1) // Proof: `Rolldown::LastUpdateBySequencer` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) + // Storage: `Rolldown::PendingSequencerUpdateContent` (r:0 w:1) + // Proof: `Rolldown::PendingSequencerUpdateContent` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_l2_from_l1(x: u32, ) -> Weight { - (Weight::from_parts(53_903_308, 0)) - // Standard Error: 63_247 - .saturating_add((Weight::from_parts(1_544_095, 0)).saturating_mul(x as u64)) - .saturating_add(T::DbWeight::get().reads(8 as u64)) - .saturating_add(T::DbWeight::get().writes(5 as u64)) + (Weight::from_parts(78_571_518, 0)) + // Standard Error: 3_017 + .saturating_add((Weight::from_parts(2_261_755, 0)).saturating_mul(x as u64)) + .saturating_add(T::DbWeight::get().reads(9 as u64)) + .saturating_add(T::DbWeight::get().writes(6 as u64)) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -161,6 +152,8 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Proof: `SequencerStaking::SelectedSequencer` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Rolldown::LastProcessedRequestOnL2` (r:1 w:0) // Proof: `Rolldown::LastProcessedRequestOnL2` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) + // Storage: `Rolldown::DisputePeriod` (r:1 w:0) + // Proof: `Rolldown::DisputePeriod` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) // Storage: `Rolldown::SequencersRights` (r:1 w:1) // Proof: `Rolldown::SequencersRights` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Rolldown::PendingSequencerUpdates` (r:1 w:1) @@ -173,12 +166,14 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Proof: `SequencerStaking::Points` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`) // Storage: `Rolldown::LastUpdateBySequencer` (r:0 w:1) // Proof: `Rolldown::LastUpdateBySequencer` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) + // Storage: `Rolldown::PendingSequencerUpdateContent` (r:0 w:1) + // Proof: `Rolldown::PendingSequencerUpdateContent` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_l2_from_l1_unsafe(x: u32, ) -> Weight { - (Weight::from_parts(53_063_762, 0)) - // Standard Error: 117_584 - .saturating_add((Weight::from_parts(1_073_368, 0)).saturating_mul(x as u64)) - .saturating_add(T::DbWeight::get().reads(8 as u64)) - .saturating_add(T::DbWeight::get().writes(5 as u64)) + (Weight::from_parts(74_102_411, 0)) + // Standard Error: 3_454 + .saturating_add((Weight::from_parts(1_390_756, 0)).saturating_mul(x as u64)) + .saturating_add(T::DbWeight::get().reads(9 as u64)) + .saturating_add(T::DbWeight::get().writes(6 as u64)) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -190,12 +185,14 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Proof: `Rolldown::LastScheduledUpdateIdInExecutionQueue` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) // Storage: `Rolldown::UpdatesExecutionQueue` (r:0 w:1) // Proof: `Rolldown::UpdatesExecutionQueue` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rolldown::PendingSequencerUpdateContent` (r:0 w:1) + // Proof: `Rolldown::PendingSequencerUpdateContent` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_update_l2_from_l1(x: u32, ) -> Weight { - (Weight::from_parts(20_052_424, 0)) - // Standard Error: 16_144 - .saturating_add((Weight::from_parts(362_787, 0)).saturating_mul(x as u64)) + (Weight::from_parts(30_029_416, 0)) + // Standard Error: 3_059 + .saturating_add((Weight::from_parts(1_346_861, 0)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + .saturating_add(T::DbWeight::get().writes(4 as u64)) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -203,6 +200,8 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Proof: `Rolldown::SequencersRights` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Rolldown::PendingSequencerUpdates` (r:1 w:1) // Proof: `Rolldown::PendingSequencerUpdates` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rolldown::PendingSequencerUpdateContent` (r:1 w:1) + // Proof: `Rolldown::PendingSequencerUpdateContent` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Rolldown::L2OriginRequestId` (r:1 w:1) // Proof: `Rolldown::L2OriginRequestId` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Rolldown::AwaitingCancelResolution` (r:1 w:1) @@ -210,9 +209,9 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Storage: `Rolldown::L2Requests` (r:0 w:1) // Proof: `Rolldown::L2Requests` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_requests_from_l1() -> Weight { - (Weight::from_parts(39_181_000, 0)) - .saturating_add(T::DbWeight::get().reads(5 as u64)) - .saturating_add(T::DbWeight::get().writes(5 as u64)) + (Weight::from_parts(54_269_000, 0)) + .saturating_add(T::DbWeight::get().reads(6 as u64)) + .saturating_add(T::DbWeight::get().writes(6 as u64)) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -223,7 +222,7 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Storage: `Rolldown::SequencersRights` (r:1 w:1) // Proof: `Rolldown::SequencersRights` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_cancel_requests_from_l1() -> Weight { - (Weight::from_parts(26_120_000, 0)) + (Weight::from_parts(30_610_000, 0)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -244,7 +243,7 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Storage: `Rolldown::L2Requests` (r:0 w:1) // Proof: `Rolldown::L2Requests` (`max_values`: None, `max_size`: None, mode: `Measured`) fn withdraw() -> Weight { - (Weight::from_parts(75_988_000, 0)) + (Weight::from_parts(95_260_000, 0)) .saturating_add(T::DbWeight::get().reads(9 as u64)) .saturating_add(T::DbWeight::get().writes(8 as u64)) } @@ -257,7 +256,7 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Storage: `Rolldown::L2Requests` (r:0 w:1) // Proof: `Rolldown::L2Requests` (`max_values`: None, `max_size`: None, mode: `Measured`) fn refund_failed_deposit() -> Weight { - (Weight::from_parts(27_309_000, 0)) + (Weight::from_parts(28_730_000, 0)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -272,7 +271,7 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Storage: `Rolldown::FerriedDeposits` (r:0 w:1) // Proof: `Rolldown::FerriedDeposits` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`) fn ferry_deposit() -> Weight { - (Weight::from_parts(56_991_000, 0)) + (Weight::from_parts(62_060_000, 0)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -287,7 +286,7 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Storage: `Rolldown::FerriedDeposits` (r:0 w:1) // Proof: `Rolldown::FerriedDeposits` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`) fn ferry_deposit_unsafe() -> Weight { - (Weight::from_parts(62_927_000, 0)) + (Weight::from_parts(60_500_000, 0)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -304,7 +303,7 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Storage: `System::Account` (r:1 w:1) // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn process_deposit() -> Weight { - (Weight::from_parts(48_680_000, 0)) + (Weight::from_parts(47_830_000, 0)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -331,10 +330,82 @@ impl pallet_rolldown::WeightInfo for ModuleWeight { // Storage: `SequencerStaking::SelectedSequencer` (r:1 w:1) // Proof: `SequencerStaking::SelectedSequencer` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn process_cancel_resolution() -> Weight { - (Weight::from_parts(97_360_000, 0)) + (Weight::from_parts(124_309_000, 0)) .saturating_add(T::DbWeight::get().reads(12 as u64)) .saturating_add(T::DbWeight::get().writes(9 as u64)) } + // Storage: `Rolldown::UpdatesExecutionQueueNextId` (r:1 w:1) + // Proof: `Rolldown::UpdatesExecutionQueueNextId` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Rolldown::UpdatesExecutionQueue` (r:2 w:0) + // Proof: `Rolldown::UpdatesExecutionQueue` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn load_next_update_from_execution_queue() -> Weight { + (Weight::from_parts(11_780_000, 0)) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: `Rolldown::PendingSequencerUpdates` (r:2 w:1) + // Proof: `Rolldown::PendingSequencerUpdates` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rolldown::DisputePeriod` (r:1 w:0) + // Proof: `Rolldown::DisputePeriod` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) + // Storage: `SequencerStaking::ActiveSequencers` (r:1 w:0) + // Proof: `SequencerStaking::ActiveSequencers` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Rolldown::LastMaintananceMode` (r:1 w:0) + // Proof: `Rolldown::LastMaintananceMode` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Rolldown::MaxAcceptedRequestIdOnl2` (r:1 w:1) + // Proof: `Rolldown::MaxAcceptedRequestIdOnl2` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) + // Storage: `Rolldown::LastScheduledUpdateIdInExecutionQueue` (r:1 w:1) + // Proof: `Rolldown::LastScheduledUpdateIdInExecutionQueue` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Rolldown::UpdatesExecutionQueue` (r:0 w:1) + // Proof: `Rolldown::UpdatesExecutionQueue` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn schedule_request_for_execution_if_dispute_period_has_passsed() -> Weight { + (Weight::from_parts(50_720_000, 0)) + .saturating_add(T::DbWeight::get().reads(7 as u64)) + .saturating_add(T::DbWeight::get().writes(4 as u64)) + } + // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) + // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) + // Storage: `Rolldown::L2OriginRequestId` (r:1 w:0) + // Proof: `Rolldown::L2OriginRequestId` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Rolldown::L2RequestsBatchLast` (r:1 w:1) + // Proof: `Rolldown::L2RequestsBatchLast` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `SequencerStaking::SelectedSequencer` (r:1 w:0) + // Proof: `SequencerStaking::SelectedSequencer` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Rolldown::L2RequestsBatch` (r:0 w:1) + // Proof: `Rolldown::L2RequestsBatch` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + fn maybe_create_batch() -> Weight { + (Weight::from_parts(27_320_000, 0)) + .saturating_add(T::DbWeight::get().reads(4 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) + } + // Storage: `Rolldown::UpdatesExecutionQueueNextId` (r:1 w:0) + // Proof: `Rolldown::UpdatesExecutionQueueNextId` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Rolldown::UpdatesExecutionQueue` (r:1 w:0) + // Proof: `Rolldown::UpdatesExecutionQueue` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rolldown::LastMaintananceMode` (r:1 w:0) + // Proof: `Rolldown::LastMaintananceMode` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Rolldown::PendingSequencerUpdateContent` (r:1 w:0) + // Proof: `Rolldown::PendingSequencerUpdateContent` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rolldown::LastProcessedRequestOnL2` (r:1 w:1) + // Proof: `Rolldown::LastProcessedRequestOnL2` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::L1AssetToId` (r:1 w:1) + // Proof: `AssetRegistry::L1AssetToId` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Storage: `Tokens::NextCurrencyId` (r:1 w:1) + // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:2 w:0) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::Metadata` (r:1 w:1) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) + // Storage: `Rolldown::FerriedDeposits` (r:50 w:0) + // Proof: `Rolldown::FerriedDeposits` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`) + // Storage: `Rolldown::TotalNumberOfDeposits` (r:1 w:1) + // Proof: `Rolldown::TotalNumberOfDeposits` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::IdToL1Asset` (r:0 w:1) + // Proof: `AssetRegistry::IdToL1Asset` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) + fn execute_requests_from_execute_queue() -> Weight { + (Weight::from_parts(4_252_650_000, 0)) + .saturating_add(T::DbWeight::get().reads(61 as u64)) + .saturating_add(T::DbWeight::get().writes(6 as u64)) + } } // For backwards compatibility and tests @@ -342,7 +413,7 @@ impl WeightInfo for () { // Storage: `Rolldown::ManualBatchExtraFee` (r:0 w:1) // Proof: `Rolldown::ManualBatchExtraFee` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn set_manual_batch_extra_fee() -> Weight { - (Weight::from_parts(22_558_000, 0)) + (Weight::from_parts(8_090_000, 0)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) @@ -362,7 +433,7 @@ impl WeightInfo for () { // Storage: `Rolldown::L2RequestsBatch` (r:0 w:1) // Proof: `Rolldown::L2RequestsBatch` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) fn create_batch() -> Weight { - (Weight::from_parts(58_178_000, 0)) + (Weight::from_parts(66_250_000, 0)) .saturating_add(RocksDbWeight::get().reads(8 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -375,7 +446,7 @@ impl WeightInfo for () { // Storage: `Rolldown::L2RequestsBatch` (r:0 w:1) // Proof: `Rolldown::L2RequestsBatch` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) fn force_create_batch() -> Weight { - (Weight::from_parts(28_495_000, 0)) + (Weight::from_parts(29_170_000, 0)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -385,6 +456,8 @@ impl WeightInfo for () { // Proof: `SequencerStaking::SelectedSequencer` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Rolldown::LastProcessedRequestOnL2` (r:1 w:0) // Proof: `Rolldown::LastProcessedRequestOnL2` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) + // Storage: `Rolldown::DisputePeriod` (r:1 w:0) + // Proof: `Rolldown::DisputePeriod` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) // Storage: `Rolldown::SequencersRights` (r:1 w:1) // Proof: `Rolldown::SequencersRights` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Rolldown::PendingSequencerUpdates` (r:1 w:1) @@ -397,12 +470,14 @@ impl WeightInfo for () { // Proof: `SequencerStaking::Points` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`) // Storage: `Rolldown::LastUpdateBySequencer` (r:0 w:1) // Proof: `Rolldown::LastUpdateBySequencer` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) + // Storage: `Rolldown::PendingSequencerUpdateContent` (r:0 w:1) + // Proof: `Rolldown::PendingSequencerUpdateContent` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_l2_from_l1(x: u32, ) -> Weight { - (Weight::from_parts(53_903_308, 0)) - // Standard Error: 63_247 - .saturating_add((Weight::from_parts(1_544_095, 0)).saturating_mul(x as u64)) - .saturating_add(RocksDbWeight::get().reads(8 as u64)) - .saturating_add(RocksDbWeight::get().writes(5 as u64)) + (Weight::from_parts(78_571_518, 0)) + // Standard Error: 3_017 + .saturating_add((Weight::from_parts(2_261_755, 0)).saturating_mul(x as u64)) + .saturating_add(RocksDbWeight::get().reads(9 as u64)) + .saturating_add(RocksDbWeight::get().writes(6 as u64)) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -410,6 +485,8 @@ impl WeightInfo for () { // Proof: `SequencerStaking::SelectedSequencer` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Rolldown::LastProcessedRequestOnL2` (r:1 w:0) // Proof: `Rolldown::LastProcessedRequestOnL2` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) + // Storage: `Rolldown::DisputePeriod` (r:1 w:0) + // Proof: `Rolldown::DisputePeriod` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) // Storage: `Rolldown::SequencersRights` (r:1 w:1) // Proof: `Rolldown::SequencersRights` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Rolldown::PendingSequencerUpdates` (r:1 w:1) @@ -422,12 +499,14 @@ impl WeightInfo for () { // Proof: `SequencerStaking::Points` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`) // Storage: `Rolldown::LastUpdateBySequencer` (r:0 w:1) // Proof: `Rolldown::LastUpdateBySequencer` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`) + // Storage: `Rolldown::PendingSequencerUpdateContent` (r:0 w:1) + // Proof: `Rolldown::PendingSequencerUpdateContent` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_l2_from_l1_unsafe(x: u32, ) -> Weight { - (Weight::from_parts(53_063_762, 0)) - // Standard Error: 117_584 - .saturating_add((Weight::from_parts(1_073_368, 0)).saturating_mul(x as u64)) - .saturating_add(RocksDbWeight::get().reads(8 as u64)) - .saturating_add(RocksDbWeight::get().writes(5 as u64)) + (Weight::from_parts(74_102_411, 0)) + // Standard Error: 3_454 + .saturating_add((Weight::from_parts(1_390_756, 0)).saturating_mul(x as u64)) + .saturating_add(RocksDbWeight::get().reads(9 as u64)) + .saturating_add(RocksDbWeight::get().writes(6 as u64)) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -439,12 +518,14 @@ impl WeightInfo for () { // Proof: `Rolldown::LastScheduledUpdateIdInExecutionQueue` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) // Storage: `Rolldown::UpdatesExecutionQueue` (r:0 w:1) // Proof: `Rolldown::UpdatesExecutionQueue` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rolldown::PendingSequencerUpdateContent` (r:0 w:1) + // Proof: `Rolldown::PendingSequencerUpdateContent` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_update_l2_from_l1(x: u32, ) -> Weight { - (Weight::from_parts(20_052_424, 0)) - // Standard Error: 16_144 - .saturating_add((Weight::from_parts(362_787, 0)).saturating_mul(x as u64)) + (Weight::from_parts(30_029_416, 0)) + // Standard Error: 3_059 + .saturating_add((Weight::from_parts(1_346_861, 0)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) - .saturating_add(RocksDbWeight::get().writes(3 as u64)) + .saturating_add(RocksDbWeight::get().writes(4 as u64)) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -452,6 +533,8 @@ impl WeightInfo for () { // Proof: `Rolldown::SequencersRights` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Rolldown::PendingSequencerUpdates` (r:1 w:1) // Proof: `Rolldown::PendingSequencerUpdates` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rolldown::PendingSequencerUpdateContent` (r:1 w:1) + // Proof: `Rolldown::PendingSequencerUpdateContent` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Rolldown::L2OriginRequestId` (r:1 w:1) // Proof: `Rolldown::L2OriginRequestId` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Rolldown::AwaitingCancelResolution` (r:1 w:1) @@ -459,9 +542,9 @@ impl WeightInfo for () { // Storage: `Rolldown::L2Requests` (r:0 w:1) // Proof: `Rolldown::L2Requests` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_requests_from_l1() -> Weight { - (Weight::from_parts(39_181_000, 0)) - .saturating_add(RocksDbWeight::get().reads(5 as u64)) - .saturating_add(RocksDbWeight::get().writes(5 as u64)) + (Weight::from_parts(54_269_000, 0)) + .saturating_add(RocksDbWeight::get().reads(6 as u64)) + .saturating_add(RocksDbWeight::get().writes(6 as u64)) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) @@ -472,7 +555,7 @@ impl WeightInfo for () { // Storage: `Rolldown::SequencersRights` (r:1 w:1) // Proof: `Rolldown::SequencersRights` (`max_values`: None, `max_size`: None, mode: `Measured`) fn force_cancel_requests_from_l1() -> Weight { - (Weight::from_parts(26_120_000, 0)) + (Weight::from_parts(30_610_000, 0)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -493,7 +576,7 @@ impl WeightInfo for () { // Storage: `Rolldown::L2Requests` (r:0 w:1) // Proof: `Rolldown::L2Requests` (`max_values`: None, `max_size`: None, mode: `Measured`) fn withdraw() -> Weight { - (Weight::from_parts(75_988_000, 0)) + (Weight::from_parts(95_260_000, 0)) .saturating_add(RocksDbWeight::get().reads(9 as u64)) .saturating_add(RocksDbWeight::get().writes(8 as u64)) } @@ -506,7 +589,7 @@ impl WeightInfo for () { // Storage: `Rolldown::L2Requests` (r:0 w:1) // Proof: `Rolldown::L2Requests` (`max_values`: None, `max_size`: None, mode: `Measured`) fn refund_failed_deposit() -> Weight { - (Weight::from_parts(27_309_000, 0)) + (Weight::from_parts(28_730_000, 0)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } @@ -521,7 +604,7 @@ impl WeightInfo for () { // Storage: `Rolldown::FerriedDeposits` (r:0 w:1) // Proof: `Rolldown::FerriedDeposits` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`) fn ferry_deposit() -> Weight { - (Weight::from_parts(56_991_000, 0)) + (Weight::from_parts(62_060_000, 0)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -536,7 +619,7 @@ impl WeightInfo for () { // Storage: `Rolldown::FerriedDeposits` (r:0 w:1) // Proof: `Rolldown::FerriedDeposits` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`) fn ferry_deposit_unsafe() -> Weight { - (Weight::from_parts(62_927_000, 0)) + (Weight::from_parts(60_500_000, 0)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -553,7 +636,7 @@ impl WeightInfo for () { // Storage: `System::Account` (r:1 w:1) // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn process_deposit() -> Weight { - (Weight::from_parts(48_680_000, 0)) + (Weight::from_parts(47_830_000, 0)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } @@ -580,8 +663,80 @@ impl WeightInfo for () { // Storage: `SequencerStaking::SelectedSequencer` (r:1 w:1) // Proof: `SequencerStaking::SelectedSequencer` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn process_cancel_resolution() -> Weight { - (Weight::from_parts(97_360_000, 0)) + (Weight::from_parts(124_309_000, 0)) .saturating_add(RocksDbWeight::get().reads(12 as u64)) .saturating_add(RocksDbWeight::get().writes(9 as u64)) } + // Storage: `Rolldown::UpdatesExecutionQueueNextId` (r:1 w:1) + // Proof: `Rolldown::UpdatesExecutionQueueNextId` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Rolldown::UpdatesExecutionQueue` (r:2 w:0) + // Proof: `Rolldown::UpdatesExecutionQueue` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn load_next_update_from_execution_queue() -> Weight { + (Weight::from_parts(11_780_000, 0)) + .saturating_add(RocksDbWeight::get().reads(3 as u64)) + .saturating_add(RocksDbWeight::get().writes(1 as u64)) + } + // Storage: `Rolldown::PendingSequencerUpdates` (r:2 w:1) + // Proof: `Rolldown::PendingSequencerUpdates` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rolldown::DisputePeriod` (r:1 w:0) + // Proof: `Rolldown::DisputePeriod` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) + // Storage: `SequencerStaking::ActiveSequencers` (r:1 w:0) + // Proof: `SequencerStaking::ActiveSequencers` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Rolldown::LastMaintananceMode` (r:1 w:0) + // Proof: `Rolldown::LastMaintananceMode` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Rolldown::MaxAcceptedRequestIdOnl2` (r:1 w:1) + // Proof: `Rolldown::MaxAcceptedRequestIdOnl2` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) + // Storage: `Rolldown::LastScheduledUpdateIdInExecutionQueue` (r:1 w:1) + // Proof: `Rolldown::LastScheduledUpdateIdInExecutionQueue` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Rolldown::UpdatesExecutionQueue` (r:0 w:1) + // Proof: `Rolldown::UpdatesExecutionQueue` (`max_values`: None, `max_size`: None, mode: `Measured`) + fn schedule_request_for_execution_if_dispute_period_has_passsed() -> Weight { + (Weight::from_parts(50_720_000, 0)) + .saturating_add(RocksDbWeight::get().reads(7 as u64)) + .saturating_add(RocksDbWeight::get().writes(4 as u64)) + } + // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) + // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) + // Storage: `Rolldown::L2OriginRequestId` (r:1 w:0) + // Proof: `Rolldown::L2OriginRequestId` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Rolldown::L2RequestsBatchLast` (r:1 w:1) + // Proof: `Rolldown::L2RequestsBatchLast` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `SequencerStaking::SelectedSequencer` (r:1 w:0) + // Proof: `SequencerStaking::SelectedSequencer` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Rolldown::L2RequestsBatch` (r:0 w:1) + // Proof: `Rolldown::L2RequestsBatch` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`) + fn maybe_create_batch() -> Weight { + (Weight::from_parts(27_320_000, 0)) + .saturating_add(RocksDbWeight::get().reads(4 as u64)) + .saturating_add(RocksDbWeight::get().writes(2 as u64)) + } + // Storage: `Rolldown::UpdatesExecutionQueueNextId` (r:1 w:0) + // Proof: `Rolldown::UpdatesExecutionQueueNextId` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Rolldown::UpdatesExecutionQueue` (r:1 w:0) + // Proof: `Rolldown::UpdatesExecutionQueue` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rolldown::LastMaintananceMode` (r:1 w:0) + // Proof: `Rolldown::LastMaintananceMode` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Rolldown::PendingSequencerUpdateContent` (r:1 w:0) + // Proof: `Rolldown::PendingSequencerUpdateContent` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rolldown::LastProcessedRequestOnL2` (r:1 w:1) + // Proof: `Rolldown::LastProcessedRequestOnL2` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::L1AssetToId` (r:1 w:1) + // Proof: `AssetRegistry::L1AssetToId` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Storage: `Tokens::NextCurrencyId` (r:1 w:1) + // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:2 w:0) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::Metadata` (r:1 w:1) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) + // Storage: `Rolldown::FerriedDeposits` (r:50 w:0) + // Proof: `Rolldown::FerriedDeposits` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`) + // Storage: `Rolldown::TotalNumberOfDeposits` (r:1 w:1) + // Proof: `Rolldown::TotalNumberOfDeposits` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::IdToL1Asset` (r:0 w:1) + // Proof: `AssetRegistry::IdToL1Asset` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`) + fn execute_requests_from_execute_queue() -> Weight { + (Weight::from_parts(4_252_650_000, 0)) + .saturating_add(RocksDbWeight::get().reads(61 as u64)) + .saturating_add(RocksDbWeight::get().writes(6 as u64)) + } } diff --git a/rollup/runtime/src/weights/pallet_session.rs b/rollup/runtime/src/weights/pallet_session.rs index 3c2f5c1c6..b2e250e7a 100644 --- a/rollup/runtime/src/weights/pallet_session.rs +++ b/rollup/runtime/src/weights/pallet_session.rs @@ -18,19 +18,17 @@ //! Autogenerated weights for pallet_session //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// mangata-kusama -// --execution -// wasm +// rollup-local // --wasm-execution // compiled // --pallet @@ -65,21 +63,21 @@ pub struct ModuleWeight(PhantomData); impl pallet_session::WeightInfo for ModuleWeight { // Storage: `Session::NextKeys` (r:1 w:1) // Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`) - // Storage: `Session::KeyOwner` (r:1 w:1) + // Storage: `Session::KeyOwner` (r:2 w:2) // Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_keys() -> Weight { - (Weight::from_parts(28_131_000, 0)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + (Weight::from_parts(31_880_000, 0)) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: `Session::NextKeys` (r:1 w:1) // Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`) - // Storage: `Session::KeyOwner` (r:0 w:1) + // Storage: `Session::KeyOwner` (r:0 w:2) // Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) fn purge_keys() -> Weight { - (Weight::from_parts(17_660_000, 0)) + (Weight::from_parts(22_130_000, 0)) .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + .saturating_add(T::DbWeight::get().writes(3 as u64)) } } @@ -87,20 +85,20 @@ impl pallet_session::WeightInfo for ModuleWeight { impl WeightInfo for () { // Storage: `Session::NextKeys` (r:1 w:1) // Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`) - // Storage: `Session::KeyOwner` (r:1 w:1) + // Storage: `Session::KeyOwner` (r:2 w:2) // Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_keys() -> Weight { - (Weight::from_parts(28_131_000, 0)) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) - .saturating_add(RocksDbWeight::get().writes(2 as u64)) + (Weight::from_parts(31_880_000, 0)) + .saturating_add(RocksDbWeight::get().reads(3 as u64)) + .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: `Session::NextKeys` (r:1 w:1) // Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`) - // Storage: `Session::KeyOwner` (r:0 w:1) + // Storage: `Session::KeyOwner` (r:0 w:2) // Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) fn purge_keys() -> Weight { - (Weight::from_parts(17_660_000, 0)) + (Weight::from_parts(22_130_000, 0)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) - .saturating_add(RocksDbWeight::get().writes(2 as u64)) + .saturating_add(RocksDbWeight::get().writes(3 as u64)) } } diff --git a/rollup/runtime/src/weights/pallet_timestamp.rs b/rollup/runtime/src/weights/pallet_timestamp.rs index c67bec412..e8b5dd7bb 100644 --- a/rollup/runtime/src/weights/pallet_timestamp.rs +++ b/rollup/runtime/src/weights/pallet_timestamp.rs @@ -18,19 +18,17 @@ //! Autogenerated weights for pallet_timestamp //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// mangata-kusama -// --execution -// wasm +// rollup-local // --wasm-execution // compiled // --pallet @@ -66,12 +64,12 @@ impl pallet_timestamp::WeightInfo for ModuleWeight { // Storage: `Timestamp::Now` (r:1 w:1) // Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) fn set() -> Weight { - (Weight::from_parts(10_280_000, 0)) + (Weight::from_parts(7_200_000, 0)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } fn on_finalize() -> Weight { - (Weight::from_parts(5_510_000, 0)) + (Weight::from_parts(4_560_000, 0)) } } @@ -80,11 +78,11 @@ impl WeightInfo for () { // Storage: `Timestamp::Now` (r:1 w:1) // Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) fn set() -> Weight { - (Weight::from_parts(10_280_000, 0)) + (Weight::from_parts(7_200_000, 0)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } fn on_finalize() -> Weight { - (Weight::from_parts(5_510_000, 0)) + (Weight::from_parts(4_560_000, 0)) } } diff --git a/rollup/runtime/src/weights/pallet_treasury.rs b/rollup/runtime/src/weights/pallet_treasury.rs index 8d3f06fdf..6dba165df 100644 --- a/rollup/runtime/src/weights/pallet_treasury.rs +++ b/rollup/runtime/src/weights/pallet_treasury.rs @@ -18,19 +18,17 @@ //! Autogenerated weights for pallet_treasury //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// mangata-kusama -// --execution -// wasm +// rollup-local // --wasm-execution // compiled // --pallet @@ -71,140 +69,214 @@ pub trait WeightInfo { /// Weights for pallet_treasury using the Mangata node and recommended hardware. pub struct ModuleWeight(PhantomData); impl pallet_treasury::WeightInfo for ModuleWeight { - fn spend() -> Weight { - (Weight::from_parts(520_000, 0)) + // Storage: `Treasury::ProposalCount` (r:1 w:1) + // Proof: `Treasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `Treasury::Approvals` (r:1 w:1) + // Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) + // Storage: `Treasury::Proposals` (r:0 w:1) + // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`) + fn spend_local() -> Weight { + (Weight::from_parts(17_190_000, 0)) + .saturating_add(T::DbWeight::get().reads(2 as u64)) + .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Treasury::ProposalCount` (r:1 w:1) // Proof: `Treasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `Treasury::Proposals` (r:0 w:1) - // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`) fn propose_spend() -> Weight { - (Weight::from_parts(44_931_000, 0)) + (Weight::from_parts(34_730_000, 0)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: `Treasury::Proposals` (r:1 w:1) - // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn reject_proposal() -> Weight { - (Weight::from_parts(47_551_000, 0)) + (Weight::from_parts(39_850_000, 0)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: `Treasury::Proposals` (r:1 w:0) - // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`) // Storage: `Treasury::Approvals` (r:1 w:1) // Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) fn approve_proposal(p: u32, ) -> Weight { - (Weight::from_parts(18_608_202, 0)) - // Standard Error: 1_870 - .saturating_add((Weight::from_parts(69_054, 0)).saturating_mul(p as u64)) + (Weight::from_parts(20_024_689, 0)) + // Standard Error: 4_399 + .saturating_add((Weight::from_parts(95_197, 0)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: `Treasury::Approvals` (r:1 w:1) // Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) fn remove_approval() -> Weight { - (Weight::from_parts(12_130_000, 0)) + (Weight::from_parts(9_640_000, 0)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: `Tokens::Accounts` (r:1 w:0) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Treasury::Deactivated` (r:1 w:0) // Proof: `Treasury::Deactivated` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) // Storage: `Treasury::Approvals` (r:1 w:1) // Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) - // Storage: `Treasury::Proposals` (r:100 w:0) - // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Storage: `Treasury::Proposals` (r:99 w:0) + // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn on_initialize_proposals(p: u32, ) -> Weight { - (Weight::from_parts(37_540_256, 0)) - // Standard Error: 17_041 - .saturating_add((Weight::from_parts(4_191_639, 0)).saturating_mul(p as u64)) + (Weight::from_parts(30_956_321, 0)) + // Standard Error: 12_905 + .saturating_add((Weight::from_parts(4_212_972, 0)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(p as u64))) .saturating_add(T::DbWeight::get().writes(1 as u64)) } - - fn spend_local() -> sp_weights::Weight { Weight::from_parts(0, 0) } - fn payout() -> sp_weights::Weight { Weight::from_parts(0, 0) } - fn check_status() -> sp_weights::Weight { Weight::from_parts(0, 0) } - fn void_spend() -> sp_weights::Weight { Weight::from_parts(0, 0) } + // Storage: `Treasury::SpendCount` (r:1 w:1) + // Proof: `Treasury::SpendCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `Treasury::Spends` (r:0 w:1) + // Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`) + fn spend() -> Weight { + (Weight::from_parts(15_480_000, 0)) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) + } + // Storage: `Treasury::Spends` (r:1 w:1) + // Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:2 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + fn payout() -> Weight { + (Weight::from_parts(57_680_000, 0)) + .saturating_add(T::DbWeight::get().reads(5 as u64)) + .saturating_add(T::DbWeight::get().writes(4 as u64)) + } + // Storage: `Treasury::Spends` (r:1 w:1) + // Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`) + fn check_status() -> Weight { + (Weight::from_parts(18_130_000, 0)) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: `Treasury::Spends` (r:1 w:1) + // Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`) + fn void_spend() -> Weight { + (Weight::from_parts(16_020_000, 0)) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } } // For backwards compatibility and tests impl WeightInfo for () { - fn spend() -> Weight { - (Weight::from_parts(520_000, 0)) + // Storage: `Treasury::ProposalCount` (r:1 w:1) + // Proof: `Treasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `Treasury::Approvals` (r:1 w:1) + // Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) + // Storage: `Treasury::Proposals` (r:0 w:1) + // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`) + fn spend_local() -> Weight { + (Weight::from_parts(17_190_000, 0)) + .saturating_add(RocksDbWeight::get().reads(2 as u64)) + .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Treasury::ProposalCount` (r:1 w:1) // Proof: `Treasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `Treasury::Proposals` (r:0 w:1) - // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`) fn propose_spend() -> Weight { - (Weight::from_parts(44_931_000, 0)) + (Weight::from_parts(34_730_000, 0)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: `Treasury::Proposals` (r:1 w:1) - // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn reject_proposal() -> Weight { - (Weight::from_parts(47_551_000, 0)) + (Weight::from_parts(39_850_000, 0)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: `Treasury::Proposals` (r:1 w:0) - // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`) // Storage: `Treasury::Approvals` (r:1 w:1) // Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) fn approve_proposal(p: u32, ) -> Weight { - (Weight::from_parts(18_608_202, 0)) - // Standard Error: 1_870 - .saturating_add((Weight::from_parts(69_054, 0)).saturating_mul(p as u64)) + (Weight::from_parts(20_024_689, 0)) + // Standard Error: 4_399 + .saturating_add((Weight::from_parts(95_197, 0)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: `Treasury::Approvals` (r:1 w:1) // Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) fn remove_approval() -> Weight { - (Weight::from_parts(12_130_000, 0)) + (Weight::from_parts(9_640_000, 0)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: `Tokens::Accounts` (r:1 w:0) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Treasury::Deactivated` (r:1 w:0) // Proof: `Treasury::Deactivated` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) // Storage: `Treasury::Approvals` (r:1 w:1) // Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) - // Storage: `Treasury::Proposals` (r:100 w:0) - // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Storage: `Treasury::Proposals` (r:99 w:0) + // Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn on_initialize_proposals(p: u32, ) -> Weight { - (Weight::from_parts(37_540_256, 0)) - // Standard Error: 17_041 - .saturating_add((Weight::from_parts(4_191_639, 0)).saturating_mul(p as u64)) + (Weight::from_parts(30_956_321, 0)) + // Standard Error: 12_905 + .saturating_add((Weight::from_parts(4_212_972, 0)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(p as u64))) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } - - fn spend_local() -> sp_weights::Weight { Weight::from_parts(0, 0) } - fn payout() -> sp_weights::Weight { Weight::from_parts(0, 0) } - fn check_status() -> sp_weights::Weight { Weight::from_parts(0, 0) } - fn void_spend() -> sp_weights::Weight { Weight::from_parts(0, 0) } + // Storage: `Treasury::SpendCount` (r:1 w:1) + // Proof: `Treasury::SpendCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `Treasury::Spends` (r:0 w:1) + // Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`) + fn spend() -> Weight { + (Weight::from_parts(15_480_000, 0)) + .saturating_add(RocksDbWeight::get().reads(1 as u64)) + .saturating_add(RocksDbWeight::get().writes(2 as u64)) + } + // Storage: `Treasury::Spends` (r:1 w:1) + // Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:2 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + fn payout() -> Weight { + (Weight::from_parts(57_680_000, 0)) + .saturating_add(RocksDbWeight::get().reads(5 as u64)) + .saturating_add(RocksDbWeight::get().writes(4 as u64)) + } + // Storage: `Treasury::Spends` (r:1 w:1) + // Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`) + fn check_status() -> Weight { + (Weight::from_parts(18_130_000, 0)) + .saturating_add(RocksDbWeight::get().reads(1 as u64)) + .saturating_add(RocksDbWeight::get().writes(1 as u64)) + } + // Storage: `Treasury::Spends` (r:1 w:1) + // Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`) + fn void_spend() -> Weight { + (Weight::from_parts(16_020_000, 0)) + .saturating_add(RocksDbWeight::get().reads(1 as u64)) + .saturating_add(RocksDbWeight::get().writes(1 as u64)) + } } diff --git a/rollup/runtime/src/weights/pallet_utility_mangata.rs b/rollup/runtime/src/weights/pallet_utility_mangata.rs index c31a1f2e6..02bc323a1 100644 --- a/rollup/runtime/src/weights/pallet_utility_mangata.rs +++ b/rollup/runtime/src/weights/pallet_utility_mangata.rs @@ -18,19 +18,17 @@ //! Autogenerated weights for pallet_utility_mangata //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// mangata-kusama -// --execution -// wasm +// rollup-local // --wasm-execution // compiled // --pallet @@ -67,49 +65,49 @@ pub trait WeightInfo { pub struct ModuleWeight(PhantomData); impl pallet_utility_mangata::WeightInfo for ModuleWeight { fn batch(c: u32, ) -> Weight { - (Weight::from_parts(87_630_925, 0)) - // Standard Error: 17_705 - .saturating_add((Weight::from_parts(9_400_385, 0)).saturating_mul(c as u64)) + (Weight::from_parts(20_172_126, 0)) + // Standard Error: 2_496 + .saturating_add((Weight::from_parts(4_622_316, 0)).saturating_mul(c as u64)) } fn as_derivative() -> Weight { - (Weight::from_parts(8_570_000, 0)) + (Weight::from_parts(7_500_000, 0)) } fn batch_all(c: u32, ) -> Weight { - (Weight::from_parts(1_329_615, 0)) - // Standard Error: 18_555 - .saturating_add((Weight::from_parts(10_026_010, 0)).saturating_mul(c as u64)) + (Weight::from_parts(28_349_372, 0)) + // Standard Error: 2_569 + .saturating_add((Weight::from_parts(5_008_372, 0)).saturating_mul(c as u64)) } fn dispatch_as() -> Weight { - (Weight::from_parts(16_320_000, 0)) + (Weight::from_parts(10_910_000, 0)) } fn force_batch(c: u32, ) -> Weight { - (Weight::from_parts(11_910_000, 0)) - // Standard Error: 12_145 - .saturating_add((Weight::from_parts(9_695_484, 0)).saturating_mul(c as u64)) + (Weight::from_parts(34_255_181, 0)) + // Standard Error: 3_663 + .saturating_add((Weight::from_parts(4_596_415, 0)).saturating_mul(c as u64)) } } // For backwards compatibility and tests impl WeightInfo for () { fn batch(c: u32, ) -> Weight { - (Weight::from_parts(87_630_925, 0)) - // Standard Error: 17_705 - .saturating_add((Weight::from_parts(9_400_385, 0)).saturating_mul(c as u64)) + (Weight::from_parts(20_172_126, 0)) + // Standard Error: 2_496 + .saturating_add((Weight::from_parts(4_622_316, 0)).saturating_mul(c as u64)) } fn as_derivative() -> Weight { - (Weight::from_parts(8_570_000, 0)) + (Weight::from_parts(7_500_000, 0)) } fn batch_all(c: u32, ) -> Weight { - (Weight::from_parts(1_329_615, 0)) - // Standard Error: 18_555 - .saturating_add((Weight::from_parts(10_026_010, 0)).saturating_mul(c as u64)) + (Weight::from_parts(28_349_372, 0)) + // Standard Error: 2_569 + .saturating_add((Weight::from_parts(5_008_372, 0)).saturating_mul(c as u64)) } fn dispatch_as() -> Weight { - (Weight::from_parts(16_320_000, 0)) + (Weight::from_parts(10_910_000, 0)) } fn force_batch(c: u32, ) -> Weight { - (Weight::from_parts(11_910_000, 0)) - // Standard Error: 12_145 - .saturating_add((Weight::from_parts(9_695_484, 0)).saturating_mul(c as u64)) + (Weight::from_parts(34_255_181, 0)) + // Standard Error: 3_663 + .saturating_add((Weight::from_parts(4_596_415, 0)).saturating_mul(c as u64)) } } diff --git a/rollup/runtime/src/weights/pallet_vesting_mangata.rs b/rollup/runtime/src/weights/pallet_vesting_mangata.rs index 0fc0bf9d6..5aa0ccfd9 100644 --- a/rollup/runtime/src/weights/pallet_vesting_mangata.rs +++ b/rollup/runtime/src/weights/pallet_vesting_mangata.rs @@ -18,19 +18,17 @@ //! Autogenerated weights for pallet_vesting_mangata //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// mangata-kusama -// --execution -// wasm +// rollup-local // --wasm-execution // compiled // --pallet @@ -63,212 +61,203 @@ pub trait WeightInfo { fn force_vested_transfer(l: u32, s: u32, ) -> Weight; fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight; fn unlocking_merge_schedules(l: u32, s: u32, ) -> Weight; - fn force_remove_vesting_schedule(l: u32, s: u32, ) -> Weight; } /// Weights for pallet_vesting_mangata using the Mangata node and recommended hardware. pub struct ModuleWeight(PhantomData); impl pallet_vesting_mangata::WeightInfo for ModuleWeight { // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) fn vest_locked(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(48_427_927, 0)) - // Standard Error: 8_514 - .saturating_add((Weight::from_parts(185_409, 0)).saturating_mul(s as u64)) + (Weight::from_parts(48_790_361, 0)) + // Standard Error: 6_465 + .saturating_add((Weight::from_parts(129_444, 0)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:1) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) fn vest_unlocked(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(65_301_532, 0)) - // Standard Error: 6_745 - .saturating_add((Weight::from_parts(53_074, 0)).saturating_mul(s as u64)) + (Weight::from_parts(58_308_969, 0)) + // Standard Error: 5_599 + .saturating_add((Weight::from_parts(63_862, 0)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) fn vest_other_locked(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(49_635_157, 0)) - // Standard Error: 9_592 - .saturating_add((Weight::from_parts(168_802, 0)).saturating_mul(s as u64)) + (Weight::from_parts(48_645_506, 0)) + // Standard Error: 5_906 + .saturating_add((Weight::from_parts(130_885, 0)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:1) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn vest_other_unlocked(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(67_351_274, 0)) - // Standard Error: 7_411 - .saturating_add((Weight::from_parts(84_577, 0)).saturating_mul(s as u64)) + (Weight::from_parts(57_649_149, 0)) + // Standard Error: 7_493 + .saturating_add((Weight::from_parts(93_628, 0)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:0) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) fn force_vested_transfer(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(88_063_629, 0)) - // Standard Error: 14_579 - .saturating_add((Weight::from_parts(210_310, 0)).saturating_mul(s as u64)) + (Weight::from_parts(76_379_944, 0)) + // Standard Error: 8_498 + .saturating_add((Weight::from_parts(213_964, 0)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) fn not_unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(50_762_808, 0)) - // Standard Error: 8_663 - .saturating_add((Weight::from_parts(163_040, 0)).saturating_mul(s as u64)) + (Weight::from_parts(48_430_012, 0)) + // Standard Error: 7_536 + .saturating_add((Weight::from_parts(152_659, 0)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) fn unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(49_779_765, 0)) - // Standard Error: 13_870 - .saturating_add((Weight::from_parts(262_141, 0)).saturating_mul(s as u64)) + (Weight::from_parts(48_230_930, 0)) + // Standard Error: 7_453 + .saturating_add((Weight::from_parts(179_511, 0)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } - - fn force_remove_vesting_schedule(l: u32, s: u32, ) -> Weight { - Weight::from_parts(0, 0) - } } // For backwards compatibility and tests impl WeightInfo for () { // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) fn vest_locked(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(48_427_927, 0)) - // Standard Error: 8_514 - .saturating_add((Weight::from_parts(185_409, 0)).saturating_mul(s as u64)) + (Weight::from_parts(48_790_361, 0)) + // Standard Error: 6_465 + .saturating_add((Weight::from_parts(129_444, 0)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:1) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) fn vest_unlocked(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(65_301_532, 0)) - // Standard Error: 6_745 - .saturating_add((Weight::from_parts(53_074, 0)).saturating_mul(s as u64)) + (Weight::from_parts(58_308_969, 0)) + // Standard Error: 5_599 + .saturating_add((Weight::from_parts(63_862, 0)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) fn vest_other_locked(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(49_635_157, 0)) - // Standard Error: 9_592 - .saturating_add((Weight::from_parts(168_802, 0)).saturating_mul(s as u64)) + (Weight::from_parts(48_645_506, 0)) + // Standard Error: 5_906 + .saturating_add((Weight::from_parts(130_885, 0)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:1) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn vest_other_unlocked(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(67_351_274, 0)) - // Standard Error: 7_411 - .saturating_add((Weight::from_parts(84_577, 0)).saturating_mul(s as u64)) + (Weight::from_parts(57_649_149, 0)) + // Standard Error: 7_493 + .saturating_add((Weight::from_parts(93_628, 0)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:0) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) fn force_vested_transfer(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(88_063_629, 0)) - // Standard Error: 14_579 - .saturating_add((Weight::from_parts(210_310, 0)).saturating_mul(s as u64)) + (Weight::from_parts(76_379_944, 0)) + // Standard Error: 8_498 + .saturating_add((Weight::from_parts(213_964, 0)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) fn not_unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(50_762_808, 0)) - // Standard Error: 8_663 - .saturating_add((Weight::from_parts(163_040, 0)).saturating_mul(s as u64)) + (Weight::from_parts(48_430_012, 0)) + // Standard Error: 7_536 + .saturating_add((Weight::from_parts(152_659, 0)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) fn unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(49_779_765, 0)) - // Standard Error: 13_870 - .saturating_add((Weight::from_parts(262_141, 0)).saturating_mul(s as u64)) + (Weight::from_parts(48_230_930, 0)) + // Standard Error: 7_453 + .saturating_add((Weight::from_parts(179_511, 0)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } - - fn force_remove_vesting_schedule(l: u32, s: u32, ) -> Weight { - Weight::from_parts(0, 0) - } } diff --git a/rollup/runtime/src/weights/pallet_xyk.rs b/rollup/runtime/src/weights/pallet_xyk.rs index 6f6cd53d7..c28167568 100644 --- a/rollup/runtime/src/weights/pallet_xyk.rs +++ b/rollup/runtime/src/weights/pallet_xyk.rs @@ -18,19 +18,17 @@ //! Autogenerated weights for pallet_xyk //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// mangata-kusama -// --execution -// wasm +// rollup-local // --wasm-execution // compiled // --pallet @@ -72,168 +70,174 @@ pub trait WeightInfo { pub struct ModuleWeight(PhantomData); impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: `AssetRegistry::Metadata` (r:3 w:1) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) - // Storage: `Bootstrap::ActivePair` (r:1 w:0) - // Proof: `Bootstrap::ActivePair` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) + // Storage: `Bootstrap::BootstrapSchedule` (r:1 w:0) + // Proof: `Bootstrap::BootstrapSchedule` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Xyk::Pools` (r:2 w:1) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:5 w:5) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) // Storage: `Tokens::NextCurrencyId` (r:1 w:1) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:0 w:1) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityPools` (r:0 w:1) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) fn create_pool() -> Weight { - (Weight::from_parts(188_230_000, 0)) + (Weight::from_parts(158_080_000, 0)) .saturating_add(T::DbWeight::get().reads(14 as u64)) .saturating_add(T::DbWeight::get().writes(12 as u64)) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) // Storage: `AssetRegistry::Metadata` (r:2 w:0) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:1 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:0) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:3 w:1) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:6 w:6) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:2 w:2) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + // Storage: `Xyk::TotalNumberOfSwaps` (r:1 w:1) + // Proof: `Xyk::TotalNumberOfSwaps` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn sell_asset() -> Weight { - (Weight::from_parts(239_380_000, 0)) - .saturating_add(T::DbWeight::get().reads(16 as u64)) - .saturating_add(T::DbWeight::get().writes(9 as u64)) + (Weight::from_parts(195_830_000, 0)) + .saturating_add(T::DbWeight::get().reads(17 as u64)) + .saturating_add(T::DbWeight::get().writes(10 as u64)) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:99 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:100 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `AssetRegistry::Metadata` (r:100 w:0) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:297 w:198) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:400 w:400) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:2 w:2) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + // Storage: `Xyk::TotalNumberOfSwaps` (r:1 w:1) + // Proof: `Xyk::TotalNumberOfSwaps` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn multiswap_sell_asset(x: u32, ) -> Weight { - (Weight::from_parts(627_720_000, 0)) - // Standard Error: 509_553 - .saturating_add((Weight::from_parts(272_818_905, 0)).saturating_mul(x as u64)) - .saturating_add(T::DbWeight::get().reads(29 as u64)) + (Weight::from_parts(553_810_000, 0)) + // Standard Error: 468_521 + .saturating_add((Weight::from_parts(231_123_831, 0)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads((10 as u64).saturating_mul(x as u64))) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) .saturating_add(T::DbWeight::get().writes((6 as u64).saturating_mul(x as u64))) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) // Storage: `AssetRegistry::Metadata` (r:2 w:0) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:2 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:0) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:4 w:1) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:6 w:6) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:2 w:2) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + // Storage: `Xyk::TotalNumberOfSwaps` (r:1 w:1) + // Proof: `Xyk::TotalNumberOfSwaps` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn buy_asset() -> Weight { - (Weight::from_parts(235_869_000, 0)) - .saturating_add(T::DbWeight::get().reads(18 as u64)) - .saturating_add(T::DbWeight::get().writes(9 as u64)) + (Weight::from_parts(208_920_000, 0)) + .saturating_add(T::DbWeight::get().reads(19 as u64)) + .saturating_add(T::DbWeight::get().writes(10 as u64)) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) // Storage: `AssetRegistry::Metadata` (r:100 w:0) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:99 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:100 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:297 w:198) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:400 w:400) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:2 w:2) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + // Storage: `Xyk::TotalNumberOfSwaps` (r:1 w:1) + // Proof: `Xyk::TotalNumberOfSwaps` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn multiswap_buy_asset(x: u32, ) -> Weight { - (Weight::from_parts(651_260_000, 0)) - // Standard Error: 536_937 - .saturating_add((Weight::from_parts(287_282_771, 0)).saturating_mul(x as u64)) - .saturating_add(T::DbWeight::get().reads(29 as u64)) + (Weight::from_parts(610_590_000, 0)) + // Standard Error: 2_732_423 + .saturating_add((Weight::from_parts(261_025_951, 0)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads((10 as u64).saturating_mul(x as u64))) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) .saturating_add(T::DbWeight::get().writes((6 as u64).saturating_mul(x as u64))) } // Storage: `AssetRegistry::Metadata` (r:2 w:0) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:1 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:1 w:1) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:5 w:5) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::PromotedPoolRewards` (r:1 w:0) // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::RewardsInfo` (r:1 w:1) // Proof: `ProofOfStake::RewardsInfo` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) fn mint_liquidity() -> Weight { - (Weight::from_parts(224_910_000, 0)) + (Weight::from_parts(210_530_000, 0)) .saturating_add(T::DbWeight::get().reads(15 as u64)) .saturating_add(T::DbWeight::get().writes(10 as u64)) } // Storage: `Xyk::LiquidityAssets` (r:1 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::PromotedPoolRewards` (r:1 w:0) // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Vesting::Vesting` (r:2 w:2) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:2 w:2) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:5 w:5) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:1 w:1) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn mint_liquidity_using_vesting_native_tokens() -> Weight { - (Weight::from_parts(277_789_000, 0)) + (Weight::from_parts(237_829_000, 0)) .saturating_add(T::DbWeight::get().reads(14 as u64)) .saturating_add(T::DbWeight::get().writes(11 as u64)) } // Storage: `AssetRegistry::Metadata` (r:2 w:0) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:1 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:1 w:1) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:5 w:5) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::PromotedPoolRewards` (r:1 w:0) // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ProofOfStake::RewardsInfo` (r:1 w:1) @@ -245,63 +249,63 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn burn_liquidity() -> Weight { - (Weight::from_parts(206_760_000, 0)) + (Weight::from_parts(197_420_000, 0)) .saturating_add(T::DbWeight::get().reads(15 as u64)) .saturating_add(T::DbWeight::get().writes(10 as u64)) } // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `AssetRegistry::Metadata` (r:2 w:0) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:2 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:4 w:1) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:7 w:7) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:2 w:2) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::PromotedPoolRewards` (r:1 w:0) // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn provide_liquidity_with_conversion() -> Weight { - (Weight::from_parts(365_410_000, 0)) + (Weight::from_parts(334_630_000, 0)) .saturating_add(T::DbWeight::get().reads(22 as u64)) .saturating_add(T::DbWeight::get().writes(11 as u64)) } // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `AssetRegistry::Metadata` (r:2 w:0) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::PromotedPoolRewards` (r:1 w:0) // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ProofOfStake::RewardsInfo` (r:1 w:1) // Proof: `ProofOfStake::RewardsInfo` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Tokens::Accounts` (r:8 w:8) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:2 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:2 w:2) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:2 w:1) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:2 w:2) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) fn compound_rewards() -> Weight { - (Weight::from_parts(557_650_000, 0)) + (Weight::from_parts(461_670_000, 0)) .saturating_add(T::DbWeight::get().reads(25 as u64)) .saturating_add(T::DbWeight::get().writes(16 as u64)) } @@ -310,168 +314,174 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // For backwards compatibility and tests impl WeightInfo for () { // Storage: `AssetRegistry::Metadata` (r:3 w:1) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) - // Storage: `Bootstrap::ActivePair` (r:1 w:0) - // Proof: `Bootstrap::ActivePair` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) + // Storage: `Bootstrap::BootstrapSchedule` (r:1 w:0) + // Proof: `Bootstrap::BootstrapSchedule` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Xyk::Pools` (r:2 w:1) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:5 w:5) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) // Storage: `Tokens::NextCurrencyId` (r:1 w:1) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:0 w:1) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityPools` (r:0 w:1) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) fn create_pool() -> Weight { - (Weight::from_parts(188_230_000, 0)) + (Weight::from_parts(158_080_000, 0)) .saturating_add(RocksDbWeight::get().reads(14 as u64)) .saturating_add(RocksDbWeight::get().writes(12 as u64)) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) // Storage: `AssetRegistry::Metadata` (r:2 w:0) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:1 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:0) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:3 w:1) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:6 w:6) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:2 w:2) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + // Storage: `Xyk::TotalNumberOfSwaps` (r:1 w:1) + // Proof: `Xyk::TotalNumberOfSwaps` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn sell_asset() -> Weight { - (Weight::from_parts(239_380_000, 0)) - .saturating_add(RocksDbWeight::get().reads(16 as u64)) - .saturating_add(RocksDbWeight::get().writes(9 as u64)) + (Weight::from_parts(195_830_000, 0)) + .saturating_add(RocksDbWeight::get().reads(17 as u64)) + .saturating_add(RocksDbWeight::get().writes(10 as u64)) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:99 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:100 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `AssetRegistry::Metadata` (r:100 w:0) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:297 w:198) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:400 w:400) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:2 w:2) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + // Storage: `Xyk::TotalNumberOfSwaps` (r:1 w:1) + // Proof: `Xyk::TotalNumberOfSwaps` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn multiswap_sell_asset(x: u32, ) -> Weight { - (Weight::from_parts(627_720_000, 0)) - // Standard Error: 509_553 - .saturating_add((Weight::from_parts(272_818_905, 0)).saturating_mul(x as u64)) - .saturating_add(RocksDbWeight::get().reads(29 as u64)) + (Weight::from_parts(553_810_000, 0)) + // Standard Error: 468_521 + .saturating_add((Weight::from_parts(231_123_831, 0)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads((10 as u64).saturating_mul(x as u64))) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) + .saturating_add(RocksDbWeight::get().writes(2 as u64)) .saturating_add(RocksDbWeight::get().writes((6 as u64).saturating_mul(x as u64))) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) // Storage: `AssetRegistry::Metadata` (r:2 w:0) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:2 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:0) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:4 w:1) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:6 w:6) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:2 w:2) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + // Storage: `Xyk::TotalNumberOfSwaps` (r:1 w:1) + // Proof: `Xyk::TotalNumberOfSwaps` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn buy_asset() -> Weight { - (Weight::from_parts(235_869_000, 0)) - .saturating_add(RocksDbWeight::get().reads(18 as u64)) - .saturating_add(RocksDbWeight::get().writes(9 as u64)) + (Weight::from_parts(208_920_000, 0)) + .saturating_add(RocksDbWeight::get().reads(19 as u64)) + .saturating_add(RocksDbWeight::get().writes(10 as u64)) } // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) // Storage: `AssetRegistry::Metadata` (r:100 w:0) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:99 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:100 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:297 w:198) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:400 w:400) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:2 w:2) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + // Storage: `Xyk::TotalNumberOfSwaps` (r:1 w:1) + // Proof: `Xyk::TotalNumberOfSwaps` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn multiswap_buy_asset(x: u32, ) -> Weight { - (Weight::from_parts(651_260_000, 0)) - // Standard Error: 536_937 - .saturating_add((Weight::from_parts(287_282_771, 0)).saturating_mul(x as u64)) - .saturating_add(RocksDbWeight::get().reads(29 as u64)) + (Weight::from_parts(610_590_000, 0)) + // Standard Error: 2_732_423 + .saturating_add((Weight::from_parts(261_025_951, 0)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads((10 as u64).saturating_mul(x as u64))) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) + .saturating_add(RocksDbWeight::get().writes(2 as u64)) .saturating_add(RocksDbWeight::get().writes((6 as u64).saturating_mul(x as u64))) } // Storage: `AssetRegistry::Metadata` (r:2 w:0) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:1 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:1 w:1) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:5 w:5) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::PromotedPoolRewards` (r:1 w:0) // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::RewardsInfo` (r:1 w:1) // Proof: `ProofOfStake::RewardsInfo` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) fn mint_liquidity() -> Weight { - (Weight::from_parts(224_910_000, 0)) + (Weight::from_parts(210_530_000, 0)) .saturating_add(RocksDbWeight::get().reads(15 as u64)) .saturating_add(RocksDbWeight::get().writes(10 as u64)) } // Storage: `Xyk::LiquidityAssets` (r:1 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::PromotedPoolRewards` (r:1 w:0) // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Vesting::Vesting` (r:2 w:2) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:2 w:2) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:5 w:5) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:1 w:1) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn mint_liquidity_using_vesting_native_tokens() -> Weight { - (Weight::from_parts(277_789_000, 0)) + (Weight::from_parts(237_829_000, 0)) .saturating_add(RocksDbWeight::get().reads(14 as u64)) .saturating_add(RocksDbWeight::get().writes(11 as u64)) } // Storage: `AssetRegistry::Metadata` (r:2 w:0) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:1 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:1 w:1) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:5 w:5) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::PromotedPoolRewards` (r:1 w:0) // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ProofOfStake::RewardsInfo` (r:1 w:1) @@ -483,63 +493,63 @@ impl WeightInfo for () { // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) fn burn_liquidity() -> Weight { - (Weight::from_parts(206_760_000, 0)) + (Weight::from_parts(197_420_000, 0)) .saturating_add(RocksDbWeight::get().reads(15 as u64)) .saturating_add(RocksDbWeight::get().writes(10 as u64)) } // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `AssetRegistry::Metadata` (r:2 w:0) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:2 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:4 w:1) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:7 w:7) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:2 w:2) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::PromotedPoolRewards` (r:1 w:0) // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn provide_liquidity_with_conversion() -> Weight { - (Weight::from_parts(365_410_000, 0)) + (Weight::from_parts(334_630_000, 0)) .saturating_add(RocksDbWeight::get().reads(22 as u64)) .saturating_add(RocksDbWeight::get().writes(11 as u64)) } // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `AssetRegistry::Metadata` (r:2 w:0) - // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(756), added: 3231, mode: `MaxEncodedLen`) + // Proof: `AssetRegistry::Metadata` (`max_values`: None, `max_size`: Some(153), added: 2628, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::PromotedPoolRewards` (r:1 w:0) // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ProofOfStake::RewardsInfo` (r:1 w:1) // Proof: `ProofOfStake::RewardsInfo` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Tokens::Accounts` (r:8 w:8) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Xyk::LiquidityAssets` (r:2 w:0) - // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityAssets` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:2 w:2) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:2 w:1) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Maintenance::MaintenanceStatus` (r:1 w:0) // Proof: `Maintenance::MaintenanceStatus` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:2 w:2) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) // Storage: `Tokens::NextCurrencyId` (r:1 w:0) // Proof: `Tokens::NextCurrencyId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:1 w:1) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) fn compound_rewards() -> Weight { - (Weight::from_parts(557_650_000, 0)) + (Weight::from_parts(461_670_000, 0)) .saturating_add(RocksDbWeight::get().reads(25 as u64)) .saturating_add(RocksDbWeight::get().writes(16 as u64)) } diff --git a/rollup/runtime/src/weights/parachain_staking.rs b/rollup/runtime/src/weights/parachain_staking.rs index b63ad811a..37d4bc87b 100644 --- a/rollup/runtime/src/weights/parachain_staking.rs +++ b/rollup/runtime/src/weights/parachain_staking.rs @@ -18,19 +18,17 @@ //! Autogenerated weights for parachain_staking //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 +//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 // Executed Command: -// target/release/mangata-node +// target/release/rollup-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// mangata-kusama -// --execution -// wasm +// rollup-local // --wasm-execution // compiled // --pallet @@ -99,14 +97,14 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::TotalSelected` (r:1 w:1) // Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_total_selected() -> Weight { - (Weight::from_parts(18_240_000, 0)) + (Weight::from_parts(12_320_000, 0)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: `ParachainStaking::CollatorCommission` (r:1 w:1) // Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_collator_commission() -> Weight { - (Weight::from_parts(18_140_000, 0)) + (Weight::from_parts(12_351_000, 0)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -119,25 +117,25 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::StakingLiquidityTokens` (r:1 w:0) // Proof: `ParachainStaking::StakingLiquidityTokens` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:1 w:0) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:0) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) fn join_candidates(x: u32, y: u32, ) -> Weight { - (Weight::from_parts(117_053_879, 0)) - // Standard Error: 7_446 - .saturating_add((Weight::from_parts(142_269, 0)).saturating_mul(x as u64)) - // Standard Error: 7_356 - .saturating_add((Weight::from_parts(208_459, 0)).saturating_mul(y as u64)) + (Weight::from_parts(116_564_834, 0)) + // Standard Error: 16_473 + .saturating_add((Weight::from_parts(213_562, 0)).saturating_mul(x as u64)) + // Standard Error: 16_273 + .saturating_add((Weight::from_parts(283_611, 0)).saturating_mul(y as u64)) .saturating_add(T::DbWeight::get().reads(11 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -148,9 +146,9 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn schedule_leave_candidates(x: u32, ) -> Weight { - (Weight::from_parts(37_952_996, 0)) - // Standard Error: 2_861 - .saturating_add((Weight::from_parts(97_664, 0)).saturating_mul(x as u64)) + (Weight::from_parts(31_889_184, 0)) + // Standard Error: 5_233 + .saturating_add((Weight::from_parts(190_865, 0)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -159,9 +157,9 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:30 w:30) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:30 w:30) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::DelegatorState` (r:29 w:29) // Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::CandidateAggregator` (r:1 w:0) @@ -169,9 +167,9 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute_leave_candidates(x: u32, ) -> Weight { - (Weight::from_parts(78_861_262, 0)) - // Standard Error: 107_452 - .saturating_add((Weight::from_parts(30_047_808, 0)).saturating_mul(x as u64)) + (Weight::from_parts(102_215_060, 0)) + // Standard Error: 203_935 + .saturating_add((Weight::from_parts(24_857_739, 0)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(x as u64))) .saturating_add(T::DbWeight::get().writes(1 as u64)) @@ -182,9 +180,9 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn cancel_leave_candidates(x: u32, ) -> Weight { - (Weight::from_parts(35_957_664, 0)) - // Standard Error: 2_682 - .saturating_add((Weight::from_parts(90_614, 0)).saturating_mul(x as u64)) + (Weight::from_parts(30_887_318, 0)) + // Standard Error: 4_124 + .saturating_add((Weight::from_parts(137_216, 0)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -195,7 +193,7 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn go_offline() -> Weight { - (Weight::from_parts(34_300_000, 0)) + (Weight::from_parts(30_860_000, 0)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -206,35 +204,35 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn go_online() -> Weight { - (Weight::from_parts(34_580_000, 0)) + (Weight::from_parts(30_280_000, 0)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: `ParachainStaking::CandidateState` (r:1 w:1) // Proof: `ParachainStaking::CandidateState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:0) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:0) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn schedule_candidate_bond_more() -> Weight { - (Weight::from_parts(49_480_000, 0)) + (Weight::from_parts(47_650_000, 0)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: `ParachainStaking::CandidateState` (r:1 w:1) // Proof: `ParachainStaking::CandidateState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:1 w:0) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:0) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn schedule_candidate_bond_less() -> Weight { - (Weight::from_parts(52_750_000, 0)) + (Weight::from_parts(49_030_000, 0)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -243,15 +241,15 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn execute_candidate_bond_more() -> Weight { - (Weight::from_parts(94_970_000, 0)) + (Weight::from_parts(92_090_000, 0)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -260,29 +258,29 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn execute_candidate_bond_less() -> Weight { - (Weight::from_parts(101_731_000, 0)) + (Weight::from_parts(77_700_000, 0)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } // Storage: `ParachainStaking::CandidateState` (r:1 w:1) // Proof: `ParachainStaking::CandidateState` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_candidate_bond_more() -> Weight { - (Weight::from_parts(28_020_000, 0)) + (Weight::from_parts(24_720_000, 0)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: `ParachainStaking::CandidateState` (r:1 w:1) // Proof: `ParachainStaking::CandidateState` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_candidate_bond_less() -> Weight { - (Weight::from_parts(26_969_000, 0)) + (Weight::from_parts(24_040_000, 0)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -293,25 +291,25 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::DelegatorState` (r:1 w:1) // Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:1 w:0) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:0) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) fn delegate(x: u32, y: u32, ) -> Weight { - (Weight::from_parts(119_400_015, 0)) - // Standard Error: 19_692 - .saturating_add((Weight::from_parts(211_488, 0)).saturating_mul(x as u64)) - // Standard Error: 19_029 - .saturating_add((Weight::from_parts(310_487, 0)).saturating_mul(y as u64)) + (Weight::from_parts(105_936_341, 0)) + // Standard Error: 22_237 + .saturating_add((Weight::from_parts(491_007, 0)).saturating_mul(x as u64)) + // Standard Error: 21_489 + .saturating_add((Weight::from_parts(440_176, 0)).saturating_mul(y as u64)) .saturating_add(T::DbWeight::get().reads(10 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } @@ -320,7 +318,7 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn schedule_leave_delegators() -> Weight { - (Weight::from_parts(29_970_000, 0)) + (Weight::from_parts(25_450_000, 0)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -331,17 +329,17 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::CandidateState` (r:29 w:29) // Proof: `ParachainStaking::CandidateState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute_leave_delegators(x: u32, ) -> Weight { - (Weight::from_parts(30_138_059, 0)) - // Standard Error: 116_246 - .saturating_add((Weight::from_parts(37_661_084, 0)).saturating_mul(x as u64)) + (Weight::from_parts(51_574_939, 0)) + // Standard Error: 41_324 + .saturating_add((Weight::from_parts(27_903_261, 0)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(x as u64))) .saturating_add(T::DbWeight::get().writes(4 as u64)) @@ -350,7 +348,7 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::DelegatorState` (r:1 w:1) // Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_leave_delegators() -> Weight { - (Weight::from_parts(28_770_000, 0)) + (Weight::from_parts(24_570_000, 0)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -359,20 +357,20 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn schedule_revoke_delegation() -> Weight { - (Weight::from_parts(33_140_000, 0)) + (Weight::from_parts(26_329_000, 0)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: `ParachainStaking::DelegatorState` (r:1 w:1) // Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:0) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:0) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn schedule_delegator_bond_more() -> Weight { - (Weight::from_parts(55_590_000, 0)) + (Weight::from_parts(47_440_000, 0)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -381,7 +379,7 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn schedule_delegator_bond_less() -> Weight { - (Weight::from_parts(33_310_000, 0)) + (Weight::from_parts(26_290_000, 0)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -392,15 +390,15 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::CandidateState` (r:1 w:1) // Proof: `ParachainStaking::CandidateState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute_revoke_delegation() -> Weight { - (Weight::from_parts(120_020_000, 0)) + (Weight::from_parts(111_760_000, 0)) .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } @@ -411,15 +409,15 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::CandidateState` (r:1 w:1) // Proof: `ParachainStaking::CandidateState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute_delegator_bond_more() -> Weight { - (Weight::from_parts(118_400_000, 0)) + (Weight::from_parts(117_260_000, 0)) .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } @@ -430,56 +428,56 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::CandidateState` (r:1 w:1) // Proof: `ParachainStaking::CandidateState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute_delegator_bond_less() -> Weight { - (Weight::from_parts(119_180_000, 0)) + (Weight::from_parts(106_450_000, 0)) .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } // Storage: `ParachainStaking::DelegatorState` (r:1 w:1) // Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_revoke_delegation() -> Weight { - (Weight::from_parts(27_810_000, 0)) + (Weight::from_parts(25_840_000, 0)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: `ParachainStaking::DelegatorState` (r:1 w:1) // Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_delegator_bond_more() -> Weight { - (Weight::from_parts(35_100_000, 0)) + (Weight::from_parts(43_620_000, 0)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: `ParachainStaking::DelegatorState` (r:1 w:1) // Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_delegator_bond_less() -> Weight { - (Weight::from_parts(40_170_000, 0)) + (Weight::from_parts(45_260_000, 0)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::StakingLiquidityTokens` (r:1 w:1) // Proof: `ParachainStaking::StakingLiquidityTokens` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn add_staking_liquidity_token(x: u32, ) -> Weight { - (Weight::from_parts(25_681_172, 0)) - // Standard Error: 3_287 - .saturating_add((Weight::from_parts(160_557, 0)).saturating_mul(x as u64)) + (Weight::from_parts(27_991_165, 0)) + // Standard Error: 6_623 + .saturating_add((Weight::from_parts(211_946, 0)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: `ParachainStaking::StakingLiquidityTokens` (r:1 w:1) // Proof: `ParachainStaking::StakingLiquidityTokens` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn remove_staking_liquidity_token(x: u32, ) -> Weight { - (Weight::from_parts(18_485_384, 0)) - // Standard Error: 2_633 - .saturating_add((Weight::from_parts(148_333, 0)).saturating_mul(x as u64)) + (Weight::from_parts(18_590_480, 0)) + // Standard Error: 5_707 + .saturating_add((Weight::from_parts(165_805, 0)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -492,7 +490,7 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::CandidateAggregator` (r:1 w:1) // Proof: `ParachainStaking::CandidateAggregator` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn aggregator_update_metadata() -> Weight { - (Weight::from_parts(1_637_999_000, 0)) + (Weight::from_parts(1_355_640_000, 0)) .saturating_add(T::DbWeight::get().reads(102 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -503,36 +501,36 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `ParachainStaking::AggregatorMetadata` (r:2 w:2) // Proof: `ParachainStaking::AggregatorMetadata` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_candidate_aggregator() -> Weight { - (Weight::from_parts(106_940_000, 0)) + (Weight::from_parts(112_310_000, 0)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: `ParachainStaking::RoundCollatorRewardInfo` (r:2 w:1) // Proof: `ParachainStaking::RoundCollatorRewardInfo` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Tokens::Accounts` (r:32 w:32) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:32 w:31) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn payout_collator_rewards() -> Weight { - (Weight::from_parts(1_382_470_000, 0)) + (Weight::from_parts(949_290_000, 0)) .saturating_add(T::DbWeight::get().reads(66 as u64)) .saturating_add(T::DbWeight::get().writes(64 as u64)) } // Storage: `ParachainStaking::RoundCollatorRewardInfo` (r:1 w:1) // Proof: `ParachainStaking::RoundCollatorRewardInfo` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:2 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn payout_delegator_reward() -> Weight { - (Weight::from_parts(76_060_000, 0)) + (Weight::from_parts(65_790_000, 0)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn passive_session_change() -> Weight { - (Weight::from_parts(7_870_000, 0)) + (Weight::from_parts(5_770_000, 0)) .saturating_add(T::DbWeight::get().reads(1 as u64)) } // Storage: `ParachainStaking::Round` (r:1 w:1) @@ -557,12 +555,14 @@ impl parachain_staking::WeightInfo for ModuleWeight // Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::CollatorCommission` (r:1 w:0) // Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `SequencerStaking::Points` (r:1 w:0) + // Proof: `SequencerStaking::Points` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::StakingLiquidityTokens` (r:1 w:1) // Proof: `ParachainStaking::StakingLiquidityTokens` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Xyk::LiquidityPools` (r:100 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:100 w:0) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:101 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:0) @@ -579,12 +579,22 @@ impl parachain_staking::WeightInfo for ModuleWeight // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:100 w:0) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) - // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:3 w:3) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Session::NextKeys` (r:51 w:0) // Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Aura::Authorities` (r:1 w:0) // Proof: `Aura::Authorities` (`max_values`: Some(1), `max_size`: Some(3200004), added: 3200499, mode: `MaxEncodedLen`) + // Storage: `Grandpa::Stalled` (r:1 w:0) + // Proof: `Grandpa::Stalled` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + // Storage: `Grandpa::PendingChange` (r:1 w:0) + // Proof: `Grandpa::PendingChange` (`max_values`: Some(1), `max_size`: Some(1294), added: 1789, mode: `MaxEncodedLen`) + // Storage: `Grandpa::CurrentSetId` (r:1 w:0) + // Proof: `Grandpa::CurrentSetId` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + // Storage: `SequencerStaking::CurrentRound` (r:0 w:1) + // Proof: `SequencerStaking::CurrentRound` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `Grandpa::SetIdSession` (r:0 w:1) + // Proof: `Grandpa::SetIdSession` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1) // Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::RoundCollatorRewardInfo` (r:0 w:51) @@ -592,16 +602,16 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: `Session::Validators` (r:0 w:1) // Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn active_session_change(x: u32, y: u32, z: u32, ) -> Weight { - (Weight::from_parts(1_680_554_785, 0)) - // Standard Error: 111_252 - .saturating_add((Weight::from_parts(19_982_292, 0)).saturating_mul(x as u64)) - // Standard Error: 228_151 - .saturating_add((Weight::from_parts(7_042_416, 0)).saturating_mul(y as u64)) - // Standard Error: 395_185 - .saturating_add((Weight::from_parts(36_984_074, 0)).saturating_mul(z as u64)) - .saturating_add(T::DbWeight::get().reads(224 as u64)) + (Weight::from_parts(1_840_795_663, 0)) + // Standard Error: 237_951 + .saturating_add((Weight::from_parts(19_017_290, 0)).saturating_mul(x as u64)) + // Standard Error: 487_980 + .saturating_add((Weight::from_parts(4_274_143, 0)).saturating_mul(y as u64)) + // Standard Error: 845_240 + .saturating_add((Weight::from_parts(35_696_789, 0)).saturating_mul(z as u64)) + .saturating_add(T::DbWeight::get().reads(229 as u64)) .saturating_add(T::DbWeight::get().reads((4 as u64).saturating_mul(x as u64))) - .saturating_add(T::DbWeight::get().writes(219 as u64)) + .saturating_add(T::DbWeight::get().writes(222 as u64)) } } @@ -610,14 +620,14 @@ impl WeightInfo for () { // Storage: `ParachainStaking::TotalSelected` (r:1 w:1) // Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_total_selected() -> Weight { - (Weight::from_parts(18_240_000, 0)) + (Weight::from_parts(12_320_000, 0)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: `ParachainStaking::CollatorCommission` (r:1 w:1) // Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn set_collator_commission() -> Weight { - (Weight::from_parts(18_140_000, 0)) + (Weight::from_parts(12_351_000, 0)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -630,25 +640,25 @@ impl WeightInfo for () { // Storage: `ParachainStaking::StakingLiquidityTokens` (r:1 w:0) // Proof: `ParachainStaking::StakingLiquidityTokens` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:1 w:0) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:0) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) fn join_candidates(x: u32, y: u32, ) -> Weight { - (Weight::from_parts(117_053_879, 0)) - // Standard Error: 7_446 - .saturating_add((Weight::from_parts(142_269, 0)).saturating_mul(x as u64)) - // Standard Error: 7_356 - .saturating_add((Weight::from_parts(208_459, 0)).saturating_mul(y as u64)) + (Weight::from_parts(116_564_834, 0)) + // Standard Error: 16_473 + .saturating_add((Weight::from_parts(213_562, 0)).saturating_mul(x as u64)) + // Standard Error: 16_273 + .saturating_add((Weight::from_parts(283_611, 0)).saturating_mul(y as u64)) .saturating_add(RocksDbWeight::get().reads(11 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } @@ -659,9 +669,9 @@ impl WeightInfo for () { // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn schedule_leave_candidates(x: u32, ) -> Weight { - (Weight::from_parts(37_952_996, 0)) - // Standard Error: 2_861 - .saturating_add((Weight::from_parts(97_664, 0)).saturating_mul(x as u64)) + (Weight::from_parts(31_889_184, 0)) + // Standard Error: 5_233 + .saturating_add((Weight::from_parts(190_865, 0)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -670,9 +680,9 @@ impl WeightInfo for () { // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:30 w:30) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:30 w:30) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::DelegatorState` (r:29 w:29) // Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::CandidateAggregator` (r:1 w:0) @@ -680,9 +690,9 @@ impl WeightInfo for () { // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute_leave_candidates(x: u32, ) -> Weight { - (Weight::from_parts(78_861_262, 0)) - // Standard Error: 107_452 - .saturating_add((Weight::from_parts(30_047_808, 0)).saturating_mul(x as u64)) + (Weight::from_parts(102_215_060, 0)) + // Standard Error: 203_935 + .saturating_add((Weight::from_parts(24_857_739, 0)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().reads((3 as u64).saturating_mul(x as u64))) .saturating_add(RocksDbWeight::get().writes(1 as u64)) @@ -693,9 +703,9 @@ impl WeightInfo for () { // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn cancel_leave_candidates(x: u32, ) -> Weight { - (Weight::from_parts(35_957_664, 0)) - // Standard Error: 2_682 - .saturating_add((Weight::from_parts(90_614, 0)).saturating_mul(x as u64)) + (Weight::from_parts(30_887_318, 0)) + // Standard Error: 4_124 + .saturating_add((Weight::from_parts(137_216, 0)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -706,7 +716,7 @@ impl WeightInfo for () { // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn go_offline() -> Weight { - (Weight::from_parts(34_300_000, 0)) + (Weight::from_parts(30_860_000, 0)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -717,35 +727,35 @@ impl WeightInfo for () { // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn go_online() -> Weight { - (Weight::from_parts(34_580_000, 0)) + (Weight::from_parts(30_280_000, 0)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } // Storage: `ParachainStaking::CandidateState` (r:1 w:1) // Proof: `ParachainStaking::CandidateState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:0) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:0) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn schedule_candidate_bond_more() -> Weight { - (Weight::from_parts(49_480_000, 0)) + (Weight::from_parts(47_650_000, 0)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: `ParachainStaking::CandidateState` (r:1 w:1) // Proof: `ParachainStaking::CandidateState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:1 w:0) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:0) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn schedule_candidate_bond_less() -> Weight { - (Weight::from_parts(52_750_000, 0)) + (Weight::from_parts(49_030_000, 0)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -754,15 +764,15 @@ impl WeightInfo for () { // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn execute_candidate_bond_more() -> Weight { - (Weight::from_parts(94_970_000, 0)) + (Weight::from_parts(92_090_000, 0)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } @@ -771,29 +781,29 @@ impl WeightInfo for () { // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn execute_candidate_bond_less() -> Weight { - (Weight::from_parts(101_731_000, 0)) + (Weight::from_parts(77_700_000, 0)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } // Storage: `ParachainStaking::CandidateState` (r:1 w:1) // Proof: `ParachainStaking::CandidateState` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_candidate_bond_more() -> Weight { - (Weight::from_parts(28_020_000, 0)) + (Weight::from_parts(24_720_000, 0)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: `ParachainStaking::CandidateState` (r:1 w:1) // Proof: `ParachainStaking::CandidateState` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_candidate_bond_less() -> Weight { - (Weight::from_parts(26_969_000, 0)) + (Weight::from_parts(24_040_000, 0)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -804,25 +814,25 @@ impl WeightInfo for () { // Storage: `ParachainStaking::DelegatorState` (r:1 w:1) // Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:1 w:0) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:1 w:0) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) fn delegate(x: u32, y: u32, ) -> Weight { - (Weight::from_parts(119_400_015, 0)) - // Standard Error: 19_692 - .saturating_add((Weight::from_parts(211_488, 0)).saturating_mul(x as u64)) - // Standard Error: 19_029 - .saturating_add((Weight::from_parts(310_487, 0)).saturating_mul(y as u64)) + (Weight::from_parts(105_936_341, 0)) + // Standard Error: 22_237 + .saturating_add((Weight::from_parts(491_007, 0)).saturating_mul(x as u64)) + // Standard Error: 21_489 + .saturating_add((Weight::from_parts(440_176, 0)).saturating_mul(y as u64)) .saturating_add(RocksDbWeight::get().reads(10 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } @@ -831,7 +841,7 @@ impl WeightInfo for () { // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn schedule_leave_delegators() -> Weight { - (Weight::from_parts(29_970_000, 0)) + (Weight::from_parts(25_450_000, 0)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -842,17 +852,17 @@ impl WeightInfo for () { // Storage: `ParachainStaking::CandidateState` (r:29 w:29) // Proof: `ParachainStaking::CandidateState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute_leave_delegators(x: u32, ) -> Weight { - (Weight::from_parts(30_138_059, 0)) - // Standard Error: 116_246 - .saturating_add((Weight::from_parts(37_661_084, 0)).saturating_mul(x as u64)) + (Weight::from_parts(51_574_939, 0)) + // Standard Error: 41_324 + .saturating_add((Weight::from_parts(27_903_261, 0)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(x as u64))) .saturating_add(RocksDbWeight::get().writes(4 as u64)) @@ -861,7 +871,7 @@ impl WeightInfo for () { // Storage: `ParachainStaking::DelegatorState` (r:1 w:1) // Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_leave_delegators() -> Weight { - (Weight::from_parts(28_770_000, 0)) + (Weight::from_parts(24_570_000, 0)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -870,20 +880,20 @@ impl WeightInfo for () { // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn schedule_revoke_delegation() -> Weight { - (Weight::from_parts(33_140_000, 0)) + (Weight::from_parts(26_329_000, 0)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: `ParachainStaking::DelegatorState` (r:1 w:1) // Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:0) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:0) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn schedule_delegator_bond_more() -> Weight { - (Weight::from_parts(55_590_000, 0)) + (Weight::from_parts(47_440_000, 0)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -892,7 +902,7 @@ impl WeightInfo for () { // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn schedule_delegator_bond_less() -> Weight { - (Weight::from_parts(33_310_000, 0)) + (Weight::from_parts(26_290_000, 0)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -903,15 +913,15 @@ impl WeightInfo for () { // Storage: `ParachainStaking::CandidateState` (r:1 w:1) // Proof: `ParachainStaking::CandidateState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute_revoke_delegation() -> Weight { - (Weight::from_parts(120_020_000, 0)) + (Weight::from_parts(111_760_000, 0)) .saturating_add(RocksDbWeight::get().reads(7 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } @@ -922,15 +932,15 @@ impl WeightInfo for () { // Storage: `ParachainStaking::CandidateState` (r:1 w:1) // Proof: `ParachainStaking::CandidateState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute_delegator_bond_more() -> Weight { - (Weight::from_parts(118_400_000, 0)) + (Weight::from_parts(117_260_000, 0)) .saturating_add(RocksDbWeight::get().reads(7 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } @@ -941,56 +951,56 @@ impl WeightInfo for () { // Storage: `ParachainStaking::CandidateState` (r:1 w:1) // Proof: `ParachainStaking::CandidateState` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `MultiPurposeLiquidity::ReserveStatus` (r:1 w:1) - // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(124), added: 2599, mode: `MaxEncodedLen`) + // Proof: `MultiPurposeLiquidity::ReserveStatus` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:1) // Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::Total` (r:1 w:1) // Proof: `ParachainStaking::Total` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute_delegator_bond_less() -> Weight { - (Weight::from_parts(119_180_000, 0)) + (Weight::from_parts(106_450_000, 0)) .saturating_add(RocksDbWeight::get().reads(7 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } // Storage: `ParachainStaking::DelegatorState` (r:1 w:1) // Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_revoke_delegation() -> Weight { - (Weight::from_parts(27_810_000, 0)) + (Weight::from_parts(25_840_000, 0)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: `ParachainStaking::DelegatorState` (r:1 w:1) // Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_delegator_bond_more() -> Weight { - (Weight::from_parts(35_100_000, 0)) + (Weight::from_parts(43_620_000, 0)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: `ParachainStaking::DelegatorState` (r:1 w:1) // Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`) fn cancel_delegator_bond_less() -> Weight { - (Weight::from_parts(40_170_000, 0)) + (Weight::from_parts(45_260_000, 0)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: `Xyk::LiquidityPools` (r:1 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::StakingLiquidityTokens` (r:1 w:1) // Proof: `ParachainStaking::StakingLiquidityTokens` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn add_staking_liquidity_token(x: u32, ) -> Weight { - (Weight::from_parts(25_681_172, 0)) - // Standard Error: 3_287 - .saturating_add((Weight::from_parts(160_557, 0)).saturating_mul(x as u64)) + (Weight::from_parts(27_991_165, 0)) + // Standard Error: 6_623 + .saturating_add((Weight::from_parts(211_946, 0)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: `ParachainStaking::StakingLiquidityTokens` (r:1 w:1) // Proof: `ParachainStaking::StakingLiquidityTokens` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn remove_staking_liquidity_token(x: u32, ) -> Weight { - (Weight::from_parts(18_485_384, 0)) - // Standard Error: 2_633 - .saturating_add((Weight::from_parts(148_333, 0)).saturating_mul(x as u64)) + (Weight::from_parts(18_590_480, 0)) + // Standard Error: 5_707 + .saturating_add((Weight::from_parts(165_805, 0)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -1003,7 +1013,7 @@ impl WeightInfo for () { // Storage: `ParachainStaking::CandidateAggregator` (r:1 w:1) // Proof: `ParachainStaking::CandidateAggregator` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn aggregator_update_metadata() -> Weight { - (Weight::from_parts(1_637_999_000, 0)) + (Weight::from_parts(1_355_640_000, 0)) .saturating_add(RocksDbWeight::get().reads(102 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -1014,36 +1024,36 @@ impl WeightInfo for () { // Storage: `ParachainStaking::AggregatorMetadata` (r:2 w:2) // Proof: `ParachainStaking::AggregatorMetadata` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_candidate_aggregator() -> Weight { - (Weight::from_parts(106_940_000, 0)) + (Weight::from_parts(112_310_000, 0)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: `ParachainStaking::RoundCollatorRewardInfo` (r:2 w:1) // Proof: `ParachainStaking::RoundCollatorRewardInfo` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Tokens::Accounts` (r:32 w:32) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:32 w:31) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn payout_collator_rewards() -> Weight { - (Weight::from_parts(1_382_470_000, 0)) + (Weight::from_parts(949_290_000, 0)) .saturating_add(RocksDbWeight::get().reads(66 as u64)) .saturating_add(RocksDbWeight::get().writes(64 as u64)) } // Storage: `ParachainStaking::RoundCollatorRewardInfo` (r:1 w:1) // Proof: `ParachainStaking::RoundCollatorRewardInfo` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:2 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) fn payout_delegator_reward() -> Weight { - (Weight::from_parts(76_060_000, 0)) + (Weight::from_parts(65_790_000, 0)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } // Storage: `ParachainStaking::Round` (r:1 w:0) // Proof: `ParachainStaking::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn passive_session_change() -> Weight { - (Weight::from_parts(7_870_000, 0)) + (Weight::from_parts(5_770_000, 0)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) } // Storage: `ParachainStaking::Round` (r:1 w:1) @@ -1068,12 +1078,14 @@ impl WeightInfo for () { // Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::CollatorCommission` (r:1 w:0) // Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `SequencerStaking::Points` (r:1 w:0) + // Proof: `SequencerStaking::Points` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::StakingLiquidityTokens` (r:1 w:1) // Proof: `ParachainStaking::StakingLiquidityTokens` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `Xyk::LiquidityPools` (r:100 w:0) - // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`) + // Proof: `Xyk::LiquidityPools` (`max_values`: None, `max_size`: Some(29), added: 2504, mode: `MaxEncodedLen`) // Storage: `Xyk::Pools` (r:100 w:0) - // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) + // Proof: `Xyk::Pools` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`) // Storage: `Tokens::TotalIssuance` (r:101 w:1) // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::CandidatePool` (r:1 w:0) @@ -1090,12 +1102,22 @@ impl WeightInfo for () { // Proof: `ProofOfStake::PromotedPoolRewards` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ProofOfStake::TotalActivatedLiquidity` (r:100 w:0) // Proof: `ProofOfStake::TotalActivatedLiquidity` (`max_values`: None, `max_size`: None, mode: `Measured`) - // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:3 w:3) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) // Storage: `Session::NextKeys` (r:51 w:0) // Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`) // Storage: `Aura::Authorities` (r:1 w:0) // Proof: `Aura::Authorities` (`max_values`: Some(1), `max_size`: Some(3200004), added: 3200499, mode: `MaxEncodedLen`) + // Storage: `Grandpa::Stalled` (r:1 w:0) + // Proof: `Grandpa::Stalled` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + // Storage: `Grandpa::PendingChange` (r:1 w:0) + // Proof: `Grandpa::PendingChange` (`max_values`: Some(1), `max_size`: Some(1294), added: 1789, mode: `MaxEncodedLen`) + // Storage: `Grandpa::CurrentSetId` (r:1 w:0) + // Proof: `Grandpa::CurrentSetId` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + // Storage: `SequencerStaking::CurrentRound` (r:0 w:1) + // Proof: `SequencerStaking::CurrentRound` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `Grandpa::SetIdSession` (r:0 w:1) + // Proof: `Grandpa::SetIdSession` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`) // Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1) // Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) // Storage: `ParachainStaking::RoundCollatorRewardInfo` (r:0 w:51) @@ -1103,15 +1125,15 @@ impl WeightInfo for () { // Storage: `Session::Validators` (r:0 w:1) // Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn active_session_change(x: u32, y: u32, z: u32, ) -> Weight { - (Weight::from_parts(1_680_554_785, 0)) - // Standard Error: 111_252 - .saturating_add((Weight::from_parts(19_982_292, 0)).saturating_mul(x as u64)) - // Standard Error: 228_151 - .saturating_add((Weight::from_parts(7_042_416, 0)).saturating_mul(y as u64)) - // Standard Error: 395_185 - .saturating_add((Weight::from_parts(36_984_074, 0)).saturating_mul(z as u64)) - .saturating_add(RocksDbWeight::get().reads(224 as u64)) + (Weight::from_parts(1_840_795_663, 0)) + // Standard Error: 237_951 + .saturating_add((Weight::from_parts(19_017_290, 0)).saturating_mul(x as u64)) + // Standard Error: 487_980 + .saturating_add((Weight::from_parts(4_274_143, 0)).saturating_mul(y as u64)) + // Standard Error: 845_240 + .saturating_add((Weight::from_parts(35_696_789, 0)).saturating_mul(z as u64)) + .saturating_add(RocksDbWeight::get().reads(229 as u64)) .saturating_add(RocksDbWeight::get().reads((4 as u64).saturating_mul(x as u64))) - .saturating_add(RocksDbWeight::get().writes(219 as u64)) + .saturating_add(RocksDbWeight::get().writes(222 as u64)) } } From 42f3ddc416827aea215674b70eeaf607b44fb5ec Mon Sep 17 00:00:00 2001 From: Mateusz Nowakowski Date: Fri, 29 Nov 2024 23:51:56 +0100 Subject: [PATCH 3/3] revert changes to pallet vesting --- .../src/weights/pallet_vesting_mangata.rs | 197 +++++++++--------- 1 file changed, 104 insertions(+), 93 deletions(-) diff --git a/rollup/runtime/src/weights/pallet_vesting_mangata.rs b/rollup/runtime/src/weights/pallet_vesting_mangata.rs index 5aa0ccfd9..0fc0bf9d6 100644 --- a/rollup/runtime/src/weights/pallet_vesting_mangata.rs +++ b/rollup/runtime/src/weights/pallet_vesting_mangata.rs @@ -18,17 +18,19 @@ //! Autogenerated weights for pallet_vesting_mangata //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("rollup-local"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-01-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("mangata-kusama"), DB CACHE: 1024 // Executed Command: -// target/release/rollup-node +// target/release/mangata-node // benchmark // pallet // -l=info,runtime::collective=warn,xyk=warn // --chain -// rollup-local +// mangata-kusama +// --execution +// wasm // --wasm-execution // compiled // --pallet @@ -61,203 +63,212 @@ pub trait WeightInfo { fn force_vested_transfer(l: u32, s: u32, ) -> Weight; fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight; fn unlocking_merge_schedules(l: u32, s: u32, ) -> Weight; + fn force_remove_vesting_schedule(l: u32, s: u32, ) -> Weight; } /// Weights for pallet_vesting_mangata using the Mangata node and recommended hardware. pub struct ModuleWeight(PhantomData); impl pallet_vesting_mangata::WeightInfo for ModuleWeight { // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) fn vest_locked(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(48_790_361, 0)) - // Standard Error: 6_465 - .saturating_add((Weight::from_parts(129_444, 0)).saturating_mul(s as u64)) + (Weight::from_parts(48_427_927, 0)) + // Standard Error: 8_514 + .saturating_add((Weight::from_parts(185_409, 0)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:1) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) fn vest_unlocked(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(58_308_969, 0)) - // Standard Error: 5_599 - .saturating_add((Weight::from_parts(63_862, 0)).saturating_mul(s as u64)) + (Weight::from_parts(65_301_532, 0)) + // Standard Error: 6_745 + .saturating_add((Weight::from_parts(53_074, 0)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) fn vest_other_locked(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(48_645_506, 0)) - // Standard Error: 5_906 - .saturating_add((Weight::from_parts(130_885, 0)).saturating_mul(s as u64)) + (Weight::from_parts(49_635_157, 0)) + // Standard Error: 9_592 + .saturating_add((Weight::from_parts(168_802, 0)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:1) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) fn vest_other_unlocked(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(57_649_149, 0)) - // Standard Error: 7_493 - .saturating_add((Weight::from_parts(93_628, 0)).saturating_mul(s as u64)) + (Weight::from_parts(67_351_274, 0)) + // Standard Error: 7_411 + .saturating_add((Weight::from_parts(84_577, 0)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:0) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) fn force_vested_transfer(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(76_379_944, 0)) - // Standard Error: 8_498 - .saturating_add((Weight::from_parts(213_964, 0)).saturating_mul(s as u64)) + (Weight::from_parts(88_063_629, 0)) + // Standard Error: 14_579 + .saturating_add((Weight::from_parts(210_310, 0)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) fn not_unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(48_430_012, 0)) - // Standard Error: 7_536 - .saturating_add((Weight::from_parts(152_659, 0)).saturating_mul(s as u64)) + (Weight::from_parts(50_762_808, 0)) + // Standard Error: 8_663 + .saturating_add((Weight::from_parts(163_040, 0)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) fn unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(48_230_930, 0)) - // Standard Error: 7_453 - .saturating_add((Weight::from_parts(179_511, 0)).saturating_mul(s as u64)) + (Weight::from_parts(49_779_765, 0)) + // Standard Error: 13_870 + .saturating_add((Weight::from_parts(262_141, 0)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } + + fn force_remove_vesting_schedule(l: u32, s: u32, ) -> Weight { + Weight::from_parts(0, 0) + } } // For backwards compatibility and tests impl WeightInfo for () { // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) fn vest_locked(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(48_790_361, 0)) - // Standard Error: 6_465 - .saturating_add((Weight::from_parts(129_444, 0)).saturating_mul(s as u64)) + (Weight::from_parts(48_427_927, 0)) + // Standard Error: 8_514 + .saturating_add((Weight::from_parts(185_409, 0)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:1) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) fn vest_unlocked(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(58_308_969, 0)) - // Standard Error: 5_599 - .saturating_add((Weight::from_parts(63_862, 0)).saturating_mul(s as u64)) + (Weight::from_parts(65_301_532, 0)) + // Standard Error: 6_745 + .saturating_add((Weight::from_parts(53_074, 0)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) fn vest_other_locked(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(48_645_506, 0)) - // Standard Error: 5_906 - .saturating_add((Weight::from_parts(130_885, 0)).saturating_mul(s as u64)) + (Weight::from_parts(49_635_157, 0)) + // Standard Error: 9_592 + .saturating_add((Weight::from_parts(168_802, 0)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:1) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:1) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) fn vest_other_unlocked(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(57_649_149, 0)) - // Standard Error: 7_493 - .saturating_add((Weight::from_parts(93_628, 0)).saturating_mul(s as u64)) + (Weight::from_parts(67_351_274, 0)) + // Standard Error: 7_411 + .saturating_add((Weight::from_parts(84_577, 0)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:2 w:2) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) // Storage: `System::Account` (r:1 w:0) - // Proof: `System::Account` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) fn force_vested_transfer(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(76_379_944, 0)) - // Standard Error: 8_498 - .saturating_add((Weight::from_parts(213_964, 0)).saturating_mul(s as u64)) + (Weight::from_parts(88_063_629, 0)) + // Standard Error: 14_579 + .saturating_add((Weight::from_parts(210_310, 0)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) fn not_unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(48_430_012, 0)) - // Standard Error: 7_536 - .saturating_add((Weight::from_parts(152_659, 0)).saturating_mul(s as u64)) + (Weight::from_parts(50_762_808, 0)) + // Standard Error: 8_663 + .saturating_add((Weight::from_parts(163_040, 0)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } // Storage: `Vesting::Vesting` (r:1 w:1) - // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1857), added: 4332, mode: `MaxEncodedLen`) + // Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1869), added: 4344, mode: `MaxEncodedLen`) // Storage: `Tokens::Locks` (r:1 w:0) - // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1249), added: 3724, mode: `MaxEncodedLen`) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1261), added: 3736, mode: `MaxEncodedLen`) // Storage: `Tokens::Accounts` (r:1 w:1) - // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) fn unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { - (Weight::from_parts(48_230_930, 0)) - // Standard Error: 7_453 - .saturating_add((Weight::from_parts(179_511, 0)).saturating_mul(s as u64)) + (Weight::from_parts(49_779_765, 0)) + // Standard Error: 13_870 + .saturating_add((Weight::from_parts(262_141, 0)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } + + fn force_remove_vesting_schedule(l: u32, s: u32, ) -> Weight { + Weight::from_parts(0, 0) + } }