diff --git a/pallets/game/src/benchmarking.rs b/pallets/game/src/benchmarking.rs index 81e8f118..80e46bb8 100644 --- a/pallets/game/src/benchmarking.rs +++ b/pallets/game/src/benchmarking.rs @@ -994,6 +994,13 @@ pub mod benches { ); let mut iterator = Players::::iter_from_key(target_player.clone()); let mut credits_awarded = 0; + // Worst case: the player moves to a next limit. + let granted = T::PlayerStatementLimit::get(); + let next = granted.clone().saturating_add(StatementAllowance::new(1, 1)); + PlayerStatementLimits::::put(PlayerStatementLimitsRecord { + granted: granted.into(), + next: Some(next.into()), + }); #[block] { diff --git a/pallets/game/src/lib.rs b/pallets/game/src/lib.rs index f1aa2c30..9292b994 100644 --- a/pallets/game/src/lib.rs +++ b/pallets/game/src/lib.rs @@ -191,6 +191,16 @@ //! All players in the game are given some statement store usage allowance. The player's allowance //! is cleared and their statements removed when archived or offboarded. //! +//! Every live player holds [`PlayerStatementLimitsRecord::granted`]. The statement store sums the +//! grants of all pallets per account, so a revocation uses the granted amount, not the current +//! `PlayerStatementLimit`. The player processing of the next game moves every live player to a +//! changed `PlayerStatementLimit`. Until then, new players get the previous limit. +//! The pallet accepts no sign-up, offboard, statement account change or game cancellation +//! during player processing, so one record covers every live player. +//! +//! A `PlayerStatementLimit` with a zero dimension grants zero. The statement store deletes such +//! an allowance, so a later revocation of the other dimension would reduce the restored limit. +//! //! # NFT claim credits //! //! A player earns one credit per successful report of one player on another, in one round of one @@ -338,6 +348,7 @@ use indiv_pallet_score::AccountOrPerson; use indiv_support::{ credit_trees::AwardCredits, offchain::{submit_authorized, TX_LONGEVITY}, + statement_allowance::BoundedStatementAllowance, traits::{Alias, CommunicationIdentifier, Context}, tx_priority, weight_budget::OcwWeightBudget, @@ -393,7 +404,7 @@ pub mod pallet { pub const PRODUCT_NAME: &[u8] = b"dim2"; /// The current storage version. - const STORAGE_VERSION: StorageVersion = StorageVersion::new(1); + const STORAGE_VERSION: StorageVersion = StorageVersion::new(2); #[pallet::pallet] #[pallet::storage_version(STORAGE_VERSION)] @@ -779,6 +790,13 @@ pub mod pallet { pub(crate) type StmtAccountToAlias = StorageMap<_, Blake2_128Concat, T::AccountId, Alias>; + /// The statement allowances that the pallet grants to live players. + /// + /// It is unset only while no player holds an allowance. The first grant then stores the + /// current `PlayerStatementLimit`. + #[pallet::storage] + pub type PlayerStatementLimits = StorageValue<_, PlayerStatementLimitsRecord>; + /// The communication identifiers used by players to establish an encrypted P2P connection in /// order to play the game. The account under which the communication identifier is registered /// should be the same account used to interact with the statement store. @@ -1562,10 +1580,7 @@ pub mod pallet { if let Some(stmt_account) = stmt_account { if player_is_offboarding { - decrease_allowance_by( - stmt_account.clone().into(), - T::PlayerStatementLimit::get(), - ); + Self::revoke_player_allowance(&stmt_account); } Self::deposit_event(Event::::StmtUsageRemoved { who: stmt_account.into() }); } @@ -2782,6 +2797,69 @@ pub mod pallet { Self::deposit_event(Event::::GameCancelled { game_index: game.index, reason }); } + /// Return `PlayerStatementLimit`, or zero when one of its dimensions is zero. + fn player_statement_limit() -> BoundedStatementAllowance { + let limit = T::PlayerStatementLimit::get(); + if limit.is_depleted() { + BoundedStatementAllowance::default() + } else { + limit.into() + } + } + + /// Return [`PlayerStatementLimits`], or [`Self::player_statement_limit`] when unset. + pub(crate) fn player_statement_limits() -> PlayerStatementLimitsRecord { + PlayerStatementLimits::::get().unwrap_or_else(|| PlayerStatementLimitsRecord { + granted: Self::player_statement_limit(), + next: None, + }) + } + + /// Grant [`PlayerStatementLimitsRecord::granted`] to `account`. + /// + /// Store [`PlayerStatementLimits`] when unset, so revocations use the same amount. + fn grant_player_allowance(account: &T::AccountId) { + let granted = PlayerStatementLimits::::get() + .unwrap_or_else(|| { + let limits = PlayerStatementLimitsRecord { + granted: Self::player_statement_limit(), + next: None, + }; + PlayerStatementLimits::::put(&limits); + limits + }) + .granted; + increase_allowance_by(account.clone().into(), granted.into()); + } + + fn revoke_player_allowance(account: &T::AccountId) { + let granted = Self::player_statement_limits().granted; + decrease_allowance_by(account.clone().into(), granted.into()); + } + + /// Move the allowance of `player_id` from [`PlayerStatementLimitsRecord::granted`] to + /// [`PlayerStatementLimitsRecord::next`], if set. + /// + /// Grant before revoking: the statement store removes the whole allowance of an account + /// when one dimension reaches zero. + fn update_player_allowance(player_id: &AccountOrPerson) { + let PlayerStatementLimitsRecord { granted, next: Some(next) } = + Self::player_statement_limits() + else { + return; + }; + let stmt_account = match player_id { + AccountOrPerson::Person(alias) => AliasToStmtAccount::::get(alias) + .defensive_proof( + "indiv-pallet-game: alias player must have a statement account", + ), + AccountOrPerson::Account(account) => Some(account.clone()), + }; + let Some(stmt_account) = stmt_account else { return }; + increase_allowance_by(stmt_account.clone().into(), next.into()); + decrease_allowance_by(stmt_account.into(), granted.into()); + } + /// **Warning**: Storage must be rollbacked on error. fn sign_up_inner( args: SignUpArgs>, @@ -2816,10 +2894,7 @@ pub mod pallet { if prev_stmt_account != Some(statement_account.clone()) { if let Some(prev_stmt_account) = prev_stmt_account { StmtAccountToAlias::::remove(&prev_stmt_account); - decrease_allowance_by( - prev_stmt_account.clone().into(), - T::PlayerStatementLimit::get(), - ); + Self::revoke_player_allowance(&prev_stmt_account); Self::deposit_event(Event::::StmtUsageRemoved { who: prev_stmt_account.into(), }); @@ -2838,10 +2913,7 @@ pub mod pallet { StmtAccountToAlias::::insert(&statement_account, who); AliasToStmtAccount::::insert(who, &statement_account); - increase_allowance_by( - statement_account.clone().into(), - T::PlayerStatementLimit::get(), - ); + Self::grant_player_allowance(&statement_account); } CommunicationIdentifiers::::insert(&statement_account, identifier_key); @@ -2915,7 +2987,7 @@ pub mod pallet { // An account-identified player gets allowance when signed up if !already_playing { if let Some(account) = who.account() { - increase_allowance_by(account.clone().into(), T::PlayerStatementLimit::get()); + Self::grant_player_allowance(account); } } @@ -3720,10 +3792,7 @@ pub mod pallet { }; if let Some(stmt_account) = stmt_account { - decrease_allowance_by( - stmt_account.clone().into(), - T::PlayerStatementLimit::get(), - ); + Self::revoke_player_allowance(&stmt_account); Self::deposit_event(Event::::StmtUsageRemoved { who: stmt_account.into() }); } @@ -3749,6 +3818,7 @@ pub mod pallet { credibility => credibility, }; + Self::update_player_allowance(&player_id); Players::::insert( &player_id, Player { @@ -3796,6 +3866,15 @@ pub mod pallet { return; }; + if last_iteration.is_none() { + let limits = Self::player_statement_limits(); + let limit = Self::player_statement_limit(); + let next = (limit != limits.granted).then_some(limit); + if next != limits.next { + PlayerStatementLimits::::put(PlayerStatementLimitsRecord { next, ..limits }); + } + } + let mut iterator = match last_iteration.clone() { None => Players::::iter(), Some(last) => Players::::iter_from_key(last), @@ -3849,6 +3928,15 @@ pub mod pallet { "indiv-pallet-game: session was started before the process players phase", ); + if let Some(PlayerStatementLimitsRecord { next: Some(next), .. }) = + PlayerStatementLimits::::get() + { + PlayerStatementLimits::::put(PlayerStatementLimitsRecord { + granted: next, + next: None, + }); + } + game.state = GameState::PlayerProcess { step: PlayerProcessStep::Step2ClearIndices }; } diff --git a/pallets/game/src/migration.rs b/pallets/game/src/migration.rs index 53d4bad6..fe870599 100644 --- a/pallets/game/src/migration.rs +++ b/pallets/game/src/migration.rs @@ -20,12 +20,14 @@ extern crate alloc; use crate::{ Config, Game, GameAirdrop, GameIdx, GameInfo, GameSchedule, GameSchedules, GameState, Pallet, + PlayerStatementLimits, PlayerStatementLimitsRecord, }; use alloc::vec::Vec; use frame_support::{ migrations::VersionedMigration, pallet_prelude::*, storage_alias, traits::UncheckedOnRuntimeUpgrade, }; +use sp_statement_store::StatementAllowance; const LOG_TARGET: &str = "runtime::game::migration"; @@ -172,3 +174,40 @@ pub mod v1 { } } } + +/// Stores `Granted` as [`PlayerStatementLimitsRecord::granted`]. +/// +/// `Granted` must be the allowance that live players hold before the upgrade. +pub type MigrateV1ToV2 = VersionedMigration< + 1, + 2, + v2::InitialisePlayerStatementLimits, + Pallet, + ::DbWeight, +>; + +pub mod v2 { + use super::*; + + /// Use [`super::MigrateV1ToV2`] rather than this directly. + pub struct InitialisePlayerStatementLimits(PhantomData<(T, Granted)>); + + impl> UncheckedOnRuntimeUpgrade + for InitialisePlayerStatementLimits + { + fn on_runtime_upgrade() -> Weight { + PlayerStatementLimits::::put(PlayerStatementLimitsRecord { + granted: Granted::get().into(), + next: None, + }); + log::info!(target: LOG_TARGET, "initialised PlayerStatementLimits"); + T::DbWeight::get().writes(1) + } + + #[cfg(feature = "try-runtime")] + fn post_upgrade(_state: Vec) -> Result<(), sp_runtime::TryRuntimeError> { + ensure!(PlayerStatementLimits::::exists(), "PlayerStatementLimits is not set"); + Ok(()) + } + } +} diff --git a/pallets/game/src/mock_runtime.rs b/pallets/game/src/mock_runtime.rs index 1bedc9cc..995cf076 100644 --- a/pallets/game/src/mock_runtime.rs +++ b/pallets/game/src/mock_runtime.rs @@ -456,7 +456,7 @@ impl pallet_assets_holder::Config for Test { } parameter_types! { - pub PlayerStatementLimit: StatementAllowance = StatementAllowance { + pub storage PlayerStatementLimit: StatementAllowance = StatementAllowance { max_size: 1000, max_count: 1000, }; diff --git a/pallets/game/src/tests.rs b/pallets/game/src/tests.rs index d51809f1..ed4e40df 100644 --- a/pallets/game/src/tests.rs +++ b/pallets/game/src/tests.rs @@ -15,6 +15,7 @@ // limitations under the License. use crate::{ + migration::MigrateV1ToV2, mock::{deposit::MockConsideration, Game, *}, *, }; @@ -22,7 +23,8 @@ use codec::Encode; use frame_support::{ assert_noop, assert_ok, dispatch::Pays, - traits::{Get, Hooks, OffchainWorker}, + parameter_types, + traits::{Get, GetStorageVersion, Hooks, OffchainWorker, OnRuntimeUpgrade, StorageVersion}, BoundedVec, }; use indiv_pallet_people::PEOPLE_MEMBER_IDENTIFIER; @@ -31,7 +33,7 @@ use indiv_support::traits::{ }; use sp_core::{crypto::VrfSecret, ed25519, sr25519, Pair}; use sp_runtime::{testing::TestSignature, transaction_validity::InvalidTransaction, AccountId32}; -use sp_statement_store::Statement; +use sp_statement_store::{get_allowance, increase_allowance_by, Statement, StatementAllowance}; use std::{slice, time::Duration}; use verifiable::{mock::Mock, GenerateVerifiable}; @@ -473,6 +475,296 @@ fn offboard_live_player() { }); } +const OTHER_GRANT: StatementAllowance = StatementAllowance { max_count: 7, max_size: 70 }; + +fn limits_granting(granted: StatementAllowance) -> Option { + Some(PlayerStatementLimitsRecord { granted: granted.into(), next: None }) +} + +/// A report that confirms every co-player, so `reporter` attends and stays live. +fn attending_report(reporter: &AccountOrPerson) -> FullReport { + build_report_with_opinion(reporter, |_| Report::Person) +} + +fn live_player_schedule(game_play_time: u32) -> GameSchedule { + GameSchedule:: { game_play_time, rounds: 2, max_group_size: 2, ..Default::default() } +} + +fn solo_player_schedule(game_play_time: u32) -> GameSchedule { + GameSchedule:: { game_play_time, rounds: 1, max_group_size: 2, ..Default::default() } +} + +/// Plays one game that `accounts` attend. Each account holds `OTHER_GRANT` from another pallet. +fn sign_up_live_players_with_other_grant(accounts: &[AccountId32]) { + for account in accounts { + increase_allowance_by(account, OTHER_GRANT); + } + let players = accounts.iter().cloned().map(AccountOrPerson::Account).collect::>(); + run_game_scenario(live_player_schedule(25), &players, |p| Some(attending_report(p))); +} + +/// Plays one game with ALICE, applies `change` to `PlayerStatementLimit` and offboards ALICE. +/// +/// Asserts that ALICE keeps only `OTHER_GRANT`. +fn assert_offboard_revokes_the_granted_allowance(change: fn(u32) -> u32) { + new_test_ext().execute_with(|| { + let granted = PlayerStatementLimit::get(); + sign_up_live_players_with_other_grant(&[ALICE]); + assert_eq!(get_allowance(ALICE), OTHER_GRANT.saturating_add(granted.clone())); + + PlayerStatementLimit::set(&StatementAllowance { + max_count: change(granted.max_count), + max_size: change(granted.max_size), + }); + assert_ok!(Game::offboard(RuntimeOrigin::signed(ALICE))); + + assert_eq!(get_allowance(ALICE), OTHER_GRANT); + }); +} + +#[test] +fn offboard_revokes_the_granted_player_allowance_after_a_limit_increase() { + assert_offboard_revokes_the_granted_allowance(|limit| limit * 2); +} + +#[test] +fn offboard_revokes_the_granted_player_allowance_after_a_limit_decrease() { + assert_offboard_revokes_the_granted_allowance(|limit| limit / 2); +} + +#[test] +fn player_processing_moves_live_players_to_a_changed_limit() { + new_test_ext().execute_with(|| { + let granted = PlayerStatementLimit::get(); + sign_up_live_players_with_other_grant(&[ALICE]); + let raised = StatementAllowance { max_count: 2000, max_size: 2000 }; + PlayerStatementLimit::set(&raised); + + run_game_scenario_with_phase( + live_player_schedule(60), + || { + for account in [ALICE, BOB] { + assert_ok!(Game::sign_up_with_account( + RuntimeOrigin::signed(account), + DEFAULT_IDENTIFIER_KEY, + None + )); + } + // A new player gets the granted limit until player processing. + assert_eq!(get_allowance(BOB), granted); + }, + || { + for account in [ALICE, BOB] { + let report = attending_report(&AccountOrPerson::Account(account.clone())); + assert_ok!(Game::report(RuntimeOrigin::signed(account), report)); + } + }, + ); + + assert_eq!(get_allowance(ALICE), OTHER_GRANT.saturating_add(raised.clone())); + assert_eq!(get_allowance(BOB), raised.clone()); + assert_eq!(PlayerStatementLimits::::get(), limits_granting(raised)); + + assert_ok!(Game::offboard(RuntimeOrigin::signed(ALICE))); + assert_eq!(get_allowance(ALICE), OTHER_GRANT); + }); +} + +#[test] +fn player_processing_moves_live_alias_players_to_a_changed_limit() { + new_test_ext().execute_with(|| { + let alias = id_to_alias(101); + let players = [AccountOrPerson::Person(alias), AccountOrPerson::Person(id_to_alias(102))]; + run_game_scenario(live_player_schedule(25), &players, |p| Some(attending_report(p))); + let raised = StatementAllowance { max_count: 2000, max_size: 2000 }; + PlayerStatementLimit::set(&raised); + run_game_scenario(live_player_schedule(60), &players, |p| Some(attending_report(p))); + assert_eq!(get_allowance(AccountId32::new(alias)), raised); + }); +} + +#[test] +fn player_processing_restores_the_limit_after_a_depleted_limit() { + new_test_ext().execute_with(|| { + let granted = PlayerStatementLimit::get(); + let players = [AccountOrPerson::Account(ALICE), AccountOrPerson::Account(BOB)]; + run_game_scenario(live_player_schedule(25), &players, |p| Some(attending_report(p))); + + // A revocation of this size would remove more than `granted` holds. + PlayerStatementLimit::set(&StatementAllowance { + max_count: 0, + max_size: granted.max_size * 2, + }); + run_game_scenario(live_player_schedule(60), &players, |p| Some(attending_report(p))); + assert_eq!(get_allowance(ALICE), StatementAllowance::default()); + assert_eq!(PlayerStatementLimits::::get(), limits_granting(Default::default())); + + PlayerStatementLimit::set(&granted); + run_game_scenario(live_player_schedule(95), &players, |p| Some(attending_report(p))); + assert_eq!(get_allowance(ALICE), granted); + }); +} + +#[test] +fn player_processing_applies_the_limit_at_its_start() { + new_test_ext().execute_with(|| { + sign_up_live_players_with_other_grant(&[ALICE, BOB]); + let first = StatementAllowance { max_count: 2000, max_size: 2000 }; + PlayerStatementLimit::set(&first); + + let schedule = live_player_schedule(60); + assert_ok!(Game::schedule_games(RuntimeOrigin::root(), vec![schedule.clone()])); + advance_process(); + for account in [ALICE, BOB] { + assert_ok!(Game::sign_up_with_account( + RuntimeOrigin::signed(account), + DEFAULT_IDENTIFIER_KEY, + None + )); + } + advance_to_reporting_phase(&schedule); + for account in [ALICE, BOB] { + let report = attending_report(&AccountOrPerson::Account(account.clone())); + assert_ok!(Game::report(RuntimeOrigin::signed(account), report)); + } + let report_ends = GameTimes::::reporting_end(&schedule); + MOCK_UNIX_TIME.with(|t| *t.borrow_mut() = Duration::from_secs((report_ends + 1) as u64)); + advance_process(); // reporting -> player process step1 + + // Process one player, then change the limit. + let one_player = ::WeightInfo::player_process_step1() + .saturating_add(::WeightInfo::player_process_step1_inner_loop(2)); + Game::player_process_step1(&mut WeightMeter::with_limit(one_player)); + assert!(matches!( + crate::Game::::get().unwrap().state, + GameState::PlayerProcess { + step: PlayerProcessStep::Step1ProcessPlayers { last_iteration: Some(_), .. } + } + )); + PlayerStatementLimit::set(&StatementAllowance { max_count: 3000, max_size: 3000 }); + advance_process(); // step1 -> step2 + advance_process(); // step2 -> step3 + advance_process(); // step3 -> done + + for account in [ALICE, BOB] { + assert_eq!(get_allowance(account), OTHER_GRANT.saturating_add(first.clone())); + } + assert_eq!(PlayerStatementLimits::::get(), limits_granting(first)); + }); +} + +#[test] +fn archive_revokes_the_granted_player_allowance_after_a_limit_change() { + new_test_ext().execute_with(|| { + increase_allowance_by(ALICE, OTHER_GRANT); + let lowered = StatementAllowance { max_count: 1, max_size: 1 }; + run_game_scenario_with_phase( + solo_player_schedule(10), + || { + assert_ok!(Game::sign_up_with_account( + RuntimeOrigin::signed(ALICE), + DEFAULT_IDENTIFIER_KEY, + None + )); + }, + // ALICE does not report, so the game archives ALICE. + || PlayerStatementLimit::set(&lowered), + ); + + assert!(ArchivedPlayers::::contains_key(AccountOrPerson::Account(ALICE))); + assert_eq!(get_allowance(ALICE), OTHER_GRANT); + assert_eq!(PlayerStatementLimits::::get(), limits_granting(lowered)); + }); +} + +#[test] +fn statement_account_switch_moves_the_granted_player_allowance() { + new_test_ext().execute_with(|| { + let granted = PlayerStatementLimit::get(); + let alias = id_to_alias(101); + let previous_account = AccountId32::new(alias); + let next_account = id_to_account(202); + increase_allowance_by(&previous_account, OTHER_GRANT); + run_game_scenario( + solo_player_schedule(10), + slice::from_ref(&AccountOrPerson::Person(alias)), + |_| Some(vec![BoundedVec::default()].try_into().unwrap()), + ); + + PlayerStatementLimit::set(&StatementAllowance { max_count: 2000, max_size: 2000 }); + run_game_scenario_with_phase( + solo_player_schedule(25), + || { + assert_ok!(Game::sign_up_with_alias( + runtime_origin_for_alias(&alias), + DEFAULT_IDENTIFIER_KEY, + next_account.clone(), + StatementSignature(next_account.clone()), + None + )); + assert_eq!(get_allowance(&previous_account), OTHER_GRANT); + assert_eq!(get_allowance(&next_account), granted); + }, + || {}, + ); + }); +} + +#[test] +fn player_statement_limits_are_stored_on_first_grant() { + new_test_ext().execute_with(|| { + let granted = PlayerStatementLimit::get(); + assert!(!PlayerStatementLimits::::exists()); + + assert_ok!(Game::new_game(&live_player_schedule(10))); + assert_ok!(Game::sign_up_with_account( + RuntimeOrigin::signed(ALICE), + DEFAULT_IDENTIFIER_KEY, + None + )); + PlayerStatementLimit::set(&StatementAllowance { max_count: 1, max_size: 1 }); + + assert_eq!(PlayerStatementLimits::::get(), limits_granting(granted.clone())); + assert_ok!(Game::sign_up_with_account( + RuntimeOrigin::signed(BOB), + DEFAULT_IDENTIFIER_KEY, + None + )); + assert_eq!(get_allowance(BOB), granted); + }); +} + +parameter_types! { + pub PlayerStatementLimitBeforeV2: StatementAllowance = + StatementAllowance { max_count: 5, max_size: 50 }; +} + +#[test] +fn migration_v2_stores_the_allowance_that_players_hold() { + new_test_ext().execute_with(|| { + StorageVersion::new(1).put::(); + + MigrateV1ToV2::::on_runtime_upgrade(); + + assert_eq!( + PlayerStatementLimits::::get(), + limits_granting(PlayerStatementLimitBeforeV2::get()) + ); + assert_eq!(Game::on_chain_storage_version(), StorageVersion::new(2)); + }); +} + +#[test] +fn migration_v2_runs_only_from_version_one() { + new_test_ext().execute_with(|| { + StorageVersion::new(0).put::(); + + MigrateV1ToV2::::on_runtime_upgrade(); + + assert!(!PlayerStatementLimits::::exists()); + }); +} + #[test] fn archived_player_can_sign_up_again() { new_test_ext().execute_with(|| { diff --git a/pallets/game/src/types.rs b/pallets/game/src/types.rs index 1021b3a9..6742be36 100644 --- a/pallets/game/src/types.rs +++ b/pallets/game/src/types.rs @@ -19,7 +19,10 @@ use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen}; use frame_support::{pallet_prelude::Get, traits::ConstU32, BoundedVec}; use indiv_pallet_airdrop::{types::AirdropPrize, RegistrationEntry}; use indiv_pallet_score::AccountOrPerson; -use indiv_support::traits::{Alias, RevisionIndex, RingIndex}; +use indiv_support::{ + statement_allowance::BoundedStatementAllowance, + traits::{Alias, RevisionIndex, RingIndex}, +}; use scale_info::TypeInfo; use sp_core::sr25519::vrf::VrfSignature; @@ -279,6 +282,20 @@ impl ArchivedPlayer { } } +/// The statement allowances that the pallet grants to live players. +#[derive( + Encode, Decode, DecodeWithMemTracking, MaxEncodedLen, TypeInfo, Clone, PartialEq, Eq, Debug, +)] +pub struct PlayerStatementLimitsRecord { + /// The allowance that each live player holds. + pub granted: BoundedStatementAllowance, + /// The allowance that player processing moves each live player to. + /// + /// Player processing sets it at its start if `PlayerStatementLimit` differs from `granted`, + /// and moves it to `granted` at its end. + pub next: Option, +} + /// The information of a game. #[derive(Encode, Decode, MaxEncodedLen, TypeInfo, Debug, DecodeWithMemTracking)] pub struct GameInfo> { diff --git a/pallets/game/src/weights.rs b/pallets/game/src/weights.rs index 256dd38b..8079eae2 100644 --- a/pallets/game/src/weights.rs +++ b/pallets/game/src/weights.rs @@ -17,9 +17,9 @@ //! Autogenerated weights for `indiv_pallet_game` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 64.0.1 -//! DATE: 2026-11-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2026-11-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `parity-weights-aa5af0a6931f124d`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `parity-weights-e1b49a2b09e23484`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024` // Executed Command: @@ -131,8 +131,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `9435` // Estimated: `123382` - // Minimum execution time: 1_566_063_000 picoseconds. - Weight::from_parts(1_623_270_000, 123382) + // Minimum execution time: 1_562_646_000 picoseconds. + Weight::from_parts(1_612_361_000, 123382) .saturating_add(T::DbWeight::get().reads(28_u64)) .saturating_add(T::DbWeight::get().writes(41_u64)) } @@ -142,10 +142,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Game::Game` (`max_values`: Some(1), `max_size`: Some(78), added: 573, mode: `MaxEncodedLen`) fn end_registration_shuffle() -> Weight { // Proof Size summary in bytes: - // Measured: `301` + // Measured: `313` // Estimated: `1563` - // Minimum execution time: 12_924_000 picoseconds. - Weight::from_parts(13_990_000, 1563) + // Minimum execution time: 12_531_000 picoseconds. + Weight::from_parts(13_597_000, 1563) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -170,10 +170,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1085 + n * (179 ±0)` // Estimated: `7404 + n * (3308 ±0)` - // Minimum execution time: 14_264_000 picoseconds. - Weight::from_parts(41_078_920, 7404) - // Standard Error: 89_655 - .saturating_add(Weight::from_parts(71_856_527, 0).saturating_mul(n.into())) + // Minimum execution time: 14_219_000 picoseconds. + Weight::from_parts(40_135_881, 7404) + // Standard Error: 135_958 + .saturating_add(Weight::from_parts(71_797_468, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(5_u64)) @@ -190,8 +190,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `8753` // Estimated: `123382` - // Minimum execution time: 7_370_000 picoseconds. - Weight::from_parts(8_141_000, 123382) + // Minimum execution time: 7_325_000 picoseconds. + Weight::from_parts(7_969_000, 123382) .saturating_add(T::DbWeight::get().reads(3_u64)) } /// Storage: `Game::GameIndex` (r:1 w:0) @@ -202,8 +202,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `234` // Estimated: `1563` - // Minimum execution time: 7_133_000 picoseconds. - Weight::from_parts(7_791_000, 1563) + // Minimum execution time: 7_053_000 picoseconds. + Weight::from_parts(7_718_000, 1563) .saturating_add(T::DbWeight::get().reads(2_u64)) } /// Storage: `Timestamp::Now` (r:1 w:0) @@ -238,8 +238,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `425` // Estimated: `4111` - // Minimum execution time: 32_940_000 picoseconds. - Weight::from_parts(34_896_000, 4111) + // Minimum execution time: 32_824_000 picoseconds. + Weight::from_parts(34_709_000, 4111) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -252,12 +252,12 @@ impl WeightInfo for SubstrateWeight { /// The range of component `n` is `[1, 10]`. fn shuffle_step_insert(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `676` + // Measured: `688` // Estimated: `6100` - // Minimum execution time: 27_050_000 picoseconds. - Weight::from_parts(26_651_985, 6100) - // Standard Error: 7_102 - .saturating_add(Weight::from_parts(2_231_803, 0).saturating_mul(n.into())) + // Minimum execution time: 27_040_000 picoseconds. + Weight::from_parts(26_117_729, 6100) + // Standard Error: 6_578 + .saturating_add(Weight::from_parts(2_240_324, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) @@ -272,11 +272,11 @@ impl WeightInfo for SubstrateWeight { fn shuffle_step_retrieve(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `408 + n * (87 ±0)` - // Estimated: `4891 + n * (5098 ±0)` - // Minimum execution time: 21_933_000 picoseconds. - Weight::from_parts(12_392_587, 4891) - // Standard Error: 31_642 - .saturating_add(Weight::from_parts(14_225_035, 0).saturating_mul(n.into())) + // Estimated: `4891 + n * (5098 ±47)` + // Minimum execution time: 21_809_000 picoseconds. + Weight::from_parts(12_464_710, 4891) + // Standard Error: 36_942 + .saturating_add(Weight::from_parts(14_174_992, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(2_u64)) @@ -292,10 +292,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1151` // Estimated: `6120` - // Minimum execution time: 21_308_000 picoseconds. - Weight::from_parts(25_471_056, 6120) - // Standard Error: 1_275 - .saturating_add(Weight::from_parts(47_204, 0).saturating_mul(p.into())) + // Minimum execution time: 21_285_000 picoseconds. + Weight::from_parts(25_730_713, 6120) + // Standard Error: 1_390 + .saturating_add(Weight::from_parts(47_789, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -317,13 +317,17 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `458` // Estimated: `4111` - // Minimum execution time: 17_725_000 picoseconds. - Weight::from_parts(19_016_000, 4111) + // Minimum execution time: 17_781_000 picoseconds. + Weight::from_parts(19_063_000, 4111) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: `Game::Game` (r:1 w:1) /// Proof: `Game::Game` (`max_values`: Some(1), `max_size`: Some(78), added: 573, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:0) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: `Timestamp::Now` (r:1 w:0) /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Storage: `NftCredits::CreditBufferCursor` (r:1 w:0) @@ -336,11 +340,11 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Members::Collections` (`max_values`: None, `max_size`: Some(646), added: 3121, mode: `MaxEncodedLen`) fn player_process_step1() -> Weight { // Proof Size summary in bytes: - // Measured: `464` + // Measured: `467` // Estimated: `4111` - // Minimum execution time: 23_718_000 picoseconds. - Weight::from_parts(25_322_000, 4111) - .saturating_add(T::DbWeight::get().reads(6_u64)) + // Minimum execution time: 31_869_000 picoseconds. + Weight::from_parts(33_776_000, 4111) + .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Score::Participants` (r:1 w:1) @@ -373,20 +377,24 @@ impl WeightInfo for SubstrateWeight { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1 w:1) /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:0) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653a239a263ce38c84e6e61343` (r:1 w:1) + /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653a239a263ce38c84e6e61343` (r:1 w:1) /// Storage: `Game::Players` (r:2 w:1) /// Proof: `Game::Players` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 10]`. fn player_process_step1_inner_loop(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `4904 + r * (477 ±0)` - // Estimated: `9020 + r * (22689 ±85)` - // Minimum execution time: 418_900_000 picoseconds. - Weight::from_parts(274_653_210, 9020) - // Standard Error: 229_239 - .saturating_add(Weight::from_parts(165_435_516, 0).saturating_mul(r.into())) - .saturating_add(T::DbWeight::get().reads(17_u64)) + // Measured: `4944 + r * (477 ±0)` + // Estimated: `9020 + r * (22689 ±0)` + // Minimum execution time: 411_319_000 picoseconds. + Weight::from_parts(275_465_932, 9020) + // Standard Error: 491_179 + .saturating_add(Weight::from_parts(159_244_452, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(19_u64)) .saturating_add(T::DbWeight::get().reads((9_u64).saturating_mul(r.into()))) - .saturating_add(T::DbWeight::get().writes(14_u64)) + .saturating_add(T::DbWeight::get().writes(15_u64)) .saturating_add(Weight::from_parts(0, 22689).saturating_mul(r.into())) } /// Storage: `Game::Game` (r:1 w:1) @@ -395,8 +403,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `285` // Estimated: `1563` - // Minimum execution time: 17_576_000 picoseconds. - Weight::from_parts(18_983_000, 1563) + // Minimum execution time: 17_500_000 picoseconds. + Weight::from_parts(18_802_000, 1563) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -410,8 +418,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `21156` // Estimated: `260055` - // Minimum execution time: 305_792_000 picoseconds. - Weight::from_parts(314_477_000, 260055) + // Minimum execution time: 301_985_000 picoseconds. + Weight::from_parts(315_000_000, 260055) .saturating_add(T::DbWeight::get().reads(303_u64)) .saturating_add(T::DbWeight::get().writes(300_u64)) } @@ -425,8 +433,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `176` // Estimated: `3545` - // Minimum execution time: 8_885_000 picoseconds. - Weight::from_parts(9_627_000, 3545) + // Minimum execution time: 9_071_000 picoseconds. + Weight::from_parts(9_762_000, 3545) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -438,8 +446,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `7711` // Estimated: `258439` - // Minimum execution time: 196_790_000 picoseconds. - Weight::from_parts(204_341_000, 258439) + // Minimum execution time: 194_767_000 picoseconds. + Weight::from_parts(202_050_000, 258439) .saturating_add(T::DbWeight::get().reads(202_u64)) .saturating_add(T::DbWeight::get().writes(200_u64)) } @@ -458,10 +466,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `414 + n * (4 ±0)` // Estimated: `6100` - // Minimum execution time: 21_174_000 picoseconds. - Weight::from_parts(21_820_413, 6100) - // Standard Error: 19_035 - .saturating_add(Weight::from_parts(1_463_277, 0).saturating_mul(n.into())) + // Minimum execution time: 20_870_000 picoseconds. + Weight::from_parts(21_180_889, 6100) + // Standard Error: 15_364 + .saturating_add(Weight::from_parts(1_507_972, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) @@ -484,6 +492,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Airdrop::Events` (`max_values`: None, `max_size`: Some(833), added: 3308, mode: `MaxEncodedLen`) /// Storage: `Airdrop::Registrations` (r:16 w:16) /// Proof: `Airdrop::Registrations` (`max_values`: None, `max_size`: Some(105), added: 2580, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:1) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Storage: `Game::CommunicationIdentifiers` (r:0 w:1) @@ -491,15 +503,15 @@ impl WeightInfo for SubstrateWeight { /// The range of component `n` is `[0, 16]`. fn sign_up_with_invite(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `562 + n * (183 ±0)` - // Estimated: `4012 + n * (3308 ±0)` - // Minimum execution time: 48_054_000 picoseconds. - Weight::from_parts(41_466_616, 4012) - // Standard Error: 289_101 - .saturating_add(Weight::from_parts(672_470_917, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(8_u64)) + // Measured: `565 + n * (183 ±0)` + // Estimated: `4015 + n * (3308 ±0)` + // Minimum execution time: 52_701_000 picoseconds. + Weight::from_parts(63_479_762, 4015) + // Standard Error: 62_543 + .saturating_add(Weight::from_parts(655_781_428, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(10_u64)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) - .saturating_add(T::DbWeight::get().writes(6_u64)) + .saturating_add(T::DbWeight::get().writes(7_u64)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 3308).saturating_mul(n.into())) } @@ -525,6 +537,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Airdrop::Events` (`max_values`: None, `max_size`: Some(833), added: 3308, mode: `MaxEncodedLen`) /// Storage: `Airdrop::Registrations` (r:16 w:16) /// Proof: `Airdrop::Registrations` (`max_values`: None, `max_size`: Some(105), added: 2580, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:1) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Storage: `Game::CommunicationIdentifiers` (r:0 w:1) @@ -532,15 +548,15 @@ impl WeightInfo for SubstrateWeight { /// The range of component `n` is `[0, 16]`. fn sign_up_with_account_new(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `665 + n * (183 ±0)` - // Estimated: `4115 + n * (3308 ±0)` - // Minimum execution time: 85_303_000 picoseconds. - Weight::from_parts(98_248_046, 4115) - // Standard Error: 96_069 - .saturating_add(Weight::from_parts(665_062_948, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(10_u64)) + // Measured: `668 + n * (183 ±0)` + // Estimated: `4118 + n * (3308 ±0)` + // Minimum execution time: 90_843_000 picoseconds. + Weight::from_parts(101_885_162, 4118) + // Standard Error: 94_932 + .saturating_add(Weight::from_parts(657_759_015, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) - .saturating_add(T::DbWeight::get().writes(7_u64)) + .saturating_add(T::DbWeight::get().writes(8_u64)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 3308).saturating_mul(n.into())) } @@ -573,10 +589,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2206 + n * (183 ±0)` // Estimated: `4657 + n * (3308 ±0)` - // Minimum execution time: 41_708_000 picoseconds. - Weight::from_parts(43_394_000, 4657) - // Standard Error: 1_482_838 - .saturating_add(Weight::from_parts(29_105_636_484, 0).saturating_mul(n.into())) + // Minimum execution time: 41_839_000 picoseconds. + Weight::from_parts(57_852_117, 4657) + // Standard Error: 3_042_757 + .saturating_add(Weight::from_parts(29_088_410_144, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(9_u64)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(3_u64)) @@ -591,6 +607,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Storage: `Game::AliasToStmtAccount` (r:1 w:1) /// Proof: `Game::AliasToStmtAccount` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:1) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653a6b79c57e6a095239282c04` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653a6b79c57e6a095239282c04` (r:1 w:1) /// Storage: `Game::StmtAccountToAlias` (r:1 w:2) @@ -618,15 +638,15 @@ impl WeightInfo for SubstrateWeight { /// The range of component `n` is `[0, 16]`. fn sign_up_with_alias(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2207 + n * (183 ±0)` - // Estimated: `6100 + n * (3308 ±0)` - // Minimum execution time: 114_986_000 picoseconds. - Weight::from_parts(254_262_478, 6100) - // Standard Error: 2_271_949 - .saturating_add(Weight::from_parts(29_086_752_657, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(15_u64)) + // Measured: `2210 + n * (183 ±0)` + // Estimated: `6100 + n * (3308 ±8)` + // Minimum execution time: 121_513_000 picoseconds. + Weight::from_parts(317_083_150, 6100) + // Standard Error: 2_162_780 + .saturating_add(Weight::from_parts(29_038_791_188, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(17_u64)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) - .saturating_add(T::DbWeight::get().writes(9_u64)) + .saturating_add(T::DbWeight::get().writes(10_u64)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 3308).saturating_mul(n.into())) } @@ -652,6 +672,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Airdrop::Events` (`max_values`: None, `max_size`: Some(833), added: 3308, mode: `MaxEncodedLen`) /// Storage: `Airdrop::Registrations` (r:16 w:16) /// Proof: `Airdrop::Registrations` (`max_values`: None, `max_size`: Some(105), added: 2580, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:1) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Storage: `Game::CommunicationIdentifiers` (r:0 w:1) @@ -659,15 +683,15 @@ impl WeightInfo for SubstrateWeight { /// The range of component `n` is `[0, 16]`. fn sign_up_with_account_lite_invite(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `739 + n * (183 ±0)` - // Estimated: `4189 + n * (3308 ±0)` - // Minimum execution time: 62_083_000 picoseconds. - Weight::from_parts(76_046_305, 4189) - // Standard Error: 119_817 - .saturating_add(Weight::from_parts(667_432_945, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(10_u64)) + // Measured: `742 + n * (183 ±0)` + // Estimated: `4192 + n * (3308 ±0)` + // Minimum execution time: 67_085_000 picoseconds. + Weight::from_parts(79_859_197, 4192) + // Standard Error: 77_433 + .saturating_add(Weight::from_parts(656_661_539, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) - .saturating_add(T::DbWeight::get().writes(7_u64)) + .saturating_add(T::DbWeight::get().writes(8_u64)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 3308).saturating_mul(n.into())) } @@ -707,14 +731,14 @@ impl WeightInfo for SubstrateWeight { /// The range of component `n` is `[0, 9]`. fn report(e: u32, n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `9280 + e * (252 ±0) + n * (237 ±0)` - // Estimated: `8337 + e * (3439 ±28) + n * (2573 ±266)` - // Minimum execution time: 592_987_000 picoseconds. - Weight::from_parts(249_376_344, 8337) - // Standard Error: 104_305 - .saturating_add(Weight::from_parts(32_016_822, 0).saturating_mul(e.into())) - // Standard Error: 889_832 - .saturating_add(Weight::from_parts(25_478_956, 0).saturating_mul(n.into())) + // Measured: `9311 + e * (252 ±0) + n * (237 ±0)` + // Estimated: `8337 + e * (3439 ±40) + n * (2573 ±0)` + // Minimum execution time: 558_932_000 picoseconds. + Weight::from_parts(225_343_057, 8337) + // Standard Error: 94_426 + .saturating_add(Weight::from_parts(30_091_719, 0).saturating_mul(e.into())) + // Standard Error: 805_549 + .saturating_add(Weight::from_parts(25_088_451, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(18_u64)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(e.into()))) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into()))) @@ -734,6 +758,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Game::Game` (`max_values`: Some(1), `max_size`: Some(78), added: 573, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1 w:1) /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:0) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653ad861ea1ebf4800d4b89f4f` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653ad861ea1ebf4800d4b89f4f` (r:1 w:1) /// Storage: `Score::Participants` (r:1 w:1) @@ -752,11 +780,11 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Members::OnboardingQueue` (`max_values`: None, `max_size`: Some(8206), added: 10681, mode: `MaxEncodedLen`) fn offboard_account() -> Weight { // Proof Size summary in bytes: - // Measured: `1400` + // Measured: `1403` // Estimated: `11671` - // Minimum execution time: 128_062_000 picoseconds. - Weight::from_parts(134_497_000, 11671) - .saturating_add(T::DbWeight::get().reads(13_u64)) + // Minimum execution time: 130_038_000 picoseconds. + Weight::from_parts(139_207_000, 11671) + .saturating_add(T::DbWeight::get().reads(15_u64)) .saturating_add(T::DbWeight::get().writes(8_u64)) } /// Storage: `NetworkSuffix::NetworkSuffix` (r:1 w:0) @@ -769,6 +797,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Game::Game` (`max_values`: Some(1), `max_size`: Some(78), added: 573, mode: `MaxEncodedLen`) /// Storage: `Game::AliasToStmtAccount` (r:1 w:1) /// Proof: `Game::AliasToStmtAccount` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:0) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653acecc1507dc1ddd7295951c` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653acecc1507dc1ddd7295951c` (r:1 w:1) /// Storage: `Score::Participants` (r:1 w:1) @@ -777,11 +809,11 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Game::StmtAccountToAlias` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) fn offboard_person() -> Weight { // Proof Size summary in bytes: - // Measured: `831` - // Estimated: `4296` - // Minimum execution time: 48_225_000 picoseconds. - Weight::from_parts(50_921_000, 4296) - .saturating_add(T::DbWeight::get().reads(7_u64)) + // Measured: `834` + // Estimated: `4299` + // Minimum execution time: 51_751_000 picoseconds. + Weight::from_parts(55_048_000, 4299) + .saturating_add(T::DbWeight::get().reads(9_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } /// Storage: `Game::ArchivedPlayers` (r:1 w:1) @@ -806,8 +838,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1356` // Estimated: `11671` - // Minimum execution time: 81_630_000 picoseconds. - Weight::from_parts(85_910_000, 11671) + // Minimum execution time: 79_283_000 picoseconds. + Weight::from_parts(84_911_000, 11671) .saturating_add(T::DbWeight::get().reads(9_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -817,8 +849,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `109` // Estimated: `3517` - // Minimum execution time: 11_091_000 picoseconds. - Weight::from_parts(11_851_000, 3517) + // Minimum execution time: 10_861_000 picoseconds. + Weight::from_parts(11_915_000, 3517) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -831,10 +863,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `763 + n * (52 ±0)` // Estimated: `990 + n * (2571 ±0)` - // Minimum execution time: 13_349_000 picoseconds. - Weight::from_parts(13_666_000, 990) - // Standard Error: 7_432 - .saturating_add(Weight::from_parts(2_036_363, 0).saturating_mul(n.into())) + // Minimum execution time: 12_956_000 picoseconds. + Weight::from_parts(13_319_000, 990) + // Standard Error: 6_066 + .saturating_add(Weight::from_parts(2_014_557, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(1_u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) @@ -848,8 +880,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `187` // Estimated: `3561` - // Minimum execution time: 18_255_000 picoseconds. - Weight::from_parts(19_583_000, 3561) + // Minimum execution time: 17_961_000 picoseconds. + Weight::from_parts(19_613_000, 3561) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -861,8 +893,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `231` // Estimated: `3561` - // Minimum execution time: 17_241_000 picoseconds. - Weight::from_parts(18_289_000, 3561) + // Minimum execution time: 17_035_000 picoseconds. + Weight::from_parts(18_370_000, 3561) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -879,10 +911,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `328` // Estimated: `123382` - // Minimum execution time: 33_441_000 picoseconds. - Weight::from_parts(26_197_092, 123382) - // Standard Error: 14_656 - .saturating_add(Weight::from_parts(8_868_142, 0).saturating_mul(n.into())) + // Minimum execution time: 33_110_000 picoseconds. + Weight::from_parts(25_916_368, 123382) + // Standard Error: 20_019 + .saturating_add(Weight::from_parts(8_994_089, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -892,8 +924,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `8753` // Estimated: `123382` - // Minimum execution time: 186_167_000 picoseconds. - Weight::from_parts(191_730_000, 123382) + // Minimum execution time: 184_645_000 picoseconds. + Weight::from_parts(190_405_000, 123382) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -903,8 +935,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_827_000 picoseconds. - Weight::from_parts(6_375_000, 0) + // Minimum execution time: 5_636_000 picoseconds. + Weight::from_parts(6_114_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Game::Players` (r:1 w:0) @@ -932,10 +964,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `681 + n * (183 ±0)` // Estimated: `3593 + n * (3308 ±0)` - // Minimum execution time: 103_304_000 picoseconds. - Weight::from_parts(122_716_085, 3593) - // Standard Error: 361_418 - .saturating_add(Weight::from_parts(669_697_743, 0).saturating_mul(n.into())) + // Minimum execution time: 93_607_000 picoseconds. + Weight::from_parts(155_605_318, 3593) + // Standard Error: 232_790 + .saturating_add(Weight::from_parts(659_691_921, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(2_u64)) @@ -951,8 +983,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `268` // Estimated: `1563` - // Minimum execution time: 13_404_000 picoseconds. - Weight::from_parts(14_490_000, 1563) + // Minimum execution time: 13_365_000 picoseconds. + Weight::from_parts(14_463_000, 1563) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -964,8 +996,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `235` // Estimated: `3563` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_756_000, 3563) + // Minimum execution time: 10_080_000 picoseconds. + Weight::from_parts(10_776_000, 3563) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -987,8 +1019,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `4023` // Estimated: `53918` - // Minimum execution time: 1_190_618_000 picoseconds. - Weight::from_parts(1_285_494_000, 53918) + // Minimum execution time: 1_168_377_000 picoseconds. + Weight::from_parts(1_238_154_000, 53918) .saturating_add(T::DbWeight::get().reads(22_u64)) .saturating_add(T::DbWeight::get().writes(54_u64)) } @@ -1000,8 +1032,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `234` // Estimated: `1563` - // Minimum execution time: 13_112_000 picoseconds. - Weight::from_parts(14_206_000, 1563) + // Minimum execution time: 12_877_000 picoseconds. + Weight::from_parts(13_986_000, 1563) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -1022,10 +1054,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `851 + n * (179 ±0)` // Estimated: `7404 + n * (3308 ±0)` - // Minimum execution time: 3_344_000 picoseconds. - Weight::from_parts(32_846_067, 7404) - // Standard Error: 107_844 - .saturating_add(Weight::from_parts(71_127_318, 0).saturating_mul(n.into())) + // Minimum execution time: 3_203_000 picoseconds. + Weight::from_parts(21_767_229, 7404) + // Standard Error: 214_189 + .saturating_add(Weight::from_parts(72_349_178, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(4_u64)) @@ -1058,8 +1090,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1549` // Estimated: `7404` - // Minimum execution time: 137_564_000 picoseconds. - Weight::from_parts(143_844_000, 7404) + // Minimum execution time: 134_481_000 picoseconds. + Weight::from_parts(144_008_000, 7404) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(8_u64)) } @@ -1069,8 +1101,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_150_000 picoseconds. - Weight::from_parts(6_657_000, 0) + // Minimum execution time: 5_949_000 picoseconds. + Weight::from_parts(6_477_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `NetworkSuffix::NetworkSuffix` (r:1 w:0) @@ -1102,10 +1134,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `3698` // Estimated: `10150` - // Minimum execution time: 107_481_000 picoseconds. - Weight::from_parts(86_187_885, 10150) - // Standard Error: 49_098 - .saturating_add(Weight::from_parts(14_244_343, 0).saturating_mul(n.into())) + // Minimum execution time: 105_106_000 picoseconds. + Weight::from_parts(84_281_348, 10150) + // Standard Error: 63_142 + .saturating_add(Weight::from_parts(14_627_505, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(13_u64)) .saturating_add(T::DbWeight::get().writes(8_u64)) } @@ -1143,8 +1175,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `9435` // Estimated: `123382` - // Minimum execution time: 1_566_063_000 picoseconds. - Weight::from_parts(1_623_270_000, 123382) + // Minimum execution time: 1_562_646_000 picoseconds. + Weight::from_parts(1_612_361_000, 123382) .saturating_add(RocksDbWeight::get().reads(28_u64)) .saturating_add(RocksDbWeight::get().writes(41_u64)) } @@ -1154,10 +1186,10 @@ impl WeightInfo for () { /// Proof: `Game::Game` (`max_values`: Some(1), `max_size`: Some(78), added: 573, mode: `MaxEncodedLen`) fn end_registration_shuffle() -> Weight { // Proof Size summary in bytes: - // Measured: `301` + // Measured: `313` // Estimated: `1563` - // Minimum execution time: 12_924_000 picoseconds. - Weight::from_parts(13_990_000, 1563) + // Minimum execution time: 12_531_000 picoseconds. + Weight::from_parts(13_597_000, 1563) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1182,10 +1214,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1085 + n * (179 ±0)` // Estimated: `7404 + n * (3308 ±0)` - // Minimum execution time: 14_264_000 picoseconds. - Weight::from_parts(41_078_920, 7404) - // Standard Error: 89_655 - .saturating_add(Weight::from_parts(71_856_527, 0).saturating_mul(n.into())) + // Minimum execution time: 14_219_000 picoseconds. + Weight::from_parts(40_135_881, 7404) + // Standard Error: 135_958 + .saturating_add(Weight::from_parts(71_797_468, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(RocksDbWeight::get().writes(5_u64)) @@ -1202,8 +1234,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `8753` // Estimated: `123382` - // Minimum execution time: 7_370_000 picoseconds. - Weight::from_parts(8_141_000, 123382) + // Minimum execution time: 7_325_000 picoseconds. + Weight::from_parts(7_969_000, 123382) .saturating_add(RocksDbWeight::get().reads(3_u64)) } /// Storage: `Game::GameIndex` (r:1 w:0) @@ -1214,8 +1246,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `234` // Estimated: `1563` - // Minimum execution time: 7_133_000 picoseconds. - Weight::from_parts(7_791_000, 1563) + // Minimum execution time: 7_053_000 picoseconds. + Weight::from_parts(7_718_000, 1563) .saturating_add(RocksDbWeight::get().reads(2_u64)) } /// Storage: `Timestamp::Now` (r:1 w:0) @@ -1250,8 +1282,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `425` // Estimated: `4111` - // Minimum execution time: 32_940_000 picoseconds. - Weight::from_parts(34_896_000, 4111) + // Minimum execution time: 32_824_000 picoseconds. + Weight::from_parts(34_709_000, 4111) .saturating_add(RocksDbWeight::get().reads(11_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -1264,12 +1296,12 @@ impl WeightInfo for () { /// The range of component `n` is `[1, 10]`. fn shuffle_step_insert(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `676` + // Measured: `688` // Estimated: `6100` - // Minimum execution time: 27_050_000 picoseconds. - Weight::from_parts(26_651_985, 6100) - // Standard Error: 7_102 - .saturating_add(Weight::from_parts(2_231_803, 0).saturating_mul(n.into())) + // Minimum execution time: 27_040_000 picoseconds. + Weight::from_parts(26_117_729, 6100) + // Standard Error: 6_578 + .saturating_add(Weight::from_parts(2_240_324, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into()))) @@ -1284,11 +1316,11 @@ impl WeightInfo for () { fn shuffle_step_retrieve(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `408 + n * (87 ±0)` - // Estimated: `4891 + n * (5098 ±0)` - // Minimum execution time: 21_933_000 picoseconds. - Weight::from_parts(12_392_587, 4891) - // Standard Error: 31_642 - .saturating_add(Weight::from_parts(14_225_035, 0).saturating_mul(n.into())) + // Estimated: `4891 + n * (5098 ±47)` + // Minimum execution time: 21_809_000 picoseconds. + Weight::from_parts(12_464_710, 4891) + // Standard Error: 36_942 + .saturating_add(Weight::from_parts(14_174_992, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(n.into()))) .saturating_add(RocksDbWeight::get().writes(2_u64)) @@ -1304,10 +1336,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1151` // Estimated: `6120` - // Minimum execution time: 21_308_000 picoseconds. - Weight::from_parts(25_471_056, 6120) - // Standard Error: 1_275 - .saturating_add(Weight::from_parts(47_204, 0).saturating_mul(p.into())) + // Minimum execution time: 21_285_000 picoseconds. + Weight::from_parts(25_730_713, 6120) + // Standard Error: 1_390 + .saturating_add(Weight::from_parts(47_789, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1329,13 +1361,17 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `458` // Estimated: `4111` - // Minimum execution time: 17_725_000 picoseconds. - Weight::from_parts(19_016_000, 4111) + // Minimum execution time: 17_781_000 picoseconds. + Weight::from_parts(19_063_000, 4111) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: `Game::Game` (r:1 w:1) /// Proof: `Game::Game` (`max_values`: Some(1), `max_size`: Some(78), added: 573, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:0) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: `Timestamp::Now` (r:1 w:0) /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Storage: `NftCredits::CreditBufferCursor` (r:1 w:0) @@ -1348,11 +1384,11 @@ impl WeightInfo for () { /// Proof: `Members::Collections` (`max_values`: None, `max_size`: Some(646), added: 3121, mode: `MaxEncodedLen`) fn player_process_step1() -> Weight { // Proof Size summary in bytes: - // Measured: `464` + // Measured: `467` // Estimated: `4111` - // Minimum execution time: 23_718_000 picoseconds. - Weight::from_parts(25_322_000, 4111) - .saturating_add(RocksDbWeight::get().reads(6_u64)) + // Minimum execution time: 31_869_000 picoseconds. + Weight::from_parts(33_776_000, 4111) + .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `Score::Participants` (r:1 w:1) @@ -1385,20 +1421,24 @@ impl WeightInfo for () { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1 w:1) /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:0) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653a239a263ce38c84e6e61343` (r:1 w:1) + /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653a239a263ce38c84e6e61343` (r:1 w:1) /// Storage: `Game::Players` (r:2 w:1) /// Proof: `Game::Players` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 10]`. fn player_process_step1_inner_loop(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `4904 + r * (477 ±0)` - // Estimated: `9020 + r * (22689 ±85)` - // Minimum execution time: 418_900_000 picoseconds. - Weight::from_parts(274_653_210, 9020) - // Standard Error: 229_239 - .saturating_add(Weight::from_parts(165_435_516, 0).saturating_mul(r.into())) - .saturating_add(RocksDbWeight::get().reads(17_u64)) + // Measured: `4944 + r * (477 ±0)` + // Estimated: `9020 + r * (22689 ±0)` + // Minimum execution time: 411_319_000 picoseconds. + Weight::from_parts(275_465_932, 9020) + // Standard Error: 491_179 + .saturating_add(Weight::from_parts(159_244_452, 0).saturating_mul(r.into())) + .saturating_add(RocksDbWeight::get().reads(19_u64)) .saturating_add(RocksDbWeight::get().reads((9_u64).saturating_mul(r.into()))) - .saturating_add(RocksDbWeight::get().writes(14_u64)) + .saturating_add(RocksDbWeight::get().writes(15_u64)) .saturating_add(Weight::from_parts(0, 22689).saturating_mul(r.into())) } /// Storage: `Game::Game` (r:1 w:1) @@ -1407,8 +1447,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `285` // Estimated: `1563` - // Minimum execution time: 17_576_000 picoseconds. - Weight::from_parts(18_983_000, 1563) + // Minimum execution time: 17_500_000 picoseconds. + Weight::from_parts(18_802_000, 1563) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1422,8 +1462,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `21156` // Estimated: `260055` - // Minimum execution time: 305_792_000 picoseconds. - Weight::from_parts(314_477_000, 260055) + // Minimum execution time: 301_985_000 picoseconds. + Weight::from_parts(315_000_000, 260055) .saturating_add(RocksDbWeight::get().reads(303_u64)) .saturating_add(RocksDbWeight::get().writes(300_u64)) } @@ -1437,8 +1477,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `176` // Estimated: `3545` - // Minimum execution time: 8_885_000 picoseconds. - Weight::from_parts(9_627_000, 3545) + // Minimum execution time: 9_071_000 picoseconds. + Weight::from_parts(9_762_000, 3545) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -1450,8 +1490,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `7711` // Estimated: `258439` - // Minimum execution time: 196_790_000 picoseconds. - Weight::from_parts(204_341_000, 258439) + // Minimum execution time: 194_767_000 picoseconds. + Weight::from_parts(202_050_000, 258439) .saturating_add(RocksDbWeight::get().reads(202_u64)) .saturating_add(RocksDbWeight::get().writes(200_u64)) } @@ -1470,10 +1510,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `414 + n * (4 ±0)` // Estimated: `6100` - // Minimum execution time: 21_174_000 picoseconds. - Weight::from_parts(21_820_413, 6100) - // Standard Error: 19_035 - .saturating_add(Weight::from_parts(1_463_277, 0).saturating_mul(n.into())) + // Minimum execution time: 20_870_000 picoseconds. + Weight::from_parts(21_180_889, 6100) + // Standard Error: 15_364 + .saturating_add(Weight::from_parts(1_507_972, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into()))) @@ -1496,6 +1536,10 @@ impl WeightInfo for () { /// Proof: `Airdrop::Events` (`max_values`: None, `max_size`: Some(833), added: 3308, mode: `MaxEncodedLen`) /// Storage: `Airdrop::Registrations` (r:16 w:16) /// Proof: `Airdrop::Registrations` (`max_values`: None, `max_size`: Some(105), added: 2580, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:1) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Storage: `Game::CommunicationIdentifiers` (r:0 w:1) @@ -1503,15 +1547,15 @@ impl WeightInfo for () { /// The range of component `n` is `[0, 16]`. fn sign_up_with_invite(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `562 + n * (183 ±0)` - // Estimated: `4012 + n * (3308 ±0)` - // Minimum execution time: 48_054_000 picoseconds. - Weight::from_parts(41_466_616, 4012) - // Standard Error: 289_101 - .saturating_add(Weight::from_parts(672_470_917, 0).saturating_mul(n.into())) - .saturating_add(RocksDbWeight::get().reads(8_u64)) + // Measured: `565 + n * (183 ±0)` + // Estimated: `4015 + n * (3308 ±0)` + // Minimum execution time: 52_701_000 picoseconds. + Weight::from_parts(63_479_762, 4015) + // Standard Error: 62_543 + .saturating_add(Weight::from_parts(655_781_428, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(10_u64)) .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(n.into()))) - .saturating_add(RocksDbWeight::get().writes(6_u64)) + .saturating_add(RocksDbWeight::get().writes(7_u64)) .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 3308).saturating_mul(n.into())) } @@ -1537,6 +1581,10 @@ impl WeightInfo for () { /// Proof: `Airdrop::Events` (`max_values`: None, `max_size`: Some(833), added: 3308, mode: `MaxEncodedLen`) /// Storage: `Airdrop::Registrations` (r:16 w:16) /// Proof: `Airdrop::Registrations` (`max_values`: None, `max_size`: Some(105), added: 2580, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:1) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Storage: `Game::CommunicationIdentifiers` (r:0 w:1) @@ -1544,15 +1592,15 @@ impl WeightInfo for () { /// The range of component `n` is `[0, 16]`. fn sign_up_with_account_new(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `665 + n * (183 ±0)` - // Estimated: `4115 + n * (3308 ±0)` - // Minimum execution time: 85_303_000 picoseconds. - Weight::from_parts(98_248_046, 4115) - // Standard Error: 96_069 - .saturating_add(Weight::from_parts(665_062_948, 0).saturating_mul(n.into())) - .saturating_add(RocksDbWeight::get().reads(10_u64)) + // Measured: `668 + n * (183 ±0)` + // Estimated: `4118 + n * (3308 ±0)` + // Minimum execution time: 90_843_000 picoseconds. + Weight::from_parts(101_885_162, 4118) + // Standard Error: 94_932 + .saturating_add(Weight::from_parts(657_759_015, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(n.into()))) - .saturating_add(RocksDbWeight::get().writes(7_u64)) + .saturating_add(RocksDbWeight::get().writes(8_u64)) .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 3308).saturating_mul(n.into())) } @@ -1585,10 +1633,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2206 + n * (183 ±0)` // Estimated: `4657 + n * (3308 ±0)` - // Minimum execution time: 41_708_000 picoseconds. - Weight::from_parts(43_394_000, 4657) - // Standard Error: 1_482_838 - .saturating_add(Weight::from_parts(29_105_636_484, 0).saturating_mul(n.into())) + // Minimum execution time: 41_839_000 picoseconds. + Weight::from_parts(57_852_117, 4657) + // Standard Error: 3_042_757 + .saturating_add(Weight::from_parts(29_088_410_144, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(9_u64)) .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(n.into()))) .saturating_add(RocksDbWeight::get().writes(3_u64)) @@ -1603,6 +1651,10 @@ impl WeightInfo for () { /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Storage: `Game::AliasToStmtAccount` (r:1 w:1) /// Proof: `Game::AliasToStmtAccount` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:1) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653a6b79c57e6a095239282c04` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653a6b79c57e6a095239282c04` (r:1 w:1) /// Storage: `Game::StmtAccountToAlias` (r:1 w:2) @@ -1630,15 +1682,15 @@ impl WeightInfo for () { /// The range of component `n` is `[0, 16]`. fn sign_up_with_alias(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2207 + n * (183 ±0)` - // Estimated: `6100 + n * (3308 ±0)` - // Minimum execution time: 114_986_000 picoseconds. - Weight::from_parts(254_262_478, 6100) - // Standard Error: 2_271_949 - .saturating_add(Weight::from_parts(29_086_752_657, 0).saturating_mul(n.into())) - .saturating_add(RocksDbWeight::get().reads(15_u64)) + // Measured: `2210 + n * (183 ±0)` + // Estimated: `6100 + n * (3308 ±8)` + // Minimum execution time: 121_513_000 picoseconds. + Weight::from_parts(317_083_150, 6100) + // Standard Error: 2_162_780 + .saturating_add(Weight::from_parts(29_038_791_188, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(17_u64)) .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(n.into()))) - .saturating_add(RocksDbWeight::get().writes(9_u64)) + .saturating_add(RocksDbWeight::get().writes(10_u64)) .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 3308).saturating_mul(n.into())) } @@ -1664,6 +1716,10 @@ impl WeightInfo for () { /// Proof: `Airdrop::Events` (`max_values`: None, `max_size`: Some(833), added: 3308, mode: `MaxEncodedLen`) /// Storage: `Airdrop::Registrations` (r:16 w:16) /// Proof: `Airdrop::Registrations` (`max_values`: None, `max_size`: Some(105), added: 2580, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:1) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Storage: `Game::CommunicationIdentifiers` (r:0 w:1) @@ -1671,15 +1727,15 @@ impl WeightInfo for () { /// The range of component `n` is `[0, 16]`. fn sign_up_with_account_lite_invite(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `739 + n * (183 ±0)` - // Estimated: `4189 + n * (3308 ±0)` - // Minimum execution time: 62_083_000 picoseconds. - Weight::from_parts(76_046_305, 4189) - // Standard Error: 119_817 - .saturating_add(Weight::from_parts(667_432_945, 0).saturating_mul(n.into())) - .saturating_add(RocksDbWeight::get().reads(10_u64)) + // Measured: `742 + n * (183 ±0)` + // Estimated: `4192 + n * (3308 ±0)` + // Minimum execution time: 67_085_000 picoseconds. + Weight::from_parts(79_859_197, 4192) + // Standard Error: 77_433 + .saturating_add(Weight::from_parts(656_661_539, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(n.into()))) - .saturating_add(RocksDbWeight::get().writes(7_u64)) + .saturating_add(RocksDbWeight::get().writes(8_u64)) .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 3308).saturating_mul(n.into())) } @@ -1719,14 +1775,14 @@ impl WeightInfo for () { /// The range of component `n` is `[0, 9]`. fn report(e: u32, n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `9280 + e * (252 ±0) + n * (237 ±0)` - // Estimated: `8337 + e * (3439 ±28) + n * (2573 ±266)` - // Minimum execution time: 592_987_000 picoseconds. - Weight::from_parts(249_376_344, 8337) - // Standard Error: 104_305 - .saturating_add(Weight::from_parts(32_016_822, 0).saturating_mul(e.into())) - // Standard Error: 889_832 - .saturating_add(Weight::from_parts(25_478_956, 0).saturating_mul(n.into())) + // Measured: `9311 + e * (252 ±0) + n * (237 ±0)` + // Estimated: `8337 + e * (3439 ±40) + n * (2573 ±0)` + // Minimum execution time: 558_932_000 picoseconds. + Weight::from_parts(225_343_057, 8337) + // Standard Error: 94_426 + .saturating_add(Weight::from_parts(30_091_719, 0).saturating_mul(e.into())) + // Standard Error: 805_549 + .saturating_add(Weight::from_parts(25_088_451, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(18_u64)) .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(e.into()))) .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(n.into()))) @@ -1746,6 +1802,10 @@ impl WeightInfo for () { /// Proof: `Game::Game` (`max_values`: Some(1), `max_size`: Some(78), added: 573, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1 w:1) /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:0) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653ad861ea1ebf4800d4b89f4f` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653ad861ea1ebf4800d4b89f4f` (r:1 w:1) /// Storage: `Score::Participants` (r:1 w:1) @@ -1764,11 +1824,11 @@ impl WeightInfo for () { /// Proof: `Members::OnboardingQueue` (`max_values`: None, `max_size`: Some(8206), added: 10681, mode: `MaxEncodedLen`) fn offboard_account() -> Weight { // Proof Size summary in bytes: - // Measured: `1400` + // Measured: `1403` // Estimated: `11671` - // Minimum execution time: 128_062_000 picoseconds. - Weight::from_parts(134_497_000, 11671) - .saturating_add(RocksDbWeight::get().reads(13_u64)) + // Minimum execution time: 130_038_000 picoseconds. + Weight::from_parts(139_207_000, 11671) + .saturating_add(RocksDbWeight::get().reads(15_u64)) .saturating_add(RocksDbWeight::get().writes(8_u64)) } /// Storage: `NetworkSuffix::NetworkSuffix` (r:1 w:0) @@ -1781,6 +1841,10 @@ impl WeightInfo for () { /// Proof: `Game::Game` (`max_values`: Some(1), `max_size`: Some(78), added: 573, mode: `MaxEncodedLen`) /// Storage: `Game::AliasToStmtAccount` (r:1 w:1) /// Proof: `Game::AliasToStmtAccount` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:0) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653acecc1507dc1ddd7295951c` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653acecc1507dc1ddd7295951c` (r:1 w:1) /// Storage: `Score::Participants` (r:1 w:1) @@ -1789,11 +1853,11 @@ impl WeightInfo for () { /// Proof: `Game::StmtAccountToAlias` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) fn offboard_person() -> Weight { // Proof Size summary in bytes: - // Measured: `831` - // Estimated: `4296` - // Minimum execution time: 48_225_000 picoseconds. - Weight::from_parts(50_921_000, 4296) - .saturating_add(RocksDbWeight::get().reads(7_u64)) + // Measured: `834` + // Estimated: `4299` + // Minimum execution time: 51_751_000 picoseconds. + Weight::from_parts(55_048_000, 4299) + .saturating_add(RocksDbWeight::get().reads(9_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } /// Storage: `Game::ArchivedPlayers` (r:1 w:1) @@ -1818,8 +1882,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1356` // Estimated: `11671` - // Minimum execution time: 81_630_000 picoseconds. - Weight::from_parts(85_910_000, 11671) + // Minimum execution time: 79_283_000 picoseconds. + Weight::from_parts(84_911_000, 11671) .saturating_add(RocksDbWeight::get().reads(9_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } @@ -1829,8 +1893,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `109` // Estimated: `3517` - // Minimum execution time: 11_091_000 picoseconds. - Weight::from_parts(11_851_000, 3517) + // Minimum execution time: 10_861_000 picoseconds. + Weight::from_parts(11_915_000, 3517) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1843,10 +1907,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `763 + n * (52 ±0)` // Estimated: `990 + n * (2571 ±0)` - // Minimum execution time: 13_349_000 picoseconds. - Weight::from_parts(13_666_000, 990) - // Standard Error: 7_432 - .saturating_add(Weight::from_parts(2_036_363, 0).saturating_mul(n.into())) + // Minimum execution time: 12_956_000 picoseconds. + Weight::from_parts(13_319_000, 990) + // Standard Error: 6_066 + .saturating_add(Weight::from_parts(2_014_557, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(RocksDbWeight::get().writes(1_u64)) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into()))) @@ -1860,8 +1924,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `187` // Estimated: `3561` - // Minimum execution time: 18_255_000 picoseconds. - Weight::from_parts(19_583_000, 3561) + // Minimum execution time: 17_961_000 picoseconds. + Weight::from_parts(19_613_000, 3561) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -1873,8 +1937,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `231` // Estimated: `3561` - // Minimum execution time: 17_241_000 picoseconds. - Weight::from_parts(18_289_000, 3561) + // Minimum execution time: 17_035_000 picoseconds. + Weight::from_parts(18_370_000, 3561) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -1891,10 +1955,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `328` // Estimated: `123382` - // Minimum execution time: 33_441_000 picoseconds. - Weight::from_parts(26_197_092, 123382) - // Standard Error: 14_656 - .saturating_add(Weight::from_parts(8_868_142, 0).saturating_mul(n.into())) + // Minimum execution time: 33_110_000 picoseconds. + Weight::from_parts(25_916_368, 123382) + // Standard Error: 20_019 + .saturating_add(Weight::from_parts(8_994_089, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1904,8 +1968,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `8753` // Estimated: `123382` - // Minimum execution time: 186_167_000 picoseconds. - Weight::from_parts(191_730_000, 123382) + // Minimum execution time: 184_645_000 picoseconds. + Weight::from_parts(190_405_000, 123382) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1915,8 +1979,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_827_000 picoseconds. - Weight::from_parts(6_375_000, 0) + // Minimum execution time: 5_636_000 picoseconds. + Weight::from_parts(6_114_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `Game::Players` (r:1 w:0) @@ -1944,10 +2008,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `681 + n * (183 ±0)` // Estimated: `3593 + n * (3308 ±0)` - // Minimum execution time: 103_304_000 picoseconds. - Weight::from_parts(122_716_085, 3593) - // Standard Error: 361_418 - .saturating_add(Weight::from_parts(669_697_743, 0).saturating_mul(n.into())) + // Minimum execution time: 93_607_000 picoseconds. + Weight::from_parts(155_605_318, 3593) + // Standard Error: 232_790 + .saturating_add(Weight::from_parts(659_691_921, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(n.into()))) .saturating_add(RocksDbWeight::get().writes(2_u64)) @@ -1963,8 +2027,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `268` // Estimated: `1563` - // Minimum execution time: 13_404_000 picoseconds. - Weight::from_parts(14_490_000, 1563) + // Minimum execution time: 13_365_000 picoseconds. + Weight::from_parts(14_463_000, 1563) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1976,8 +2040,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `235` // Estimated: `3563` - // Minimum execution time: 10_000_000 picoseconds. - Weight::from_parts(10_756_000, 3563) + // Minimum execution time: 10_080_000 picoseconds. + Weight::from_parts(10_776_000, 3563) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -1999,8 +2063,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `4023` // Estimated: `53918` - // Minimum execution time: 1_190_618_000 picoseconds. - Weight::from_parts(1_285_494_000, 53918) + // Minimum execution time: 1_168_377_000 picoseconds. + Weight::from_parts(1_238_154_000, 53918) .saturating_add(RocksDbWeight::get().reads(22_u64)) .saturating_add(RocksDbWeight::get().writes(54_u64)) } @@ -2012,8 +2076,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `234` // Estimated: `1563` - // Minimum execution time: 13_112_000 picoseconds. - Weight::from_parts(14_206_000, 1563) + // Minimum execution time: 12_877_000 picoseconds. + Weight::from_parts(13_986_000, 1563) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -2034,10 +2098,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `851 + n * (179 ±0)` // Estimated: `7404 + n * (3308 ±0)` - // Minimum execution time: 3_344_000 picoseconds. - Weight::from_parts(32_846_067, 7404) - // Standard Error: 107_844 - .saturating_add(Weight::from_parts(71_127_318, 0).saturating_mul(n.into())) + // Minimum execution time: 3_203_000 picoseconds. + Weight::from_parts(21_767_229, 7404) + // Standard Error: 214_189 + .saturating_add(Weight::from_parts(72_349_178, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(RocksDbWeight::get().writes(4_u64)) @@ -2070,8 +2134,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1549` // Estimated: `7404` - // Minimum execution time: 137_564_000 picoseconds. - Weight::from_parts(143_844_000, 7404) + // Minimum execution time: 134_481_000 picoseconds. + Weight::from_parts(144_008_000, 7404) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(8_u64)) } @@ -2081,8 +2145,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_150_000 picoseconds. - Weight::from_parts(6_657_000, 0) + // Minimum execution time: 5_949_000 picoseconds. + Weight::from_parts(6_477_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `NetworkSuffix::NetworkSuffix` (r:1 w:0) @@ -2114,10 +2178,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `3698` // Estimated: `10150` - // Minimum execution time: 107_481_000 picoseconds. - Weight::from_parts(86_187_885, 10150) - // Standard Error: 49_098 - .saturating_add(Weight::from_parts(14_244_343, 0).saturating_mul(n.into())) + // Minimum execution time: 105_106_000 picoseconds. + Weight::from_parts(84_281_348, 10150) + // Standard Error: 63_142 + .saturating_add(Weight::from_parts(14_627_505, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(13_u64)) .saturating_add(RocksDbWeight::get().writes(8_u64)) } diff --git a/runtimes/next-people-paseo/src/integration_tests/parameters.rs b/runtimes/next-people-paseo/src/integration_tests/parameters.rs index 763a9a92..30441464 100644 --- a/runtimes/next-people-paseo/src/integration_tests/parameters.rs +++ b/runtimes/next-people-paseo/src/integration_tests/parameters.rs @@ -102,6 +102,10 @@ fn parameters_default_to_the_initial_configuration() { ::PersonStatementLimit::get(), StatementAllowance { max_size: 1024 * 1024, max_count: 200 } ); + assert_eq!( + ::PlayerStatementLimit::get(), + StatementAllowance { max_size: 1_000_000, max_count: 1_000_000 } + ); assert_eq!( ::NotificationPeriodDuration::get(), 24 * 60 * 60 @@ -137,6 +141,20 @@ fn signed_origins_cannot_set_parameters() { }); } +#[test] +fn root_parameter_updates_change_what_the_game_pallet_reads() { + new_test_ext().execute_with(|| { + set_statement_parameter( + statement_storage::PlayerStatementLimit, + BoundedStatementAllowance { max_size: 42, max_count: 3 }, + ); + assert_eq!( + ::PlayerStatementLimit::get(), + StatementAllowance { max_size: 42, max_count: 3 } + ); + }); +} + #[test] fn root_parameter_updates_change_what_the_resources_pallet_reads() { new_test_ext().execute_with(|| { diff --git a/runtimes/next-people-paseo/src/integration_tests/statement_allowance.rs b/runtimes/next-people-paseo/src/integration_tests/statement_allowance.rs index 2bb00412..e078781b 100644 --- a/runtimes/next-people-paseo/src/integration_tests/statement_allowance.rs +++ b/runtimes/next-people-paseo/src/integration_tests/statement_allowance.rs @@ -22,7 +22,7 @@ use super::*; use crate::{ parameters::{ AccountsApiAllowance, LitePersonStatementLimit, NotificationAllowance, - NotificationPeriodDuration, StmtStoreGraceWindow, + NotificationPeriodDuration, PlayerStatementLimit, StmtStoreGraceWindow, }, OperationAllowedOneTimeExcess, RestrictedEntity, }; @@ -400,7 +400,7 @@ fn game_sign_up_grants_player_allowance() { assert!(matches!(game_info.unwrap().state, indiv_pallet_game::GameState::Reporting { .. })); let allowance = get_allowance(&stmt_acc); - assert_eq!(allowance, crate::people::PlayerStatementLimit::get()); + assert_eq!(allowance, PlayerStatementLimit::get()); }) } diff --git a/runtimes/next-people-paseo/src/lib.rs b/runtimes/next-people-paseo/src/lib.rs index f32370f5..b2b83760 100644 --- a/runtimes/next-people-paseo/src/lib.rs +++ b/runtimes/next-people-paseo/src/lib.rs @@ -280,6 +280,8 @@ pub type Migrations = ( indiv_pallet_airdrop::migration::MigrateV0ToV1, // Single use! - remove once the upgrade carrying it is live. indiv_pallet_game::migration::MigrateV0ToV1, + // Single use! - remove once the upgrade carrying it is live. + indiv_pallet_game::migration::MigrateV1ToV2, // permanent pallet_xcm::migration::MigrateToLatestXcmVersion, // permanent, a no-op once the chunk page hashes are set (via genesis on this runtime) diff --git a/runtimes/next-people-paseo/src/parameters.rs b/runtimes/next-people-paseo/src/parameters.rs index c618b19d..722a3058 100644 --- a/runtimes/next-people-paseo/src/parameters.rs +++ b/runtimes/next-people-paseo/src/parameters.rs @@ -51,6 +51,10 @@ pub mod dynamic_params { #[codec(index = 11)] pub static PersonStatementLimit: BoundedStatementAllowance = BoundedStatementAllowance { max_size: 1024 * 1024, max_count: 200 }; + // TODO(): find a reasonable value. + #[codec(index = 12)] + pub static PlayerStatementLimit: BoundedStatementAllowance = + BoundedStatementAllowance { max_size: 1_000_000, max_count: 1_000_000 }; #[codec(index = 1)] pub static StmtStoreSlotsPerPeriod: u32 = 70; #[codec(index = 2)] @@ -137,6 +141,8 @@ pub type LitePersonStatementLimit = StatementAllowanceGetter; pub type PersonStatementLimit = StatementAllowanceGetter; +pub type PlayerStatementLimit = + StatementAllowanceGetter; /// Statement-store slots per period, kept non-zero. pub type StmtStoreSlotsPerPeriod = diff --git a/runtimes/next-people-paseo/src/people.rs b/runtimes/next-people-paseo/src/people.rs index 1880f75a..5780dc53 100644 --- a/runtimes/next-people-paseo/src/people.rs +++ b/runtimes/next-people-paseo/src/people.rs @@ -55,7 +55,8 @@ use crate::{ LongTermStorageClaimsPerPeriod, LongTermStorageCleanupLimit, LongTermStorageGraceWindow, LongTermStoragePeriodDuration, MaxLitePeople, NotificationAllowance, NotificationPeriodDuration, NotificationSlotsPerPeriod, PeopleAirdropsPrizeSource, - PersonStatementLimit, StmtStoreCleanupLimit, StmtStoreGraceWindow, StmtStoreSlotsPerPeriod, + PersonStatementLimit, PlayerStatementLimit, StmtStoreCleanupLimit, StmtStoreGraceWindow, + StmtStoreSlotsPerPeriod, }, paseo_constants::{CENTS, UNITS}, }; @@ -625,12 +626,12 @@ parameter_types! { pub const PlayDepositReason: RuntimeHoldReason = RuntimeHoldReason::Game(indiv_pallet_game::HoldReason::PlayDeposit); pub const PlayDepositDefault: Balance = 2 * UNITS; - // TODO(paritytech/individuality#1124): find a reasonable value. - pub PlayerStatementLimit: StatementAllowance = StatementAllowance { + pub GameAirdropSource: AccountId = PalletId(*b"pop/gads").into_account_truncating(); + /// The player allowance before `PlayerStatementLimit` became a dynamic parameter. + pub PlayerStatementLimitBeforeV2: StatementAllowance = StatementAllowance { max_size: 1_000_000, max_count: 1_000_000, }; - pub GameAirdropSource: AccountId = PalletId(*b"pop/gads").into_account_truncating(); } impl indiv_pallet_game::Config for Runtime { diff --git a/runtimes/next-people-paseo/src/weights/indiv_pallet_game.rs b/runtimes/next-people-paseo/src/weights/indiv_pallet_game.rs index 85590912..d1dba799 100644 --- a/runtimes/next-people-paseo/src/weights/indiv_pallet_game.rs +++ b/runtimes/next-people-paseo/src/weights/indiv_pallet_game.rs @@ -17,9 +17,9 @@ //! Autogenerated weights for `indiv_pallet_game` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 64.0.1 -//! DATE: 2026-11-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2026-11-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `parity-weights-d44ca621f02d4812`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `parity-weights-e1b49a2b09e23484`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 // Executed Command: @@ -83,8 +83,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `9435` // Estimated: `123382` - // Minimum execution time: 1_561_816_000 picoseconds. - Weight::from_parts(1_627_907_000, 0) + // Minimum execution time: 1_556_446_000 picoseconds. + Weight::from_parts(1_608_158_000, 0) .saturating_add(Weight::from_parts(0, 123382)) .saturating_add(T::DbWeight::get().reads(28)) .saturating_add(T::DbWeight::get().writes(41)) @@ -95,10 +95,10 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// Proof: `Game::Game` (`max_values`: Some(1), `max_size`: Some(78), added: 573, mode: `MaxEncodedLen`) fn end_registration_shuffle() -> Weight { // Proof Size summary in bytes: - // Measured: `301` + // Measured: `313` // Estimated: `1563` - // Minimum execution time: 12_910_000 picoseconds. - Weight::from_parts(14_047_000, 0) + // Minimum execution time: 12_329_000 picoseconds. + Weight::from_parts(13_586_000, 0) .saturating_add(Weight::from_parts(0, 1563)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -124,11 +124,11 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1085 + n * (179 ±0)` // Estimated: `7404 + n * (3308 ±0)` - // Minimum execution time: 14_008_000 picoseconds. - Weight::from_parts(40_432_966, 0) + // Minimum execution time: 14_298_000 picoseconds. + Weight::from_parts(43_251_202, 0) .saturating_add(Weight::from_parts(0, 7404)) - // Standard Error: 189_231 - .saturating_add(Weight::from_parts(72_740_603, 0).saturating_mul(n.into())) + // Standard Error: 92_838 + .saturating_add(Weight::from_parts(69_921_689, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(5)) @@ -145,8 +145,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `8753` // Estimated: `123382` - // Minimum execution time: 7_598_000 picoseconds. - Weight::from_parts(8_207_000, 0) + // Minimum execution time: 7_287_000 picoseconds. + Weight::from_parts(7_999_000, 0) .saturating_add(Weight::from_parts(0, 123382)) .saturating_add(T::DbWeight::get().reads(3)) } @@ -158,8 +158,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `234` // Estimated: `1563` - // Minimum execution time: 7_118_000 picoseconds. - Weight::from_parts(7_799_000, 0) + // Minimum execution time: 7_072_000 picoseconds. + Weight::from_parts(7_729_000, 0) .saturating_add(Weight::from_parts(0, 1563)) .saturating_add(T::DbWeight::get().reads(2)) } @@ -195,8 +195,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `425` // Estimated: `4111` - // Minimum execution time: 33_274_000 picoseconds. - Weight::from_parts(35_418_000, 0) + // Minimum execution time: 32_433_000 picoseconds. + Weight::from_parts(34_343_000, 0) .saturating_add(Weight::from_parts(0, 4111)) .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(3)) @@ -210,13 +210,13 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// The range of component `n` is `[1, 10]`. fn shuffle_step_insert(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `676` + // Measured: `688` // Estimated: `6100` - // Minimum execution time: 27_223_000 picoseconds. - Weight::from_parts(26_924_344, 0) + // Minimum execution time: 26_152_000 picoseconds. + Weight::from_parts(25_790_293, 0) .saturating_add(Weight::from_parts(0, 6100)) - // Standard Error: 14_673 - .saturating_add(Weight::from_parts(2_248_990, 0).saturating_mul(n.into())) + // Standard Error: 6_212 + .saturating_add(Weight::from_parts(2_244_420, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) @@ -231,12 +231,12 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { fn shuffle_step_retrieve(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `408 + n * (87 ±0)` - // Estimated: `4891 + n * (5098 ±47)` - // Minimum execution time: 21_613_000 picoseconds. - Weight::from_parts(11_640_978, 0) + // Estimated: `4891 + n * (5098 ±0)` + // Minimum execution time: 21_554_000 picoseconds. + Weight::from_parts(12_455_974, 0) .saturating_add(Weight::from_parts(0, 4891)) - // Standard Error: 34_187 - .saturating_add(Weight::from_parts(14_446_298, 0).saturating_mul(n.into())) + // Standard Error: 32_308 + .saturating_add(Weight::from_parts(13_942_883, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(2)) @@ -252,11 +252,11 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1151` // Estimated: `6120` - // Minimum execution time: 21_382_000 picoseconds. - Weight::from_parts(25_580_609, 0) + // Minimum execution time: 20_815_000 picoseconds. + Weight::from_parts(25_541_451, 0) .saturating_add(Weight::from_parts(0, 6120)) - // Standard Error: 1_585 - .saturating_add(Weight::from_parts(55_510, 0).saturating_mul(p.into())) + // Standard Error: 1_474 + .saturating_add(Weight::from_parts(50_293, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -278,14 +278,18 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `458` // Estimated: `4111` - // Minimum execution time: 17_663_000 picoseconds. - Weight::from_parts(18_825_000, 0) + // Minimum execution time: 17_833_000 picoseconds. + Weight::from_parts(18_940_000, 0) .saturating_add(Weight::from_parts(0, 4111)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } /// Storage: `Game::Game` (r:1 w:1) /// Proof: `Game::Game` (`max_values`: Some(1), `max_size`: Some(78), added: 573, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:0) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: `Timestamp::Now` (r:1 w:0) /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Storage: `NftCredits::CreditBufferCursor` (r:1 w:0) @@ -298,12 +302,12 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// Proof: `Members::Collections` (`max_values`: None, `max_size`: Some(646), added: 3121, mode: `MaxEncodedLen`) fn player_process_step1() -> Weight { // Proof Size summary in bytes: - // Measured: `464` + // Measured: `467` // Estimated: `4111` - // Minimum execution time: 24_103_000 picoseconds. - Weight::from_parts(25_700_000, 0) + // Minimum execution time: 31_441_000 picoseconds. + Weight::from_parts(33_454_000, 0) .saturating_add(Weight::from_parts(0, 4111)) - .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Score::Participants` (r:1 w:1) @@ -336,21 +340,25 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1 w:1) /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:0) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653a239a263ce38c84e6e61343` (r:1 w:1) + /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653a239a263ce38c84e6e61343` (r:1 w:1) /// Storage: `Game::Players` (r:2 w:1) /// Proof: `Game::Players` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) /// The range of component `r` is `[1, 10]`. fn player_process_step1_inner_loop(r: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `4904 + r * (477 ±0)` + // Measured: `4944 + r * (477 ±0)` // Estimated: `9020 + r * (22689 ±0)` - // Minimum execution time: 409_422_000 picoseconds. - Weight::from_parts(278_249_051, 0) + // Minimum execution time: 416_298_000 picoseconds. + Weight::from_parts(273_075_466, 0) .saturating_add(Weight::from_parts(0, 9020)) - // Standard Error: 432_887 - .saturating_add(Weight::from_parts(163_475_998, 0).saturating_mul(r.into())) - .saturating_add(T::DbWeight::get().reads(17)) + // Standard Error: 366_817 + .saturating_add(Weight::from_parts(165_343_691, 0).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(19)) .saturating_add(T::DbWeight::get().reads((9_u64).saturating_mul(r.into()))) - .saturating_add(T::DbWeight::get().writes(14)) + .saturating_add(T::DbWeight::get().writes(15)) .saturating_add(Weight::from_parts(0, 22689).saturating_mul(r.into())) } /// Storage: `Game::Game` (r:1 w:1) @@ -359,8 +367,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `285` // Estimated: `1563` - // Minimum execution time: 17_847_000 picoseconds. - Weight::from_parts(19_203_000, 0) + // Minimum execution time: 17_798_000 picoseconds. + Weight::from_parts(19_090_000, 0) .saturating_add(Weight::from_parts(0, 1563)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -375,8 +383,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `21156` // Estimated: `260055` - // Minimum execution time: 305_891_000 picoseconds. - Weight::from_parts(326_146_000, 0) + // Minimum execution time: 306_460_000 picoseconds. + Weight::from_parts(315_739_000, 0) .saturating_add(Weight::from_parts(0, 260055)) .saturating_add(T::DbWeight::get().reads(303)) .saturating_add(T::DbWeight::get().writes(300)) @@ -391,8 +399,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `176` // Estimated: `3545` - // Minimum execution time: 9_064_000 picoseconds. - Weight::from_parts(9_820_000, 0) + // Minimum execution time: 8_948_000 picoseconds. + Weight::from_parts(9_589_000, 0) .saturating_add(Weight::from_parts(0, 3545)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -405,8 +413,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `7711` // Estimated: `258439` - // Minimum execution time: 198_993_000 picoseconds. - Weight::from_parts(207_469_000, 0) + // Minimum execution time: 195_270_000 picoseconds. + Weight::from_parts(203_210_000, 0) .saturating_add(Weight::from_parts(0, 258439)) .saturating_add(T::DbWeight::get().reads(202)) .saturating_add(T::DbWeight::get().writes(200)) @@ -426,11 +434,11 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `414 + n * (4 ±0)` // Estimated: `6100` - // Minimum execution time: 20_945_000 picoseconds. - Weight::from_parts(21_568_324, 0) + // Minimum execution time: 21_080_000 picoseconds. + Weight::from_parts(20_732_437, 0) .saturating_add(Weight::from_parts(0, 6100)) - // Standard Error: 21_187 - .saturating_add(Weight::from_parts(1_507_727, 0).saturating_mul(n.into())) + // Standard Error: 18_185 + .saturating_add(Weight::from_parts(1_555_761, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) @@ -453,6 +461,10 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// Proof: `Airdrop::Events` (`max_values`: None, `max_size`: Some(833), added: 3308, mode: `MaxEncodedLen`) /// Storage: `Airdrop::Registrations` (r:16 w:16) /// Proof: `Airdrop::Registrations` (`max_values`: None, `max_size`: Some(105), added: 2580, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:1) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Storage: `Game::CommunicationIdentifiers` (r:0 w:1) @@ -460,16 +472,16 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 16]`. fn sign_up_with_invite(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `562 + n * (183 ±0)` - // Estimated: `4012 + n * (3308 ±0)` - // Minimum execution time: 47_893_000 picoseconds. - Weight::from_parts(61_239_999, 0) - .saturating_add(Weight::from_parts(0, 4012)) - // Standard Error: 311_493 - .saturating_add(Weight::from_parts(671_698_826, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(8)) + // Measured: `565 + n * (183 ±0)` + // Estimated: `4015 + n * (3308 ±0)` + // Minimum execution time: 52_878_000 picoseconds. + Weight::from_parts(63_259_289, 0) + .saturating_add(Weight::from_parts(0, 4015)) + // Standard Error: 93_854 + .saturating_add(Weight::from_parts(657_523_004, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) - .saturating_add(T::DbWeight::get().writes(6)) + .saturating_add(T::DbWeight::get().writes(7)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 3308).saturating_mul(n.into())) } @@ -495,6 +507,10 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// Proof: `Airdrop::Events` (`max_values`: None, `max_size`: Some(833), added: 3308, mode: `MaxEncodedLen`) /// Storage: `Airdrop::Registrations` (r:16 w:16) /// Proof: `Airdrop::Registrations` (`max_values`: None, `max_size`: Some(105), added: 2580, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:1) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Storage: `Game::CommunicationIdentifiers` (r:0 w:1) @@ -502,16 +518,16 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 16]`. fn sign_up_with_account_new(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `665 + n * (183 ±0)` - // Estimated: `4115 + n * (3308 ±0)` - // Minimum execution time: 86_740_000 picoseconds. - Weight::from_parts(100_765_141, 0) - .saturating_add(Weight::from_parts(0, 4115)) - // Standard Error: 399_148 - .saturating_add(Weight::from_parts(676_418_051, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(10)) + // Measured: `668 + n * (183 ±0)` + // Estimated: `4118 + n * (3308 ±0)` + // Minimum execution time: 91_219_000 picoseconds. + Weight::from_parts(104_221_764, 0) + .saturating_add(Weight::from_parts(0, 4118)) + // Standard Error: 125_347 + .saturating_add(Weight::from_parts(659_571_388, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) - .saturating_add(T::DbWeight::get().writes(7)) + .saturating_add(T::DbWeight::get().writes(8)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 3308).saturating_mul(n.into())) } @@ -544,11 +560,11 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2206 + n * (183 ±0)` // Estimated: `4657 + n * (3308 ±0)` - // Minimum execution time: 41_955_000 picoseconds. - Weight::from_parts(43_153_000, 0) + // Minimum execution time: 41_948_000 picoseconds. + Weight::from_parts(77_781_156, 0) .saturating_add(Weight::from_parts(0, 4657)) - // Standard Error: 1_287_265 - .saturating_add(Weight::from_parts(29_163_615_553, 0).saturating_mul(n.into())) + // Standard Error: 2_136_582 + .saturating_add(Weight::from_parts(28_997_062_212, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(3)) @@ -563,6 +579,10 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Storage: `Game::AliasToStmtAccount` (r:1 w:1) /// Proof: `Game::AliasToStmtAccount` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:1) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653a6b79c57e6a095239282c04` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653a6b79c57e6a095239282c04` (r:1 w:1) /// Storage: `Game::StmtAccountToAlias` (r:1 w:2) @@ -590,16 +610,16 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 16]`. fn sign_up_with_alias(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2207 + n * (183 ±0)` + // Measured: `2210 + n * (183 ±0)` // Estimated: `6100 + n * (3308 ±0)` - // Minimum execution time: 112_776_000 picoseconds. - Weight::from_parts(227_699_204, 0) + // Minimum execution time: 120_580_000 picoseconds. + Weight::from_parts(184_856_675, 0) .saturating_add(Weight::from_parts(0, 6100)) - // Standard Error: 2_184_135 - .saturating_add(Weight::from_parts(29_157_520_250, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(15)) + // Standard Error: 2_309_178 + .saturating_add(Weight::from_parts(28_992_832_666, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(17)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) - .saturating_add(T::DbWeight::get().writes(9)) + .saturating_add(T::DbWeight::get().writes(10)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 3308).saturating_mul(n.into())) } @@ -625,6 +645,10 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// Proof: `Airdrop::Events` (`max_values`: None, `max_size`: Some(833), added: 3308, mode: `MaxEncodedLen`) /// Storage: `Airdrop::Registrations` (r:16 w:16) /// Proof: `Airdrop::Registrations` (`max_values`: None, `max_size`: Some(105), added: 2580, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:1) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653adef12e42f3e487e9b14095` (r:1 w:1) /// Storage: `Game::CommunicationIdentifiers` (r:0 w:1) @@ -632,16 +656,16 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 16]`. fn sign_up_with_account_lite_invite(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `739 + n * (183 ±0)` - // Estimated: `4189 + n * (3308 ±0)` - // Minimum execution time: 61_462_000 picoseconds. - Weight::from_parts(73_366_242, 0) - .saturating_add(Weight::from_parts(0, 4189)) - // Standard Error: 148_957 - .saturating_add(Weight::from_parts(666_556_040, 0).saturating_mul(n.into())) - .saturating_add(T::DbWeight::get().reads(10)) + // Measured: `742 + n * (183 ±0)` + // Estimated: `4192 + n * (3308 ±0)` + // Minimum execution time: 66_108_000 picoseconds. + Weight::from_parts(77_745_972, 0) + .saturating_add(Weight::from_parts(0, 4192)) + // Standard Error: 188_153 + .saturating_add(Weight::from_parts(658_604_278, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) - .saturating_add(T::DbWeight::get().writes(7)) + .saturating_add(T::DbWeight::get().writes(8)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 3308).saturating_mul(n.into())) } @@ -681,15 +705,15 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 9]`. fn report(e: u32, n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `9280 + e * (252 ±0) + n * (237 ±0)` - // Estimated: `8337 + e * (3439 ±29) + n * (2573 ±270)` - // Minimum execution time: 590_052_000 picoseconds. - Weight::from_parts(251_598_485, 0) + // Measured: `9311 + e * (252 ±0) + n * (237 ±0)` + // Estimated: `8337 + e * (3439 ±28) + n * (2573 ±266)` + // Minimum execution time: 561_378_000 picoseconds. + Weight::from_parts(204_610_151, 0) .saturating_add(Weight::from_parts(0, 8337)) - // Standard Error: 104_155 - .saturating_add(Weight::from_parts(31_177_436, 0).saturating_mul(e.into())) - // Standard Error: 888_551 - .saturating_add(Weight::from_parts(24_757_243, 0).saturating_mul(n.into())) + // Standard Error: 107_363 + .saturating_add(Weight::from_parts(30_419_199, 0).saturating_mul(e.into())) + // Standard Error: 915_915 + .saturating_add(Weight::from_parts(27_748_262, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(18)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(e.into()))) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into()))) @@ -709,6 +733,10 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// Proof: `Game::Game` (`max_values`: Some(1), `max_size`: Some(78), added: 573, mode: `MaxEncodedLen`) /// Storage: `Balances::Holds` (r:1 w:1) /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(265), added: 2740, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:0) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653ad861ea1ebf4800d4b89f4f` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653ad861ea1ebf4800d4b89f4f` (r:1 w:1) /// Storage: `Score::Participants` (r:1 w:1) @@ -727,12 +755,12 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// Proof: `Members::OnboardingQueue` (`max_values`: None, `max_size`: Some(8206), added: 10681, mode: `MaxEncodedLen`) fn offboard_account() -> Weight { // Proof Size summary in bytes: - // Measured: `1400` + // Measured: `1403` // Estimated: `11671` - // Minimum execution time: 126_816_000 picoseconds. - Weight::from_parts(134_489_000, 0) + // Minimum execution time: 130_240_000 picoseconds. + Weight::from_parts(138_454_000, 0) .saturating_add(Weight::from_parts(0, 11671)) - .saturating_add(T::DbWeight::get().reads(13)) + .saturating_add(T::DbWeight::get().reads(15)) .saturating_add(T::DbWeight::get().writes(8)) } /// Storage: `NetworkSuffix::NetworkSuffix` (r:1 w:0) @@ -745,6 +773,10 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// Proof: `Game::Game` (`max_values`: Some(1), `max_size`: Some(78), added: 573, mode: `MaxEncodedLen`) /// Storage: `Game::AliasToStmtAccount` (r:1 w:1) /// Proof: `Game::AliasToStmtAccount` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) + /// Storage: `Game::PlayerStatementLimits` (r:1 w:0) + /// Proof: `Game::PlayerStatementLimits` (`max_values`: Some(1), `max_size`: Some(17), added: 512, mode: `MaxEncodedLen`) + /// Storage: `Parameters::Parameters` (r:1 w:0) + /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653acecc1507dc1ddd7295951c` (r:1 w:1) /// Proof: UNKNOWN KEY `0x3a73746174656d656e745f616c6c6f77616e63653acecc1507dc1ddd7295951c` (r:1 w:1) /// Storage: `Score::Participants` (r:1 w:1) @@ -753,12 +785,12 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { /// Proof: `Game::StmtAccountToAlias` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) fn offboard_person() -> Weight { // Proof Size summary in bytes: - // Measured: `831` - // Estimated: `4296` - // Minimum execution time: 47_487_000 picoseconds. - Weight::from_parts(50_386_000, 0) - .saturating_add(Weight::from_parts(0, 4296)) - .saturating_add(T::DbWeight::get().reads(7)) + // Measured: `834` + // Estimated: `4299` + // Minimum execution time: 51_979_000 picoseconds. + Weight::from_parts(54_936_000, 0) + .saturating_add(Weight::from_parts(0, 4299)) + .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(6)) } /// Storage: `Game::ArchivedPlayers` (r:1 w:1) @@ -783,8 +815,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1356` // Estimated: `11671` - // Minimum execution time: 80_781_000 picoseconds. - Weight::from_parts(85_538_000, 0) + // Minimum execution time: 79_630_000 picoseconds. + Weight::from_parts(84_711_000, 0) .saturating_add(Weight::from_parts(0, 11671)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(7)) @@ -795,8 +827,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `109` // Estimated: `3517` - // Minimum execution time: 11_041_000 picoseconds. - Weight::from_parts(11_833_000, 0) + // Minimum execution time: 11_012_000 picoseconds. + Weight::from_parts(11_787_000, 0) .saturating_add(Weight::from_parts(0, 3517)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -810,11 +842,11 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `763 + n * (52 ±0)` // Estimated: `990 + n * (2571 ±0)` - // Minimum execution time: 12_906_000 picoseconds. - Weight::from_parts(13_253_000, 0) + // Minimum execution time: 12_731_000 picoseconds. + Weight::from_parts(13_283_000, 0) .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 7_737 - .saturating_add(Weight::from_parts(2_235_842, 0).saturating_mul(n.into())) + // Standard Error: 4_366 + .saturating_add(Weight::from_parts(1_933_026, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) @@ -828,8 +860,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `187` // Estimated: `3561` - // Minimum execution time: 18_165_000 picoseconds. - Weight::from_parts(19_374_000, 0) + // Minimum execution time: 17_904_000 picoseconds. + Weight::from_parts(19_267_000, 0) .saturating_add(Weight::from_parts(0, 3561)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -842,8 +874,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `231` // Estimated: `3561` - // Minimum execution time: 16_888_000 picoseconds. - Weight::from_parts(18_100_000, 0) + // Minimum execution time: 16_974_000 picoseconds. + Weight::from_parts(18_121_000, 0) .saturating_add(Weight::from_parts(0, 3561)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -861,11 +893,11 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `328` // Estimated: `123382` - // Minimum execution time: 32_999_000 picoseconds. - Weight::from_parts(24_938_211, 0) + // Minimum execution time: 32_534_000 picoseconds. + Weight::from_parts(25_050_790, 0) .saturating_add(Weight::from_parts(0, 123382)) - // Standard Error: 18_878 - .saturating_add(Weight::from_parts(9_076_878, 0).saturating_mul(n.into())) + // Standard Error: 16_734 + .saturating_add(Weight::from_parts(8_886_115, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -875,8 +907,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `8753` // Estimated: `123382` - // Minimum execution time: 185_346_000 picoseconds. - Weight::from_parts(206_995_000, 0) + // Minimum execution time: 182_544_000 picoseconds. + Weight::from_parts(194_324_000, 0) .saturating_add(Weight::from_parts(0, 123382)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -887,8 +919,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_771_000 picoseconds. - Weight::from_parts(6_231_000, 0) + // Minimum execution time: 5_628_000 picoseconds. + Weight::from_parts(6_129_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -917,11 +949,11 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `681 + n * (183 ±0)` // Estimated: `3593 + n * (3308 ±0)` - // Minimum execution time: 95_751_000 picoseconds. - Weight::from_parts(133_305_100, 0) + // Minimum execution time: 97_526_000 picoseconds. + Weight::from_parts(97_181_693, 0) .saturating_add(Weight::from_parts(0, 3593)) - // Standard Error: 251_605 - .saturating_add(Weight::from_parts(666_335_495, 0).saturating_mul(n.into())) + // Standard Error: 187_228 + .saturating_add(Weight::from_parts(658_957_196, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(2)) @@ -937,8 +969,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `268` // Estimated: `1563` - // Minimum execution time: 13_222_000 picoseconds. - Weight::from_parts(14_337_000, 0) + // Minimum execution time: 13_165_000 picoseconds. + Weight::from_parts(14_319_000, 0) .saturating_add(Weight::from_parts(0, 1563)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -951,8 +983,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `235` // Estimated: `3563` - // Minimum execution time: 9_920_000 picoseconds. - Weight::from_parts(10_722_000, 0) + // Minimum execution time: 9_899_000 picoseconds. + Weight::from_parts(10_823_000, 0) .saturating_add(Weight::from_parts(0, 3563)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -975,8 +1007,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `4023` // Estimated: `53918` - // Minimum execution time: 1_165_144_000 picoseconds. - Weight::from_parts(1_247_150_000, 0) + // Minimum execution time: 1_174_762_000 picoseconds. + Weight::from_parts(1_259_645_000, 0) .saturating_add(Weight::from_parts(0, 53918)) .saturating_add(T::DbWeight::get().reads(22)) .saturating_add(T::DbWeight::get().writes(54)) @@ -989,8 +1021,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `234` // Estimated: `1563` - // Minimum execution time: 13_245_000 picoseconds. - Weight::from_parts(14_300_000, 0) + // Minimum execution time: 12_973_000 picoseconds. + Weight::from_parts(13_929_000, 0) .saturating_add(Weight::from_parts(0, 1563)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -1012,11 +1044,11 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `851 + n * (179 ±0)` // Estimated: `7404 + n * (3308 ±0)` - // Minimum execution time: 3_260_000 picoseconds. - Weight::from_parts(25_010_015, 0) + // Minimum execution time: 3_187_000 picoseconds. + Weight::from_parts(20_490_522, 0) .saturating_add(Weight::from_parts(0, 7404)) - // Standard Error: 202_505 - .saturating_add(Weight::from_parts(72_092_514, 0).saturating_mul(n.into())) + // Standard Error: 160_810 + .saturating_add(Weight::from_parts(73_677_711, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(4)) @@ -1049,8 +1081,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1549` // Estimated: `7404` - // Minimum execution time: 135_692_000 picoseconds. - Weight::from_parts(143_767_000, 0) + // Minimum execution time: 136_020_000 picoseconds. + Weight::from_parts(145_250_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().writes(8)) @@ -1061,8 +1093,8 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_178_000 picoseconds. - Weight::from_parts(6_593_000, 0) + // Minimum execution time: 5_936_000 picoseconds. + Weight::from_parts(6_466_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -1095,11 +1127,11 @@ impl indiv_pallet_game::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `3698` // Estimated: `10150` - // Minimum execution time: 107_773_000 picoseconds. - Weight::from_parts(85_855_076, 0) + // Minimum execution time: 107_756_000 picoseconds. + Weight::from_parts(83_521_544, 0) .saturating_add(Weight::from_parts(0, 10150)) - // Standard Error: 63_651 - .saturating_add(Weight::from_parts(14_476_800, 0).saturating_mul(n.into())) + // Standard Error: 58_933 + .saturating_add(Weight::from_parts(15_188_071, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(8)) }