From 7b32f16c8d900e95389d9bd68405da2f45313619 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Rios Date: Wed, 22 May 2024 13:32:02 +0200 Subject: [PATCH] Double-check evaluation reward benchmarks --- pallets/funding/src/tests/3_auction.rs | 4 +- pallets/funding/src/weights.rs | 97 +++ runtimes/polimec/src/benchmarks/mod.rs | 136 +++++ runtimes/polimec/src/lib.rs | 2 +- .../polimec/src/weights/pallet_funding.rs | 575 +++++++++--------- 5 files changed, 535 insertions(+), 279 deletions(-) diff --git a/pallets/funding/src/tests/3_auction.rs b/pallets/funding/src/tests/3_auction.rs index 19b369ca9..1ea6fd728 100644 --- a/pallets/funding/src/tests/3_auction.rs +++ b/pallets/funding/src/tests/3_auction.rs @@ -680,7 +680,7 @@ mod round_flow { let max_bids_per_project: u32 = ::MaxBidsPerProject::get(); let big_bid: BidParams = (BIDDER_1, total_allocation).into(); let small_bids: Vec> = - (0..max_bids_per_project-1).map(|i| (i + BIDDER_1, min_bid_ct).into()).collect(); + (0..max_bids_per_project - 1).map(|i| (i + BIDDER_1, min_bid_ct).into()).collect(); let all_bids = vec![vec![big_bid.clone()], small_bids.clone()].into_iter().flatten().collect_vec(); let mut project_metadata = default_project_metadata(ISSUER_1); @@ -700,7 +700,7 @@ mod round_flow { let all_bids = inst.execute(|| Bids::::iter_prefix_values((project_id,)).collect_vec()); let higher_than_wap_bids = all_bids.iter().filter(|bid| bid.original_ct_usd_price > wap).collect_vec(); - assert_eq!(higher_than_wap_bids.len(), (max_bids_per_project-1u32) as usize); + assert_eq!(higher_than_wap_bids.len(), (max_bids_per_project - 1u32) as usize); } } diff --git a/pallets/funding/src/weights.rs b/pallets/funding/src/weights.rs index ba5273ecd..8c9b6a2df 100644 --- a/pallets/funding/src/weights.rs +++ b/pallets/funding/src/weights.rs @@ -72,6 +72,7 @@ pub trait WeightInfo { fn end_evaluation_success(x: u32, ) -> Weight; fn end_evaluation_failure() -> Weight; fn start_auction_closing_phase(x: u32, ) -> Weight; + fn end_auction_closing(x: u32, y: u32, z: u32, ) -> Weight; fn start_community_funding(x: u32, y: u32, z: u32, ) -> Weight; fn start_remainder_funding(x: u32, ) -> Weight; fn end_funding_automatically_rejected_evaluators_slashed(x: u32, ) -> Weight; @@ -558,6 +559,54 @@ impl WeightInfo for SubstrateWeight { .saturating_add(Weight::from_parts(0, 2501).saturating_mul(x.into())) } /// Storage: `Funding::ProjectsDetails` (r:1 w:1) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) + /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) + /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) + /// Storage: `Funding::Nonce` (r:1 w:1) + /// Proof: `Funding::Nonce` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Random::RandomMaterial` (r:1 w:0) + /// Proof: `Random::RandomMaterial` (`max_values`: Some(1), `max_size`: Some(2594), added: 3089, mode: `MaxEncodedLen`) + /// Storage: `Funding::Bids` (r:513 w:512) + /// Proof: `Funding::Bids` (`max_values`: None, `max_size`: Some(306), added: 2781, mode: `MaxEncodedLen`) + /// Storage: `Funding::DidWithWinningBids` (r:256 w:256) + /// Proof: `Funding::DidWithWinningBids` (`max_values`: None, `max_size`: Some(95), added: 2570, mode: `MaxEncodedLen`) + /// Storage: `ForeignAssets::Asset` (r:1 w:1) + /// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `ForeignAssets::Account` (r:257 w:257) + /// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:256 w:256) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:256 w:256) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(1149), added: 3624, mode: `MaxEncodedLen`) + /// Storage: `Funding::ProjectsToUpdate` (r:99 w:1) + /// Proof: `Funding::ProjectsToUpdate` (`max_values`: None, `max_size`: Some(26), added: 2501, mode: `MaxEncodedLen`) + /// The range of component `x` is `[1, 99]`. + /// The range of component `y` is `[1, 256]`. + /// The range of component `z` is `[1, 256]`. + fn end_auction_closing(x: u32, y: u32, z: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `28251 + x * (28 ±0) + y * (225 ±0) + z * (392 ±0)` + // Estimated: `4079 + x * (2501 ±0) + y * (2781 ±0) + z * (3624 ±0)` + // Minimum execution time: 3_181_609_000 picoseconds. + Weight::from_parts(208_634_454, 4079) + // Standard Error: 64_217 + .saturating_add(Weight::from_parts(2_432_568, 0).saturating_mul(x.into())) + // Standard Error: 24_628 + .saturating_add(Weight::from_parts(10_591_792, 0).saturating_mul(y.into())) + // Standard Error: 24_628 + .saturating_add(Weight::from_parts(62_828_707, 0).saturating_mul(z.into())) + .saturating_add(T::DbWeight::get().reads(7_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) + .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(y.into()))) + .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(z.into()))) + .saturating_add(T::DbWeight::get().writes(5_u64)) + .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(y.into()))) + .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(z.into()))) + .saturating_add(Weight::from_parts(0, 2501).saturating_mul(x.into())) + .saturating_add(Weight::from_parts(0, 2781).saturating_mul(y.into())) + .saturating_add(Weight::from_parts(0, 3624).saturating_mul(z.into())) + } + /// Storage: `Funding::ProjectsDetails` (r:1 w:1) /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) @@ -1239,6 +1288,54 @@ impl WeightInfo for () { .saturating_add(Weight::from_parts(0, 2501).saturating_mul(x.into())) } /// Storage: `Funding::ProjectsDetails` (r:1 w:1) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) + /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) + /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) + /// Storage: `Funding::Nonce` (r:1 w:1) + /// Proof: `Funding::Nonce` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `Random::RandomMaterial` (r:1 w:0) + /// Proof: `Random::RandomMaterial` (`max_values`: Some(1), `max_size`: Some(2594), added: 3089, mode: `MaxEncodedLen`) + /// Storage: `Funding::Bids` (r:513 w:512) + /// Proof: `Funding::Bids` (`max_values`: None, `max_size`: Some(306), added: 2781, mode: `MaxEncodedLen`) + /// Storage: `Funding::DidWithWinningBids` (r:256 w:256) + /// Proof: `Funding::DidWithWinningBids` (`max_values`: None, `max_size`: Some(95), added: 2570, mode: `MaxEncodedLen`) + /// Storage: `ForeignAssets::Asset` (r:1 w:1) + /// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `ForeignAssets::Account` (r:257 w:257) + /// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:256 w:256) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:256 w:256) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(1149), added: 3624, mode: `MaxEncodedLen`) + /// Storage: `Funding::ProjectsToUpdate` (r:99 w:1) + /// Proof: `Funding::ProjectsToUpdate` (`max_values`: None, `max_size`: Some(26), added: 2501, mode: `MaxEncodedLen`) + /// The range of component `x` is `[1, 99]`. + /// The range of component `y` is `[1, 256]`. + /// The range of component `z` is `[1, 256]`. + fn end_auction_closing(x: u32, y: u32, z: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `28251 + x * (28 ±0) + y * (225 ±0) + z * (392 ±0)` + // Estimated: `4079 + x * (2501 ±0) + y * (2781 ±0) + z * (3624 ±0)` + // Minimum execution time: 3_181_609_000 picoseconds. + Weight::from_parts(208_634_454, 4079) + // Standard Error: 64_217 + .saturating_add(Weight::from_parts(2_432_568, 0).saturating_mul(x.into())) + // Standard Error: 24_628 + .saturating_add(Weight::from_parts(10_591_792, 0).saturating_mul(y.into())) + // Standard Error: 24_628 + .saturating_add(Weight::from_parts(62_828_707, 0).saturating_mul(z.into())) + .saturating_add(RocksDbWeight::get().reads(7_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(x.into()))) + .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(y.into()))) + .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(z.into()))) + .saturating_add(RocksDbWeight::get().writes(5_u64)) + .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(y.into()))) + .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(z.into()))) + .saturating_add(Weight::from_parts(0, 2501).saturating_mul(x.into())) + .saturating_add(Weight::from_parts(0, 2781).saturating_mul(y.into())) + .saturating_add(Weight::from_parts(0, 3624).saturating_mul(z.into())) + } + /// Storage: `Funding::ProjectsDetails` (r:1 w:1) /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) diff --git a/runtimes/polimec/src/benchmarks/mod.rs b/runtimes/polimec/src/benchmarks/mod.rs index 4af19cb28..b05a14f2c 100644 --- a/runtimes/polimec/src/benchmarks/mod.rs +++ b/runtimes/polimec/src/benchmarks/mod.rs @@ -1,2 +1,138 @@ #[cfg(any(feature = "runtime-benchmarks", feature = "std"))] pub mod helpers; + +#[test] +fn output_max_pallet_funding_values() { + use crate::weights::pallet_funding::SubstrateWeight; + use frame_support::pallet_prelude::Get; + use pallet_funding::weights::WeightInfo; + + use crate::Runtime; + + let max_projects_to_update_insertion_attempts: u32 = + ::MaxProjectsToUpdateInsertionAttempts::get(); + let max_evaluations_per_user: u32 = ::MaxEvaluationsPerUser::get(); + let max_bids_per_user: u32 = ::MaxBidsPerUser::get(); + let max_contributions_per_user: u32 = ::MaxContributionsPerUser::get(); + let max_bids_per_project: u32 = ::MaxBidsPerProject::get(); + let max_evaluations_per_project: u32 = ::MaxEvaluationsPerProject::get(); + + let create_project = SubstrateWeight::::create_project(); + dbg!(create_project); + + let remove_project = SubstrateWeight::::remove_project(); + dbg!(remove_project); + + let edit_project = SubstrateWeight::::edit_project(); + dbg!(edit_project); + + let start_evaluation = SubstrateWeight::::start_evaluation(max_projects_to_update_insertion_attempts - 1); + dbg!(start_evaluation); + + let start_auction_manually = + SubstrateWeight::::start_auction_manually(max_projects_to_update_insertion_attempts - 1); + dbg!(start_auction_manually); + + let evaluation = SubstrateWeight::::evaluation(max_evaluations_per_user - 1); + dbg!(evaluation); + + let bid = SubstrateWeight::::bid(max_bids_per_user, 10); + dbg!(bid); + + let contribution = SubstrateWeight::::contribution(max_contributions_per_user); + dbg!(contribution); + + let contribution_ends_round = SubstrateWeight::::contribution_ends_round( + max_contributions_per_user - 1, + max_projects_to_update_insertion_attempts - 1, + ); + dbg!(contribution_ends_round); + + let decide_project_outcome = + SubstrateWeight::::decide_project_outcome(max_projects_to_update_insertion_attempts - 1); + dbg!(decide_project_outcome); + + let settle_successful_evaluation = SubstrateWeight::::settle_successful_evaluation(); + dbg!(settle_successful_evaluation); + + let settle_failed_evaluation = SubstrateWeight::::settle_failed_evaluation(); + dbg!(settle_failed_evaluation); + + let settle_successful_bid = SubstrateWeight::::settle_successful_bid(); + dbg!(settle_successful_bid); + + let settle_failed_bid = SubstrateWeight::::settle_failed_bid(); + dbg!(settle_failed_bid); + + let settle_successful_contribution = SubstrateWeight::::settle_successful_contribution(); + dbg!(settle_successful_contribution); + + let settle_failed_contribution = SubstrateWeight::::settle_failed_contribution(); + dbg!(settle_failed_contribution); + + let end_evaluation_success = + SubstrateWeight::::end_evaluation_success(max_projects_to_update_insertion_attempts - 1); + dbg!(end_evaluation_success); + + let end_evaluation_failure = SubstrateWeight::::end_evaluation_failure(); + dbg!(end_evaluation_failure); + + let start_auction_closing_phase = + SubstrateWeight::::start_auction_closing_phase(max_projects_to_update_insertion_attempts - 1); + dbg!(start_auction_closing_phase); + + let end_auction_closing = SubstrateWeight::::end_auction_closing( + max_projects_to_update_insertion_attempts - 1, + max_bids_per_project, + 0, + ); + dbg!(end_auction_closing); + + let start_community_funding = SubstrateWeight::::start_community_funding( + max_projects_to_update_insertion_attempts - 1, + max_bids_per_project, + 0, + ); + dbg!(start_community_funding); + + let start_remainder_funding = + SubstrateWeight::::start_remainder_funding(max_projects_to_update_insertion_attempts - 1); + dbg!(start_remainder_funding); + + let end_funding_automatically_rejected_evaluators_slashed = + SubstrateWeight::::end_funding_automatically_rejected_evaluators_slashed( + max_projects_to_update_insertion_attempts - 1, + ); + dbg!(end_funding_automatically_rejected_evaluators_slashed); + + let end_funding_awaiting_decision_evaluators_slashed = + SubstrateWeight::::end_funding_awaiting_decision_evaluators_slashed( + max_projects_to_update_insertion_attempts - 1, + ); + dbg!(end_funding_awaiting_decision_evaluators_slashed); + + let end_funding_awaiting_decision_evaluators_unchanged = + SubstrateWeight::::end_funding_awaiting_decision_evaluators_unchanged( + max_projects_to_update_insertion_attempts - 1, + ); + dbg!(end_funding_awaiting_decision_evaluators_unchanged); + + let end_funding_automatically_accepted_evaluators_rewarded = + SubstrateWeight::::end_funding_automatically_accepted_evaluators_rewarded( + max_projects_to_update_insertion_attempts - 1, + max_evaluations_per_project, + ); + dbg!(end_funding_automatically_accepted_evaluators_rewarded); + + let project_decision = SubstrateWeight::::project_decision(); + dbg!(project_decision); + + let start_settlement_funding_success = SubstrateWeight::::start_settlement_funding_success(); + dbg!(start_settlement_funding_success); + + let start_settlement_funding_failure = SubstrateWeight::::start_settlement_funding_failure(); + dbg!(start_settlement_funding_failure); + + let total_blockspace = ::BlockWeights::get().max_block; + dbg!(total_blockspace); +} diff --git a/runtimes/polimec/src/lib.rs b/runtimes/polimec/src/lib.rs index a601a641d..cf1adc875 100644 --- a/runtimes/polimec/src/lib.rs +++ b/runtimes/polimec/src/lib.rs @@ -1075,7 +1075,7 @@ impl pallet_funding::Config for Runtime { type SuccessToSettlementTime = SuccessToSettlementTime; type VerifierPublicKey = VerifierPublicKey; type Vesting = LinearRelease; - type WeightInfo = weights::pallet_funding::WeightInfo; + type WeightInfo = weights::pallet_funding::SubstrateWeight; } #[cfg(feature = "runtime-benchmarks")] diff --git a/runtimes/polimec/src/weights/pallet_funding.rs b/runtimes/polimec/src/weights/pallet_funding.rs index 571cee6a3..2de52f98f 100644 --- a/runtimes/polimec/src/weights/pallet_funding.rs +++ b/runtimes/polimec/src/weights/pallet_funding.rs @@ -1,11 +1,29 @@ +// Polimec Blockchain – https://www.polimec.org/ +// Copyright (C) Polimec 2022. All rights reserved. + +// The Polimec Blockchain is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// The Polimec Blockchain is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +// If you feel like getting in touch with us, you can do so at info@polimec.org + //! Autogenerated weights for `pallet_funding` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-05-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ip-172-31-23-147`, CPU: `AMD EPYC 9R14` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("polimec-local")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("polimec-local")`, DB CACHE: `1024` // Executed Command: // ./target/production/polimec-node @@ -18,19 +36,21 @@ // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --output=runtimes/polimec/src/weights/pallet_funding.rs +// --output=pallets/funding/weight-test.rs +// --template=./.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] #![allow(missing_docs)] -use frame_support::{traits::Get, weights::Weight}; +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; +use pallet_funding::weights::WeightInfo; -/// Weight functions for `pallet_funding`. -pub struct WeightInfo(PhantomData); -impl pallet_funding::WeightInfo for WeightInfo { +/// Weights for `pallet_funding` using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl WeightInfo for SubstrateWeight { /// Storage: `Timestamp::Now` (r:1 w:0) /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Storage: `Funding::NextProjectId` (r:1 w:1) @@ -44,21 +64,20 @@ impl pallet_funding::WeightInfo for WeightInfo { /// Storage: `Funding::ProjectsMetadata` (r:0 w:1) /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsDetails` (r:0 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) fn create_project() -> Weight { // Proof Size summary in bytes: // Measured: `254` // Estimated: `3593` - // Minimum execution time: 162_200_000 picoseconds. - Weight::from_parts(165_180_000, 0) - .saturating_add(Weight::from_parts(0, 3593)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(6)) + // Minimum execution time: 161_930_000 picoseconds. + Weight::from_parts(163_511_000, 3593) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(6_u64)) } /// Storage: `Timestamp::Now` (r:1 w:0) /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Funding::Buckets` (r:0 w:1) /// Proof: `Funding::Buckets` (`max_values`: None, `max_size`: Some(100), added: 2575, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsMetadata` (r:0 w:1) @@ -67,74 +86,68 @@ impl pallet_funding::WeightInfo for WeightInfo { /// Proof: `Funding::DidWithActiveProjects` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) fn remove_project() -> Weight { // Proof Size summary in bytes: - // Measured: `464` - // Estimated: `3845` - // Minimum execution time: 128_460_000 picoseconds. - Weight::from_parts(129_390_000, 0) - .saturating_add(Weight::from_parts(0, 3845)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(4)) + // Measured: `465` + // Estimated: `3862` + // Minimum execution time: 128_011_000 picoseconds. + Weight::from_parts(129_090_000, 3862) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) } /// Storage: `Timestamp::Now` (r:1 w:0) /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Funding::Buckets` (r:0 w:1) /// Proof: `Funding::Buckets` (`max_values`: None, `max_size`: Some(100), added: 2575, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsMetadata` (r:0 w:1) /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) fn edit_project() -> Weight { // Proof Size summary in bytes: - // Measured: `464` - // Estimated: `3845` - // Minimum execution time: 131_511_000 picoseconds. - Weight::from_parts(132_990_000, 0) - .saturating_add(Weight::from_parts(0, 3845)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(3)) + // Measured: `465` + // Estimated: `3862` + // Minimum execution time: 130_480_000 picoseconds. + Weight::from_parts(132_021_000, 3862) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) } /// Storage: `Timestamp::Now` (r:1 w:0) /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) - /// Storage: `Funding::ProjectsToUpdate` (r:100 w:1) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) + /// Storage: `Funding::ProjectsToUpdate` (r:1 w:1) /// Proof: `Funding::ProjectsToUpdate` (`max_values`: None, `max_size`: Some(26), added: 2501, mode: `MaxEncodedLen`) /// The range of component `x` is `[1, 99]`. fn start_evaluation(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `787 + x * (28 ±0)` - // Estimated: `3967 + x * (2501 ±0)` - // Minimum execution time: 133_920_000 picoseconds. - Weight::from_parts(134_815_525, 0) - .saturating_add(Weight::from_parts(0, 3967)) - // Standard Error: 3_610 - .saturating_add(Weight::from_parts(2_097_249, 0).saturating_mul(x.into())) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) - .saturating_add(T::DbWeight::get().writes(2)) - .saturating_add(Weight::from_parts(0, 2501).saturating_mul(x.into())) + // Measured: `1085 + x * (5 ±0)` + // Estimated: `3967` + // Minimum execution time: 131_981_000 picoseconds. + Weight::from_parts(135_479_612, 3967) + // Standard Error: 1_299 + .saturating_add(Weight::from_parts(49_703, 0).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: `Timestamp::Now` (r:1 w:0) /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsToUpdate` (r:100 w:1) /// Proof: `Funding::ProjectsToUpdate` (`max_values`: None, `max_size`: Some(26), added: 2501, mode: `MaxEncodedLen`) /// The range of component `x` is `[1, 99]`. fn start_auction_manually(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `580 + x * (28 ±0)` - // Estimated: `3845 + x * (2501 ±0)` - // Minimum execution time: 133_650_000 picoseconds. - Weight::from_parts(133_981_983, 0) - .saturating_add(Weight::from_parts(0, 3845)) - // Standard Error: 3_948 - .saturating_add(Weight::from_parts(2_066_773, 0).saturating_mul(x.into())) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `610 + x * (28 ±0)` + // Estimated: `3862 + x * (2501 ±0)` + // Minimum execution time: 133_711_000 picoseconds. + Weight::from_parts(134_223_182, 3862) + // Standard Error: 4_343 + .saturating_add(Weight::from_parts(2_074_615, 0).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) - .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().writes(2_u64)) .saturating_add(Weight::from_parts(0, 2501).saturating_mul(x.into())) } /// Storage: `Timestamp::Now` (r:1 w:0) @@ -142,7 +155,7 @@ impl pallet_funding::WeightInfo for WeightInfo { /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Funding::NextEvaluationId` (r:1 w:1) /// Proof: `Funding::NextEvaluationId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `Oracle::Values` (r:1 w:0) @@ -156,16 +169,15 @@ impl pallet_funding::WeightInfo for WeightInfo { /// The range of component `x` is `[0, 15]`. fn evaluation(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1330 + x * (194 ±0)` + // Measured: `1331 + x * (194 ±0)` // Estimated: `4614 + x * (2729 ±0)` - // Minimum execution time: 178_720_000 picoseconds. - Weight::from_parts(183_337_088, 0) - .saturating_add(Weight::from_parts(0, 4614)) - // Standard Error: 14_165 - .saturating_add(Weight::from_parts(3_922_763, 0).saturating_mul(x.into())) - .saturating_add(T::DbWeight::get().reads(8)) + // Minimum execution time: 177_181_000 picoseconds. + Weight::from_parts(182_310_896, 4614) + // Standard Error: 15_660 + .saturating_add(Weight::from_parts(3_932_011, 0).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) - .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().writes(5_u64)) .saturating_add(Weight::from_parts(0, 2729).saturating_mul(x.into())) } /// Storage: `Timestamp::Now` (r:1 w:0) @@ -173,7 +185,7 @@ impl pallet_funding::WeightInfo for WeightInfo { /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsDetails` (r:1 w:0) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Oracle::Values` (r:2 w:0) /// Proof: `Oracle::Values` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`) /// Storage: `Funding::Buckets` (r:1 w:1) @@ -200,25 +212,24 @@ impl pallet_funding::WeightInfo for WeightInfo { /// The range of component `y` is `[0, 10]`. fn bid(x: u32, y: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2946 + x * (224 ±0)` + // Measured: `2947 + x * (224 ±0)` // Estimated: `6208 + x * (2781 ±0)` - // Minimum execution time: 285_270_000 picoseconds. - Weight::from_parts(221_092_682, 0) - .saturating_add(Weight::from_parts(0, 6208)) - // Standard Error: 259_493 - .saturating_add(Weight::from_parts(3_492_722, 0).saturating_mul(x.into())) - // Standard Error: 162_703 - .saturating_add(Weight::from_parts(72_249_510, 0).saturating_mul(y.into())) - .saturating_add(T::DbWeight::get().reads(16)) + // Minimum execution time: 278_390_000 picoseconds. + Weight::from_parts(223_767_583, 6208) + // Standard Error: 232_932 + .saturating_add(Weight::from_parts(2_982_562, 0).saturating_mul(x.into())) + // Standard Error: 146_049 + .saturating_add(Weight::from_parts(66_511_089, 0).saturating_mul(y.into())) + .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) - .saturating_add(T::DbWeight::get().writes(8)) + .saturating_add(T::DbWeight::get().writes(8_u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into()))) .saturating_add(Weight::from_parts(0, 2781).saturating_mul(x.into())) } /// Storage: `Timestamp::Now` (r:1 w:0) /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Funding::DidWithWinningBids` (r:1 w:0) /// Proof: `Funding::DidWithWinningBids` (`max_values`: None, `max_size`: Some(95), added: 2570, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) @@ -246,22 +257,21 @@ impl pallet_funding::WeightInfo for WeightInfo { /// The range of component `x` is `[0, 15]`. fn contribution(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `3170 + x * (192 ±0)` + // Measured: `3171 + x * (192 ±0)` // Estimated: `6208 + x * (2727 ±0)` - // Minimum execution time: 254_230_000 picoseconds. - Weight::from_parts(267_069_758, 0) - .saturating_add(Weight::from_parts(0, 6208)) - // Standard Error: 33_035 - .saturating_add(Weight::from_parts(4_090_251, 0).saturating_mul(x.into())) - .saturating_add(T::DbWeight::get().reads(16)) + // Minimum execution time: 253_070_000 picoseconds. + Weight::from_parts(265_589_512, 6208) + // Standard Error: 36_474 + .saturating_add(Weight::from_parts(3_991_871, 0).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) - .saturating_add(T::DbWeight::get().writes(9)) + .saturating_add(T::DbWeight::get().writes(9_u64)) .saturating_add(Weight::from_parts(0, 2727).saturating_mul(x.into())) } /// Storage: `Timestamp::Now` (r:1 w:0) /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Funding::DidWithWinningBids` (r:1 w:0) /// Proof: `Funding::DidWithWinningBids` (`max_values`: None, `max_size`: Some(95), added: 2570, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) @@ -292,47 +302,45 @@ impl pallet_funding::WeightInfo for WeightInfo { /// The range of component `y` is `[1, 99]`. fn contribution_ends_round(x: u32, y: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `3249 + x * (192 ±0) + y * (28 ±0)` + // Measured: `3258 + x * (192 ±0) + y * (28 ±0)` // Estimated: `6208 + x * (2727 ±0) + y * (2501 ±0)` - // Minimum execution time: 331_510_000 picoseconds. - Weight::from_parts(262_425_631, 0) - .saturating_add(Weight::from_parts(0, 6208)) - // Standard Error: 30_072 - .saturating_add(Weight::from_parts(4_738_759, 0).saturating_mul(x.into())) - // Standard Error: 4_787 - .saturating_add(Weight::from_parts(2_302_443, 0).saturating_mul(y.into())) - .saturating_add(T::DbWeight::get().reads(17)) + // Minimum execution time: 327_990_000 picoseconds. + Weight::from_parts(258_452_204, 6208) + // Standard Error: 27_651 + .saturating_add(Weight::from_parts(4_715_152, 0).saturating_mul(x.into())) + // Standard Error: 4_402 + .saturating_add(Weight::from_parts(2_308_616, 0).saturating_mul(y.into())) + .saturating_add(T::DbWeight::get().reads(17_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into()))) - .saturating_add(T::DbWeight::get().writes(10)) + .saturating_add(T::DbWeight::get().writes(10_u64)) .saturating_add(Weight::from_parts(0, 2727).saturating_mul(x.into())) .saturating_add(Weight::from_parts(0, 2501).saturating_mul(y.into())) } /// Storage: `Timestamp::Now` (r:1 w:0) /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsDetails` (r:1 w:0) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsToUpdate` (r:100 w:1) /// Proof: `Funding::ProjectsToUpdate` (`max_values`: None, `max_size`: Some(26), added: 2501, mode: `MaxEncodedLen`) /// The range of component `x` is `[1, 99]`. fn decide_project_outcome(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `833 + x * (28 ±0)` - // Estimated: `3845 + x * (2501 ±0)` - // Minimum execution time: 141_030_000 picoseconds. - Weight::from_parts(143_687_514, 0) - .saturating_add(Weight::from_parts(0, 3845)) - // Standard Error: 4_071 - .saturating_add(Weight::from_parts(2_084_050, 0).saturating_mul(x.into())) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `836 + x * (28 ±0)` + // Estimated: `3862 + x * (2501 ±0)` + // Minimum execution time: 140_591_000 picoseconds. + Weight::from_parts(143_055_694, 3862) + // Standard Error: 3_820 + .saturating_add(Weight::from_parts(2_062_522, 0).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) - .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(T::DbWeight::get().writes(1_u64)) .saturating_add(Weight::from_parts(0, 2501).saturating_mul(x.into())) } /// Storage: `Funding::Evaluations` (r:1 w:1) /// Proof: `Funding::Evaluations` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsDetails` (r:1 w:0) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `ContributionTokens::Account` (r:1 w:1) /// Proof: `ContributionTokens::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) /// Storage: `ContributionTokens::Asset` (r:1 w:1) @@ -343,38 +351,36 @@ impl pallet_funding::WeightInfo for WeightInfo { /// Proof: `Funding::UserMigrations` (`max_values`: None, `max_size`: Some(3006), added: 5481, mode: `MaxEncodedLen`) fn settle_successful_evaluation() -> Weight { // Proof Size summary in bytes: - // Measured: `2122` + // Measured: `2123` // Estimated: `6471` - // Minimum execution time: 84_370_000 picoseconds. - Weight::from_parts(85_540_000, 0) - .saturating_add(Weight::from_parts(0, 6471)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(5)) + // Minimum execution time: 87_230_000 picoseconds. + Weight::from_parts(88_710_000, 6471) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) } /// Storage: `Funding::Evaluations` (r:1 w:1) /// Proof: `Funding::Evaluations` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsDetails` (r:1 w:0) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1 w:1) /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(1149), added: 3624, mode: `MaxEncodedLen`) /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn settle_failed_evaluation() -> Weight { // Proof Size summary in bytes: - // Measured: `1761` + // Measured: `1762` // Estimated: `4614` - // Minimum execution time: 77_060_000 picoseconds. - Weight::from_parts(78_660_000, 0) - .saturating_add(Weight::from_parts(0, 4614)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) + // Minimum execution time: 80_850_000 picoseconds. + Weight::from_parts(82_950_000, 4614) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) } /// Storage: `Funding::Bids` (r:1 w:1) /// Proof: `Funding::Bids` (`max_values`: None, `max_size`: Some(306), added: 2781, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsDetails` (r:1 w:0) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `ContributionTokens::Asset` (r:1 w:1) /// Proof: `ContributionTokens::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) /// Storage: `LinearRelease::Vesting` (r:1 w:1) @@ -391,18 +397,17 @@ impl pallet_funding::WeightInfo for WeightInfo { /// Proof: `Funding::UserMigrations` (`max_values`: None, `max_size`: Some(3006), added: 5481, mode: `MaxEncodedLen`) fn settle_successful_bid() -> Weight { // Proof Size summary in bytes: - // Measured: `2583` + // Measured: `2584` // Estimated: `6471` - // Minimum execution time: 102_260_000 picoseconds. - Weight::from_parts(103_210_000, 0) - .saturating_add(Weight::from_parts(0, 6471)) - .saturating_add(T::DbWeight::get().reads(11)) - .saturating_add(T::DbWeight::get().writes(9)) + // Minimum execution time: 103_180_000 picoseconds. + Weight::from_parts(105_410_000, 6471) + .saturating_add(T::DbWeight::get().reads(11_u64)) + .saturating_add(T::DbWeight::get().writes(9_u64)) } /// Storage: `Funding::Bids` (r:1 w:1) /// Proof: `Funding::Bids` (`max_values`: None, `max_size`: Some(306), added: 2781, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsDetails` (r:1 w:0) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `ForeignAssets::Asset` (r:1 w:1) /// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) /// Storage: `ForeignAssets::Account` (r:2 w:2) @@ -411,20 +416,19 @@ impl pallet_funding::WeightInfo for WeightInfo { /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(1149), added: 3624, mode: `MaxEncodedLen`) fn settle_failed_bid() -> Weight { // Proof Size summary in bytes: - // Measured: `2300` + // Measured: `2301` // Estimated: `6208` - // Minimum execution time: 87_480_000 picoseconds. - Weight::from_parts(88_660_000, 0) - .saturating_add(Weight::from_parts(0, 6208)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(5)) + // Minimum execution time: 89_670_000 picoseconds. + Weight::from_parts(92_420_000, 6208) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) } /// Storage: `Funding::Contributions` (r:1 w:1) /// Proof: `Funding::Contributions` (`max_values`: None, `max_size`: Some(252), added: 2727, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsDetails` (r:1 w:0) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `ContributionTokens::Asset` (r:1 w:1) /// Proof: `ContributionTokens::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1 w:1) @@ -441,18 +445,17 @@ impl pallet_funding::WeightInfo for WeightInfo { /// Proof: `Funding::UserMigrations` (`max_values`: None, `max_size`: Some(3006), added: 5481, mode: `MaxEncodedLen`) fn settle_successful_contribution() -> Weight { // Proof Size summary in bytes: - // Measured: `3184` + // Measured: `3185` // Estimated: `6471` - // Minimum execution time: 124_400_000 picoseconds. - Weight::from_parts(126_651_000, 0) - .saturating_add(Weight::from_parts(0, 6471)) - .saturating_add(T::DbWeight::get().reads(11)) - .saturating_add(T::DbWeight::get().writes(9)) + // Minimum execution time: 126_290_000 picoseconds. + Weight::from_parts(127_700_000, 6471) + .saturating_add(T::DbWeight::get().reads(11_u64)) + .saturating_add(T::DbWeight::get().writes(9_u64)) } /// Storage: `Funding::Contributions` (r:1 w:1) /// Proof: `Funding::Contributions` (`max_values`: None, `max_size`: Some(252), added: 2727, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsDetails` (r:1 w:0) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `ForeignAssets::Asset` (r:1 w:1) /// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) /// Storage: `ForeignAssets::Account` (r:2 w:2) @@ -461,111 +464,100 @@ impl pallet_funding::WeightInfo for WeightInfo { /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(1149), added: 3624, mode: `MaxEncodedLen`) fn settle_failed_contribution() -> Weight { // Proof Size summary in bytes: - // Measured: `2288` + // Measured: `2289` // Estimated: `6208` - // Minimum execution time: 88_621_000 picoseconds. - Weight::from_parts(90_470_000, 0) - .saturating_add(Weight::from_parts(0, 6208)) - .saturating_add(T::DbWeight::get().reads(6)) - .saturating_add(T::DbWeight::get().writes(5)) + // Minimum execution time: 89_560_000 picoseconds. + Weight::from_parts(91_060_000, 6208) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) } /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) - /// Storage: `Funding::ProjectsToUpdate` (r:99 w:1) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) + /// Storage: `Funding::ProjectsToUpdate` (r:1 w:1) /// Proof: `Funding::ProjectsToUpdate` (`max_values`: None, `max_size`: Some(26), added: 2501, mode: `MaxEncodedLen`) /// The range of component `x` is `[1, 99]`. fn end_evaluation_success(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `556 + x * (28 ±0)` - // Estimated: `3845 + x * (2501 ±0)` - // Minimum execution time: 14_580_000 picoseconds. - Weight::from_parts(13_891_467, 0) - .saturating_add(Weight::from_parts(0, 3845)) - // Standard Error: 2_073 - .saturating_add(Weight::from_parts(2_044_309, 0).saturating_mul(x.into())) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) - .saturating_add(T::DbWeight::get().writes(2)) - .saturating_add(Weight::from_parts(0, 2501).saturating_mul(x.into())) + // Measured: `941 + x * (3 ±0)` + // Estimated: `3862` + // Minimum execution time: 14_330_000 picoseconds. + Weight::from_parts(18_040_637, 3862) + // Standard Error: 1_471 + .saturating_add(Weight::from_parts(11_251, 0).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Funding::DidWithActiveProjects` (r:0 w:1) /// Proof: `Funding::DidWithActiveProjects` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) fn end_evaluation_failure() -> Weight { // Proof Size summary in bytes: - // Measured: `533` - // Estimated: `3845` - // Minimum execution time: 11_610_000 picoseconds. - Weight::from_parts(12_060_000, 0) - .saturating_add(Weight::from_parts(0, 3845)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `534` + // Estimated: `3862` + // Minimum execution time: 11_440_000 picoseconds. + Weight::from_parts(12_070_000, 3862) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) - /// Storage: `Funding::ProjectsToUpdate` (r:100 w:1) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) + /// Storage: `Funding::ProjectsToUpdate` (r:1 w:1) /// Proof: `Funding::ProjectsToUpdate` (`max_values`: None, `max_size`: Some(26), added: 2501, mode: `MaxEncodedLen`) /// The range of component `x` is `[1, 99]`. fn start_auction_closing_phase(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `598 + x * (28 ±0)` - // Estimated: `3845 + x * (2501 ±0)` - // Minimum execution time: 17_460_000 picoseconds. - Weight::from_parts(16_429_614, 0) - .saturating_add(Weight::from_parts(0, 3845)) - // Standard Error: 2_609 - .saturating_add(Weight::from_parts(2_119_429, 0).saturating_mul(x.into())) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) - .saturating_add(T::DbWeight::get().writes(2)) - .saturating_add(Weight::from_parts(0, 2501).saturating_mul(x.into())) + // Measured: `784 + x * (5 ±0)` + // Estimated: `3862` + // Minimum execution time: 15_780_000 picoseconds. + Weight::from_parts(16_897_418, 3862) + // Standard Error: 604 + .saturating_add(Weight::from_parts(25_696, 0).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) /// Storage: `Funding::Nonce` (r:1 w:1) /// Proof: `Funding::Nonce` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `Random::RandomMaterial` (r:1 w:0) /// Proof: `Random::RandomMaterial` (`max_values`: Some(1), `max_size`: Some(2594), added: 3089, mode: `MaxEncodedLen`) - /// Storage: `Funding::Bids` (r:1025 w:1024) + /// Storage: `Funding::Bids` (r:513 w:512) /// Proof: `Funding::Bids` (`max_values`: None, `max_size`: Some(306), added: 2781, mode: `MaxEncodedLen`) - /// Storage: `Oracle::Values` (r:1 w:0) - /// Proof: `Oracle::Values` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`) - /// Storage: `Funding::DidWithWinningBids` (r:512 w:512) + /// Storage: `Funding::DidWithWinningBids` (r:256 w:256) /// Proof: `Funding::DidWithWinningBids` (`max_values`: None, `max_size`: Some(95), added: 2570, mode: `MaxEncodedLen`) /// Storage: `ForeignAssets::Asset` (r:1 w:1) /// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) - /// Storage: `ForeignAssets::Account` (r:513 w:513) + /// Storage: `ForeignAssets::Account` (r:257 w:257) /// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:512 w:512) + /// Storage: `System::Account` (r:256 w:256) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) - /// Storage: `Balances::Holds` (r:512 w:512) + /// Storage: `Balances::Holds` (r:256 w:256) /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(1149), added: 3624, mode: `MaxEncodedLen`) - /// Storage: `Funding::ProjectsToUpdate` (r:100 w:1) + /// Storage: `Funding::ProjectsToUpdate` (r:99 w:1) /// Proof: `Funding::ProjectsToUpdate` (`max_values`: None, `max_size`: Some(26), added: 2501, mode: `MaxEncodedLen`) /// The range of component `x` is `[1, 99]`. - /// The range of component `y` is `[0, 512]`. - /// The range of component `z` is `[0, 512]`. - fn start_community_funding(x: u32, y: u32, z: u32, ) -> Weight { + /// The range of component `y` is `[1, 256]`. + /// The range of component `z` is `[1, 256]`. + fn end_auction_closing(x: u32, y: u32, z: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `47605 + x * (28 ±0) + y * (225 ±0) + z * (402 ±0)` + // Measured: `28251 + x * (28 ±0) + y * (225 ±0) + z * (392 ±0)` // Estimated: `4079 + x * (2501 ±0) + y * (2781 ±0) + z * (3624 ±0)` - // Minimum execution time: 5_837_206_000 picoseconds. - Weight::from_parts(413_733_742, 0) - .saturating_add(Weight::from_parts(0, 4079)) - // Standard Error: 106_293 - .saturating_add(Weight::from_parts(1_606_761, 0).saturating_mul(x.into())) - // Standard Error: 20_321 - .saturating_add(Weight::from_parts(10_286_608, 0).saturating_mul(y.into())) - // Standard Error: 20_321 - .saturating_add(Weight::from_parts(62_570_835, 0).saturating_mul(z.into())) - .saturating_add(T::DbWeight::get().reads(9)) + // Minimum execution time: 3_181_609_000 picoseconds. + Weight::from_parts(208_634_454, 4079) + // Standard Error: 64_217 + .saturating_add(Weight::from_parts(2_432_568, 0).saturating_mul(x.into())) + // Standard Error: 24_628 + .saturating_add(Weight::from_parts(10_591_792, 0).saturating_mul(y.into())) + // Standard Error: 24_628 + .saturating_add(Weight::from_parts(62_828_707, 0).saturating_mul(z.into())) + .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(y.into()))) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(z.into()))) - .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().writes(5_u64)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(y.into()))) .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(z.into()))) .saturating_add(Weight::from_parts(0, 2501).saturating_mul(x.into())) @@ -573,26 +565,64 @@ impl pallet_funding::WeightInfo for WeightInfo { .saturating_add(Weight::from_parts(0, 3624).saturating_mul(z.into())) } /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) + /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) + /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) + /// Storage: `Funding::Bids` (r:257 w:256) + /// Proof: `Funding::Bids` (`max_values`: None, `max_size`: Some(306), added: 2781, mode: `MaxEncodedLen`) + /// Storage: `Oracle::Values` (r:2 w:0) + /// Proof: `Oracle::Values` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`) + /// Storage: `ForeignAssets::Metadata` (r:1 w:0) + /// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `ForeignAssets::Asset` (r:1 w:1) + /// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `ForeignAssets::Account` (r:257 w:257) + /// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:256 w:256) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// Storage: `Balances::Holds` (r:256 w:256) + /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(1149), added: 3624, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsToUpdate` (r:100 w:1) /// Proof: `Funding::ProjectsToUpdate` (`max_values`: None, `max_size`: Some(26), added: 2501, mode: `MaxEncodedLen`) /// The range of component `x` is `[1, 99]`. - fn start_remainder_funding(x: u32, ) -> Weight { + /// The range of component `y` is `[1, 256]`. + /// The range of component `z` is `[1, 256]`. + fn start_community_funding(x: u32, y: u32, z: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `703 + x * (28 ±0)` - // Estimated: `3845 + x * (2501 ±0)` - // Minimum execution time: 18_720_000 picoseconds. - Weight::from_parts(17_800_359, 0) - .saturating_add(Weight::from_parts(0, 3845)) - // Standard Error: 2_758 - .saturating_add(Weight::from_parts(2_119_148, 0).saturating_mul(x.into())) - .saturating_add(T::DbWeight::get().reads(2)) + // Measured: `1778 + x * (28 ±0) + y * (486 ±0) + z * (72 ±0)` + // Estimated: `5754 + x * (2501 ±0) + y * (3624 ±0)` + // Minimum execution time: 281_740_000 picoseconds. + Weight::from_parts(284_170_000, 5754) + // Standard Error: 40_202 + .saturating_add(Weight::from_parts(51_253, 0).saturating_mul(x.into())) + // Standard Error: 15_491 + .saturating_add(Weight::from_parts(62_653_383, 0).saturating_mul(y.into())) + // Standard Error: 15_491 + .saturating_add(Weight::from_parts(562_873, 0).saturating_mul(z.into())) + .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) - .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(y.into()))) + .saturating_add(T::DbWeight::get().writes(3_u64)) + .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(y.into()))) .saturating_add(Weight::from_parts(0, 2501).saturating_mul(x.into())) + .saturating_add(Weight::from_parts(0, 3624).saturating_mul(y.into())) + } + /// Storage: `Funding::ProjectsDetails` (r:1 w:1) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) + /// Storage: `Funding::ProjectsToUpdate` (r:1 w:1) + /// Proof: `Funding::ProjectsToUpdate` (`max_values`: None, `max_size`: Some(26), added: 2501, mode: `MaxEncodedLen`) + /// The range of component `x` is `[1, 99]`. + fn start_remainder_funding(_x: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `1040 + x * (2 ±0)` + // Estimated: `3862` + // Minimum execution time: 18_340_000 picoseconds. + Weight::from_parts(21_445_773, 3862) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsToUpdate` (r:100 w:1) @@ -602,20 +632,19 @@ impl pallet_funding::WeightInfo for WeightInfo { /// The range of component `x` is `[1, 99]`. fn end_funding_automatically_rejected_evaluators_slashed(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1113 + x * (29 ±0)` + // Measured: `1112 + x * (28 ±0)` // Estimated: `3967 + x * (2501 ±0)` - // Minimum execution time: 27_310_000 picoseconds. - Weight::from_parts(26_005_918, 0) - .saturating_add(Weight::from_parts(0, 3967)) - // Standard Error: 2_362 - .saturating_add(Weight::from_parts(2_204_431, 0).saturating_mul(x.into())) - .saturating_add(T::DbWeight::get().reads(3)) + // Minimum execution time: 26_811_000 picoseconds. + Weight::from_parts(26_059_023, 3967) + // Standard Error: 2_320 + .saturating_add(Weight::from_parts(2_188_984, 0).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes(3_u64)) .saturating_add(Weight::from_parts(0, 2501).saturating_mul(x.into())) } /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsToUpdate` (r:100 w:1) @@ -625,20 +654,19 @@ impl pallet_funding::WeightInfo for WeightInfo { /// The range of component `x` is `[1, 99]`. fn end_funding_awaiting_decision_evaluators_slashed(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1118 + x * (28 ±0)` + // Measured: `1115 + x * (28 ±0)` // Estimated: `3967 + x * (2501 ±0)` - // Minimum execution time: 23_940_000 picoseconds. - Weight::from_parts(24_691_041, 0) - .saturating_add(Weight::from_parts(0, 3967)) - // Standard Error: 3_066 - .saturating_add(Weight::from_parts(2_054_312, 0).saturating_mul(x.into())) - .saturating_add(T::DbWeight::get().reads(3)) + // Minimum execution time: 23_380_000 picoseconds. + Weight::from_parts(24_132_314, 3967) + // Standard Error: 1_862 + .saturating_add(Weight::from_parts(2_034_418, 0).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes(3_u64)) .saturating_add(Weight::from_parts(0, 2501).saturating_mul(x.into())) } /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsToUpdate` (r:100 w:1) @@ -648,64 +676,61 @@ impl pallet_funding::WeightInfo for WeightInfo { /// The range of component `x` is `[1, 99]`. fn end_funding_awaiting_decision_evaluators_unchanged(x: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1118 + x * (28 ±0)` + // Measured: `1115 + x * (28 ±0)` // Estimated: `3967 + x * (2501 ±0)` - // Minimum execution time: 23_750_000 picoseconds. - Weight::from_parts(24_609_473, 0) - .saturating_add(Weight::from_parts(0, 3967)) - // Standard Error: 2_797 - .saturating_add(Weight::from_parts(2_058_465, 0).saturating_mul(x.into())) - .saturating_add(T::DbWeight::get().reads(3)) + // Minimum execution time: 23_720_000 picoseconds. + Weight::from_parts(24_416_362, 3967) + // Standard Error: 1_918 + .saturating_add(Weight::from_parts(2_033_211, 0).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes(3_u64)) .saturating_add(Weight::from_parts(0, 2501).saturating_mul(x.into())) } /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) - /// Storage: `Funding::Evaluations` (r:1024 w:0) + /// Storage: `Funding::Evaluations` (r:513 w:0) /// Proof: `Funding::Evaluations` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsToUpdate` (r:100 w:1) /// Proof: `Funding::ProjectsToUpdate` (`max_values`: None, `max_size`: Some(26), added: 2501, mode: `MaxEncodedLen`) /// Storage: `Funding::DidWithActiveProjects` (r:0 w:1) /// Proof: `Funding::DidWithActiveProjects` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`) /// The range of component `x` is `[1, 99]`. - /// The range of component `y` is `[1, 1024]`. + /// The range of component `y` is `[1, 512]`. fn end_funding_automatically_accepted_evaluators_rewarded(x: u32, y: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1085 + x * (28 ±0) + y * (243 ±0)` + // Measured: `1172 + x * (28 ±0) + y * (243 ±0)` // Estimated: `3967 + x * (2501 ±0) + y * (2729 ±0)` - // Minimum execution time: 251_050_000 picoseconds. - Weight::from_parts(253_700_000, 0) - .saturating_add(Weight::from_parts(0, 3967)) - // Standard Error: 37_322 - .saturating_add(Weight::from_parts(527_748, 0).saturating_mul(x.into())) - // Standard Error: 3_613 - .saturating_add(Weight::from_parts(4_280_063, 0).saturating_mul(y.into())) - .saturating_add(T::DbWeight::get().reads(4)) + // Minimum execution time: 248_440_000 picoseconds. + Weight::from_parts(5_894_662, 3967) + // Standard Error: 20_506 + .saturating_add(Weight::from_parts(2_081_278, 0).saturating_mul(x.into())) + // Standard Error: 3_928 + .saturating_add(Weight::from_parts(4_398_429, 0).saturating_mul(y.into())) + .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into()))) - .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes(3_u64)) .saturating_add(Weight::from_parts(0, 2501).saturating_mul(x.into())) .saturating_add(Weight::from_parts(0, 2729).saturating_mul(y.into())) } /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsToUpdate` (r:1 w:1) /// Proof: `Funding::ProjectsToUpdate` (`max_values`: None, `max_size`: Some(26), added: 2501, mode: `MaxEncodedLen`) fn project_decision() -> Weight { // Proof Size summary in bytes: - // Measured: `781` - // Estimated: `3845` - // Minimum execution time: 18_620_000 picoseconds. - Weight::from_parts(19_310_000, 0) - .saturating_add(Weight::from_parts(0, 3845)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(2)) + // Measured: `782` + // Estimated: `3862` + // Minimum execution time: 18_320_000 picoseconds. + Weight::from_parts(18_890_000, 3862) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) /// Storage: `ContributionTokens::Asset` (r:1 w:1) @@ -716,26 +741,24 @@ impl pallet_funding::WeightInfo for WeightInfo { /// Proof: `ContributionTokens::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) fn start_settlement_funding_success() -> Weight { // Proof Size summary in bytes: - // Measured: `1095` + // Measured: `1096` // Estimated: `3967` - // Minimum execution time: 62_120_000 picoseconds. - Weight::from_parts(63_550_000, 0) - .saturating_add(Weight::from_parts(0, 3967)) - .saturating_add(T::DbWeight::get().reads(5)) - .saturating_add(T::DbWeight::get().writes(4)) + // Minimum execution time: 62_331_000 picoseconds. + Weight::from_parts(63_400_000, 3967) + .saturating_add(T::DbWeight::get().reads(5_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) } /// Storage: `Funding::ProjectsDetails` (r:1 w:1) - /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(380), added: 2855, mode: `MaxEncodedLen`) + /// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(397), added: 2872, mode: `MaxEncodedLen`) /// Storage: `Funding::ProjectsMetadata` (r:1 w:0) /// Proof: `Funding::ProjectsMetadata` (`max_values`: None, `max_size`: Some(502), added: 2977, mode: `MaxEncodedLen`) fn start_settlement_funding_failure() -> Weight { // Proof Size summary in bytes: - // Measured: `1027` + // Measured: `1028` // Estimated: `3967` - // Minimum execution time: 14_370_000 picoseconds. - Weight::from_parts(14_960_000, 0) - .saturating_add(Weight::from_parts(0, 3967)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)) + // Minimum execution time: 14_430_000 picoseconds. + Weight::from_parts(14_830_000, 3967) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } -} +} \ No newline at end of file