mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 15:11:02 +00:00
ebfe00d590
* Align log Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use max instead of sum Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Make comment ordering deterministic Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Dont add Pov overhead when all is ignored Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update test pallet weights Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Re-run weights on bm2 Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix test Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Actually use new weights Fucked up the merge for this file... Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update contract weights Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
905 lines
47 KiB
Rust
Generated
905 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-04-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
|
//! 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
|
|
// --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)]
|
|
|
|
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
|
use sp_std::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: `618 + m * (32 ±0) + p * (36 ±0)`
|
|
// Estimated: `6676 + m * (31 ±0) + p * (37 ±0)`
|
|
// Minimum execution time: 32_316_000 picoseconds.
|
|
Weight::from_parts(35_185_484, 6676)
|
|
// Standard Error: 83
|
|
.saturating_add(Weight::from_parts(1_089, 0).saturating_mul(b.into()))
|
|
// Standard Error: 871
|
|
.saturating_add(Weight::from_parts(21_235, 0).saturating_mul(m.into()))
|
|
// Standard Error: 860
|
|
.saturating_add(Weight::from_parts(120_353, 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, 31).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 37).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: 25_982_000 picoseconds.
|
|
Weight::from_parts(28_118_657, 6676)
|
|
// Standard Error: 855
|
|
.saturating_add(Weight::from_parts(61_309, 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: `622 + m * (96 ±0) + p * (37 ±0)`
|
|
// Estimated: `6676 + m * (96 ±0) + p * (37 ±0)`
|
|
// Minimum execution time: 40_922_000 picoseconds.
|
|
Weight::from_parts(39_098_903, 6676)
|
|
// Standard Error: 714
|
|
.saturating_add(Weight::from_parts(44_125, 0).saturating_mul(m.into()))
|
|
// Standard Error: 696
|
|
.saturating_add(Weight::from_parts(111_263, 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, 96).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 37).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: `903 + m * (96 ±0) + p * (41 ±0)`
|
|
// Estimated: `6676 + m * (98 ±0) + p * (40 ±0)`
|
|
// Minimum execution time: 51_890_000 picoseconds.
|
|
Weight::from_parts(49_880_817, 6676)
|
|
// Standard Error: 81
|
|
.saturating_add(Weight::from_parts(688, 0).saturating_mul(b.into()))
|
|
// Standard Error: 862
|
|
.saturating_add(Weight::from_parts(54_419, 0).saturating_mul(m.into()))
|
|
// Standard Error: 840
|
|
.saturating_add(Weight::from_parts(122_253, 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, 98).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: `622 + m * (96 ±0) + p * (37 ±0)`
|
|
// Estimated: `6676 + m * (96 ±0) + p * (37 ±0)`
|
|
// Minimum execution time: 42_391_000 picoseconds.
|
|
Weight::from_parts(40_156_254, 6676)
|
|
// Standard Error: 728
|
|
.saturating_add(Weight::from_parts(47_889, 0).saturating_mul(m.into()))
|
|
// Standard Error: 719
|
|
.saturating_add(Weight::from_parts(112_596, 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, 96).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 37).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: `591 + m * (96 ±0) + p * (36 ±0)`
|
|
// Estimated: `6676 + m * (97 ±0) + p * (36 ±0)`
|
|
// Minimum execution time: 42_320_000 picoseconds.
|
|
Weight::from_parts(40_205_526, 6676)
|
|
// Standard Error: 64
|
|
.saturating_add(Weight::from_parts(49, 0).saturating_mul(b.into()))
|
|
// Standard Error: 690
|
|
.saturating_add(Weight::from_parts(46_508, 0).saturating_mul(m.into()))
|
|
// Standard Error: 665
|
|
.saturating_add(Weight::from_parts(112_222, 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: 32_509_000 picoseconds.
|
|
Weight::from_parts(23_584_337, 12362)
|
|
// Standard Error: 377
|
|
.saturating_add(Weight::from_parts(114_917, 0).saturating_mul(m.into()))
|
|
// Standard Error: 373
|
|
.saturating_add(Weight::from_parts(97_593, 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: 275_061_000 picoseconds.
|
|
Weight::from_parts(565_248, 12362)
|
|
// Standard Error: 15_948
|
|
.saturating_add(Weight::from_parts(1_636_348, 0).saturating_mul(x.into()))
|
|
// Standard Error: 15_761
|
|
.saturating_add(Weight::from_parts(1_580_146, 0).saturating_mul(y.into()))
|
|
// Standard Error: 31_496
|
|
.saturating_add(Weight::from_parts(17_217_382, 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: 10_261_000 picoseconds.
|
|
Weight::from_parts(10_389_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: 13_483_000 picoseconds.
|
|
Weight::from_parts(13_805_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: 14_816_000 picoseconds.
|
|
Weight::from_parts(15_163_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: 46_149_000 picoseconds.
|
|
Weight::from_parts(46_827_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: 28_463_000 picoseconds.
|
|
Weight::from_parts(28_730_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: 28_401_000 picoseconds.
|
|
Weight::from_parts(28_717_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: 36_538_000 picoseconds.
|
|
Weight::from_parts(37_197_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: 42_324_000 picoseconds.
|
|
Weight::from_parts(42_890_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_003_000 picoseconds.
|
|
Weight::from_parts(68_657_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: 8_304_000 picoseconds.
|
|
Weight::from_parts(8_424_000, 27187)
|
|
// Standard Error: 2_765
|
|
.saturating_add(Weight::from_parts(1_529_793, 0).saturating_mul(n.into()))
|
|
// Standard Error: 1_082
|
|
.saturating_add(Weight::from_parts(71_352, 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: 8_348_000 picoseconds.
|
|
Weight::from_parts(8_505_000, 27187)
|
|
// Standard Error: 187_398
|
|
.saturating_add(Weight::from_parts(16_545_597, 0).saturating_mul(n.into()))
|
|
// Standard Error: 73_393
|
|
.saturating_add(Weight::from_parts(350_415, 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: 34_461_000 picoseconds.
|
|
Weight::from_parts(34_992_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: `618 + m * (32 ±0) + p * (36 ±0)`
|
|
// Estimated: `6676 + m * (31 ±0) + p * (37 ±0)`
|
|
// Minimum execution time: 32_316_000 picoseconds.
|
|
Weight::from_parts(35_185_484, 6676)
|
|
// Standard Error: 83
|
|
.saturating_add(Weight::from_parts(1_089, 0).saturating_mul(b.into()))
|
|
// Standard Error: 871
|
|
.saturating_add(Weight::from_parts(21_235, 0).saturating_mul(m.into()))
|
|
// Standard Error: 860
|
|
.saturating_add(Weight::from_parts(120_353, 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, 31).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 37).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: 25_982_000 picoseconds.
|
|
Weight::from_parts(28_118_657, 6676)
|
|
// Standard Error: 855
|
|
.saturating_add(Weight::from_parts(61_309, 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: `622 + m * (96 ±0) + p * (37 ±0)`
|
|
// Estimated: `6676 + m * (96 ±0) + p * (37 ±0)`
|
|
// Minimum execution time: 40_922_000 picoseconds.
|
|
Weight::from_parts(39_098_903, 6676)
|
|
// Standard Error: 714
|
|
.saturating_add(Weight::from_parts(44_125, 0).saturating_mul(m.into()))
|
|
// Standard Error: 696
|
|
.saturating_add(Weight::from_parts(111_263, 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, 96).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 37).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: `903 + m * (96 ±0) + p * (41 ±0)`
|
|
// Estimated: `6676 + m * (98 ±0) + p * (40 ±0)`
|
|
// Minimum execution time: 51_890_000 picoseconds.
|
|
Weight::from_parts(49_880_817, 6676)
|
|
// Standard Error: 81
|
|
.saturating_add(Weight::from_parts(688, 0).saturating_mul(b.into()))
|
|
// Standard Error: 862
|
|
.saturating_add(Weight::from_parts(54_419, 0).saturating_mul(m.into()))
|
|
// Standard Error: 840
|
|
.saturating_add(Weight::from_parts(122_253, 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, 98).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: `622 + m * (96 ±0) + p * (37 ±0)`
|
|
// Estimated: `6676 + m * (96 ±0) + p * (37 ±0)`
|
|
// Minimum execution time: 42_391_000 picoseconds.
|
|
Weight::from_parts(40_156_254, 6676)
|
|
// Standard Error: 728
|
|
.saturating_add(Weight::from_parts(47_889, 0).saturating_mul(m.into()))
|
|
// Standard Error: 719
|
|
.saturating_add(Weight::from_parts(112_596, 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, 96).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 37).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: `591 + m * (96 ±0) + p * (36 ±0)`
|
|
// Estimated: `6676 + m * (97 ±0) + p * (36 ±0)`
|
|
// Minimum execution time: 42_320_000 picoseconds.
|
|
Weight::from_parts(40_205_526, 6676)
|
|
// Standard Error: 64
|
|
.saturating_add(Weight::from_parts(49, 0).saturating_mul(b.into()))
|
|
// Standard Error: 690
|
|
.saturating_add(Weight::from_parts(46_508, 0).saturating_mul(m.into()))
|
|
// Standard Error: 665
|
|
.saturating_add(Weight::from_parts(112_222, 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: 32_509_000 picoseconds.
|
|
Weight::from_parts(23_584_337, 12362)
|
|
// Standard Error: 377
|
|
.saturating_add(Weight::from_parts(114_917, 0).saturating_mul(m.into()))
|
|
// Standard Error: 373
|
|
.saturating_add(Weight::from_parts(97_593, 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: 275_061_000 picoseconds.
|
|
Weight::from_parts(565_248, 12362)
|
|
// Standard Error: 15_948
|
|
.saturating_add(Weight::from_parts(1_636_348, 0).saturating_mul(x.into()))
|
|
// Standard Error: 15_761
|
|
.saturating_add(Weight::from_parts(1_580_146, 0).saturating_mul(y.into()))
|
|
// Standard Error: 31_496
|
|
.saturating_add(Weight::from_parts(17_217_382, 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: 10_261_000 picoseconds.
|
|
Weight::from_parts(10_389_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: 13_483_000 picoseconds.
|
|
Weight::from_parts(13_805_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: 14_816_000 picoseconds.
|
|
Weight::from_parts(15_163_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: 46_149_000 picoseconds.
|
|
Weight::from_parts(46_827_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: 28_463_000 picoseconds.
|
|
Weight::from_parts(28_730_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: 28_401_000 picoseconds.
|
|
Weight::from_parts(28_717_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: 36_538_000 picoseconds.
|
|
Weight::from_parts(37_197_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: 42_324_000 picoseconds.
|
|
Weight::from_parts(42_890_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_003_000 picoseconds.
|
|
Weight::from_parts(68_657_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: 8_304_000 picoseconds.
|
|
Weight::from_parts(8_424_000, 27187)
|
|
// Standard Error: 2_765
|
|
.saturating_add(Weight::from_parts(1_529_793, 0).saturating_mul(n.into()))
|
|
// Standard Error: 1_082
|
|
.saturating_add(Weight::from_parts(71_352, 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: 8_348_000 picoseconds.
|
|
Weight::from_parts(8_505_000, 27187)
|
|
// Standard Error: 187_398
|
|
.saturating_add(Weight::from_parts(16_545_597, 0).saturating_mul(n.into()))
|
|
// Standard Error: 73_393
|
|
.saturating_add(Weight::from_parts(350_415, 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: 34_461_000 picoseconds.
|
|
Weight::from_parts(34_992_000, 18048)
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
|
}
|
|
}
|