mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 03:07:56 +00:00
9e56e1acdd
* Deprecate Weight::from_{ref_time, proof_size}
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Update templates
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Use from_parts
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Use from_parts
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Dont revert comment 🤦
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_balances
* Update weight files
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* More fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Adapt to Master changes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: command-bot <>
964 lines
48 KiB
Rust
964 lines
48 KiB
Rust
// 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_democracy
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-01-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `runner-b3zmxxc-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
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --json-file=/builds/parity/mirrors/substrate/.git/.artifacts/bench.json
|
|
// --pallet=pallet_democracy
|
|
// --chain=dev
|
|
// --header=./HEADER-APACHE2
|
|
// --output=./frame/democracy/src/weights.rs
|
|
// --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_democracy.
|
|
pub trait WeightInfo {
|
|
fn propose() -> Weight;
|
|
fn second() -> Weight;
|
|
fn vote_new() -> Weight;
|
|
fn vote_existing() -> Weight;
|
|
fn emergency_cancel() -> Weight;
|
|
fn blacklist() -> Weight;
|
|
fn external_propose() -> Weight;
|
|
fn external_propose_majority() -> Weight;
|
|
fn external_propose_default() -> Weight;
|
|
fn fast_track() -> Weight;
|
|
fn veto_external() -> Weight;
|
|
fn cancel_proposal() -> Weight;
|
|
fn cancel_referendum() -> Weight;
|
|
fn on_initialize_base(r: u32, ) -> Weight;
|
|
fn on_initialize_base_with_launch_period(r: u32, ) -> Weight;
|
|
fn delegate(r: u32, ) -> Weight;
|
|
fn undelegate(r: u32, ) -> Weight;
|
|
fn clear_public_proposals() -> Weight;
|
|
fn unlock_remove(r: u32, ) -> Weight;
|
|
fn unlock_set(r: u32, ) -> Weight;
|
|
fn remove_vote(r: u32, ) -> Weight;
|
|
fn remove_other_vote(r: u32, ) -> Weight;
|
|
fn set_external_metadata() -> Weight;
|
|
fn clear_external_metadata() -> Weight;
|
|
fn set_proposal_metadata() -> Weight;
|
|
fn clear_proposal_metadata() -> Weight;
|
|
fn set_referendum_metadata() -> Weight;
|
|
fn clear_referendum_metadata() -> Weight;
|
|
}
|
|
|
|
/// Weights for pallet_democracy using the Substrate node and recommended hardware.
|
|
pub struct SubstrateWeight<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|
/// Storage: Democracy PublicPropCount (r:1 w:1)
|
|
/// Proof: Democracy PublicPropCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Democracy PublicProps (r:1 w:1)
|
|
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
|
/// Storage: Democracy Blacklist (r:1 w:0)
|
|
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
|
|
/// Storage: Democracy DepositOf (r:0 w:1)
|
|
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
|
|
fn propose() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `4864`
|
|
// Estimated: `23409`
|
|
// Minimum execution time: 42_939 nanoseconds.
|
|
Weight::from_parts(43_543_000, 23409)
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: Democracy DepositOf (r:1 w:1)
|
|
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
|
|
fn second() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3620`
|
|
// Estimated: `5705`
|
|
// Minimum execution time: 36_475 nanoseconds.
|
|
Weight::from_parts(37_863_000, 5705)
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// Storage: Democracy VotingOf (r:1 w:1)
|
|
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
fn vote_new() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3565`
|
|
// Estimated: `12720`
|
|
// Minimum execution time: 56_372 nanoseconds.
|
|
Weight::from_parts(57_483_000, 12720)
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// Storage: Democracy VotingOf (r:1 w:1)
|
|
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
fn vote_existing() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3587`
|
|
// Estimated: `12720`
|
|
// Minimum execution time: 56_789 nanoseconds.
|
|
Weight::from_parts(57_737_000, 12720)
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// Storage: Democracy Cancellations (r:1 w:1)
|
|
/// Proof: Democracy Cancellations (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:1 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn emergency_cancel() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `398`
|
|
// Estimated: `7712`
|
|
// Minimum execution time: 24_379 nanoseconds.
|
|
Weight::from_parts(25_302_000, 7712)
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: Democracy PublicProps (r:1 w:1)
|
|
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
|
/// Storage: Democracy DepositOf (r:1 w:1)
|
|
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:3 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
/// Storage: Democracy NextExternal (r:1 w:1)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// Storage: Democracy Blacklist (r:0 w:1)
|
|
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
|
|
fn blacklist() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `6036`
|
|
// Estimated: `36392`
|
|
// Minimum execution time: 100_345 nanoseconds.
|
|
Weight::from_parts(102_233_000, 36392)
|
|
.saturating_add(T::DbWeight::get().reads(8_u64))
|
|
.saturating_add(T::DbWeight::get().writes(7_u64))
|
|
}
|
|
/// Storage: Democracy NextExternal (r:1 w:1)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
/// Storage: Democracy Blacklist (r:1 w:0)
|
|
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
|
|
fn external_propose() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3448`
|
|
// Estimated: `6340`
|
|
// Minimum execution time: 13_155 nanoseconds.
|
|
Weight::from_parts(14_158_000, 6340)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy NextExternal (r:0 w:1)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
fn external_propose_majority() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 2_961 nanoseconds.
|
|
Weight::from_parts(3_139_000, 0)
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy NextExternal (r:0 w:1)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
fn external_propose_default() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 3_040 nanoseconds.
|
|
Weight::from_parts(3_261_000, 0)
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy NextExternal (r:1 w:1)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumCount (r:1 w:1)
|
|
/// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:1 w:2)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumInfoOf (r:0 w:1)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
fn fast_track() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `286`
|
|
// Estimated: `3654`
|
|
// Minimum execution time: 26_666 nanoseconds.
|
|
Weight::from_parts(28_014_000, 3654)
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(5_u64))
|
|
}
|
|
/// Storage: Democracy NextExternal (r:1 w:1)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
/// Storage: Democracy Blacklist (r:1 w:1)
|
|
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:1 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn veto_external() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3551`
|
|
// Estimated: `8868`
|
|
// Minimum execution time: 30_180 nanoseconds.
|
|
Weight::from_parts(31_593_000, 8868)
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: Democracy PublicProps (r:1 w:1)
|
|
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
|
/// Storage: Democracy DepositOf (r:1 w:1)
|
|
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:1 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn cancel_proposal() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `5915`
|
|
// Estimated: `28033`
|
|
// Minimum execution time: 80_780 nanoseconds.
|
|
Weight::from_parts(82_070_000, 28033)
|
|
.saturating_add(T::DbWeight::get().reads(4_u64))
|
|
.saturating_add(T::DbWeight::get().writes(4_u64))
|
|
}
|
|
/// Storage: Democracy MetadataOf (r:1 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumInfoOf (r:0 w:1)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
fn cancel_referendum() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `271`
|
|
// Estimated: `2528`
|
|
// Minimum execution time: 18_117 nanoseconds.
|
|
Weight::from_parts(19_027_000, 2528)
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: Democracy LowestUnbaked (r:1 w:1)
|
|
/// Proof: Democracy LowestUnbaked (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumCount (r:1 w:0)
|
|
/// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumInfoOf (r:99 w:0)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[0, 99]`.
|
|
fn on_initialize_base(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `244 + r * (117 ±0)`
|
|
// Estimated: `998 + r * (2676 ±0)`
|
|
// Minimum execution time: 7_093 nanoseconds.
|
|
Weight::from_parts(8_792_955, 998)
|
|
// Standard Error: 6_630
|
|
.saturating_add(Weight::from_parts(3_091_565, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
|
|
}
|
|
/// Storage: Democracy LowestUnbaked (r:1 w:1)
|
|
/// Proof: Democracy LowestUnbaked (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumCount (r:1 w:0)
|
|
/// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Democracy LastTabledWasExternal (r:1 w:0)
|
|
/// Proof: Democracy LastTabledWasExternal (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
|
|
/// Storage: Democracy NextExternal (r:1 w:0)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
/// Storage: Democracy PublicProps (r:1 w:0)
|
|
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumInfoOf (r:99 w:0)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[0, 99]`.
|
|
fn on_initialize_base_with_launch_period(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `244 + r * (117 ±0)`
|
|
// Estimated: `19318 + r * (2676 ±0)`
|
|
// Minimum execution time: 10_372 nanoseconds.
|
|
Weight::from_parts(10_961_165, 19318)
|
|
// Standard Error: 7_284
|
|
.saturating_add(Weight::from_parts(3_112_573, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(5_u64))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
|
|
}
|
|
/// Storage: Democracy VotingOf (r:3 w:3)
|
|
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumInfoOf (r:99 w:99)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[0, 99]`.
|
|
fn delegate(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `958 + r * (139 ±0)`
|
|
// Estimated: `22584 + r * (2676 ±0)`
|
|
// Minimum execution time: 36_618 nanoseconds.
|
|
Weight::from_parts(42_803_184, 22584)
|
|
// Standard Error: 7_268
|
|
.saturating_add(Weight::from_parts(4_537_902, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(4_u64))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
|
.saturating_add(T::DbWeight::get().writes(4_u64))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into())))
|
|
.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
|
|
}
|
|
/// Storage: Democracy VotingOf (r:2 w:2)
|
|
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumInfoOf (r:99 w:99)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[0, 99]`.
|
|
fn undelegate(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `557 + r * (139 ±0)`
|
|
// Estimated: `12540 + r * (2676 ±0)`
|
|
// Minimum execution time: 19_758 nanoseconds.
|
|
Weight::from_parts(21_641_793, 12540)
|
|
// Standard Error: 6_889
|
|
.saturating_add(Weight::from_parts(4_478_884, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into())))
|
|
.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
|
|
}
|
|
/// Storage: Democracy PublicProps (r:0 w:1)
|
|
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
|
fn clear_public_proposals() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 2_844 nanoseconds.
|
|
Weight::from_parts(3_017_000, 0)
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy VotingOf (r:1 w:1)
|
|
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[0, 99]`.
|
|
fn unlock_remove(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `627`
|
|
// Estimated: `12647`
|
|
// Minimum execution time: 20_380 nanoseconds.
|
|
Weight::from_parts(28_295_875, 12647)
|
|
// Standard Error: 2_331
|
|
.saturating_add(Weight::from_parts(67_348, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: Democracy VotingOf (r:1 w:1)
|
|
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[0, 99]`.
|
|
fn unlock_set(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `628 + r * (22 ±0)`
|
|
// Estimated: `12647`
|
|
// Minimum execution time: 24_475 nanoseconds.
|
|
Weight::from_parts(27_102_576, 12647)
|
|
// Standard Error: 1_464
|
|
.saturating_add(Weight::from_parts(128_921, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// Storage: Democracy VotingOf (r:1 w:1)
|
|
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 100]`.
|
|
fn remove_vote(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `791 + r * (26 ±0)`
|
|
// Estimated: `8946`
|
|
// Minimum execution time: 15_039 nanoseconds.
|
|
Weight::from_parts(19_252_498, 8946)
|
|
// Standard Error: 1_798
|
|
.saturating_add(Weight::from_parts(131_855, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// Storage: Democracy VotingOf (r:1 w:1)
|
|
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 100]`.
|
|
fn remove_other_vote(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `791 + r * (26 ±0)`
|
|
// Estimated: `8946`
|
|
// Minimum execution time: 14_837 nanoseconds.
|
|
Weight::from_parts(19_144_929, 8946)
|
|
// Standard Error: 1_875
|
|
.saturating_add(Weight::from_parts(136_819, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: Democracy NextExternal (r:1 w:0)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
/// Storage: Preimage StatusFor (r:1 w:0)
|
|
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:0 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn set_external_metadata() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `356`
|
|
// Estimated: `3193`
|
|
// Minimum execution time: 17_338 nanoseconds.
|
|
Weight::from_parts(17_946_000, 3193)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy NextExternal (r:1 w:0)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:1 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn clear_external_metadata() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `286`
|
|
// Estimated: `3155`
|
|
// Minimum execution time: 15_364 nanoseconds.
|
|
Weight::from_parts(15_990_000, 3155)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy PublicProps (r:1 w:0)
|
|
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
|
/// Storage: Preimage StatusFor (r:1 w:0)
|
|
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:0 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn set_proposal_metadata() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `4919`
|
|
// Estimated: `19763`
|
|
// Minimum execution time: 37_147 nanoseconds.
|
|
Weight::from_parts(37_778_000, 19763)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy PublicProps (r:1 w:0)
|
|
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:1 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn clear_proposal_metadata() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `4853`
|
|
// Estimated: `19725`
|
|
// Minimum execution time: 34_118 nanoseconds.
|
|
Weight::from_parts(34_737_000, 19725)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Preimage StatusFor (r:1 w:0)
|
|
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:0 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn set_referendum_metadata() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `144`
|
|
// Estimated: `2566`
|
|
// Minimum execution time: 12_787 nanoseconds.
|
|
Weight::from_parts(13_463_000, 2566)
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy ReferendumInfoOf (r:1 w:0)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:1 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn clear_referendum_metadata() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `302`
|
|
// Estimated: `5204`
|
|
// Minimum execution time: 17_636 nanoseconds.
|
|
Weight::from_parts(18_399_000, 5204)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
}
|
|
|
|
// For backwards compatibility and tests
|
|
impl WeightInfo for () {
|
|
/// Storage: Democracy PublicPropCount (r:1 w:1)
|
|
/// Proof: Democracy PublicPropCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Democracy PublicProps (r:1 w:1)
|
|
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
|
/// Storage: Democracy Blacklist (r:1 w:0)
|
|
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
|
|
/// Storage: Democracy DepositOf (r:0 w:1)
|
|
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
|
|
fn propose() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `4864`
|
|
// Estimated: `23409`
|
|
// Minimum execution time: 42_939 nanoseconds.
|
|
Weight::from_parts(43_543_000, 23409)
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: Democracy DepositOf (r:1 w:1)
|
|
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
|
|
fn second() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3620`
|
|
// Estimated: `5705`
|
|
// Minimum execution time: 36_475 nanoseconds.
|
|
Weight::from_parts(37_863_000, 5705)
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// Storage: Democracy VotingOf (r:1 w:1)
|
|
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
fn vote_new() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3565`
|
|
// Estimated: `12720`
|
|
// Minimum execution time: 56_372 nanoseconds.
|
|
Weight::from_parts(57_483_000, 12720)
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// Storage: Democracy VotingOf (r:1 w:1)
|
|
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
fn vote_existing() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3587`
|
|
// Estimated: `12720`
|
|
// Minimum execution time: 56_789 nanoseconds.
|
|
Weight::from_parts(57_737_000, 12720)
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// Storage: Democracy Cancellations (r:1 w:1)
|
|
/// Proof: Democracy Cancellations (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:1 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn emergency_cancel() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `398`
|
|
// Estimated: `7712`
|
|
// Minimum execution time: 24_379 nanoseconds.
|
|
Weight::from_parts(25_302_000, 7712)
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: Democracy PublicProps (r:1 w:1)
|
|
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
|
/// Storage: Democracy DepositOf (r:1 w:1)
|
|
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:3 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
/// Storage: Democracy NextExternal (r:1 w:1)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// Storage: Democracy Blacklist (r:0 w:1)
|
|
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
|
|
fn blacklist() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `6036`
|
|
// Estimated: `36392`
|
|
// Minimum execution time: 100_345 nanoseconds.
|
|
Weight::from_parts(102_233_000, 36392)
|
|
.saturating_add(RocksDbWeight::get().reads(8_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(7_u64))
|
|
}
|
|
/// Storage: Democracy NextExternal (r:1 w:1)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
/// Storage: Democracy Blacklist (r:1 w:0)
|
|
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
|
|
fn external_propose() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3448`
|
|
// Estimated: `6340`
|
|
// Minimum execution time: 13_155 nanoseconds.
|
|
Weight::from_parts(14_158_000, 6340)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy NextExternal (r:0 w:1)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
fn external_propose_majority() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 2_961 nanoseconds.
|
|
Weight::from_parts(3_139_000, 0)
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy NextExternal (r:0 w:1)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
fn external_propose_default() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 3_040 nanoseconds.
|
|
Weight::from_parts(3_261_000, 0)
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy NextExternal (r:1 w:1)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumCount (r:1 w:1)
|
|
/// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:1 w:2)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumInfoOf (r:0 w:1)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
fn fast_track() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `286`
|
|
// Estimated: `3654`
|
|
// Minimum execution time: 26_666 nanoseconds.
|
|
Weight::from_parts(28_014_000, 3654)
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
|
}
|
|
/// Storage: Democracy NextExternal (r:1 w:1)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
/// Storage: Democracy Blacklist (r:1 w:1)
|
|
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:1 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn veto_external() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3551`
|
|
// Estimated: `8868`
|
|
// Minimum execution time: 30_180 nanoseconds.
|
|
Weight::from_parts(31_593_000, 8868)
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: Democracy PublicProps (r:1 w:1)
|
|
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
|
/// Storage: Democracy DepositOf (r:1 w:1)
|
|
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:1 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn cancel_proposal() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `5915`
|
|
// Estimated: `28033`
|
|
// Minimum execution time: 80_780 nanoseconds.
|
|
Weight::from_parts(82_070_000, 28033)
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
|
}
|
|
/// Storage: Democracy MetadataOf (r:1 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumInfoOf (r:0 w:1)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
fn cancel_referendum() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `271`
|
|
// Estimated: `2528`
|
|
// Minimum execution time: 18_117 nanoseconds.
|
|
Weight::from_parts(19_027_000, 2528)
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: Democracy LowestUnbaked (r:1 w:1)
|
|
/// Proof: Democracy LowestUnbaked (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumCount (r:1 w:0)
|
|
/// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumInfoOf (r:99 w:0)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[0, 99]`.
|
|
fn on_initialize_base(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `244 + r * (117 ±0)`
|
|
// Estimated: `998 + r * (2676 ±0)`
|
|
// Minimum execution time: 7_093 nanoseconds.
|
|
Weight::from_parts(8_792_955, 998)
|
|
// Standard Error: 6_630
|
|
.saturating_add(Weight::from_parts(3_091_565, 0).saturating_mul(r.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
|
|
}
|
|
/// Storage: Democracy LowestUnbaked (r:1 w:1)
|
|
/// Proof: Democracy LowestUnbaked (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumCount (r:1 w:0)
|
|
/// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Democracy LastTabledWasExternal (r:1 w:0)
|
|
/// Proof: Democracy LastTabledWasExternal (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
|
|
/// Storage: Democracy NextExternal (r:1 w:0)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
/// Storage: Democracy PublicProps (r:1 w:0)
|
|
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumInfoOf (r:99 w:0)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[0, 99]`.
|
|
fn on_initialize_base_with_launch_period(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `244 + r * (117 ±0)`
|
|
// Estimated: `19318 + r * (2676 ±0)`
|
|
// Minimum execution time: 10_372 nanoseconds.
|
|
Weight::from_parts(10_961_165, 19318)
|
|
// Standard Error: 7_284
|
|
.saturating_add(Weight::from_parts(3_112_573, 0).saturating_mul(r.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
|
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
|
|
}
|
|
/// Storage: Democracy VotingOf (r:3 w:3)
|
|
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumInfoOf (r:99 w:99)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[0, 99]`.
|
|
fn delegate(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `958 + r * (139 ±0)`
|
|
// Estimated: `22584 + r * (2676 ±0)`
|
|
// Minimum execution time: 36_618 nanoseconds.
|
|
Weight::from_parts(42_803_184, 22584)
|
|
// Standard Error: 7_268
|
|
.saturating_add(Weight::from_parts(4_537_902, 0).saturating_mul(r.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
|
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(r.into())))
|
|
.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
|
|
}
|
|
/// Storage: Democracy VotingOf (r:2 w:2)
|
|
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
|
|
/// Storage: Democracy ReferendumInfoOf (r:99 w:99)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[0, 99]`.
|
|
fn undelegate(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `557 + r * (139 ±0)`
|
|
// Estimated: `12540 + r * (2676 ±0)`
|
|
// Minimum execution time: 19_758 nanoseconds.
|
|
Weight::from_parts(21_641_793, 12540)
|
|
// Standard Error: 6_889
|
|
.saturating_add(Weight::from_parts(4_478_884, 0).saturating_mul(r.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(r.into())))
|
|
.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
|
|
}
|
|
/// Storage: Democracy PublicProps (r:0 w:1)
|
|
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
|
fn clear_public_proposals() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 2_844 nanoseconds.
|
|
Weight::from_parts(3_017_000, 0)
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy VotingOf (r:1 w:1)
|
|
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[0, 99]`.
|
|
fn unlock_remove(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `627`
|
|
// Estimated: `12647`
|
|
// Minimum execution time: 20_380 nanoseconds.
|
|
Weight::from_parts(28_295_875, 12647)
|
|
// Standard Error: 2_331
|
|
.saturating_add(Weight::from_parts(67_348, 0).saturating_mul(r.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: Democracy VotingOf (r:1 w:1)
|
|
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[0, 99]`.
|
|
fn unlock_set(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `628 + r * (22 ±0)`
|
|
// Estimated: `12647`
|
|
// Minimum execution time: 24_475 nanoseconds.
|
|
Weight::from_parts(27_102_576, 12647)
|
|
// Standard Error: 1_464
|
|
.saturating_add(Weight::from_parts(128_921, 0).saturating_mul(r.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// Storage: Democracy VotingOf (r:1 w:1)
|
|
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 100]`.
|
|
fn remove_vote(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `791 + r * (26 ±0)`
|
|
// Estimated: `8946`
|
|
// Minimum execution time: 15_039 nanoseconds.
|
|
Weight::from_parts(19_252_498, 8946)
|
|
// Standard Error: 1_798
|
|
.saturating_add(Weight::from_parts(131_855, 0).saturating_mul(r.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// Storage: Democracy VotingOf (r:1 w:1)
|
|
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 100]`.
|
|
fn remove_other_vote(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `791 + r * (26 ±0)`
|
|
// Estimated: `8946`
|
|
// Minimum execution time: 14_837 nanoseconds.
|
|
Weight::from_parts(19_144_929, 8946)
|
|
// Standard Error: 1_875
|
|
.saturating_add(Weight::from_parts(136_819, 0).saturating_mul(r.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: Democracy NextExternal (r:1 w:0)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
/// Storage: Preimage StatusFor (r:1 w:0)
|
|
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:0 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn set_external_metadata() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `356`
|
|
// Estimated: `3193`
|
|
// Minimum execution time: 17_338 nanoseconds.
|
|
Weight::from_parts(17_946_000, 3193)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy NextExternal (r:1 w:0)
|
|
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:1 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn clear_external_metadata() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `286`
|
|
// Estimated: `3155`
|
|
// Minimum execution time: 15_364 nanoseconds.
|
|
Weight::from_parts(15_990_000, 3155)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy PublicProps (r:1 w:0)
|
|
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
|
/// Storage: Preimage StatusFor (r:1 w:0)
|
|
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:0 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn set_proposal_metadata() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `4919`
|
|
// Estimated: `19763`
|
|
// Minimum execution time: 37_147 nanoseconds.
|
|
Weight::from_parts(37_778_000, 19763)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy PublicProps (r:1 w:0)
|
|
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:1 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn clear_proposal_metadata() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `4853`
|
|
// Estimated: `19725`
|
|
// Minimum execution time: 34_118 nanoseconds.
|
|
Weight::from_parts(34_737_000, 19725)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Preimage StatusFor (r:1 w:0)
|
|
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:0 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn set_referendum_metadata() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `144`
|
|
// Estimated: `2566`
|
|
// Minimum execution time: 12_787 nanoseconds.
|
|
Weight::from_parts(13_463_000, 2566)
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: Democracy ReferendumInfoOf (r:1 w:0)
|
|
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
|
/// Storage: Democracy MetadataOf (r:1 w:1)
|
|
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
|
fn clear_referendum_metadata() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `302`
|
|
// Estimated: `5204`
|
|
// Minimum execution time: 17_636 nanoseconds.
|
|
Weight::from_parts(18_399_000, 5204)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
}
|