Files
pezkuwi-subxt/substrate/frame/alliance/src/weights.rs
T
Oleg Plakida 0aa79f87ca ".git/.scripts/commands/bench-vm/bench-vm.sh" all (#13933)
Co-authored-by: command-bot <>
2023-06-19 14:31:20 +01:00

909 lines
47 KiB
Rust
Generated

// This file is part of Substrate.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for pallet_alliance
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=pallet_alliance
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./frame/alliance/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(missing_docs)]
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for pallet_alliance.
pub trait WeightInfo {
fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight;
fn vote(m: u32, ) -> Weight;
fn close_early_disapproved(m: u32, p: u32, ) -> Weight;
fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight;
fn close_disapproved(m: u32, p: u32, ) -> Weight;
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight;
fn init_members(m: u32, z: u32, ) -> Weight;
fn disband(x: u32, y: u32, z: u32, ) -> Weight;
fn set_rule() -> Weight;
fn announce() -> Weight;
fn remove_announcement() -> Weight;
fn join_alliance() -> Weight;
fn nominate_ally() -> Weight;
fn elevate_ally() -> Weight;
fn give_retirement_notice() -> Weight;
fn retire() -> Weight;
fn kick_member() -> Weight;
fn add_unscrupulous_items(n: u32, l: u32, ) -> Weight;
fn remove_unscrupulous_items(n: u32, l: u32, ) -> Weight;
fn abdicate_fellow_status() -> Weight;
}
/// Weights for pallet_alliance using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: Alliance Members (r:1 w:0)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion ProposalOf (r:1 w:1)
/// Proof Skipped: AllianceMotion ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: AllianceMotion Proposals (r:1 w:1)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion ProposalCount (r:1 w:1)
/// Proof Skipped: AllianceMotion ProposalCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Voting (r:0 w:1)
/// Proof Skipped: AllianceMotion Voting (max_values: None, max_size: None, mode: Measured)
/// The range of component `b` is `[1, 1024]`.
/// The range of component `m` is `[2, 100]`.
/// The range of component `p` is `[1, 100]`.
fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `653 + m * (32 ±0) + p * (35 ±0)`
// Estimated: `6676 + m * (32 ±0) + p * (36 ±0)`
// Minimum execution time: 36_908_000 picoseconds.
Weight::from_parts(39_040_304, 6676)
// Standard Error: 131
.saturating_add(Weight::from_parts(781, 0).saturating_mul(b.into()))
// Standard Error: 1_375
.saturating_add(Weight::from_parts(48_745, 0).saturating_mul(m.into()))
// Standard Error: 1_358
.saturating_add(Weight::from_parts(148_047, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: Alliance Members (r:1 w:0)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Voting (r:1 w:1)
/// Proof Skipped: AllianceMotion Voting (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[5, 100]`.
fn vote(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1042 + m * (64 ±0)`
// Estimated: `6676 + m * (64 ±0)`
// Minimum execution time: 30_166_000 picoseconds.
Weight::from_parts(32_798_454, 6676)
// Standard Error: 1_432
.saturating_add(Weight::from_parts(83_001, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: Alliance Members (r:1 w:0)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Voting (r:1 w:1)
/// Proof Skipped: AllianceMotion Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: AllianceMotion Members (r:1 w:0)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Proposals (r:1 w:1)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion ProposalOf (r:0 w:1)
/// Proof Skipped: AllianceMotion ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `576 + m * (96 ±0) + p * (36 ±0)`
// Estimated: `6676 + m * (97 ±0) + p * (36 ±0)`
// Minimum execution time: 45_173_000 picoseconds.
Weight::from_parts(42_192_020, 6676)
// Standard Error: 1_456
.saturating_add(Weight::from_parts(66_751, 0).saturating_mul(m.into()))
// Standard Error: 1_420
.saturating_add(Weight::from_parts(158_161, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: Alliance Members (r:1 w:0)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Voting (r:1 w:1)
/// Proof Skipped: AllianceMotion Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: AllianceMotion Members (r:1 w:0)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion ProposalOf (r:1 w:1)
/// Proof Skipped: AllianceMotion ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: AllianceMotion Proposals (r:1 w:1)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `b` is `[1, 1024]`.
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1087 + m * (96 ±0) + p * (39 ±0)`
// Estimated: `6676 + m * (97 ±0) + p * (40 ±0)`
// Minimum execution time: 58_290_000 picoseconds.
Weight::from_parts(54_924_919, 6676)
// Standard Error: 157
.saturating_add(Weight::from_parts(464, 0).saturating_mul(b.into()))
// Standard Error: 1_665
.saturating_add(Weight::from_parts(73_183, 0).saturating_mul(m.into()))
// Standard Error: 1_623
.saturating_add(Weight::from_parts(168_318, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
}
/// Storage: Alliance Members (r:1 w:0)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Voting (r:1 w:1)
/// Proof Skipped: AllianceMotion Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: AllianceMotion Members (r:1 w:0)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Prime (r:1 w:0)
/// Proof Skipped: AllianceMotion Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Proposals (r:1 w:1)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion ProposalOf (r:0 w:1)
/// Proof Skipped: AllianceMotion ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[2, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_disapproved(m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `577 + m * (96 ±0) + p * (36 ±0)`
// Estimated: `6676 + m * (97 ±0) + p * (36 ±0)`
// Minimum execution time: 46_794_000 picoseconds.
Weight::from_parts(43_092_958, 6676)
// Standard Error: 1_273
.saturating_add(Weight::from_parts(71_054, 0).saturating_mul(m.into()))
// Standard Error: 1_257
.saturating_add(Weight::from_parts(152_820, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: Alliance Members (r:1 w:0)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Voting (r:1 w:1)
/// Proof Skipped: AllianceMotion Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: AllianceMotion Members (r:1 w:0)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Prime (r:1 w:0)
/// Proof Skipped: AllianceMotion Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Proposals (r:1 w:1)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion ProposalOf (r:0 w:1)
/// Proof Skipped: AllianceMotion ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `b` is `[1, 1024]`.
/// The range of component `m` is `[5, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `684 + m * (96 ±0) + p * (35 ±0)`
// Estimated: `6676 + m * (97 ±0) + p * (36 ±0)`
// Minimum execution time: 47_338_000 picoseconds.
Weight::from_parts(41_257_479, 6676)
// Standard Error: 119
.saturating_add(Weight::from_parts(1_019, 0).saturating_mul(b.into()))
// Standard Error: 1_277
.saturating_add(Weight::from_parts(78_453, 0).saturating_mul(m.into()))
// Standard Error: 1_231
.saturating_add(Weight::from_parts(150_991, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: Alliance Members (r:2 w:2)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Members (r:1 w:1)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[1, 100]`.
/// The range of component `z` is `[0, 100]`.
fn init_members(m: u32, z: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `217`
// Estimated: `12362`
// Minimum execution time: 35_012_000 picoseconds.
Weight::from_parts(24_288_079, 12362)
// Standard Error: 878
.saturating_add(Weight::from_parts(153_615, 0).saturating_mul(m.into()))
// Standard Error: 867
.saturating_add(Weight::from_parts(129_307, 0).saturating_mul(z.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: Alliance Members (r:2 w:2)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Proposals (r:1 w:0)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Alliance DepositOf (r:200 w:50)
/// Proof: Alliance DepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
/// Storage: System Account (r:50 w:50)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: AllianceMotion Members (r:0 w:1)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Prime (r:0 w:1)
/// Proof Skipped: AllianceMotion Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `x` is `[1, 100]`.
/// The range of component `y` is `[0, 100]`.
/// The range of component `z` is `[0, 50]`.
fn disband(x: u32, y: u32, z: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + x * (50 ±0) + y * (51 ±0) + z * (251 ±0)`
// Estimated: `12362 + x * (2539 ±0) + y * (2539 ±0) + z * (2603 ±1)`
// Minimum execution time: 309_235_000 picoseconds.
Weight::from_parts(311_279_000, 12362)
// Standard Error: 26_510
.saturating_add(Weight::from_parts(543_475, 0).saturating_mul(x.into()))
// Standard Error: 26_382
.saturating_add(Weight::from_parts(603_169, 0).saturating_mul(y.into()))
// Standard Error: 52_716
.saturating_add(Weight::from_parts(16_264_836, 0).saturating_mul(z.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into())))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(z.into())))
.saturating_add(T::DbWeight::get().writes(4_u64))
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(z.into())))
.saturating_add(Weight::from_parts(0, 2539).saturating_mul(x.into()))
.saturating_add(Weight::from_parts(0, 2539).saturating_mul(y.into()))
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(z.into()))
}
/// Storage: Alliance Rule (r:0 w:1)
/// Proof: Alliance Rule (max_values: Some(1), max_size: Some(87), added: 582, mode: MaxEncodedLen)
fn set_rule() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_833_000 picoseconds.
Weight::from_parts(9_313_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Alliance Announcements (r:1 w:1)
/// Proof: Alliance Announcements (max_values: Some(1), max_size: Some(8702), added: 9197, mode: MaxEncodedLen)
fn announce() -> Weight {
// Proof Size summary in bytes:
// Measured: `246`
// Estimated: `10187`
// Minimum execution time: 12_231_000 picoseconds.
Weight::from_parts(12_761_000, 10187)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Alliance Announcements (r:1 w:1)
/// Proof: Alliance Announcements (max_values: Some(1), max_size: Some(8702), added: 9197, mode: MaxEncodedLen)
fn remove_announcement() -> Weight {
// Proof Size summary in bytes:
// Measured: `319`
// Estimated: `10187`
// Minimum execution time: 13_079_000 picoseconds.
Weight::from_parts(13_612_000, 10187)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Alliance Members (r:3 w:1)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: Alliance UnscrupulousAccounts (r:1 w:0)
/// Proof: Alliance UnscrupulousAccounts (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Alliance DepositOf (r:0 w:1)
/// Proof: Alliance DepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
fn join_alliance() -> Weight {
// Proof Size summary in bytes:
// Measured: `468`
// Estimated: `18048`
// Minimum execution time: 44_574_000 picoseconds.
Weight::from_parts(46_157_000, 18048)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: Alliance Members (r:3 w:1)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: Alliance UnscrupulousAccounts (r:1 w:0)
/// Proof: Alliance UnscrupulousAccounts (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
fn nominate_ally() -> Weight {
// Proof Size summary in bytes:
// Measured: `367`
// Estimated: `18048`
// Minimum execution time: 26_114_000 picoseconds.
Weight::from_parts(27_069_000, 18048)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Alliance Members (r:2 w:2)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Proposals (r:1 w:0)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Members (r:0 w:1)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Prime (r:0 w:1)
/// Proof Skipped: AllianceMotion Prime (max_values: Some(1), max_size: None, mode: Measured)
fn elevate_ally() -> Weight {
// Proof Size summary in bytes:
// Measured: `443`
// Estimated: `12362`
// Minimum execution time: 25_882_000 picoseconds.
Weight::from_parts(26_923_000, 12362)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: Alliance Members (r:4 w:2)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Proposals (r:1 w:0)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Members (r:0 w:1)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Prime (r:0 w:1)
/// Proof Skipped: AllianceMotion Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Alliance RetiringMembers (r:0 w:1)
/// Proof: Alliance RetiringMembers (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
fn give_retirement_notice() -> Weight {
// Proof Size summary in bytes:
// Measured: `443`
// Estimated: `23734`
// Minimum execution time: 34_112_000 picoseconds.
Weight::from_parts(35_499_000, 23734)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: Alliance RetiringMembers (r:1 w:1)
/// Proof: Alliance RetiringMembers (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
/// Storage: Alliance Members (r:1 w:1)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: Alliance DepositOf (r:1 w:1)
/// Proof: Alliance DepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn retire() -> Weight {
// Proof Size summary in bytes:
// Measured: `687`
// Estimated: `6676`
// Minimum execution time: 41_239_000 picoseconds.
Weight::from_parts(42_764_000, 6676)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: Alliance Members (r:3 w:1)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Proposals (r:1 w:0)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Alliance DepositOf (r:1 w:1)
/// Proof: Alliance DepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: AllianceMotion Members (r:0 w:1)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Prime (r:0 w:1)
/// Proof Skipped: AllianceMotion Prime (max_values: Some(1), max_size: None, mode: Measured)
fn kick_member() -> Weight {
// Proof Size summary in bytes:
// Measured: `707`
// Estimated: `18048`
// Minimum execution time: 68_071_000 picoseconds.
Weight::from_parts(71_808_000, 18048)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: Alliance UnscrupulousAccounts (r:1 w:1)
/// Proof: Alliance UnscrupulousAccounts (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: Alliance UnscrupulousWebsites (r:1 w:1)
/// Proof: Alliance UnscrupulousWebsites (max_values: Some(1), max_size: Some(25702), added: 26197, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 100]`.
/// The range of component `l` is `[0, 255]`.
fn add_unscrupulous_items(n: u32, l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `246`
// Estimated: `27187`
// Minimum execution time: 7_006_000 picoseconds.
Weight::from_parts(7_253_000, 27187)
// Standard Error: 3_403
.saturating_add(Weight::from_parts(1_680_082, 0).saturating_mul(n.into()))
// Standard Error: 1_333
.saturating_add(Weight::from_parts(72_943, 0).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: Alliance UnscrupulousAccounts (r:1 w:1)
/// Proof: Alliance UnscrupulousAccounts (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: Alliance UnscrupulousWebsites (r:1 w:1)
/// Proof: Alliance UnscrupulousWebsites (max_values: Some(1), max_size: Some(25702), added: 26197, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 100]`.
/// The range of component `l` is `[0, 255]`.
fn remove_unscrupulous_items(n: u32, l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + l * (100 ±0) + n * (289 ±0)`
// Estimated: `27187`
// Minimum execution time: 7_292_000 picoseconds.
Weight::from_parts(7_629_000, 27187)
// Standard Error: 176_225
.saturating_add(Weight::from_parts(16_646_429, 0).saturating_mul(n.into()))
// Standard Error: 69_017
.saturating_add(Weight::from_parts(310_978, 0).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: Alliance Members (r:3 w:2)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Proposals (r:1 w:0)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Members (r:0 w:1)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Prime (r:0 w:1)
/// Proof Skipped: AllianceMotion Prime (max_values: Some(1), max_size: None, mode: Measured)
fn abdicate_fellow_status() -> Weight {
// Proof Size summary in bytes:
// Measured: `443`
// Estimated: `18048`
// Minimum execution time: 31_798_000 picoseconds.
Weight::from_parts(33_463_000, 18048)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
}
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: Alliance Members (r:1 w:0)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion ProposalOf (r:1 w:1)
/// Proof Skipped: AllianceMotion ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: AllianceMotion Proposals (r:1 w:1)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion ProposalCount (r:1 w:1)
/// Proof Skipped: AllianceMotion ProposalCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Voting (r:0 w:1)
/// Proof Skipped: AllianceMotion Voting (max_values: None, max_size: None, mode: Measured)
/// The range of component `b` is `[1, 1024]`.
/// The range of component `m` is `[2, 100]`.
/// The range of component `p` is `[1, 100]`.
fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `653 + m * (32 ±0) + p * (35 ±0)`
// Estimated: `6676 + m * (32 ±0) + p * (36 ±0)`
// Minimum execution time: 36_908_000 picoseconds.
Weight::from_parts(39_040_304, 6676)
// Standard Error: 131
.saturating_add(Weight::from_parts(781, 0).saturating_mul(b.into()))
// Standard Error: 1_375
.saturating_add(Weight::from_parts(48_745, 0).saturating_mul(m.into()))
// Standard Error: 1_358
.saturating_add(Weight::from_parts(148_047, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: Alliance Members (r:1 w:0)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Voting (r:1 w:1)
/// Proof Skipped: AllianceMotion Voting (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[5, 100]`.
fn vote(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1042 + m * (64 ±0)`
// Estimated: `6676 + m * (64 ±0)`
// Minimum execution time: 30_166_000 picoseconds.
Weight::from_parts(32_798_454, 6676)
// Standard Error: 1_432
.saturating_add(Weight::from_parts(83_001, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: Alliance Members (r:1 w:0)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Voting (r:1 w:1)
/// Proof Skipped: AllianceMotion Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: AllianceMotion Members (r:1 w:0)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Proposals (r:1 w:1)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion ProposalOf (r:0 w:1)
/// Proof Skipped: AllianceMotion ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `576 + m * (96 ±0) + p * (36 ±0)`
// Estimated: `6676 + m * (97 ±0) + p * (36 ±0)`
// Minimum execution time: 45_173_000 picoseconds.
Weight::from_parts(42_192_020, 6676)
// Standard Error: 1_456
.saturating_add(Weight::from_parts(66_751, 0).saturating_mul(m.into()))
// Standard Error: 1_420
.saturating_add(Weight::from_parts(158_161, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: Alliance Members (r:1 w:0)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Voting (r:1 w:1)
/// Proof Skipped: AllianceMotion Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: AllianceMotion Members (r:1 w:0)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion ProposalOf (r:1 w:1)
/// Proof Skipped: AllianceMotion ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: AllianceMotion Proposals (r:1 w:1)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `b` is `[1, 1024]`.
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1087 + m * (96 ±0) + p * (39 ±0)`
// Estimated: `6676 + m * (97 ±0) + p * (40 ±0)`
// Minimum execution time: 58_290_000 picoseconds.
Weight::from_parts(54_924_919, 6676)
// Standard Error: 157
.saturating_add(Weight::from_parts(464, 0).saturating_mul(b.into()))
// Standard Error: 1_665
.saturating_add(Weight::from_parts(73_183, 0).saturating_mul(m.into()))
// Standard Error: 1_623
.saturating_add(Weight::from_parts(168_318, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
}
/// Storage: Alliance Members (r:1 w:0)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Voting (r:1 w:1)
/// Proof Skipped: AllianceMotion Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: AllianceMotion Members (r:1 w:0)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Prime (r:1 w:0)
/// Proof Skipped: AllianceMotion Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Proposals (r:1 w:1)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion ProposalOf (r:0 w:1)
/// Proof Skipped: AllianceMotion ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[2, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_disapproved(m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `577 + m * (96 ±0) + p * (36 ±0)`
// Estimated: `6676 + m * (97 ±0) + p * (36 ±0)`
// Minimum execution time: 46_794_000 picoseconds.
Weight::from_parts(43_092_958, 6676)
// Standard Error: 1_273
.saturating_add(Weight::from_parts(71_054, 0).saturating_mul(m.into()))
// Standard Error: 1_257
.saturating_add(Weight::from_parts(152_820, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: Alliance Members (r:1 w:0)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Voting (r:1 w:1)
/// Proof Skipped: AllianceMotion Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: AllianceMotion Members (r:1 w:0)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Prime (r:1 w:0)
/// Proof Skipped: AllianceMotion Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Proposals (r:1 w:1)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion ProposalOf (r:0 w:1)
/// Proof Skipped: AllianceMotion ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `b` is `[1, 1024]`.
/// The range of component `m` is `[5, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `684 + m * (96 ±0) + p * (35 ±0)`
// Estimated: `6676 + m * (97 ±0) + p * (36 ±0)`
// Minimum execution time: 47_338_000 picoseconds.
Weight::from_parts(41_257_479, 6676)
// Standard Error: 119
.saturating_add(Weight::from_parts(1_019, 0).saturating_mul(b.into()))
// Standard Error: 1_277
.saturating_add(Weight::from_parts(78_453, 0).saturating_mul(m.into()))
// Standard Error: 1_231
.saturating_add(Weight::from_parts(150_991, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: Alliance Members (r:2 w:2)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Members (r:1 w:1)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[1, 100]`.
/// The range of component `z` is `[0, 100]`.
fn init_members(m: u32, z: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `217`
// Estimated: `12362`
// Minimum execution time: 35_012_000 picoseconds.
Weight::from_parts(24_288_079, 12362)
// Standard Error: 878
.saturating_add(Weight::from_parts(153_615, 0).saturating_mul(m.into()))
// Standard Error: 867
.saturating_add(Weight::from_parts(129_307, 0).saturating_mul(z.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: Alliance Members (r:2 w:2)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Proposals (r:1 w:0)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Alliance DepositOf (r:200 w:50)
/// Proof: Alliance DepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
/// Storage: System Account (r:50 w:50)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: AllianceMotion Members (r:0 w:1)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Prime (r:0 w:1)
/// Proof Skipped: AllianceMotion Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `x` is `[1, 100]`.
/// The range of component `y` is `[0, 100]`.
/// The range of component `z` is `[0, 50]`.
fn disband(x: u32, y: u32, z: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + x * (50 ±0) + y * (51 ±0) + z * (251 ±0)`
// Estimated: `12362 + x * (2539 ±0) + y * (2539 ±0) + z * (2603 ±1)`
// Minimum execution time: 309_235_000 picoseconds.
Weight::from_parts(311_279_000, 12362)
// Standard Error: 26_510
.saturating_add(Weight::from_parts(543_475, 0).saturating_mul(x.into()))
// Standard Error: 26_382
.saturating_add(Weight::from_parts(603_169, 0).saturating_mul(y.into()))
// Standard Error: 52_716
.saturating_add(Weight::from_parts(16_264_836, 0).saturating_mul(z.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(x.into())))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(y.into())))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(z.into())))
.saturating_add(RocksDbWeight::get().writes(4_u64))
.saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(z.into())))
.saturating_add(Weight::from_parts(0, 2539).saturating_mul(x.into()))
.saturating_add(Weight::from_parts(0, 2539).saturating_mul(y.into()))
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(z.into()))
}
/// Storage: Alliance Rule (r:0 w:1)
/// Proof: Alliance Rule (max_values: Some(1), max_size: Some(87), added: 582, mode: MaxEncodedLen)
fn set_rule() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_833_000 picoseconds.
Weight::from_parts(9_313_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: Alliance Announcements (r:1 w:1)
/// Proof: Alliance Announcements (max_values: Some(1), max_size: Some(8702), added: 9197, mode: MaxEncodedLen)
fn announce() -> Weight {
// Proof Size summary in bytes:
// Measured: `246`
// Estimated: `10187`
// Minimum execution time: 12_231_000 picoseconds.
Weight::from_parts(12_761_000, 10187)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: Alliance Announcements (r:1 w:1)
/// Proof: Alliance Announcements (max_values: Some(1), max_size: Some(8702), added: 9197, mode: MaxEncodedLen)
fn remove_announcement() -> Weight {
// Proof Size summary in bytes:
// Measured: `319`
// Estimated: `10187`
// Minimum execution time: 13_079_000 picoseconds.
Weight::from_parts(13_612_000, 10187)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: Alliance Members (r:3 w:1)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: Alliance UnscrupulousAccounts (r:1 w:0)
/// Proof: Alliance UnscrupulousAccounts (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Alliance DepositOf (r:0 w:1)
/// Proof: Alliance DepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
fn join_alliance() -> Weight {
// Proof Size summary in bytes:
// Measured: `468`
// Estimated: `18048`
// Minimum execution time: 44_574_000 picoseconds.
Weight::from_parts(46_157_000, 18048)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: Alliance Members (r:3 w:1)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: Alliance UnscrupulousAccounts (r:1 w:0)
/// Proof: Alliance UnscrupulousAccounts (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
fn nominate_ally() -> Weight {
// Proof Size summary in bytes:
// Measured: `367`
// Estimated: `18048`
// Minimum execution time: 26_114_000 picoseconds.
Weight::from_parts(27_069_000, 18048)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: Alliance Members (r:2 w:2)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Proposals (r:1 w:0)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Members (r:0 w:1)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Prime (r:0 w:1)
/// Proof Skipped: AllianceMotion Prime (max_values: Some(1), max_size: None, mode: Measured)
fn elevate_ally() -> Weight {
// Proof Size summary in bytes:
// Measured: `443`
// Estimated: `12362`
// Minimum execution time: 25_882_000 picoseconds.
Weight::from_parts(26_923_000, 12362)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
/// Storage: Alliance Members (r:4 w:2)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Proposals (r:1 w:0)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Members (r:0 w:1)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Prime (r:0 w:1)
/// Proof Skipped: AllianceMotion Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Alliance RetiringMembers (r:0 w:1)
/// Proof: Alliance RetiringMembers (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
fn give_retirement_notice() -> Weight {
// Proof Size summary in bytes:
// Measured: `443`
// Estimated: `23734`
// Minimum execution time: 34_112_000 picoseconds.
Weight::from_parts(35_499_000, 23734)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
/// Storage: Alliance RetiringMembers (r:1 w:1)
/// Proof: Alliance RetiringMembers (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
/// Storage: Alliance Members (r:1 w:1)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: Alliance DepositOf (r:1 w:1)
/// Proof: Alliance DepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn retire() -> Weight {
// Proof Size summary in bytes:
// Measured: `687`
// Estimated: `6676`
// Minimum execution time: 41_239_000 picoseconds.
Weight::from_parts(42_764_000, 6676)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
/// Storage: Alliance Members (r:3 w:1)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Proposals (r:1 w:0)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Alliance DepositOf (r:1 w:1)
/// Proof: Alliance DepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: AllianceMotion Members (r:0 w:1)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Prime (r:0 w:1)
/// Proof Skipped: AllianceMotion Prime (max_values: Some(1), max_size: None, mode: Measured)
fn kick_member() -> Weight {
// Proof Size summary in bytes:
// Measured: `707`
// Estimated: `18048`
// Minimum execution time: 68_071_000 picoseconds.
Weight::from_parts(71_808_000, 18048)
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
/// Storage: Alliance UnscrupulousAccounts (r:1 w:1)
/// Proof: Alliance UnscrupulousAccounts (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: Alliance UnscrupulousWebsites (r:1 w:1)
/// Proof: Alliance UnscrupulousWebsites (max_values: Some(1), max_size: Some(25702), added: 26197, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 100]`.
/// The range of component `l` is `[0, 255]`.
fn add_unscrupulous_items(n: u32, l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `246`
// Estimated: `27187`
// Minimum execution time: 7_006_000 picoseconds.
Weight::from_parts(7_253_000, 27187)
// Standard Error: 3_403
.saturating_add(Weight::from_parts(1_680_082, 0).saturating_mul(n.into()))
// Standard Error: 1_333
.saturating_add(Weight::from_parts(72_943, 0).saturating_mul(l.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: Alliance UnscrupulousAccounts (r:1 w:1)
/// Proof: Alliance UnscrupulousAccounts (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: Alliance UnscrupulousWebsites (r:1 w:1)
/// Proof: Alliance UnscrupulousWebsites (max_values: Some(1), max_size: Some(25702), added: 26197, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 100]`.
/// The range of component `l` is `[0, 255]`.
fn remove_unscrupulous_items(n: u32, l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + l * (100 ±0) + n * (289 ±0)`
// Estimated: `27187`
// Minimum execution time: 7_292_000 picoseconds.
Weight::from_parts(7_629_000, 27187)
// Standard Error: 176_225
.saturating_add(Weight::from_parts(16_646_429, 0).saturating_mul(n.into()))
// Standard Error: 69_017
.saturating_add(Weight::from_parts(310_978, 0).saturating_mul(l.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: Alliance Members (r:3 w:2)
/// Proof: Alliance Members (max_values: None, max_size: Some(3211), added: 5686, mode: MaxEncodedLen)
/// Storage: AllianceMotion Proposals (r:1 w:0)
/// Proof Skipped: AllianceMotion Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Members (r:0 w:1)
/// Proof Skipped: AllianceMotion Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: AllianceMotion Prime (r:0 w:1)
/// Proof Skipped: AllianceMotion Prime (max_values: Some(1), max_size: None, mode: Measured)
fn abdicate_fellow_status() -> Weight {
// Proof Size summary in bytes:
// Measured: `443`
// Estimated: `18048`
// Minimum execution time: 31_798_000 picoseconds.
Weight::from_parts(33_463_000, 18048)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
}