pallet_staking_async/weights.rs
1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18
19//! Autogenerated weights for `pallet_staking_async`
20//!
21//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
22//! DATE: 2026-04-17, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]`
23//! WORST CASE MAP SIZE: `1000000`
24//! HOSTNAME: `Mac`, CPU: `<UNKNOWN>`
25//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
26
27// Executed Command:
28// ./target/release/frame-omni-bencher
29// v1
30// benchmark
31// pallet
32// --runtime
33// ./target/release/wbuild/pallet-staking-async-parachain-runtime/pallet_staking_async_parachain_runtime.compact.compressed.wasm
34// --pallet
35// pallet_staking_async
36// --extrinsic
37// *
38// --steps
39// 2
40// --repeat
41// 1
42// --template
43// substrate/.maintain/frame-weight-template.hbs
44// --output
45// substrate/frame/staking-async/src/weights.rs
46// --genesis-builder-preset
47// fake-dev
48
49#![cfg_attr(rustfmt, rustfmt_skip)]
50#![allow(unused_parens)]
51#![allow(unused_imports)]
52#![allow(missing_docs)]
53#![allow(dead_code)]
54
55use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
56use core::marker::PhantomData;
57
58/// Weight functions needed for `pallet_staking_async`.
59pub trait WeightInfo {
60 fn bond() -> Weight;
61 fn bond_extra() -> Weight;
62 fn unbond() -> Weight;
63 fn withdraw_unbonded_update() -> Weight;
64 fn withdraw_unbonded_kill() -> Weight;
65 fn validate() -> Weight;
66 fn kick(k: u32, ) -> Weight;
67 fn nominate(n: u32, ) -> Weight;
68 fn chill() -> Weight;
69 fn set_payee() -> Weight;
70 fn update_payee() -> Weight;
71 fn set_controller() -> Weight;
72 fn set_validator_count() -> Weight;
73 fn force_no_eras() -> Weight;
74 fn force_new_era() -> Weight;
75 fn force_new_era_always() -> Weight;
76 fn deprecate_controller_batch(u: u32, ) -> Weight;
77 fn force_unstake() -> Weight;
78 fn cancel_deferred_slash(s: u32, ) -> Weight;
79 fn payout_stakers_alive_staked(n: u32, ) -> Weight;
80 fn rebond(l: u32, ) -> Weight;
81 fn reap_stash() -> Weight;
82 fn set_staking_configs_all_set() -> Weight;
83 fn set_staking_configs_all_remove() -> Weight;
84 fn chill_other() -> Weight;
85 fn force_apply_min_commission() -> Weight;
86 fn set_min_commission() -> Weight;
87 fn set_max_commission() -> Weight;
88 fn set_validator_self_stake_incentive_config() -> Weight;
89 fn restore_ledger() -> Weight;
90 fn migrate_currency() -> Weight;
91 fn apply_slash(n: u32, ) -> Weight;
92 fn process_offence_queue() -> Weight;
93 fn rc_on_offence(v: u32, ) -> Weight;
94 fn rc_on_session_report() -> Weight;
95 fn prune_era_stakers_paged(v: u32, ) -> Weight;
96 fn prune_era_stakers_overview(v: u32, ) -> Weight;
97 fn prune_era_validator_prefs(v: u32, ) -> Weight;
98 fn prune_era_claimed_rewards(v: u32, ) -> Weight;
99 fn prune_era_validator_reward() -> Weight;
100 fn prune_era_reward_points() -> Weight;
101 fn prune_era_single_entry_cleanups() -> Weight;
102 fn prune_era_validator_slash_in_era(v: u32, ) -> Weight;
103 fn prune_era_validator_incentive_weight(v: u32, ) -> Weight;
104}
105
106/// Weights for `pallet_staking_async` using the Substrate node and recommended hardware.
107pub struct SubstrateWeight<T>(PhantomData<T>);
108impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
109 /// Storage: `Staking::Bonded` (r:1 w:1)
110 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
111 /// Storage: `Staking::Ledger` (r:1 w:1)
112 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
113 /// Storage: `Staking::MinValidatorBond` (r:1 w:0)
114 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
115 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
116 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
117 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
118 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
119 /// Storage: `Balances::Holds` (r:1 w:1)
120 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
121 /// Storage: `Staking::Payee` (r:0 w:1)
122 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
123 fn bond() -> Weight {
124 // Proof Size summary in bytes:
125 // Measured: `4933`
126 // Estimated: `4218`
127 // Minimum execution time: 77_000_000 picoseconds.
128 Weight::from_parts(93_000_000, 4218)
129 .saturating_add(T::DbWeight::get().reads(6_u64))
130 .saturating_add(T::DbWeight::get().writes(4_u64))
131 }
132 /// Storage: `Staking::Bonded` (r:1 w:0)
133 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
134 /// Storage: `Staking::Ledger` (r:1 w:1)
135 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
136 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
137 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
138 /// Storage: `Staking::MinValidatorBond` (r:1 w:0)
139 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
140 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
141 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
142 /// Storage: `Balances::Holds` (r:1 w:1)
143 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
144 /// Storage: `VoterList::ListNodes` (r:3 w:3)
145 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
146 /// Storage: `VoterList::Lock` (r:1 w:0)
147 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
148 /// Storage: `VoterList::ListBags` (r:2 w:2)
149 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
150 fn bond_extra() -> Weight {
151 // Proof Size summary in bytes:
152 // Measured: `5956`
153 // Estimated: `8877`
154 // Minimum execution time: 163_000_000 picoseconds.
155 Weight::from_parts(203_000_000, 8877)
156 .saturating_add(T::DbWeight::get().reads(12_u64))
157 .saturating_add(T::DbWeight::get().writes(7_u64))
158 }
159 /// Storage: `Staking::Ledger` (r:1 w:1)
160 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
161 /// Storage: `Staking::Bonded` (r:1 w:0)
162 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
163 /// Storage: `Staking::Nominators` (r:1 w:0)
164 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
165 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
166 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
167 /// Storage: `Staking::ActiveEra` (r:1 w:0)
168 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
169 /// Storage: `Staking::LastValidatorEra` (r:1 w:0)
170 /// Proof: `Staking::LastValidatorEra` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
171 /// Storage: `Staking::AreNominatorsSlashable` (r:1 w:0)
172 /// Proof: `Staking::AreNominatorsSlashable` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
173 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
174 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
175 /// Storage: `Balances::Holds` (r:1 w:0)
176 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
177 /// Storage: `VoterList::ListNodes` (r:3 w:3)
178 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
179 /// Storage: `VoterList::Lock` (r:1 w:0)
180 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
181 /// Storage: `VoterList::ListBags` (r:2 w:2)
182 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
183 fn unbond() -> Weight {
184 // Proof Size summary in bytes:
185 // Measured: `6117`
186 // Estimated: `8877`
187 // Minimum execution time: 142_000_000 picoseconds.
188 Weight::from_parts(189_000_000, 8877)
189 .saturating_add(T::DbWeight::get().reads(15_u64))
190 .saturating_add(T::DbWeight::get().writes(6_u64))
191 }
192 /// Storage: `Staking::Ledger` (r:1 w:1)
193 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
194 /// Storage: `Staking::Bonded` (r:1 w:0)
195 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
196 /// Storage: `Staking::ActiveEra` (r:1 w:0)
197 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
198 /// Storage: `Staking::UnappliedSlashes` (r:1 w:0)
199 /// Proof: `Staking::UnappliedSlashes` (`max_values`: None, `max_size`: Some(24735), added: 27210, mode: `MaxEncodedLen`)
200 /// Storage: `Staking::OffenceQueueEras` (r:1 w:0)
201 /// Proof: `Staking::OffenceQueueEras` (`max_values`: Some(1), `max_size`: Some(49), added: 544, mode: `MaxEncodedLen`)
202 /// Storage: `Staking::MinValidatorBond` (r:1 w:0)
203 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
204 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
205 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
206 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
207 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
208 /// Storage: `Balances::Holds` (r:1 w:1)
209 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
210 /// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0)
211 /// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
212 /// Storage: `DelegatedStaking::Agents` (r:1 w:0)
213 /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`)
214 fn withdraw_unbonded_update() -> Weight {
215 // Proof Size summary in bytes:
216 // Measured: `5425`
217 // Estimated: `28200`
218 // Minimum execution time: 81_000_000 picoseconds.
219 Weight::from_parts(92_000_000, 28200)
220 .saturating_add(T::DbWeight::get().reads(11_u64))
221 .saturating_add(T::DbWeight::get().writes(2_u64))
222 }
223 /// Storage: `Staking::Ledger` (r:1 w:1)
224 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
225 /// Storage: `Staking::Bonded` (r:1 w:1)
226 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
227 /// Storage: `Staking::ActiveEra` (r:1 w:0)
228 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
229 /// Storage: `Staking::UnappliedSlashes` (r:1 w:0)
230 /// Proof: `Staking::UnappliedSlashes` (`max_values`: None, `max_size`: Some(24735), added: 27210, mode: `MaxEncodedLen`)
231 /// Storage: `Staking::OffenceQueueEras` (r:1 w:0)
232 /// Proof: `Staking::OffenceQueueEras` (`max_values`: Some(1), `max_size`: Some(49), added: 544, mode: `MaxEncodedLen`)
233 /// Storage: `Staking::MinValidatorBond` (r:1 w:0)
234 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
235 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
236 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
237 /// Storage: `Staking::VirtualStakers` (r:1 w:1)
238 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
239 /// Storage: `Balances::Holds` (r:1 w:1)
240 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
241 /// Storage: `Staking::Validators` (r:1 w:0)
242 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
243 /// Storage: `Staking::Nominators` (r:1 w:1)
244 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
245 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
246 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
247 /// Storage: `VoterList::Lock` (r:1 w:0)
248 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
249 /// Storage: `VoterList::ListNodes` (r:2 w:2)
250 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
251 /// Storage: `VoterList::ListBags` (r:1 w:1)
252 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
253 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
254 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
255 /// Storage: `Staking::Payee` (r:0 w:1)
256 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
257 /// Storage: `Staking::LastValidatorEra` (r:0 w:1)
258 /// Proof: `Staking::LastValidatorEra` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
259 fn withdraw_unbonded_kill() -> Weight {
260 // Proof Size summary in bytes:
261 // Measured: `6042`
262 // Estimated: `28200`
263 // Minimum execution time: 170_000_000 picoseconds.
264 Weight::from_parts(202_000_000, 28200)
265 .saturating_add(T::DbWeight::get().reads(17_u64))
266 .saturating_add(T::DbWeight::get().writes(12_u64))
267 }
268 /// Storage: `Staking::Ledger` (r:1 w:0)
269 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
270 /// Storage: `Staking::Bonded` (r:1 w:0)
271 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
272 /// Storage: `Staking::MinValidatorBond` (r:1 w:0)
273 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
274 /// Storage: `Staking::MinCommission` (r:1 w:0)
275 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
276 /// Storage: `Staking::MaxCommission` (r:1 w:0)
277 /// Proof: `Staking::MaxCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
278 /// Storage: `Staking::Validators` (r:1 w:1)
279 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
280 /// Storage: `Staking::MaxValidatorsCount` (r:1 w:0)
281 /// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
282 /// Storage: `Staking::Nominators` (r:1 w:0)
283 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
284 /// Storage: `VoterList::Lock` (r:1 w:0)
285 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
286 /// Storage: `VoterList::ListNodes` (r:1 w:1)
287 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
288 /// Storage: `VoterList::ListBags` (r:1 w:1)
289 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
290 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
291 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
292 /// Storage: `Staking::CounterForValidators` (r:1 w:1)
293 /// Proof: `Staking::CounterForValidators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
294 fn validate() -> Weight {
295 // Proof Size summary in bytes:
296 // Measured: `7492`
297 // Estimated: `4218`
298 // Minimum execution time: 65_000_000 picoseconds.
299 Weight::from_parts(78_000_000, 4218)
300 .saturating_add(T::DbWeight::get().reads(13_u64))
301 .saturating_add(T::DbWeight::get().writes(5_u64))
302 }
303 /// Storage: `Staking::Ledger` (r:1 w:0)
304 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
305 /// Storage: `Staking::Bonded` (r:1 w:0)
306 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
307 /// Storage: `Staking::Nominators` (r:128 w:128)
308 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
309 /// The range of component `k` is `[1, 128]`.
310 fn kick(k: u32, ) -> Weight {
311 // Proof Size summary in bytes:
312 // Measured: `4371 + k * (766 ±0)`
313 // Estimated: `4218 + k * (3033 ±0)`
314 // Minimum execution time: 49_000_000 picoseconds.
315 Weight::from_parts(54_632_784, 4218)
316 // Standard Error: 213_671
317 .saturating_add(Weight::from_parts(8_844_488, 0).saturating_mul(k.into()))
318 .saturating_add(T::DbWeight::get().reads(2_u64))
319 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(k.into())))
320 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(k.into())))
321 .saturating_add(Weight::from_parts(0, 3033).saturating_mul(k.into()))
322 }
323 /// Storage: `Staking::Ledger` (r:1 w:0)
324 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
325 /// Storage: `Staking::Bonded` (r:1 w:0)
326 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
327 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
328 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
329 /// Storage: `Staking::Nominators` (r:1 w:1)
330 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
331 /// Storage: `Staking::MaxNominatorsCount` (r:1 w:0)
332 /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
333 /// Storage: `Staking::Validators` (r:17 w:0)
334 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
335 /// Storage: `Staking::CurrentEra` (r:1 w:0)
336 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
337 /// Storage: `VoterList::Lock` (r:1 w:0)
338 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
339 /// Storage: `VoterList::ListNodes` (r:2 w:2)
340 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
341 /// Storage: `VoterList::ListBags` (r:1 w:1)
342 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
343 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
344 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
345 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
346 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
347 /// The range of component `n` is `[1, 16]`.
348 fn nominate(n: u32, ) -> Weight {
349 // Proof Size summary in bytes:
350 // Measured: `3982 + n * (69 ±0)`
351 // Estimated: `6248 + n * (2520 ±0)`
352 // Minimum execution time: 96_000_000 picoseconds.
353 Weight::from_parts(111_812_612, 6248)
354 // Standard Error: 98_395
355 .saturating_add(Weight::from_parts(4_890_090, 0).saturating_mul(n.into()))
356 .saturating_add(T::DbWeight::get().reads(13_u64))
357 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
358 .saturating_add(T::DbWeight::get().writes(6_u64))
359 .saturating_add(Weight::from_parts(0, 2520).saturating_mul(n.into()))
360 }
361 /// Storage: `Staking::Ledger` (r:1 w:0)
362 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
363 /// Storage: `Staking::Bonded` (r:1 w:0)
364 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
365 /// Storage: `Staking::Validators` (r:1 w:0)
366 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
367 /// Storage: `Staking::Nominators` (r:1 w:1)
368 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
369 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
370 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
371 /// Storage: `VoterList::Lock` (r:1 w:0)
372 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
373 /// Storage: `VoterList::ListNodes` (r:2 w:2)
374 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
375 /// Storage: `VoterList::ListBags` (r:1 w:1)
376 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
377 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
378 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
379 fn chill() -> Weight {
380 // Proof Size summary in bytes:
381 // Measured: `4051`
382 // Estimated: `6248`
383 // Minimum execution time: 91_000_000 picoseconds.
384 Weight::from_parts(112_000_000, 6248)
385 .saturating_add(T::DbWeight::get().reads(10_u64))
386 .saturating_add(T::DbWeight::get().writes(6_u64))
387 }
388 /// Storage: `Staking::Ledger` (r:1 w:0)
389 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
390 /// Storage: `Staking::Bonded` (r:1 w:0)
391 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
392 /// Storage: `Staking::Payee` (r:0 w:1)
393 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
394 fn set_payee() -> Weight {
395 // Proof Size summary in bytes:
396 // Measured: `3077`
397 // Estimated: `4218`
398 // Minimum execution time: 23_000_000 picoseconds.
399 Weight::from_parts(26_000_000, 4218)
400 .saturating_add(T::DbWeight::get().reads(2_u64))
401 .saturating_add(T::DbWeight::get().writes(1_u64))
402 }
403 /// Storage: `Staking::Ledger` (r:1 w:0)
404 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
405 /// Storage: `Staking::Bonded` (r:1 w:0)
406 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
407 /// Storage: `Staking::Payee` (r:1 w:1)
408 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
409 fn update_payee() -> Weight {
410 // Proof Size summary in bytes:
411 // Measured: `4286`
412 // Estimated: `4218`
413 // Minimum execution time: 29_000_000 picoseconds.
414 Weight::from_parts(32_000_000, 4218)
415 .saturating_add(T::DbWeight::get().reads(3_u64))
416 .saturating_add(T::DbWeight::get().writes(1_u64))
417 }
418 /// Storage: `Staking::Bonded` (r:1 w:1)
419 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
420 /// Storage: `Staking::Ledger` (r:2 w:2)
421 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
422 fn set_controller() -> Weight {
423 // Proof Size summary in bytes:
424 // Measured: `3716`
425 // Estimated: `7446`
426 // Minimum execution time: 28_000_000 picoseconds.
427 Weight::from_parts(31_000_000, 7446)
428 .saturating_add(T::DbWeight::get().reads(3_u64))
429 .saturating_add(T::DbWeight::get().writes(3_u64))
430 }
431 /// Storage: `Staking::ValidatorCount` (r:0 w:1)
432 /// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
433 fn set_validator_count() -> Weight {
434 // Proof Size summary in bytes:
435 // Measured: `0`
436 // Estimated: `0`
437 // Minimum execution time: 2_000_000 picoseconds.
438 Weight::from_parts(4_000_000, 0)
439 .saturating_add(T::DbWeight::get().writes(1_u64))
440 }
441 /// Storage: `Staking::ForceEra` (r:0 w:1)
442 /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
443 fn force_no_eras() -> Weight {
444 // Proof Size summary in bytes:
445 // Measured: `0`
446 // Estimated: `0`
447 // Minimum execution time: 9_000_000 picoseconds.
448 Weight::from_parts(16_000_000, 0)
449 .saturating_add(T::DbWeight::get().writes(1_u64))
450 }
451 /// Storage: `Staking::ForceEra` (r:0 w:1)
452 /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
453 fn force_new_era() -> Weight {
454 // Proof Size summary in bytes:
455 // Measured: `0`
456 // Estimated: `0`
457 // Minimum execution time: 10_000_000 picoseconds.
458 Weight::from_parts(19_000_000, 0)
459 .saturating_add(T::DbWeight::get().writes(1_u64))
460 }
461 /// Storage: `Staking::ForceEra` (r:0 w:1)
462 /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
463 fn force_new_era_always() -> Weight {
464 // Proof Size summary in bytes:
465 // Measured: `0`
466 // Estimated: `0`
467 // Minimum execution time: 9_000_000 picoseconds.
468 Weight::from_parts(20_000_000, 0)
469 .saturating_add(T::DbWeight::get().writes(1_u64))
470 }
471 /// Storage: `Staking::Ledger` (r:1502 w:1502)
472 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
473 /// Storage: `Staking::Bonded` (r:751 w:751)
474 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
475 /// Storage: `Staking::Payee` (r:751 w:0)
476 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
477 /// The range of component `u` is `[0, 751]`.
478 fn deprecate_controller_batch(u: u32, ) -> Weight {
479 // Proof Size summary in bytes:
480 // Measured: `0 + u * (465 ±0)`
481 // Estimated: `9 + u * (6457 ±0)`
482 // Minimum execution time: 6_000_000 picoseconds.
483 Weight::from_parts(10_500_000, 9)
484 // Standard Error: 926_520
485 .saturating_add(Weight::from_parts(33_413_226, 0).saturating_mul(u.into()))
486 .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(u.into())))
487 .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(u.into())))
488 .saturating_add(Weight::from_parts(0, 6457).saturating_mul(u.into()))
489 }
490 /// Storage: `Staking::Bonded` (r:1 w:1)
491 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
492 /// Storage: `Staking::Ledger` (r:1 w:1)
493 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
494 /// Storage: `Staking::VirtualStakers` (r:1 w:1)
495 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
496 /// Storage: `Balances::Holds` (r:1 w:1)
497 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
498 /// Storage: `System::Account` (r:1 w:1)
499 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
500 /// Storage: `Staking::Validators` (r:1 w:0)
501 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
502 /// Storage: `Staking::Nominators` (r:1 w:1)
503 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
504 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
505 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
506 /// Storage: `VoterList::Lock` (r:1 w:0)
507 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
508 /// Storage: `VoterList::ListNodes` (r:2 w:2)
509 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
510 /// Storage: `VoterList::ListBags` (r:1 w:1)
511 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
512 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
513 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
514 /// Storage: `Staking::Payee` (r:0 w:1)
515 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
516 /// Storage: `Staking::LastValidatorEra` (r:0 w:1)
517 /// Proof: `Staking::LastValidatorEra` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
518 fn force_unstake() -> Weight {
519 // Proof Size summary in bytes:
520 // Measured: `5986`
521 // Estimated: `6248`
522 // Minimum execution time: 147_000_000 picoseconds.
523 Weight::from_parts(178_000_000, 6248)
524 .saturating_add(T::DbWeight::get().reads(13_u64))
525 .saturating_add(T::DbWeight::get().writes(13_u64))
526 }
527 /// Storage: `Staking::CancelledSlashes` (r:1 w:1)
528 /// Proof: `Staking::CancelledSlashes` (`max_values`: None, `max_size`: Some(36014), added: 38489, mode: `MaxEncodedLen`)
529 /// The range of component `s` is `[1, 1000]`.
530 fn cancel_deferred_slash(s: u32, ) -> Weight {
531 // Proof Size summary in bytes:
532 // Measured: `600`
533 // Estimated: `39479`
534 // Minimum execution time: 15_000_000 picoseconds.
535 Weight::from_parts(18_762_064, 39479)
536 // Standard Error: 68_343
537 .saturating_add(Weight::from_parts(3_338_607, 0).saturating_mul(s.into()))
538 .saturating_add(T::DbWeight::get().reads(1_u64))
539 .saturating_add(T::DbWeight::get().writes(1_u64))
540 }
541 /// Storage: `Staking::ErasStakersOverview` (r:1 w:0)
542 /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
543 /// Storage: `Staking::ClaimedRewards` (r:1 w:1)
544 /// Proof: `Staking::ClaimedRewards` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
545 /// Storage: `Staking::CurrentEra` (r:1 w:0)
546 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
547 /// Storage: `Staking::ErasValidatorReward` (r:1 w:0)
548 /// Proof: `Staking::ErasValidatorReward` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
549 /// Storage: `Staking::Bonded` (r:513 w:0)
550 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
551 /// Storage: `Staking::Ledger` (r:513 w:513)
552 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
553 /// Storage: `System::Account` (r:515 w:515)
554 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
555 /// Storage: `Staking::VirtualStakers` (r:513 w:0)
556 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
557 /// Storage: `Balances::Holds` (r:513 w:513)
558 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
559 /// Storage: UNKNOWN KEY `0x6f320d44e42312c78638e6c92dff65af` (r:1 w:0)
560 /// Proof: UNKNOWN KEY `0x6f320d44e42312c78638e6c92dff65af` (r:1 w:0)
561 /// Storage: `Staking::ErasStakersPaged` (r:1 w:0)
562 /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: Some(24656), added: 27131, mode: `MaxEncodedLen`)
563 /// Storage: `Staking::ErasRewardPoints` (r:1 w:0)
564 /// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: Some(36018), added: 38493, mode: `MaxEncodedLen`)
565 /// Storage: `Staking::ErasValidatorPrefs` (r:1 w:0)
566 /// Proof: `Staking::ErasValidatorPrefs` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
567 /// Storage: `Staking::ErasValidatorIncentiveBudget` (r:1 w:0)
568 /// Proof: `Staking::ErasValidatorIncentiveBudget` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
569 /// Storage: `Staking::ErasValidatorIncentiveWeight` (r:1 w:0)
570 /// Proof: `Staking::ErasValidatorIncentiveWeight` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
571 /// Storage: `Staking::ErasSumValidatorIncentiveWeight` (r:1 w:0)
572 /// Proof: `Staking::ErasSumValidatorIncentiveWeight` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
573 /// Storage: `Staking::Payee` (r:513 w:0)
574 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
575 /// The range of component `n` is `[0, 512]`.
576 fn payout_stakers_alive_staked(n: u32, ) -> Weight {
577 // Proof Size summary in bytes:
578 // Measured: `9382 + n * (953 ±0)`
579 // Estimated: `39483 + n * (3228 ±0)`
580 // Minimum execution time: 303_000_000 picoseconds.
581 Weight::from_parts(330_333_333, 39483)
582 // Standard Error: 3_180_143
583 .saturating_add(Weight::from_parts(136_864_583, 0).saturating_mul(n.into()))
584 .saturating_add(T::DbWeight::get().reads(19_u64))
585 .saturating_add(T::DbWeight::get().reads((6_u64).saturating_mul(n.into())))
586 .saturating_add(T::DbWeight::get().writes(6_u64))
587 .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(n.into())))
588 .saturating_add(Weight::from_parts(0, 3228).saturating_mul(n.into()))
589 }
590 /// Storage: `Staking::Ledger` (r:1 w:1)
591 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
592 /// Storage: `Staking::Bonded` (r:1 w:0)
593 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
594 /// Storage: `Staking::MinValidatorBond` (r:1 w:0)
595 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
596 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
597 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
598 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
599 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
600 /// Storage: `Balances::Holds` (r:1 w:0)
601 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
602 /// Storage: `VoterList::ListNodes` (r:3 w:3)
603 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
604 /// Storage: `VoterList::Lock` (r:1 w:0)
605 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
606 /// Storage: `VoterList::ListBags` (r:2 w:2)
607 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
608 /// The range of component `l` is `[1, 32]`.
609 fn rebond(l: u32, ) -> Weight {
610 // Proof Size summary in bytes:
611 // Measured: `5958 + l * (4 ±0)`
612 // Estimated: `8877`
613 // Minimum execution time: 120_000_000 picoseconds.
614 Weight::from_parts(165_519_061, 8877)
615 // Standard Error: 302_814
616 .saturating_add(Weight::from_parts(147_605, 0).saturating_mul(l.into()))
617 .saturating_add(T::DbWeight::get().reads(12_u64))
618 .saturating_add(T::DbWeight::get().writes(6_u64))
619 }
620 /// Storage: `Staking::VirtualStakers` (r:1 w:1)
621 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
622 /// Storage: `Staking::MinValidatorBond` (r:1 w:0)
623 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
624 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
625 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
626 /// Storage: `Staking::Bonded` (r:1 w:1)
627 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
628 /// Storage: `Staking::Ledger` (r:1 w:1)
629 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
630 /// Storage: `Balances::Holds` (r:1 w:1)
631 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
632 /// Storage: `Staking::Validators` (r:1 w:0)
633 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
634 /// Storage: `Staking::Nominators` (r:1 w:1)
635 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
636 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
637 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
638 /// Storage: `VoterList::Lock` (r:1 w:0)
639 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
640 /// Storage: `VoterList::ListNodes` (r:2 w:2)
641 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
642 /// Storage: `VoterList::ListBags` (r:1 w:1)
643 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
644 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
645 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
646 /// Storage: `Staking::Payee` (r:0 w:1)
647 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
648 /// Storage: `Staking::LastValidatorEra` (r:0 w:1)
649 /// Proof: `Staking::LastValidatorEra` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
650 fn reap_stash() -> Weight {
651 // Proof Size summary in bytes:
652 // Measured: `6050`
653 // Estimated: `6248`
654 // Minimum execution time: 158_000_000 picoseconds.
655 Weight::from_parts(193_000_000, 6248)
656 .saturating_add(T::DbWeight::get().reads(14_u64))
657 .saturating_add(T::DbWeight::get().writes(12_u64))
658 }
659 /// Storage: `Staking::AreNominatorsSlashable` (r:0 w:1)
660 /// Proof: `Staking::AreNominatorsSlashable` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
661 /// Storage: `Staking::MinCommission` (r:0 w:1)
662 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
663 /// Storage: `Staking::MinValidatorBond` (r:0 w:1)
664 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
665 /// Storage: `Staking::MaxValidatorsCount` (r:0 w:1)
666 /// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
667 /// Storage: `Staking::MaxStakedRewards` (r:0 w:1)
668 /// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
669 /// Storage: `Staking::ChillThreshold` (r:0 w:1)
670 /// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
671 /// Storage: `Staking::MaxNominatorsCount` (r:0 w:1)
672 /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
673 /// Storage: `Staking::MinNominatorBond` (r:0 w:1)
674 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
675 fn set_staking_configs_all_set() -> Weight {
676 // Proof Size summary in bytes:
677 // Measured: `0`
678 // Estimated: `0`
679 // Minimum execution time: 4_000_000 picoseconds.
680 Weight::from_parts(6_000_000, 0)
681 .saturating_add(T::DbWeight::get().writes(8_u64))
682 }
683 /// Storage: `Staking::AreNominatorsSlashable` (r:0 w:1)
684 /// Proof: `Staking::AreNominatorsSlashable` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
685 /// Storage: `Staking::MinCommission` (r:0 w:1)
686 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
687 /// Storage: `Staking::MinValidatorBond` (r:0 w:1)
688 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
689 /// Storage: `Staking::MaxValidatorsCount` (r:0 w:1)
690 /// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
691 /// Storage: `Staking::MaxStakedRewards` (r:0 w:1)
692 /// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
693 /// Storage: `Staking::ChillThreshold` (r:0 w:1)
694 /// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
695 /// Storage: `Staking::MaxNominatorsCount` (r:0 w:1)
696 /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
697 /// Storage: `Staking::MinNominatorBond` (r:0 w:1)
698 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
699 fn set_staking_configs_all_remove() -> Weight {
700 // Proof Size summary in bytes:
701 // Measured: `0`
702 // Estimated: `0`
703 // Minimum execution time: 4_000_000 picoseconds.
704 Weight::from_parts(6_000_000, 0)
705 .saturating_add(T::DbWeight::get().writes(8_u64))
706 }
707 /// Storage: `Staking::Bonded` (r:1 w:0)
708 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
709 /// Storage: `Staking::Ledger` (r:1 w:0)
710 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
711 /// Storage: `Staking::Nominators` (r:1 w:1)
712 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
713 /// Storage: `Staking::ChillThreshold` (r:1 w:0)
714 /// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
715 /// Storage: `Staking::MaxNominatorsCount` (r:1 w:0)
716 /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
717 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
718 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
719 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
720 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
721 /// Storage: `Staking::Validators` (r:1 w:0)
722 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
723 /// Storage: `VoterList::Lock` (r:1 w:0)
724 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
725 /// Storage: `VoterList::ListNodes` (r:2 w:2)
726 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
727 /// Storage: `VoterList::ListBags` (r:1 w:1)
728 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
729 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
730 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
731 fn chill_other() -> Weight {
732 // Proof Size summary in bytes:
733 // Measured: `4184`
734 // Estimated: `6248`
735 // Minimum execution time: 110_000_000 picoseconds.
736 Weight::from_parts(135_000_000, 6248)
737 .saturating_add(T::DbWeight::get().reads(13_u64))
738 .saturating_add(T::DbWeight::get().writes(6_u64))
739 }
740 /// Storage: `Staking::MinCommission` (r:1 w:0)
741 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
742 /// Storage: `Staking::MaxCommission` (r:1 w:0)
743 /// Proof: `Staking::MaxCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
744 /// Storage: `Staking::Validators` (r:1 w:1)
745 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
746 fn force_apply_min_commission() -> Weight {
747 // Proof Size summary in bytes:
748 // Measured: `607`
749 // Estimated: `3510`
750 // Minimum execution time: 23_000_000 picoseconds.
751 Weight::from_parts(35_000_000, 3510)
752 .saturating_add(T::DbWeight::get().reads(3_u64))
753 .saturating_add(T::DbWeight::get().writes(1_u64))
754 }
755 /// Storage: `Staking::MaxCommission` (r:1 w:0)
756 /// Proof: `Staking::MaxCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
757 /// Storage: `Staking::MinCommission` (r:0 w:1)
758 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
759 fn set_min_commission() -> Weight {
760 // Proof Size summary in bytes:
761 // Measured: `563`
762 // Estimated: `1489`
763 // Minimum execution time: 6_000_000 picoseconds.
764 Weight::from_parts(9_000_000, 1489)
765 .saturating_add(T::DbWeight::get().reads(1_u64))
766 .saturating_add(T::DbWeight::get().writes(1_u64))
767 }
768 /// Storage: `Staking::MinCommission` (r:1 w:0)
769 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
770 /// Storage: `Staking::MaxCommission` (r:0 w:1)
771 /// Proof: `Staking::MaxCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
772 fn set_max_commission() -> Weight {
773 // Proof Size summary in bytes:
774 // Measured: `563`
775 // Estimated: `1489`
776 // Minimum execution time: 6_000_000 picoseconds.
777 Weight::from_parts(9_000_000, 1489)
778 .saturating_add(T::DbWeight::get().reads(1_u64))
779 .saturating_add(T::DbWeight::get().writes(1_u64))
780 }
781 /// Storage: `Staking::OptimumSelfStake` (r:0 w:1)
782 /// Proof: `Staking::OptimumSelfStake` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
783 /// Storage: `Staking::SelfStakeSlopeFactor` (r:0 w:1)
784 /// Proof: `Staking::SelfStakeSlopeFactor` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
785 /// Storage: `Staking::HardCapSelfStake` (r:0 w:1)
786 /// Proof: `Staking::HardCapSelfStake` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
787 fn set_validator_self_stake_incentive_config() -> Weight {
788 // Proof Size summary in bytes:
789 // Measured: `0`
790 // Estimated: `0`
791 // Minimum execution time: 6_000_000 picoseconds.
792 Weight::from_parts(8_000_000, 0)
793 .saturating_add(T::DbWeight::get().writes(3_u64))
794 }
795 /// Storage: `System::Account` (r:1 w:0)
796 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
797 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
798 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
799 /// Storage: `Balances::Holds` (r:1 w:0)
800 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
801 /// Storage: `Balances::Locks` (r:1 w:0)
802 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
803 /// Storage: `Staking::Bonded` (r:1 w:1)
804 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
805 /// Storage: `Staking::Ledger` (r:1 w:1)
806 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
807 fn restore_ledger() -> Weight {
808 // Proof Size summary in bytes:
809 // Measured: `5012`
810 // Estimated: `4764`
811 // Minimum execution time: 49_000_000 picoseconds.
812 Weight::from_parts(56_000_000, 4764)
813 .saturating_add(T::DbWeight::get().reads(6_u64))
814 .saturating_add(T::DbWeight::get().writes(2_u64))
815 }
816 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
817 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
818 /// Storage: `Staking::Bonded` (r:1 w:0)
819 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
820 /// Storage: `Staking::Ledger` (r:1 w:0)
821 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
822 /// Storage: `Balances::Locks` (r:1 w:1)
823 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
824 /// Storage: `Balances::Freezes` (r:1 w:0)
825 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
826 /// Storage: `Balances::Holds` (r:1 w:1)
827 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
828 fn migrate_currency() -> Weight {
829 // Proof Size summary in bytes:
830 // Measured: `5122`
831 // Estimated: `4764`
832 // Minimum execution time: 85_000_000 picoseconds.
833 Weight::from_parts(94_000_000, 4764)
834 .saturating_add(T::DbWeight::get().reads(6_u64))
835 .saturating_add(T::DbWeight::get().writes(2_u64))
836 }
837 /// Storage: `Staking::ActiveEra` (r:1 w:0)
838 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
839 /// Storage: `Staking::CancelledSlashes` (r:1 w:0)
840 /// Proof: `Staking::CancelledSlashes` (`max_values`: None, `max_size`: Some(36014), added: 38489, mode: `MaxEncodedLen`)
841 /// Storage: `Staking::UnappliedSlashes` (r:1 w:1)
842 /// Proof: `Staking::UnappliedSlashes` (`max_values`: None, `max_size`: Some(24735), added: 27210, mode: `MaxEncodedLen`)
843 /// Storage: `Staking::Bonded` (r:513 w:0)
844 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
845 /// Storage: `Staking::Ledger` (r:513 w:513)
846 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
847 /// Storage: `NominationPools::ReversePoolIdLookup` (r:513 w:0)
848 /// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
849 /// Storage: `DelegatedStaking::Agents` (r:513 w:513)
850 /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`)
851 /// Storage: `System::Account` (r:514 w:514)
852 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
853 /// Storage: `Staking::VirtualStakers` (r:513 w:0)
854 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
855 /// Storage: `Balances::Holds` (r:513 w:513)
856 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
857 /// The range of component `n` is `[0, 512]`.
858 fn apply_slash(n: u32, ) -> Weight {
859 // Proof Size summary in bytes:
860 // Measured: `6860 + n * (821 ±0)`
861 // Estimated: `39479 + n * (3228 ±0)`
862 // Minimum execution time: 157_000_000 picoseconds.
863 Weight::from_parts(221_833_333, 39479)
864 // Standard Error: 6_469_942
865 .saturating_add(Weight::from_parts(92_355_143, 0).saturating_mul(n.into()))
866 .saturating_add(T::DbWeight::get().reads(11_u64))
867 .saturating_add(T::DbWeight::get().reads((7_u64).saturating_mul(n.into())))
868 .saturating_add(T::DbWeight::get().writes(6_u64))
869 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(n.into())))
870 .saturating_add(Weight::from_parts(0, 3228).saturating_mul(n.into()))
871 }
872 /// Storage: `Staking::ProcessingOffence` (r:1 w:1)
873 /// Proof: `Staking::ProcessingOffence` (`max_values`: Some(1), `max_size`: Some(85), added: 580, mode: `MaxEncodedLen`)
874 /// Storage: `Staking::OffenceQueueEras` (r:1 w:1)
875 /// Proof: `Staking::OffenceQueueEras` (`max_values`: Some(1), `max_size`: Some(49), added: 544, mode: `MaxEncodedLen`)
876 /// Storage: `Staking::OffenceQueue` (r:2 w:1)
877 /// Proof: `Staking::OffenceQueue` (`max_values`: None, `max_size`: Some(101), added: 2576, mode: `MaxEncodedLen`)
878 /// Storage: `Staking::SlashRewardFraction` (r:1 w:0)
879 /// Proof: `Staking::SlashRewardFraction` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
880 /// Storage: `Staking::ErasStakersOverview` (r:1 w:0)
881 /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
882 /// Storage: `Staking::ErasStakersPaged` (r:1 w:0)
883 /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: Some(24656), added: 27131, mode: `MaxEncodedLen`)
884 /// Storage: `Staking::UnappliedSlashes` (r:0 w:1)
885 /// Proof: `Staking::UnappliedSlashes` (`max_values`: None, `max_size`: Some(24735), added: 27210, mode: `MaxEncodedLen`)
886 fn process_offence_queue() -> Weight {
887 // Proof Size summary in bytes:
888 // Measured: `19541`
889 // Estimated: `28121`
890 // Minimum execution time: 185_000_000 picoseconds.
891 Weight::from_parts(193_000_000, 28121)
892 .saturating_add(T::DbWeight::get().reads(7_u64))
893 .saturating_add(T::DbWeight::get().writes(4_u64))
894 }
895 /// Storage: `Staking::ActiveEra` (r:1 w:0)
896 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
897 /// Storage: `Staking::BondedEras` (r:1 w:0)
898 /// Proof: `Staking::BondedEras` (`max_values`: Some(1), `max_size`: Some(25), added: 520, mode: `MaxEncodedLen`)
899 /// Storage: `Staking::ErasStakersOverview` (r:500 w:0)
900 /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
901 /// Storage: `Staking::ValidatorSlashInEra` (r:500 w:500)
902 /// Proof: `Staking::ValidatorSlashInEra` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
903 /// Storage: `Staking::OffenceQueue` (r:500 w:500)
904 /// Proof: `Staking::OffenceQueue` (`max_values`: None, `max_size`: Some(101), added: 2576, mode: `MaxEncodedLen`)
905 /// Storage: `Staking::OffenceQueueEras` (r:1 w:1)
906 /// Proof: `Staking::OffenceQueueEras` (`max_values`: Some(1), `max_size`: Some(49), added: 544, mode: `MaxEncodedLen`)
907 /// The range of component `v` is `[2, 500]`.
908 fn rc_on_offence(v: u32, ) -> Weight {
909 // Proof Size summary in bytes:
910 // Measured: `854 + v * (96 ±0)`
911 // Estimated: `1534 + v * (2576 ±0)`
912 // Minimum execution time: 74_000_000 picoseconds.
913 Weight::from_parts(26_049_531, 1534)
914 // Standard Error: 3_339_777
915 .saturating_add(Weight::from_parts(24_808_567, 0).saturating_mul(v.into()))
916 .saturating_add(T::DbWeight::get().reads(3_u64))
917 .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(v.into())))
918 .saturating_add(T::DbWeight::get().writes(1_u64))
919 .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(v.into())))
920 .saturating_add(Weight::from_parts(0, 2576).saturating_mul(v.into()))
921 }
922 /// Storage: `Staking::ActiveEra` (r:1 w:1)
923 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
924 /// Storage: `Staking::ErasRewardPoints` (r:1 w:1)
925 /// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: Some(36018), added: 38493, mode: `MaxEncodedLen`)
926 /// Storage: `Staking::CurrentEra` (r:1 w:1)
927 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
928 /// Storage: `System::Account` (r:4 w:2)
929 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
930 /// Storage: `Staking::BondedEras` (r:1 w:1)
931 /// Proof: `Staking::BondedEras` (`max_values`: Some(1), `max_size`: Some(25), added: 520, mode: `MaxEncodedLen`)
932 /// Storage: `Staking::AreNominatorsSlashable` (r:1 w:0)
933 /// Proof: `Staking::AreNominatorsSlashable` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
934 /// Storage: `Staking::ForceEra` (r:1 w:0)
935 /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
936 /// Storage: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
937 /// Proof: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
938 /// Storage: UNKNOWN KEY `0x6358acd2035ec4bb863fa981e0c177b9` (r:1 w:0)
939 /// Proof: UNKNOWN KEY `0x6358acd2035ec4bb863fa981e0c177b9` (r:1 w:0)
940 /// Storage: UNKNOWN KEY `0xc209f5d8eb920681b56c64b8694ea78c` (r:1 w:0)
941 /// Proof: UNKNOWN KEY `0xc209f5d8eb920681b56c64b8694ea78c` (r:1 w:0)
942 /// Storage: UNKNOWN KEY `0x48384a816e4f71a936cb76dc9e303f2a` (r:1 w:0)
943 /// Proof: UNKNOWN KEY `0x48384a816e4f71a936cb76dc9e303f2a` (r:1 w:0)
944 /// Storage: `MultiBlockElection::CurrentPhase` (r:1 w:1)
945 /// Proof: `MultiBlockElection::CurrentPhase` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
946 /// Storage: `Staking::ErasNominatorsSlashable` (r:0 w:1)
947 /// Proof: `Staking::ErasNominatorsSlashable` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `MaxEncodedLen`)
948 /// Storage: `Staking::ErasValidatorIncentiveBudget` (r:0 w:1)
949 /// Proof: `Staking::ErasValidatorIncentiveBudget` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
950 /// Storage: `Staking::VoterSnapshotStatus` (r:0 w:1)
951 /// Proof: `Staking::VoterSnapshotStatus` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
952 /// Storage: `Staking::ErasValidatorReward` (r:0 w:1)
953 /// Proof: `Staking::ErasValidatorReward` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
954 /// Storage: `Staking::NextElectionPage` (r:0 w:1)
955 /// Proof: `Staking::NextElectionPage` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
956 /// Storage: `Staking::ElectableStashes` (r:0 w:1)
957 /// Proof: `Staking::ElectableStashes` (`max_values`: Some(1), `max_size`: Some(32002), added: 32497, mode: `MaxEncodedLen`)
958 fn rc_on_session_report() -> Weight {
959 // Proof Size summary in bytes:
960 // Measured: `3564`
961 // Estimated: `39483`
962 // Minimum execution time: 336_000_000 picoseconds.
963 Weight::from_parts(386_000_000, 39483)
964 .saturating_add(T::DbWeight::get().reads(15_u64))
965 .saturating_add(T::DbWeight::get().writes(13_u64))
966 }
967 /// Storage: `Staking::ActiveEra` (r:1 w:0)
968 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
969 /// Storage: `Staking::EraPruningState` (r:1 w:0)
970 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
971 /// Storage: `Staking::ErasStakersPaged` (r:101 w:100)
972 /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: Some(24656), added: 27131, mode: `Measured`)
973 /// The range of component `v` is `[1, 1000]`.
974 fn prune_era_stakers_paged(v: u32, ) -> Weight {
975 // Proof Size summary in bytes:
976 // Measured: `1041 + v * (9 ±0)`
977 // Estimated: `6736 + v * (255 ±0)`
978 // Minimum execution time: 25_000_000 picoseconds.
979 Weight::from_parts(30_305_099, 6736)
980 // Standard Error: 5_450
981 .saturating_add(Weight::from_parts(156_438, 0).saturating_mul(v.into()))
982 .saturating_add(T::DbWeight::get().reads(4_u64))
983 .saturating_add(T::DbWeight::get().writes(3_u64))
984 .saturating_add(Weight::from_parts(0, 255).saturating_mul(v.into()))
985 }
986 /// Storage: `Staking::ActiveEra` (r:1 w:0)
987 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
988 /// Storage: `Staking::EraPruningState` (r:1 w:0)
989 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
990 /// Storage: `Staking::ErasStakersOverview` (r:101 w:100)
991 /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `Measured`)
992 /// The range of component `v` is `[1, 1000]`.
993 fn prune_era_stakers_overview(v: u32, ) -> Weight {
994 // Proof Size summary in bytes:
995 // Measured: `911 + v * (6 ±0)`
996 // Estimated: `4376 + v * (255 ±0)`
997 // Minimum execution time: 22_000_000 picoseconds.
998 Weight::from_parts(37_287_716, 4376)
999 // Standard Error: 12_795
1000 .saturating_add(Weight::from_parts(197_997, 0).saturating_mul(v.into()))
1001 .saturating_add(T::DbWeight::get().reads(3_u64))
1002 .saturating_add(T::DbWeight::get().writes(2_u64))
1003 .saturating_add(Weight::from_parts(0, 255).saturating_mul(v.into()))
1004 }
1005 /// Storage: `Staking::ActiveEra` (r:1 w:0)
1006 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
1007 /// Storage: `Staking::EraPruningState` (r:1 w:0)
1008 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
1009 /// Storage: `Staking::ErasValidatorPrefs` (r:101 w:100)
1010 /// Proof: `Staking::ErasValidatorPrefs` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `Measured`)
1011 /// The range of component `v` is `[1, 1000]`.
1012 fn prune_era_validator_prefs(v: u32, ) -> Weight {
1013 // Proof Size summary in bytes:
1014 // Measured: `952 + v * (5 ±0)`
1015 // Estimated: `4418 + v * (253 ±0)`
1016 // Minimum execution time: 20_000_000 picoseconds.
1017 Weight::from_parts(30_337_219, 4418)
1018 // Standard Error: 11_862
1019 .saturating_add(Weight::from_parts(192_192, 0).saturating_mul(v.into()))
1020 .saturating_add(T::DbWeight::get().reads(3_u64))
1021 .saturating_add(T::DbWeight::get().writes(2_u64))
1022 .saturating_add(Weight::from_parts(0, 253).saturating_mul(v.into()))
1023 }
1024 /// Storage: `Staking::ActiveEra` (r:1 w:0)
1025 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
1026 /// Storage: `Staking::EraPruningState` (r:1 w:0)
1027 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
1028 /// Storage: `Staking::ClaimedRewards` (r:101 w:100)
1029 /// Proof: `Staking::ClaimedRewards` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `Measured`)
1030 /// The range of component `v` is `[1, 1000]`.
1031 fn prune_era_claimed_rewards(v: u32, ) -> Weight {
1032 // Proof Size summary in bytes:
1033 // Measured: `902 + v * (6 ±0)`
1034 // Estimated: `4368 + v * (254 ±0)`
1035 // Minimum execution time: 23_000_000 picoseconds.
1036 Weight::from_parts(40_417_984, 4368)
1037 // Standard Error: 14_492
1038 .saturating_add(Weight::from_parts(215_348, 0).saturating_mul(v.into()))
1039 .saturating_add(T::DbWeight::get().reads(3_u64))
1040 .saturating_add(T::DbWeight::get().writes(2_u64))
1041 .saturating_add(Weight::from_parts(0, 254).saturating_mul(v.into()))
1042 }
1043 /// Storage: `Staking::ActiveEra` (r:1 w:0)
1044 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
1045 /// Storage: `Staking::EraPruningState` (r:1 w:1)
1046 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
1047 /// Storage: `Staking::ErasValidatorReward` (r:0 w:1)
1048 /// Proof: `Staking::ErasValidatorReward` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `Measured`)
1049 fn prune_era_validator_reward() -> Weight {
1050 // Proof Size summary in bytes:
1051 // Measured: `822`
1052 // Estimated: `4287`
1053 // Minimum execution time: 14_000_000 picoseconds.
1054 Weight::from_parts(24_000_000, 4287)
1055 .saturating_add(T::DbWeight::get().reads(2_u64))
1056 .saturating_add(T::DbWeight::get().writes(2_u64))
1057 }
1058 /// Storage: `Staking::ActiveEra` (r:1 w:0)
1059 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
1060 /// Storage: `Staking::EraPruningState` (r:1 w:1)
1061 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
1062 /// Storage: `Staking::ErasRewardPoints` (r:0 w:1)
1063 /// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: Some(36018), added: 38493, mode: `Measured`)
1064 fn prune_era_reward_points() -> Weight {
1065 // Proof Size summary in bytes:
1066 // Measured: `822`
1067 // Estimated: `4287`
1068 // Minimum execution time: 14_000_000 picoseconds.
1069 Weight::from_parts(24_000_000, 4287)
1070 .saturating_add(T::DbWeight::get().reads(2_u64))
1071 .saturating_add(T::DbWeight::get().writes(2_u64))
1072 }
1073 /// Storage: `Staking::ActiveEra` (r:1 w:0)
1074 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
1075 /// Storage: `Staking::EraPruningState` (r:1 w:1)
1076 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
1077 /// Storage: `Staking::ErasNominatorsSlashable` (r:0 w:1)
1078 /// Proof: `Staking::ErasNominatorsSlashable` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
1079 /// Storage: `Staking::ErasValidatorIncentiveBudget` (r:0 w:1)
1080 /// Proof: `Staking::ErasValidatorIncentiveBudget` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `Measured`)
1081 /// Storage: `Staking::ErasTotalStake` (r:0 w:1)
1082 /// Proof: `Staking::ErasTotalStake` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `Measured`)
1083 /// Storage: `Staking::ErasSumValidatorIncentiveWeight` (r:0 w:1)
1084 /// Proof: `Staking::ErasSumValidatorIncentiveWeight` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `Measured`)
1085 fn prune_era_single_entry_cleanups() -> Weight {
1086 // Proof Size summary in bytes:
1087 // Measured: `822`
1088 // Estimated: `4287`
1089 // Minimum execution time: 16_000_000 picoseconds.
1090 Weight::from_parts(23_000_000, 4287)
1091 .saturating_add(T::DbWeight::get().reads(2_u64))
1092 .saturating_add(T::DbWeight::get().writes(5_u64))
1093 }
1094 /// Storage: `Staking::ActiveEra` (r:1 w:0)
1095 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
1096 /// Storage: `Staking::EraPruningState` (r:1 w:0)
1097 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
1098 /// Storage: `Staking::ValidatorSlashInEra` (r:101 w:100)
1099 /// Proof: `Staking::ValidatorSlashInEra` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `Measured`)
1100 /// The range of component `v` is `[1, 1000]`.
1101 fn prune_era_validator_slash_in_era(v: u32, ) -> Weight {
1102 // Proof Size summary in bytes:
1103 // Measured: `853 + v * (7 ±0)`
1104 // Estimated: `259089 + v * (7 ±0)`
1105 // Minimum execution time: 23_000_000 picoseconds.
1106 Weight::from_parts(36_136_636, 259089)
1107 // Standard Error: 14_366
1108 .saturating_add(Weight::from_parts(207_113, 0).saturating_mul(v.into()))
1109 .saturating_add(T::DbWeight::get().reads(2_u64))
1110 .saturating_add(T::DbWeight::get().writes(1_u64))
1111 .saturating_add(Weight::from_parts(0, 7).saturating_mul(v.into()))
1112 }
1113 /// Storage: `Staking::ActiveEra` (r:1 w:0)
1114 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
1115 /// Storage: `Staking::EraPruningState` (r:1 w:0)
1116 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
1117 /// Storage: `Staking::ErasValidatorIncentiveWeight` (r:101 w:100)
1118 /// Proof: `Staking::ErasValidatorIncentiveWeight` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `Measured`)
1119 /// The range of component `v` is `[1, 1000]`.
1120 fn prune_era_validator_incentive_weight(v: u32, ) -> Weight {
1121 // Proof Size summary in bytes:
1122 // Measured: `872 + v * (6 ±0)`
1123 // Estimated: `4337 + v * (254 ±0)`
1124 // Minimum execution time: 26_000_000 picoseconds.
1125 Weight::from_parts(37_348_201, 4337)
1126 // Standard Error: 14_006
1127 .saturating_add(Weight::from_parts(210_622, 0).saturating_mul(v.into()))
1128 .saturating_add(T::DbWeight::get().reads(3_u64))
1129 .saturating_add(T::DbWeight::get().writes(2_u64))
1130 .saturating_add(Weight::from_parts(0, 254).saturating_mul(v.into()))
1131 }
1132}
1133
1134// For backwards compatibility and tests.
1135impl WeightInfo for () {
1136 /// Storage: `Staking::Bonded` (r:1 w:1)
1137 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1138 /// Storage: `Staking::Ledger` (r:1 w:1)
1139 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1140 /// Storage: `Staking::MinValidatorBond` (r:1 w:0)
1141 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1142 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
1143 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1144 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
1145 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
1146 /// Storage: `Balances::Holds` (r:1 w:1)
1147 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
1148 /// Storage: `Staking::Payee` (r:0 w:1)
1149 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1150 fn bond() -> Weight {
1151 // Proof Size summary in bytes:
1152 // Measured: `4933`
1153 // Estimated: `4218`
1154 // Minimum execution time: 77_000_000 picoseconds.
1155 Weight::from_parts(93_000_000, 4218)
1156 .saturating_add(RocksDbWeight::get().reads(6_u64))
1157 .saturating_add(RocksDbWeight::get().writes(4_u64))
1158 }
1159 /// Storage: `Staking::Bonded` (r:1 w:0)
1160 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1161 /// Storage: `Staking::Ledger` (r:1 w:1)
1162 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1163 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
1164 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
1165 /// Storage: `Staking::MinValidatorBond` (r:1 w:0)
1166 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1167 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
1168 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1169 /// Storage: `Balances::Holds` (r:1 w:1)
1170 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
1171 /// Storage: `VoterList::ListNodes` (r:3 w:3)
1172 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
1173 /// Storage: `VoterList::Lock` (r:1 w:0)
1174 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
1175 /// Storage: `VoterList::ListBags` (r:2 w:2)
1176 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
1177 fn bond_extra() -> Weight {
1178 // Proof Size summary in bytes:
1179 // Measured: `5956`
1180 // Estimated: `8877`
1181 // Minimum execution time: 163_000_000 picoseconds.
1182 Weight::from_parts(203_000_000, 8877)
1183 .saturating_add(RocksDbWeight::get().reads(12_u64))
1184 .saturating_add(RocksDbWeight::get().writes(7_u64))
1185 }
1186 /// Storage: `Staking::Ledger` (r:1 w:1)
1187 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1188 /// Storage: `Staking::Bonded` (r:1 w:0)
1189 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1190 /// Storage: `Staking::Nominators` (r:1 w:0)
1191 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
1192 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
1193 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1194 /// Storage: `Staking::ActiveEra` (r:1 w:0)
1195 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
1196 /// Storage: `Staking::LastValidatorEra` (r:1 w:0)
1197 /// Proof: `Staking::LastValidatorEra` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
1198 /// Storage: `Staking::AreNominatorsSlashable` (r:1 w:0)
1199 /// Proof: `Staking::AreNominatorsSlashable` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
1200 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
1201 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
1202 /// Storage: `Balances::Holds` (r:1 w:0)
1203 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
1204 /// Storage: `VoterList::ListNodes` (r:3 w:3)
1205 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
1206 /// Storage: `VoterList::Lock` (r:1 w:0)
1207 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
1208 /// Storage: `VoterList::ListBags` (r:2 w:2)
1209 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
1210 fn unbond() -> Weight {
1211 // Proof Size summary in bytes:
1212 // Measured: `6117`
1213 // Estimated: `8877`
1214 // Minimum execution time: 142_000_000 picoseconds.
1215 Weight::from_parts(189_000_000, 8877)
1216 .saturating_add(RocksDbWeight::get().reads(15_u64))
1217 .saturating_add(RocksDbWeight::get().writes(6_u64))
1218 }
1219 /// Storage: `Staking::Ledger` (r:1 w:1)
1220 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1221 /// Storage: `Staking::Bonded` (r:1 w:0)
1222 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1223 /// Storage: `Staking::ActiveEra` (r:1 w:0)
1224 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
1225 /// Storage: `Staking::UnappliedSlashes` (r:1 w:0)
1226 /// Proof: `Staking::UnappliedSlashes` (`max_values`: None, `max_size`: Some(24735), added: 27210, mode: `MaxEncodedLen`)
1227 /// Storage: `Staking::OffenceQueueEras` (r:1 w:0)
1228 /// Proof: `Staking::OffenceQueueEras` (`max_values`: Some(1), `max_size`: Some(49), added: 544, mode: `MaxEncodedLen`)
1229 /// Storage: `Staking::MinValidatorBond` (r:1 w:0)
1230 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1231 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
1232 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1233 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
1234 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
1235 /// Storage: `Balances::Holds` (r:1 w:1)
1236 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
1237 /// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0)
1238 /// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
1239 /// Storage: `DelegatedStaking::Agents` (r:1 w:0)
1240 /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`)
1241 fn withdraw_unbonded_update() -> Weight {
1242 // Proof Size summary in bytes:
1243 // Measured: `5425`
1244 // Estimated: `28200`
1245 // Minimum execution time: 81_000_000 picoseconds.
1246 Weight::from_parts(92_000_000, 28200)
1247 .saturating_add(RocksDbWeight::get().reads(11_u64))
1248 .saturating_add(RocksDbWeight::get().writes(2_u64))
1249 }
1250 /// Storage: `Staking::Ledger` (r:1 w:1)
1251 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1252 /// Storage: `Staking::Bonded` (r:1 w:1)
1253 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1254 /// Storage: `Staking::ActiveEra` (r:1 w:0)
1255 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
1256 /// Storage: `Staking::UnappliedSlashes` (r:1 w:0)
1257 /// Proof: `Staking::UnappliedSlashes` (`max_values`: None, `max_size`: Some(24735), added: 27210, mode: `MaxEncodedLen`)
1258 /// Storage: `Staking::OffenceQueueEras` (r:1 w:0)
1259 /// Proof: `Staking::OffenceQueueEras` (`max_values`: Some(1), `max_size`: Some(49), added: 544, mode: `MaxEncodedLen`)
1260 /// Storage: `Staking::MinValidatorBond` (r:1 w:0)
1261 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1262 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
1263 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1264 /// Storage: `Staking::VirtualStakers` (r:1 w:1)
1265 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
1266 /// Storage: `Balances::Holds` (r:1 w:1)
1267 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
1268 /// Storage: `Staking::Validators` (r:1 w:0)
1269 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
1270 /// Storage: `Staking::Nominators` (r:1 w:1)
1271 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
1272 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
1273 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1274 /// Storage: `VoterList::Lock` (r:1 w:0)
1275 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
1276 /// Storage: `VoterList::ListNodes` (r:2 w:2)
1277 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
1278 /// Storage: `VoterList::ListBags` (r:1 w:1)
1279 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
1280 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
1281 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1282 /// Storage: `Staking::Payee` (r:0 w:1)
1283 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1284 /// Storage: `Staking::LastValidatorEra` (r:0 w:1)
1285 /// Proof: `Staking::LastValidatorEra` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
1286 fn withdraw_unbonded_kill() -> Weight {
1287 // Proof Size summary in bytes:
1288 // Measured: `6042`
1289 // Estimated: `28200`
1290 // Minimum execution time: 170_000_000 picoseconds.
1291 Weight::from_parts(202_000_000, 28200)
1292 .saturating_add(RocksDbWeight::get().reads(17_u64))
1293 .saturating_add(RocksDbWeight::get().writes(12_u64))
1294 }
1295 /// Storage: `Staking::Ledger` (r:1 w:0)
1296 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1297 /// Storage: `Staking::Bonded` (r:1 w:0)
1298 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1299 /// Storage: `Staking::MinValidatorBond` (r:1 w:0)
1300 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1301 /// Storage: `Staking::MinCommission` (r:1 w:0)
1302 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1303 /// Storage: `Staking::MaxCommission` (r:1 w:0)
1304 /// Proof: `Staking::MaxCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1305 /// Storage: `Staking::Validators` (r:1 w:1)
1306 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
1307 /// Storage: `Staking::MaxValidatorsCount` (r:1 w:0)
1308 /// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1309 /// Storage: `Staking::Nominators` (r:1 w:0)
1310 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
1311 /// Storage: `VoterList::Lock` (r:1 w:0)
1312 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
1313 /// Storage: `VoterList::ListNodes` (r:1 w:1)
1314 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
1315 /// Storage: `VoterList::ListBags` (r:1 w:1)
1316 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
1317 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
1318 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1319 /// Storage: `Staking::CounterForValidators` (r:1 w:1)
1320 /// Proof: `Staking::CounterForValidators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1321 fn validate() -> Weight {
1322 // Proof Size summary in bytes:
1323 // Measured: `7492`
1324 // Estimated: `4218`
1325 // Minimum execution time: 65_000_000 picoseconds.
1326 Weight::from_parts(78_000_000, 4218)
1327 .saturating_add(RocksDbWeight::get().reads(13_u64))
1328 .saturating_add(RocksDbWeight::get().writes(5_u64))
1329 }
1330 /// Storage: `Staking::Ledger` (r:1 w:0)
1331 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1332 /// Storage: `Staking::Bonded` (r:1 w:0)
1333 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1334 /// Storage: `Staking::Nominators` (r:128 w:128)
1335 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
1336 /// The range of component `k` is `[1, 128]`.
1337 fn kick(k: u32, ) -> Weight {
1338 // Proof Size summary in bytes:
1339 // Measured: `4371 + k * (766 ±0)`
1340 // Estimated: `4218 + k * (3033 ±0)`
1341 // Minimum execution time: 49_000_000 picoseconds.
1342 Weight::from_parts(54_632_784, 4218)
1343 // Standard Error: 213_671
1344 .saturating_add(Weight::from_parts(8_844_488, 0).saturating_mul(k.into()))
1345 .saturating_add(RocksDbWeight::get().reads(2_u64))
1346 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(k.into())))
1347 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(k.into())))
1348 .saturating_add(Weight::from_parts(0, 3033).saturating_mul(k.into()))
1349 }
1350 /// Storage: `Staking::Ledger` (r:1 w:0)
1351 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1352 /// Storage: `Staking::Bonded` (r:1 w:0)
1353 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1354 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
1355 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1356 /// Storage: `Staking::Nominators` (r:1 w:1)
1357 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
1358 /// Storage: `Staking::MaxNominatorsCount` (r:1 w:0)
1359 /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1360 /// Storage: `Staking::Validators` (r:17 w:0)
1361 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
1362 /// Storage: `Staking::CurrentEra` (r:1 w:0)
1363 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1364 /// Storage: `VoterList::Lock` (r:1 w:0)
1365 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
1366 /// Storage: `VoterList::ListNodes` (r:2 w:2)
1367 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
1368 /// Storage: `VoterList::ListBags` (r:1 w:1)
1369 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
1370 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
1371 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1372 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
1373 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1374 /// The range of component `n` is `[1, 16]`.
1375 fn nominate(n: u32, ) -> Weight {
1376 // Proof Size summary in bytes:
1377 // Measured: `3982 + n * (69 ±0)`
1378 // Estimated: `6248 + n * (2520 ±0)`
1379 // Minimum execution time: 96_000_000 picoseconds.
1380 Weight::from_parts(111_812_612, 6248)
1381 // Standard Error: 98_395
1382 .saturating_add(Weight::from_parts(4_890_090, 0).saturating_mul(n.into()))
1383 .saturating_add(RocksDbWeight::get().reads(13_u64))
1384 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
1385 .saturating_add(RocksDbWeight::get().writes(6_u64))
1386 .saturating_add(Weight::from_parts(0, 2520).saturating_mul(n.into()))
1387 }
1388 /// Storage: `Staking::Ledger` (r:1 w:0)
1389 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1390 /// Storage: `Staking::Bonded` (r:1 w:0)
1391 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1392 /// Storage: `Staking::Validators` (r:1 w:0)
1393 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
1394 /// Storage: `Staking::Nominators` (r:1 w:1)
1395 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
1396 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
1397 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1398 /// Storage: `VoterList::Lock` (r:1 w:0)
1399 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
1400 /// Storage: `VoterList::ListNodes` (r:2 w:2)
1401 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
1402 /// Storage: `VoterList::ListBags` (r:1 w:1)
1403 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
1404 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
1405 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1406 fn chill() -> Weight {
1407 // Proof Size summary in bytes:
1408 // Measured: `4051`
1409 // Estimated: `6248`
1410 // Minimum execution time: 91_000_000 picoseconds.
1411 Weight::from_parts(112_000_000, 6248)
1412 .saturating_add(RocksDbWeight::get().reads(10_u64))
1413 .saturating_add(RocksDbWeight::get().writes(6_u64))
1414 }
1415 /// Storage: `Staking::Ledger` (r:1 w:0)
1416 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1417 /// Storage: `Staking::Bonded` (r:1 w:0)
1418 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1419 /// Storage: `Staking::Payee` (r:0 w:1)
1420 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1421 fn set_payee() -> Weight {
1422 // Proof Size summary in bytes:
1423 // Measured: `3077`
1424 // Estimated: `4218`
1425 // Minimum execution time: 23_000_000 picoseconds.
1426 Weight::from_parts(26_000_000, 4218)
1427 .saturating_add(RocksDbWeight::get().reads(2_u64))
1428 .saturating_add(RocksDbWeight::get().writes(1_u64))
1429 }
1430 /// Storage: `Staking::Ledger` (r:1 w:0)
1431 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1432 /// Storage: `Staking::Bonded` (r:1 w:0)
1433 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1434 /// Storage: `Staking::Payee` (r:1 w:1)
1435 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1436 fn update_payee() -> Weight {
1437 // Proof Size summary in bytes:
1438 // Measured: `4286`
1439 // Estimated: `4218`
1440 // Minimum execution time: 29_000_000 picoseconds.
1441 Weight::from_parts(32_000_000, 4218)
1442 .saturating_add(RocksDbWeight::get().reads(3_u64))
1443 .saturating_add(RocksDbWeight::get().writes(1_u64))
1444 }
1445 /// Storage: `Staking::Bonded` (r:1 w:1)
1446 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1447 /// Storage: `Staking::Ledger` (r:2 w:2)
1448 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1449 fn set_controller() -> Weight {
1450 // Proof Size summary in bytes:
1451 // Measured: `3716`
1452 // Estimated: `7446`
1453 // Minimum execution time: 28_000_000 picoseconds.
1454 Weight::from_parts(31_000_000, 7446)
1455 .saturating_add(RocksDbWeight::get().reads(3_u64))
1456 .saturating_add(RocksDbWeight::get().writes(3_u64))
1457 }
1458 /// Storage: `Staking::ValidatorCount` (r:0 w:1)
1459 /// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1460 fn set_validator_count() -> Weight {
1461 // Proof Size summary in bytes:
1462 // Measured: `0`
1463 // Estimated: `0`
1464 // Minimum execution time: 2_000_000 picoseconds.
1465 Weight::from_parts(4_000_000, 0)
1466 .saturating_add(RocksDbWeight::get().writes(1_u64))
1467 }
1468 /// Storage: `Staking::ForceEra` (r:0 w:1)
1469 /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
1470 fn force_no_eras() -> Weight {
1471 // Proof Size summary in bytes:
1472 // Measured: `0`
1473 // Estimated: `0`
1474 // Minimum execution time: 9_000_000 picoseconds.
1475 Weight::from_parts(16_000_000, 0)
1476 .saturating_add(RocksDbWeight::get().writes(1_u64))
1477 }
1478 /// Storage: `Staking::ForceEra` (r:0 w:1)
1479 /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
1480 fn force_new_era() -> Weight {
1481 // Proof Size summary in bytes:
1482 // Measured: `0`
1483 // Estimated: `0`
1484 // Minimum execution time: 10_000_000 picoseconds.
1485 Weight::from_parts(19_000_000, 0)
1486 .saturating_add(RocksDbWeight::get().writes(1_u64))
1487 }
1488 /// Storage: `Staking::ForceEra` (r:0 w:1)
1489 /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
1490 fn force_new_era_always() -> Weight {
1491 // Proof Size summary in bytes:
1492 // Measured: `0`
1493 // Estimated: `0`
1494 // Minimum execution time: 9_000_000 picoseconds.
1495 Weight::from_parts(20_000_000, 0)
1496 .saturating_add(RocksDbWeight::get().writes(1_u64))
1497 }
1498 /// Storage: `Staking::Ledger` (r:1502 w:1502)
1499 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1500 /// Storage: `Staking::Bonded` (r:751 w:751)
1501 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1502 /// Storage: `Staking::Payee` (r:751 w:0)
1503 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1504 /// The range of component `u` is `[0, 751]`.
1505 fn deprecate_controller_batch(u: u32, ) -> Weight {
1506 // Proof Size summary in bytes:
1507 // Measured: `0 + u * (465 ±0)`
1508 // Estimated: `9 + u * (6457 ±0)`
1509 // Minimum execution time: 6_000_000 picoseconds.
1510 Weight::from_parts(10_500_000, 9)
1511 // Standard Error: 926_520
1512 .saturating_add(Weight::from_parts(33_413_226, 0).saturating_mul(u.into()))
1513 .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(u.into())))
1514 .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(u.into())))
1515 .saturating_add(Weight::from_parts(0, 6457).saturating_mul(u.into()))
1516 }
1517 /// Storage: `Staking::Bonded` (r:1 w:1)
1518 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1519 /// Storage: `Staking::Ledger` (r:1 w:1)
1520 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1521 /// Storage: `Staking::VirtualStakers` (r:1 w:1)
1522 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
1523 /// Storage: `Balances::Holds` (r:1 w:1)
1524 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
1525 /// Storage: `System::Account` (r:1 w:1)
1526 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1527 /// Storage: `Staking::Validators` (r:1 w:0)
1528 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
1529 /// Storage: `Staking::Nominators` (r:1 w:1)
1530 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
1531 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
1532 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1533 /// Storage: `VoterList::Lock` (r:1 w:0)
1534 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
1535 /// Storage: `VoterList::ListNodes` (r:2 w:2)
1536 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
1537 /// Storage: `VoterList::ListBags` (r:1 w:1)
1538 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
1539 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
1540 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1541 /// Storage: `Staking::Payee` (r:0 w:1)
1542 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1543 /// Storage: `Staking::LastValidatorEra` (r:0 w:1)
1544 /// Proof: `Staking::LastValidatorEra` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
1545 fn force_unstake() -> Weight {
1546 // Proof Size summary in bytes:
1547 // Measured: `5986`
1548 // Estimated: `6248`
1549 // Minimum execution time: 147_000_000 picoseconds.
1550 Weight::from_parts(178_000_000, 6248)
1551 .saturating_add(RocksDbWeight::get().reads(13_u64))
1552 .saturating_add(RocksDbWeight::get().writes(13_u64))
1553 }
1554 /// Storage: `Staking::CancelledSlashes` (r:1 w:1)
1555 /// Proof: `Staking::CancelledSlashes` (`max_values`: None, `max_size`: Some(36014), added: 38489, mode: `MaxEncodedLen`)
1556 /// The range of component `s` is `[1, 1000]`.
1557 fn cancel_deferred_slash(s: u32, ) -> Weight {
1558 // Proof Size summary in bytes:
1559 // Measured: `600`
1560 // Estimated: `39479`
1561 // Minimum execution time: 15_000_000 picoseconds.
1562 Weight::from_parts(18_762_064, 39479)
1563 // Standard Error: 68_343
1564 .saturating_add(Weight::from_parts(3_338_607, 0).saturating_mul(s.into()))
1565 .saturating_add(RocksDbWeight::get().reads(1_u64))
1566 .saturating_add(RocksDbWeight::get().writes(1_u64))
1567 }
1568 /// Storage: `Staking::ErasStakersOverview` (r:1 w:0)
1569 /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
1570 /// Storage: `Staking::ClaimedRewards` (r:1 w:1)
1571 /// Proof: `Staking::ClaimedRewards` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
1572 /// Storage: `Staking::CurrentEra` (r:1 w:0)
1573 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1574 /// Storage: `Staking::ErasValidatorReward` (r:1 w:0)
1575 /// Proof: `Staking::ErasValidatorReward` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
1576 /// Storage: `Staking::Bonded` (r:513 w:0)
1577 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1578 /// Storage: `Staking::Ledger` (r:513 w:513)
1579 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1580 /// Storage: `System::Account` (r:515 w:515)
1581 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1582 /// Storage: `Staking::VirtualStakers` (r:513 w:0)
1583 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
1584 /// Storage: `Balances::Holds` (r:513 w:513)
1585 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
1586 /// Storage: UNKNOWN KEY `0x6f320d44e42312c78638e6c92dff65af` (r:1 w:0)
1587 /// Proof: UNKNOWN KEY `0x6f320d44e42312c78638e6c92dff65af` (r:1 w:0)
1588 /// Storage: `Staking::ErasStakersPaged` (r:1 w:0)
1589 /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: Some(24656), added: 27131, mode: `MaxEncodedLen`)
1590 /// Storage: `Staking::ErasRewardPoints` (r:1 w:0)
1591 /// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: Some(36018), added: 38493, mode: `MaxEncodedLen`)
1592 /// Storage: `Staking::ErasValidatorPrefs` (r:1 w:0)
1593 /// Proof: `Staking::ErasValidatorPrefs` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
1594 /// Storage: `Staking::ErasValidatorIncentiveBudget` (r:1 w:0)
1595 /// Proof: `Staking::ErasValidatorIncentiveBudget` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
1596 /// Storage: `Staking::ErasValidatorIncentiveWeight` (r:1 w:0)
1597 /// Proof: `Staking::ErasValidatorIncentiveWeight` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
1598 /// Storage: `Staking::ErasSumValidatorIncentiveWeight` (r:1 w:0)
1599 /// Proof: `Staking::ErasSumValidatorIncentiveWeight` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
1600 /// Storage: `Staking::Payee` (r:513 w:0)
1601 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1602 /// The range of component `n` is `[0, 512]`.
1603 fn payout_stakers_alive_staked(n: u32, ) -> Weight {
1604 // Proof Size summary in bytes:
1605 // Measured: `9382 + n * (953 ±0)`
1606 // Estimated: `39483 + n * (3228 ±0)`
1607 // Minimum execution time: 303_000_000 picoseconds.
1608 Weight::from_parts(330_333_333, 39483)
1609 // Standard Error: 3_180_143
1610 .saturating_add(Weight::from_parts(136_864_583, 0).saturating_mul(n.into()))
1611 .saturating_add(RocksDbWeight::get().reads(19_u64))
1612 .saturating_add(RocksDbWeight::get().reads((6_u64).saturating_mul(n.into())))
1613 .saturating_add(RocksDbWeight::get().writes(6_u64))
1614 .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(n.into())))
1615 .saturating_add(Weight::from_parts(0, 3228).saturating_mul(n.into()))
1616 }
1617 /// Storage: `Staking::Ledger` (r:1 w:1)
1618 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1619 /// Storage: `Staking::Bonded` (r:1 w:0)
1620 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1621 /// Storage: `Staking::MinValidatorBond` (r:1 w:0)
1622 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1623 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
1624 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1625 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
1626 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
1627 /// Storage: `Balances::Holds` (r:1 w:0)
1628 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
1629 /// Storage: `VoterList::ListNodes` (r:3 w:3)
1630 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
1631 /// Storage: `VoterList::Lock` (r:1 w:0)
1632 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
1633 /// Storage: `VoterList::ListBags` (r:2 w:2)
1634 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
1635 /// The range of component `l` is `[1, 32]`.
1636 fn rebond(l: u32, ) -> Weight {
1637 // Proof Size summary in bytes:
1638 // Measured: `5958 + l * (4 ±0)`
1639 // Estimated: `8877`
1640 // Minimum execution time: 120_000_000 picoseconds.
1641 Weight::from_parts(165_519_061, 8877)
1642 // Standard Error: 302_814
1643 .saturating_add(Weight::from_parts(147_605, 0).saturating_mul(l.into()))
1644 .saturating_add(RocksDbWeight::get().reads(12_u64))
1645 .saturating_add(RocksDbWeight::get().writes(6_u64))
1646 }
1647 /// Storage: `Staking::VirtualStakers` (r:1 w:1)
1648 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
1649 /// Storage: `Staking::MinValidatorBond` (r:1 w:0)
1650 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1651 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
1652 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1653 /// Storage: `Staking::Bonded` (r:1 w:1)
1654 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1655 /// Storage: `Staking::Ledger` (r:1 w:1)
1656 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1657 /// Storage: `Balances::Holds` (r:1 w:1)
1658 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
1659 /// Storage: `Staking::Validators` (r:1 w:0)
1660 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
1661 /// Storage: `Staking::Nominators` (r:1 w:1)
1662 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
1663 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
1664 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1665 /// Storage: `VoterList::Lock` (r:1 w:0)
1666 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
1667 /// Storage: `VoterList::ListNodes` (r:2 w:2)
1668 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
1669 /// Storage: `VoterList::ListBags` (r:1 w:1)
1670 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
1671 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
1672 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1673 /// Storage: `Staking::Payee` (r:0 w:1)
1674 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1675 /// Storage: `Staking::LastValidatorEra` (r:0 w:1)
1676 /// Proof: `Staking::LastValidatorEra` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
1677 fn reap_stash() -> Weight {
1678 // Proof Size summary in bytes:
1679 // Measured: `6050`
1680 // Estimated: `6248`
1681 // Minimum execution time: 158_000_000 picoseconds.
1682 Weight::from_parts(193_000_000, 6248)
1683 .saturating_add(RocksDbWeight::get().reads(14_u64))
1684 .saturating_add(RocksDbWeight::get().writes(12_u64))
1685 }
1686 /// Storage: `Staking::AreNominatorsSlashable` (r:0 w:1)
1687 /// Proof: `Staking::AreNominatorsSlashable` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
1688 /// Storage: `Staking::MinCommission` (r:0 w:1)
1689 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1690 /// Storage: `Staking::MinValidatorBond` (r:0 w:1)
1691 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1692 /// Storage: `Staking::MaxValidatorsCount` (r:0 w:1)
1693 /// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1694 /// Storage: `Staking::MaxStakedRewards` (r:0 w:1)
1695 /// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
1696 /// Storage: `Staking::ChillThreshold` (r:0 w:1)
1697 /// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
1698 /// Storage: `Staking::MaxNominatorsCount` (r:0 w:1)
1699 /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1700 /// Storage: `Staking::MinNominatorBond` (r:0 w:1)
1701 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1702 fn set_staking_configs_all_set() -> Weight {
1703 // Proof Size summary in bytes:
1704 // Measured: `0`
1705 // Estimated: `0`
1706 // Minimum execution time: 4_000_000 picoseconds.
1707 Weight::from_parts(6_000_000, 0)
1708 .saturating_add(RocksDbWeight::get().writes(8_u64))
1709 }
1710 /// Storage: `Staking::AreNominatorsSlashable` (r:0 w:1)
1711 /// Proof: `Staking::AreNominatorsSlashable` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
1712 /// Storage: `Staking::MinCommission` (r:0 w:1)
1713 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1714 /// Storage: `Staking::MinValidatorBond` (r:0 w:1)
1715 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1716 /// Storage: `Staking::MaxValidatorsCount` (r:0 w:1)
1717 /// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1718 /// Storage: `Staking::MaxStakedRewards` (r:0 w:1)
1719 /// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
1720 /// Storage: `Staking::ChillThreshold` (r:0 w:1)
1721 /// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
1722 /// Storage: `Staking::MaxNominatorsCount` (r:0 w:1)
1723 /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1724 /// Storage: `Staking::MinNominatorBond` (r:0 w:1)
1725 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1726 fn set_staking_configs_all_remove() -> Weight {
1727 // Proof Size summary in bytes:
1728 // Measured: `0`
1729 // Estimated: `0`
1730 // Minimum execution time: 4_000_000 picoseconds.
1731 Weight::from_parts(6_000_000, 0)
1732 .saturating_add(RocksDbWeight::get().writes(8_u64))
1733 }
1734 /// Storage: `Staking::Bonded` (r:1 w:0)
1735 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1736 /// Storage: `Staking::Ledger` (r:1 w:0)
1737 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1738 /// Storage: `Staking::Nominators` (r:1 w:1)
1739 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
1740 /// Storage: `Staking::ChillThreshold` (r:1 w:0)
1741 /// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
1742 /// Storage: `Staking::MaxNominatorsCount` (r:1 w:0)
1743 /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1744 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
1745 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1746 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
1747 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1748 /// Storage: `Staking::Validators` (r:1 w:0)
1749 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
1750 /// Storage: `VoterList::Lock` (r:1 w:0)
1751 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
1752 /// Storage: `VoterList::ListNodes` (r:2 w:2)
1753 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
1754 /// Storage: `VoterList::ListBags` (r:1 w:1)
1755 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
1756 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
1757 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1758 fn chill_other() -> Weight {
1759 // Proof Size summary in bytes:
1760 // Measured: `4184`
1761 // Estimated: `6248`
1762 // Minimum execution time: 110_000_000 picoseconds.
1763 Weight::from_parts(135_000_000, 6248)
1764 .saturating_add(RocksDbWeight::get().reads(13_u64))
1765 .saturating_add(RocksDbWeight::get().writes(6_u64))
1766 }
1767 /// Storage: `Staking::MinCommission` (r:1 w:0)
1768 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1769 /// Storage: `Staking::MaxCommission` (r:1 w:0)
1770 /// Proof: `Staking::MaxCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1771 /// Storage: `Staking::Validators` (r:1 w:1)
1772 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
1773 fn force_apply_min_commission() -> Weight {
1774 // Proof Size summary in bytes:
1775 // Measured: `607`
1776 // Estimated: `3510`
1777 // Minimum execution time: 23_000_000 picoseconds.
1778 Weight::from_parts(35_000_000, 3510)
1779 .saturating_add(RocksDbWeight::get().reads(3_u64))
1780 .saturating_add(RocksDbWeight::get().writes(1_u64))
1781 }
1782 /// Storage: `Staking::MaxCommission` (r:1 w:0)
1783 /// Proof: `Staking::MaxCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1784 /// Storage: `Staking::MinCommission` (r:0 w:1)
1785 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1786 fn set_min_commission() -> Weight {
1787 // Proof Size summary in bytes:
1788 // Measured: `563`
1789 // Estimated: `1489`
1790 // Minimum execution time: 6_000_000 picoseconds.
1791 Weight::from_parts(9_000_000, 1489)
1792 .saturating_add(RocksDbWeight::get().reads(1_u64))
1793 .saturating_add(RocksDbWeight::get().writes(1_u64))
1794 }
1795 /// Storage: `Staking::MinCommission` (r:1 w:0)
1796 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1797 /// Storage: `Staking::MaxCommission` (r:0 w:1)
1798 /// Proof: `Staking::MaxCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1799 fn set_max_commission() -> Weight {
1800 // Proof Size summary in bytes:
1801 // Measured: `563`
1802 // Estimated: `1489`
1803 // Minimum execution time: 6_000_000 picoseconds.
1804 Weight::from_parts(9_000_000, 1489)
1805 .saturating_add(RocksDbWeight::get().reads(1_u64))
1806 .saturating_add(RocksDbWeight::get().writes(1_u64))
1807 }
1808 /// Storage: `Staking::OptimumSelfStake` (r:0 w:1)
1809 /// Proof: `Staking::OptimumSelfStake` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1810 /// Storage: `Staking::SelfStakeSlopeFactor` (r:0 w:1)
1811 /// Proof: `Staking::SelfStakeSlopeFactor` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1812 /// Storage: `Staking::HardCapSelfStake` (r:0 w:1)
1813 /// Proof: `Staking::HardCapSelfStake` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
1814 fn set_validator_self_stake_incentive_config() -> Weight {
1815 // Proof Size summary in bytes:
1816 // Measured: `0`
1817 // Estimated: `0`
1818 // Minimum execution time: 6_000_000 picoseconds.
1819 Weight::from_parts(8_000_000, 0)
1820 .saturating_add(RocksDbWeight::get().writes(3_u64))
1821 }
1822 /// Storage: `System::Account` (r:1 w:0)
1823 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1824 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
1825 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
1826 /// Storage: `Balances::Holds` (r:1 w:0)
1827 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
1828 /// Storage: `Balances::Locks` (r:1 w:0)
1829 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
1830 /// Storage: `Staking::Bonded` (r:1 w:1)
1831 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1832 /// Storage: `Staking::Ledger` (r:1 w:1)
1833 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1834 fn restore_ledger() -> Weight {
1835 // Proof Size summary in bytes:
1836 // Measured: `5012`
1837 // Estimated: `4764`
1838 // Minimum execution time: 49_000_000 picoseconds.
1839 Weight::from_parts(56_000_000, 4764)
1840 .saturating_add(RocksDbWeight::get().reads(6_u64))
1841 .saturating_add(RocksDbWeight::get().writes(2_u64))
1842 }
1843 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
1844 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
1845 /// Storage: `Staking::Bonded` (r:1 w:0)
1846 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1847 /// Storage: `Staking::Ledger` (r:1 w:0)
1848 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1849 /// Storage: `Balances::Locks` (r:1 w:1)
1850 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
1851 /// Storage: `Balances::Freezes` (r:1 w:0)
1852 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
1853 /// Storage: `Balances::Holds` (r:1 w:1)
1854 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
1855 fn migrate_currency() -> Weight {
1856 // Proof Size summary in bytes:
1857 // Measured: `5122`
1858 // Estimated: `4764`
1859 // Minimum execution time: 85_000_000 picoseconds.
1860 Weight::from_parts(94_000_000, 4764)
1861 .saturating_add(RocksDbWeight::get().reads(6_u64))
1862 .saturating_add(RocksDbWeight::get().writes(2_u64))
1863 }
1864 /// Storage: `Staking::ActiveEra` (r:1 w:0)
1865 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
1866 /// Storage: `Staking::CancelledSlashes` (r:1 w:0)
1867 /// Proof: `Staking::CancelledSlashes` (`max_values`: None, `max_size`: Some(36014), added: 38489, mode: `MaxEncodedLen`)
1868 /// Storage: `Staking::UnappliedSlashes` (r:1 w:1)
1869 /// Proof: `Staking::UnappliedSlashes` (`max_values`: None, `max_size`: Some(24735), added: 27210, mode: `MaxEncodedLen`)
1870 /// Storage: `Staking::Bonded` (r:513 w:0)
1871 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1872 /// Storage: `Staking::Ledger` (r:513 w:513)
1873 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(753), added: 3228, mode: `MaxEncodedLen`)
1874 /// Storage: `NominationPools::ReversePoolIdLookup` (r:513 w:0)
1875 /// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
1876 /// Storage: `DelegatedStaking::Agents` (r:513 w:513)
1877 /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`)
1878 /// Storage: `System::Account` (r:514 w:514)
1879 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1880 /// Storage: `Staking::VirtualStakers` (r:513 w:0)
1881 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
1882 /// Storage: `Balances::Holds` (r:513 w:513)
1883 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
1884 /// The range of component `n` is `[0, 512]`.
1885 fn apply_slash(n: u32, ) -> Weight {
1886 // Proof Size summary in bytes:
1887 // Measured: `6860 + n * (821 ±0)`
1888 // Estimated: `39479 + n * (3228 ±0)`
1889 // Minimum execution time: 157_000_000 picoseconds.
1890 Weight::from_parts(221_833_333, 39479)
1891 // Standard Error: 6_469_942
1892 .saturating_add(Weight::from_parts(92_355_143, 0).saturating_mul(n.into()))
1893 .saturating_add(RocksDbWeight::get().reads(11_u64))
1894 .saturating_add(RocksDbWeight::get().reads((7_u64).saturating_mul(n.into())))
1895 .saturating_add(RocksDbWeight::get().writes(6_u64))
1896 .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(n.into())))
1897 .saturating_add(Weight::from_parts(0, 3228).saturating_mul(n.into()))
1898 }
1899 /// Storage: `Staking::ProcessingOffence` (r:1 w:1)
1900 /// Proof: `Staking::ProcessingOffence` (`max_values`: Some(1), `max_size`: Some(85), added: 580, mode: `MaxEncodedLen`)
1901 /// Storage: `Staking::OffenceQueueEras` (r:1 w:1)
1902 /// Proof: `Staking::OffenceQueueEras` (`max_values`: Some(1), `max_size`: Some(49), added: 544, mode: `MaxEncodedLen`)
1903 /// Storage: `Staking::OffenceQueue` (r:2 w:1)
1904 /// Proof: `Staking::OffenceQueue` (`max_values`: None, `max_size`: Some(101), added: 2576, mode: `MaxEncodedLen`)
1905 /// Storage: `Staking::SlashRewardFraction` (r:1 w:0)
1906 /// Proof: `Staking::SlashRewardFraction` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1907 /// Storage: `Staking::ErasStakersOverview` (r:1 w:0)
1908 /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
1909 /// Storage: `Staking::ErasStakersPaged` (r:1 w:0)
1910 /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: Some(24656), added: 27131, mode: `MaxEncodedLen`)
1911 /// Storage: `Staking::UnappliedSlashes` (r:0 w:1)
1912 /// Proof: `Staking::UnappliedSlashes` (`max_values`: None, `max_size`: Some(24735), added: 27210, mode: `MaxEncodedLen`)
1913 fn process_offence_queue() -> Weight {
1914 // Proof Size summary in bytes:
1915 // Measured: `19541`
1916 // Estimated: `28121`
1917 // Minimum execution time: 185_000_000 picoseconds.
1918 Weight::from_parts(193_000_000, 28121)
1919 .saturating_add(RocksDbWeight::get().reads(7_u64))
1920 .saturating_add(RocksDbWeight::get().writes(4_u64))
1921 }
1922 /// Storage: `Staking::ActiveEra` (r:1 w:0)
1923 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
1924 /// Storage: `Staking::BondedEras` (r:1 w:0)
1925 /// Proof: `Staking::BondedEras` (`max_values`: Some(1), `max_size`: Some(25), added: 520, mode: `MaxEncodedLen`)
1926 /// Storage: `Staking::ErasStakersOverview` (r:500 w:0)
1927 /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
1928 /// Storage: `Staking::ValidatorSlashInEra` (r:500 w:500)
1929 /// Proof: `Staking::ValidatorSlashInEra` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
1930 /// Storage: `Staking::OffenceQueue` (r:500 w:500)
1931 /// Proof: `Staking::OffenceQueue` (`max_values`: None, `max_size`: Some(101), added: 2576, mode: `MaxEncodedLen`)
1932 /// Storage: `Staking::OffenceQueueEras` (r:1 w:1)
1933 /// Proof: `Staking::OffenceQueueEras` (`max_values`: Some(1), `max_size`: Some(49), added: 544, mode: `MaxEncodedLen`)
1934 /// The range of component `v` is `[2, 500]`.
1935 fn rc_on_offence(v: u32, ) -> Weight {
1936 // Proof Size summary in bytes:
1937 // Measured: `854 + v * (96 ±0)`
1938 // Estimated: `1534 + v * (2576 ±0)`
1939 // Minimum execution time: 74_000_000 picoseconds.
1940 Weight::from_parts(26_049_531, 1534)
1941 // Standard Error: 3_339_777
1942 .saturating_add(Weight::from_parts(24_808_567, 0).saturating_mul(v.into()))
1943 .saturating_add(RocksDbWeight::get().reads(3_u64))
1944 .saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(v.into())))
1945 .saturating_add(RocksDbWeight::get().writes(1_u64))
1946 .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(v.into())))
1947 .saturating_add(Weight::from_parts(0, 2576).saturating_mul(v.into()))
1948 }
1949 /// Storage: `Staking::ActiveEra` (r:1 w:1)
1950 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
1951 /// Storage: `Staking::ErasRewardPoints` (r:1 w:1)
1952 /// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: Some(36018), added: 38493, mode: `MaxEncodedLen`)
1953 /// Storage: `Staking::CurrentEra` (r:1 w:1)
1954 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1955 /// Storage: `System::Account` (r:4 w:2)
1956 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1957 /// Storage: `Staking::BondedEras` (r:1 w:1)
1958 /// Proof: `Staking::BondedEras` (`max_values`: Some(1), `max_size`: Some(25), added: 520, mode: `MaxEncodedLen`)
1959 /// Storage: `Staking::AreNominatorsSlashable` (r:1 w:0)
1960 /// Proof: `Staking::AreNominatorsSlashable` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
1961 /// Storage: `Staking::ForceEra` (r:1 w:0)
1962 /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
1963 /// Storage: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
1964 /// Proof: UNKNOWN KEY `0xa143099d7a337c5fd879b91b2b157c2d` (r:1 w:0)
1965 /// Storage: UNKNOWN KEY `0x6358acd2035ec4bb863fa981e0c177b9` (r:1 w:0)
1966 /// Proof: UNKNOWN KEY `0x6358acd2035ec4bb863fa981e0c177b9` (r:1 w:0)
1967 /// Storage: UNKNOWN KEY `0xc209f5d8eb920681b56c64b8694ea78c` (r:1 w:0)
1968 /// Proof: UNKNOWN KEY `0xc209f5d8eb920681b56c64b8694ea78c` (r:1 w:0)
1969 /// Storage: UNKNOWN KEY `0x48384a816e4f71a936cb76dc9e303f2a` (r:1 w:0)
1970 /// Proof: UNKNOWN KEY `0x48384a816e4f71a936cb76dc9e303f2a` (r:1 w:0)
1971 /// Storage: `MultiBlockElection::CurrentPhase` (r:1 w:1)
1972 /// Proof: `MultiBlockElection::CurrentPhase` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
1973 /// Storage: `Staking::ErasNominatorsSlashable` (r:0 w:1)
1974 /// Proof: `Staking::ErasNominatorsSlashable` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `MaxEncodedLen`)
1975 /// Storage: `Staking::ErasValidatorIncentiveBudget` (r:0 w:1)
1976 /// Proof: `Staking::ErasValidatorIncentiveBudget` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
1977 /// Storage: `Staking::VoterSnapshotStatus` (r:0 w:1)
1978 /// Proof: `Staking::VoterSnapshotStatus` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
1979 /// Storage: `Staking::ErasValidatorReward` (r:0 w:1)
1980 /// Proof: `Staking::ErasValidatorReward` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
1981 /// Storage: `Staking::NextElectionPage` (r:0 w:1)
1982 /// Proof: `Staking::NextElectionPage` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
1983 /// Storage: `Staking::ElectableStashes` (r:0 w:1)
1984 /// Proof: `Staking::ElectableStashes` (`max_values`: Some(1), `max_size`: Some(32002), added: 32497, mode: `MaxEncodedLen`)
1985 fn rc_on_session_report() -> Weight {
1986 // Proof Size summary in bytes:
1987 // Measured: `3564`
1988 // Estimated: `39483`
1989 // Minimum execution time: 336_000_000 picoseconds.
1990 Weight::from_parts(386_000_000, 39483)
1991 .saturating_add(RocksDbWeight::get().reads(15_u64))
1992 .saturating_add(RocksDbWeight::get().writes(13_u64))
1993 }
1994 /// Storage: `Staking::ActiveEra` (r:1 w:0)
1995 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
1996 /// Storage: `Staking::EraPruningState` (r:1 w:0)
1997 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
1998 /// Storage: `Staking::ErasStakersPaged` (r:101 w:100)
1999 /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: Some(24656), added: 27131, mode: `Measured`)
2000 /// The range of component `v` is `[1, 1000]`.
2001 fn prune_era_stakers_paged(v: u32, ) -> Weight {
2002 // Proof Size summary in bytes:
2003 // Measured: `1041 + v * (9 ±0)`
2004 // Estimated: `6736 + v * (255 ±0)`
2005 // Minimum execution time: 25_000_000 picoseconds.
2006 Weight::from_parts(30_305_099, 6736)
2007 // Standard Error: 5_450
2008 .saturating_add(Weight::from_parts(156_438, 0).saturating_mul(v.into()))
2009 .saturating_add(RocksDbWeight::get().reads(4_u64))
2010 .saturating_add(RocksDbWeight::get().writes(3_u64))
2011 .saturating_add(Weight::from_parts(0, 255).saturating_mul(v.into()))
2012 }
2013 /// Storage: `Staking::ActiveEra` (r:1 w:0)
2014 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
2015 /// Storage: `Staking::EraPruningState` (r:1 w:0)
2016 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
2017 /// Storage: `Staking::ErasStakersOverview` (r:101 w:100)
2018 /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `Measured`)
2019 /// The range of component `v` is `[1, 1000]`.
2020 fn prune_era_stakers_overview(v: u32, ) -> Weight {
2021 // Proof Size summary in bytes:
2022 // Measured: `911 + v * (6 ±0)`
2023 // Estimated: `4376 + v * (255 ±0)`
2024 // Minimum execution time: 22_000_000 picoseconds.
2025 Weight::from_parts(37_287_716, 4376)
2026 // Standard Error: 12_795
2027 .saturating_add(Weight::from_parts(197_997, 0).saturating_mul(v.into()))
2028 .saturating_add(RocksDbWeight::get().reads(3_u64))
2029 .saturating_add(RocksDbWeight::get().writes(2_u64))
2030 .saturating_add(Weight::from_parts(0, 255).saturating_mul(v.into()))
2031 }
2032 /// Storage: `Staking::ActiveEra` (r:1 w:0)
2033 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
2034 /// Storage: `Staking::EraPruningState` (r:1 w:0)
2035 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
2036 /// Storage: `Staking::ErasValidatorPrefs` (r:101 w:100)
2037 /// Proof: `Staking::ErasValidatorPrefs` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `Measured`)
2038 /// The range of component `v` is `[1, 1000]`.
2039 fn prune_era_validator_prefs(v: u32, ) -> Weight {
2040 // Proof Size summary in bytes:
2041 // Measured: `952 + v * (5 ±0)`
2042 // Estimated: `4418 + v * (253 ±0)`
2043 // Minimum execution time: 20_000_000 picoseconds.
2044 Weight::from_parts(30_337_219, 4418)
2045 // Standard Error: 11_862
2046 .saturating_add(Weight::from_parts(192_192, 0).saturating_mul(v.into()))
2047 .saturating_add(RocksDbWeight::get().reads(3_u64))
2048 .saturating_add(RocksDbWeight::get().writes(2_u64))
2049 .saturating_add(Weight::from_parts(0, 253).saturating_mul(v.into()))
2050 }
2051 /// Storage: `Staking::ActiveEra` (r:1 w:0)
2052 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
2053 /// Storage: `Staking::EraPruningState` (r:1 w:0)
2054 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
2055 /// Storage: `Staking::ClaimedRewards` (r:101 w:100)
2056 /// Proof: `Staking::ClaimedRewards` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `Measured`)
2057 /// The range of component `v` is `[1, 1000]`.
2058 fn prune_era_claimed_rewards(v: u32, ) -> Weight {
2059 // Proof Size summary in bytes:
2060 // Measured: `902 + v * (6 ±0)`
2061 // Estimated: `4368 + v * (254 ±0)`
2062 // Minimum execution time: 23_000_000 picoseconds.
2063 Weight::from_parts(40_417_984, 4368)
2064 // Standard Error: 14_492
2065 .saturating_add(Weight::from_parts(215_348, 0).saturating_mul(v.into()))
2066 .saturating_add(RocksDbWeight::get().reads(3_u64))
2067 .saturating_add(RocksDbWeight::get().writes(2_u64))
2068 .saturating_add(Weight::from_parts(0, 254).saturating_mul(v.into()))
2069 }
2070 /// Storage: `Staking::ActiveEra` (r:1 w:0)
2071 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
2072 /// Storage: `Staking::EraPruningState` (r:1 w:1)
2073 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
2074 /// Storage: `Staking::ErasValidatorReward` (r:0 w:1)
2075 /// Proof: `Staking::ErasValidatorReward` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `Measured`)
2076 fn prune_era_validator_reward() -> Weight {
2077 // Proof Size summary in bytes:
2078 // Measured: `822`
2079 // Estimated: `4287`
2080 // Minimum execution time: 14_000_000 picoseconds.
2081 Weight::from_parts(24_000_000, 4287)
2082 .saturating_add(RocksDbWeight::get().reads(2_u64))
2083 .saturating_add(RocksDbWeight::get().writes(2_u64))
2084 }
2085 /// Storage: `Staking::ActiveEra` (r:1 w:0)
2086 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
2087 /// Storage: `Staking::EraPruningState` (r:1 w:1)
2088 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
2089 /// Storage: `Staking::ErasRewardPoints` (r:0 w:1)
2090 /// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: Some(36018), added: 38493, mode: `Measured`)
2091 fn prune_era_reward_points() -> Weight {
2092 // Proof Size summary in bytes:
2093 // Measured: `822`
2094 // Estimated: `4287`
2095 // Minimum execution time: 14_000_000 picoseconds.
2096 Weight::from_parts(24_000_000, 4287)
2097 .saturating_add(RocksDbWeight::get().reads(2_u64))
2098 .saturating_add(RocksDbWeight::get().writes(2_u64))
2099 }
2100 /// Storage: `Staking::ActiveEra` (r:1 w:0)
2101 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
2102 /// Storage: `Staking::EraPruningState` (r:1 w:1)
2103 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
2104 /// Storage: `Staking::ErasNominatorsSlashable` (r:0 w:1)
2105 /// Proof: `Staking::ErasNominatorsSlashable` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
2106 /// Storage: `Staking::ErasValidatorIncentiveBudget` (r:0 w:1)
2107 /// Proof: `Staking::ErasValidatorIncentiveBudget` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `Measured`)
2108 /// Storage: `Staking::ErasTotalStake` (r:0 w:1)
2109 /// Proof: `Staking::ErasTotalStake` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `Measured`)
2110 /// Storage: `Staking::ErasSumValidatorIncentiveWeight` (r:0 w:1)
2111 /// Proof: `Staking::ErasSumValidatorIncentiveWeight` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `Measured`)
2112 fn prune_era_single_entry_cleanups() -> Weight {
2113 // Proof Size summary in bytes:
2114 // Measured: `822`
2115 // Estimated: `4287`
2116 // Minimum execution time: 16_000_000 picoseconds.
2117 Weight::from_parts(23_000_000, 4287)
2118 .saturating_add(RocksDbWeight::get().reads(2_u64))
2119 .saturating_add(RocksDbWeight::get().writes(5_u64))
2120 }
2121 /// Storage: `Staking::ActiveEra` (r:1 w:0)
2122 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
2123 /// Storage: `Staking::EraPruningState` (r:1 w:0)
2124 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
2125 /// Storage: `Staking::ValidatorSlashInEra` (r:101 w:100)
2126 /// Proof: `Staking::ValidatorSlashInEra` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `Measured`)
2127 /// The range of component `v` is `[1, 1000]`.
2128 fn prune_era_validator_slash_in_era(v: u32, ) -> Weight {
2129 // Proof Size summary in bytes:
2130 // Measured: `853 + v * (7 ±0)`
2131 // Estimated: `259089 + v * (7 ±0)`
2132 // Minimum execution time: 23_000_000 picoseconds.
2133 Weight::from_parts(36_136_636, 259089)
2134 // Standard Error: 14_366
2135 .saturating_add(Weight::from_parts(207_113, 0).saturating_mul(v.into()))
2136 .saturating_add(RocksDbWeight::get().reads(2_u64))
2137 .saturating_add(RocksDbWeight::get().writes(1_u64))
2138 .saturating_add(Weight::from_parts(0, 7).saturating_mul(v.into()))
2139 }
2140 /// Storage: `Staking::ActiveEra` (r:1 w:0)
2141 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `Measured`)
2142 /// Storage: `Staking::EraPruningState` (r:1 w:0)
2143 /// Proof: `Staking::EraPruningState` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `Measured`)
2144 /// Storage: `Staking::ErasValidatorIncentiveWeight` (r:101 w:100)
2145 /// Proof: `Staking::ErasValidatorIncentiveWeight` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `Measured`)
2146 /// The range of component `v` is `[1, 1000]`.
2147 fn prune_era_validator_incentive_weight(v: u32, ) -> Weight {
2148 // Proof Size summary in bytes:
2149 // Measured: `872 + v * (6 ±0)`
2150 // Estimated: `4337 + v * (254 ±0)`
2151 // Minimum execution time: 26_000_000 picoseconds.
2152 Weight::from_parts(37_348_201, 4337)
2153 // Standard Error: 14_006
2154 .saturating_add(Weight::from_parts(210_622, 0).saturating_mul(v.into()))
2155 .saturating_add(RocksDbWeight::get().reads(3_u64))
2156 .saturating_add(RocksDbWeight::get().writes(2_u64))
2157 .saturating_add(Weight::from_parts(0, 254).saturating_mul(v.into()))
2158 }
2159}