westend_runtime/weights/pallet_staking.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Polkadot is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `pallet_staking`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `3a2e9ae8a8f5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
24
25// Executed Command:
26// frame-omni-bencher
27// v1
28// benchmark
29// pallet
30// --extrinsic=*
31// --runtime=target/production/wbuild/westend-runtime/westend_runtime.wasm
32// --pallet=pallet_staking
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/westend/src/weights
35// --wasm-execution=compiled
36// --steps=50
37// --repeat=20
38// --heap-pages=4096
39// --no-storage-info
40// --no-min-squares
41// --no-median-slopes
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `pallet_staking`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
54 /// Storage: `VoterList::CounterForListNodes` (r:1 w:0)
55 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
56 /// Storage: `VoterList::ListBags` (r:178 w:0)
57 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
58 /// Storage: `VoterList::ListNodes` (r:2000 w:0)
59 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
60 /// Storage: `Staking::Bonded` (r:2000 w:0)
61 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
62 /// Storage: `Staking::Ledger` (r:2000 w:0)
63 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
64 /// Storage: `Staking::Nominators` (r:2000 w:0)
65 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
66 /// Storage: `Staking::Validators` (r:1000 w:0)
67 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
68 /// Storage: `Staking::MinimumActiveStake` (r:0 w:1)
69 /// Proof: `Staking::MinimumActiveStake` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
70 /// The range of component `v` is `[500, 1000]`.
71 /// The range of component `n` is `[500, 1000]`.
72 fn get_npos_voters(v: u32, n: u32, ) -> Weight {
73 // Proof Size summary in bytes:
74 // Measured: `3141 + n * (907 ±0) + v * (391 ±0)`
75 // Estimated: `456136 + n * (3566 ±0) + v * (3566 ±0)`
76 // Minimum execution time: 51_663_357_000 picoseconds.
77 Weight::from_parts(52_097_498_000, 0)
78 .saturating_add(Weight::from_parts(0, 456136))
79 // Standard Error: 612_586
80 .saturating_add(Weight::from_parts(8_197_570, 0).saturating_mul(v.into()))
81 // Standard Error: 612_586
82 .saturating_add(Weight::from_parts(6_425_245, 0).saturating_mul(n.into()))
83 .saturating_add(T::DbWeight::get().reads(179))
84 .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
85 .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
86 .saturating_add(T::DbWeight::get().writes(1))
87 .saturating_add(Weight::from_parts(0, 3566).saturating_mul(n.into()))
88 .saturating_add(Weight::from_parts(0, 3566).saturating_mul(v.into()))
89 }
90 /// Storage: `Staking::CounterForValidators` (r:1 w:0)
91 /// Proof: `Staking::CounterForValidators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
92 /// Storage: `Staking::Validators` (r:1001 w:0)
93 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
94 /// The range of component `v` is `[500, 1000]`.
95 fn get_npos_targets(v: u32, ) -> Weight {
96 // Proof Size summary in bytes:
97 // Measured: `979 + v * (50 ±0)`
98 // Estimated: `3510 + v * (2520 ±0)`
99 // Minimum execution time: 3_284_895_000 picoseconds.
100 Weight::from_parts(56_353_528, 0)
101 .saturating_add(Weight::from_parts(0, 3510))
102 // Standard Error: 17_076
103 .saturating_add(Weight::from_parts(6_569_692, 0).saturating_mul(v.into()))
104 .saturating_add(T::DbWeight::get().reads(2))
105 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
106 .saturating_add(Weight::from_parts(0, 2520).saturating_mul(v.into()))
107 }
108 /// Storage: `Staking::Bonded` (r:1 w:1)
109 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
110 /// Storage: `Staking::Ledger` (r:1 w:1)
111 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
112 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
113 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
114 /// Storage: `Balances::Holds` (r:1 w:1)
115 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
116 /// Storage: `Staking::Payee` (r:0 w:1)
117 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
118 fn bond() -> Weight {
119 // Proof Size summary in bytes:
120 // Measured: `1035`
121 // Estimated: `4556`
122 // Minimum execution time: 83_047_000 picoseconds.
123 Weight::from_parts(86_033_000, 0)
124 .saturating_add(Weight::from_parts(0, 4556))
125 .saturating_add(T::DbWeight::get().reads(4))
126 .saturating_add(T::DbWeight::get().writes(4))
127 }
128 /// Storage: `Staking::Bonded` (r:1 w:0)
129 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
130 /// Storage: `Staking::Ledger` (r:1 w:1)
131 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
132 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
133 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
134 /// Storage: `Balances::Holds` (r:1 w:1)
135 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
136 /// Storage: `VoterList::ListNodes` (r:3 w:3)
137 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
138 /// Storage: `VoterList::ListBags` (r:2 w:2)
139 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
140 fn bond_extra() -> Weight {
141 // Proof Size summary in bytes:
142 // Measured: `1947`
143 // Estimated: `8877`
144 // Minimum execution time: 144_550_000 picoseconds.
145 Weight::from_parts(147_397_000, 0)
146 .saturating_add(Weight::from_parts(0, 8877))
147 .saturating_add(T::DbWeight::get().reads(9))
148 .saturating_add(T::DbWeight::get().writes(7))
149 }
150 /// Storage: `Staking::Ledger` (r:1 w:1)
151 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
152 /// Storage: `Staking::Bonded` (r:1 w:0)
153 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
154 /// Storage: `Staking::Nominators` (r:1 w:0)
155 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
156 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
157 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
158 /// Storage: `Staking::CurrentEra` (r:1 w:0)
159 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
160 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
161 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
162 /// Storage: `Balances::Holds` (r:1 w:0)
163 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
164 /// Storage: `VoterList::ListNodes` (r:3 w:3)
165 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
166 /// Storage: `VoterList::ListBags` (r:2 w:2)
167 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
168 fn unbond() -> Weight {
169 // Proof Size summary in bytes:
170 // Measured: `2154`
171 // Estimated: `8877`
172 // Minimum execution time: 123_462_000 picoseconds.
173 Weight::from_parts(126_937_000, 0)
174 .saturating_add(Weight::from_parts(0, 8877))
175 .saturating_add(T::DbWeight::get().reads(12))
176 .saturating_add(T::DbWeight::get().writes(6))
177 }
178 /// Storage: `Staking::Ledger` (r:1 w:1)
179 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
180 /// Storage: `Staking::Bonded` (r:1 w:0)
181 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
182 /// Storage: `Staking::CurrentEra` (r:1 w:0)
183 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
184 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
185 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
186 /// Storage: `Balances::Holds` (r:1 w:1)
187 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
188 /// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0)
189 /// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
190 /// Storage: `DelegatedStaking::Agents` (r:1 w:0)
191 /// Proof: `DelegatedStaking::Agents` (`max_values`: None, `max_size`: Some(120), added: 2595, mode: `MaxEncodedLen`)
192 /// The range of component `s` is `[0, 100]`.
193 fn withdraw_unbonded_update(s: u32, ) -> Weight {
194 // Proof Size summary in bytes:
195 // Measured: `1253`
196 // Estimated: `4556`
197 // Minimum execution time: 83_432_000 picoseconds.
198 Weight::from_parts(87_384_530, 0)
199 .saturating_add(Weight::from_parts(0, 4556))
200 // Standard Error: 2_287
201 .saturating_add(Weight::from_parts(70_855, 0).saturating_mul(s.into()))
202 .saturating_add(T::DbWeight::get().reads(7))
203 .saturating_add(T::DbWeight::get().writes(2))
204 }
205 /// Storage: `Staking::Ledger` (r:1 w:1)
206 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
207 /// Storage: `Staking::Bonded` (r:1 w:1)
208 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
209 /// Storage: `Staking::CurrentEra` (r:1 w:0)
210 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
211 /// Storage: `Staking::SlashingSpans` (r:1 w:1)
212 /// Proof: `Staking::SlashingSpans` (`max_values`: None, `max_size`: None, mode: `Measured`)
213 /// Storage: `Staking::VirtualStakers` (r:1 w:1)
214 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
215 /// Storage: `Balances::Holds` (r:1 w:1)
216 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
217 /// Storage: `Staking::Validators` (r:1 w:0)
218 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
219 /// Storage: `Staking::Nominators` (r:1 w:1)
220 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
221 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
222 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
223 /// Storage: `VoterList::ListNodes` (r:2 w:2)
224 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
225 /// Storage: `VoterList::ListBags` (r:1 w:1)
226 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
227 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
228 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
229 /// Storage: `Staking::Payee` (r:0 w:1)
230 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
231 /// Storage: `Staking::SpanSlash` (r:0 w:100)
232 /// Proof: `Staking::SpanSlash` (`max_values`: None, `max_size`: Some(76), added: 2551, mode: `MaxEncodedLen`)
233 /// The range of component `s` is `[0, 100]`.
234 fn withdraw_unbonded_kill(s: u32, ) -> Weight {
235 // Proof Size summary in bytes:
236 // Measured: `2153 + s * (4 ±0)`
237 // Estimated: `6248 + s * (4 ±0)`
238 // Minimum execution time: 127_234_000 picoseconds.
239 Weight::from_parts(143_870_190, 0)
240 .saturating_add(Weight::from_parts(0, 6248))
241 // Standard Error: 7_812
242 .saturating_add(Weight::from_parts(1_530_367, 0).saturating_mul(s.into()))
243 .saturating_add(T::DbWeight::get().reads(13))
244 .saturating_add(T::DbWeight::get().writes(12))
245 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
246 .saturating_add(Weight::from_parts(0, 4).saturating_mul(s.into()))
247 }
248 /// Storage: `Staking::Ledger` (r:1 w:0)
249 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
250 /// Storage: `Staking::Bonded` (r:1 w:0)
251 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
252 /// Storage: `Staking::MinValidatorBond` (r:1 w:0)
253 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
254 /// Storage: `Staking::MinCommission` (r:1 w:0)
255 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
256 /// Storage: `Staking::Validators` (r:1 w:1)
257 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
258 /// Storage: `Staking::MaxValidatorsCount` (r:1 w:0)
259 /// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
260 /// Storage: `Staking::Nominators` (r:1 w:0)
261 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
262 /// Storage: `VoterList::ListNodes` (r:1 w:1)
263 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
264 /// Storage: `VoterList::ListBags` (r:1 w:1)
265 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
266 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
267 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
268 /// Storage: `Staking::CounterForValidators` (r:1 w:1)
269 /// Proof: `Staking::CounterForValidators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
270 fn validate() -> Weight {
271 // Proof Size summary in bytes:
272 // Measured: `1334`
273 // Estimated: `4556`
274 // Minimum execution time: 72_930_000 picoseconds.
275 Weight::from_parts(76_053_000, 0)
276 .saturating_add(Weight::from_parts(0, 4556))
277 .saturating_add(T::DbWeight::get().reads(11))
278 .saturating_add(T::DbWeight::get().writes(5))
279 }
280 /// Storage: `Staking::Ledger` (r:1 w:0)
281 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
282 /// Storage: `Staking::Bonded` (r:1 w:0)
283 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
284 /// Storage: `Staking::Nominators` (r:128 w:128)
285 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
286 /// The range of component `k` is `[1, 128]`.
287 fn kick(k: u32, ) -> Weight {
288 // Proof Size summary in bytes:
289 // Measured: `1811 + k * (572 ±0)`
290 // Estimated: `4556 + k * (3033 ±0)`
291 // Minimum execution time: 46_483_000 picoseconds.
292 Weight::from_parts(43_578_377, 0)
293 .saturating_add(Weight::from_parts(0, 4556))
294 // Standard Error: 13_150
295 .saturating_add(Weight::from_parts(8_973_065, 0).saturating_mul(k.into()))
296 .saturating_add(T::DbWeight::get().reads(2))
297 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(k.into())))
298 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(k.into())))
299 .saturating_add(Weight::from_parts(0, 3033).saturating_mul(k.into()))
300 }
301 /// Storage: `Staking::Ledger` (r:1 w:0)
302 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
303 /// Storage: `Staking::Bonded` (r:1 w:0)
304 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
305 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
306 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
307 /// Storage: `Staking::Nominators` (r:1 w:1)
308 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
309 /// Storage: `Staking::MaxNominatorsCount` (r:1 w:0)
310 /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
311 /// Storage: `Staking::Validators` (r:17 w:0)
312 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
313 /// Storage: `Staking::CurrentEra` (r:1 w:0)
314 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
315 /// Storage: `VoterList::ListNodes` (r:2 w:2)
316 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
317 /// Storage: `VoterList::ListBags` (r:1 w:1)
318 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
319 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
320 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
321 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
322 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
323 /// The range of component `n` is `[1, 16]`.
324 fn nominate(n: u32, ) -> Weight {
325 // Proof Size summary in bytes:
326 // Measured: `1831 + n * (102 ±0)`
327 // Estimated: `6248 + n * (2520 ±0)`
328 // Minimum execution time: 88_847_000 picoseconds.
329 Weight::from_parts(88_398_054, 0)
330 .saturating_add(Weight::from_parts(0, 6248))
331 // Standard Error: 36_526
332 .saturating_add(Weight::from_parts(5_436_163, 0).saturating_mul(n.into()))
333 .saturating_add(T::DbWeight::get().reads(12))
334 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
335 .saturating_add(T::DbWeight::get().writes(6))
336 .saturating_add(Weight::from_parts(0, 2520).saturating_mul(n.into()))
337 }
338 /// Storage: `Staking::Ledger` (r:1 w:0)
339 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
340 /// Storage: `Staking::Bonded` (r:1 w:0)
341 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
342 /// Storage: `Staking::Validators` (r:1 w:0)
343 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
344 /// Storage: `Staking::Nominators` (r:1 w:1)
345 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
346 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
347 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
348 /// Storage: `VoterList::ListNodes` (r:2 w:2)
349 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
350 /// Storage: `VoterList::ListBags` (r:1 w:1)
351 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
352 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
353 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
354 fn chill() -> Weight {
355 // Proof Size summary in bytes:
356 // Measured: `1780`
357 // Estimated: `6248`
358 // Minimum execution time: 77_130_000 picoseconds.
359 Weight::from_parts(78_956_000, 0)
360 .saturating_add(Weight::from_parts(0, 6248))
361 .saturating_add(T::DbWeight::get().reads(9))
362 .saturating_add(T::DbWeight::get().writes(6))
363 }
364 /// Storage: `Staking::Ledger` (r:1 w:0)
365 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
366 /// Storage: `Staking::Bonded` (r:1 w:0)
367 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
368 /// Storage: `Staking::Payee` (r:0 w:1)
369 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
370 fn set_payee() -> Weight {
371 // Proof Size summary in bytes:
372 // Measured: `898`
373 // Estimated: `4556`
374 // Minimum execution time: 28_497_000 picoseconds.
375 Weight::from_parts(29_560_000, 0)
376 .saturating_add(Weight::from_parts(0, 4556))
377 .saturating_add(T::DbWeight::get().reads(2))
378 .saturating_add(T::DbWeight::get().writes(1))
379 }
380 /// Storage: `Staking::Ledger` (r:1 w:0)
381 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
382 /// Storage: `Staking::Bonded` (r:1 w:0)
383 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
384 /// Storage: `Staking::Payee` (r:1 w:1)
385 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
386 fn update_payee() -> Weight {
387 // Proof Size summary in bytes:
388 // Measured: `965`
389 // Estimated: `4556`
390 // Minimum execution time: 32_620_000 picoseconds.
391 Weight::from_parts(33_775_000, 0)
392 .saturating_add(Weight::from_parts(0, 4556))
393 .saturating_add(T::DbWeight::get().reads(3))
394 .saturating_add(T::DbWeight::get().writes(1))
395 }
396 /// Storage: `Staking::Bonded` (r:1 w:1)
397 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
398 /// Storage: `Staking::Ledger` (r:2 w:2)
399 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
400 fn set_controller() -> Weight {
401 // Proof Size summary in bytes:
402 // Measured: `898`
403 // Estimated: `8122`
404 // Minimum execution time: 32_754_000 picoseconds.
405 Weight::from_parts(33_259_000, 0)
406 .saturating_add(Weight::from_parts(0, 8122))
407 .saturating_add(T::DbWeight::get().reads(3))
408 .saturating_add(T::DbWeight::get().writes(3))
409 }
410 /// Storage: `Staking::ValidatorCount` (r:0 w:1)
411 /// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
412 fn set_validator_count() -> Weight {
413 // Proof Size summary in bytes:
414 // Measured: `0`
415 // Estimated: `0`
416 // Minimum execution time: 2_596_000 picoseconds.
417 Weight::from_parts(2_776_000, 0)
418 .saturating_add(Weight::from_parts(0, 0))
419 .saturating_add(T::DbWeight::get().writes(1))
420 }
421 /// Storage: `Staking::ForceEra` (r:0 w:1)
422 /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
423 fn force_no_eras() -> Weight {
424 // Proof Size summary in bytes:
425 // Measured: `0`
426 // Estimated: `0`
427 // Minimum execution time: 8_027_000 picoseconds.
428 Weight::from_parts(8_369_000, 0)
429 .saturating_add(Weight::from_parts(0, 0))
430 .saturating_add(T::DbWeight::get().writes(1))
431 }
432 /// Storage: `Staking::ForceEra` (r:0 w:1)
433 /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
434 fn force_new_era() -> Weight {
435 // Proof Size summary in bytes:
436 // Measured: `0`
437 // Estimated: `0`
438 // Minimum execution time: 7_861_000 picoseconds.
439 Weight::from_parts(8_307_000, 0)
440 .saturating_add(Weight::from_parts(0, 0))
441 .saturating_add(T::DbWeight::get().writes(1))
442 }
443 /// Storage: `Staking::ForceEra` (r:0 w:1)
444 /// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
445 fn force_new_era_always() -> Weight {
446 // Proof Size summary in bytes:
447 // Measured: `0`
448 // Estimated: `0`
449 // Minimum execution time: 7_992_000 picoseconds.
450 Weight::from_parts(8_330_000, 0)
451 .saturating_add(Weight::from_parts(0, 0))
452 .saturating_add(T::DbWeight::get().writes(1))
453 }
454 /// Storage: `Staking::Invulnerables` (r:0 w:1)
455 /// Proof: `Staking::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`)
456 /// The range of component `v` is `[0, 20]`.
457 fn set_invulnerables(v: u32, ) -> Weight {
458 // Proof Size summary in bytes:
459 // Measured: `0`
460 // Estimated: `0`
461 // Minimum execution time: 2_908_000 picoseconds.
462 Weight::from_parts(3_326_727, 0)
463 .saturating_add(Weight::from_parts(0, 0))
464 // Standard Error: 909
465 .saturating_add(Weight::from_parts(29_286, 0).saturating_mul(v.into()))
466 .saturating_add(T::DbWeight::get().writes(1))
467 }
468 /// Storage: `Staking::Ledger` (r:1502 w:1502)
469 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
470 /// Storage: `Staking::Bonded` (r:751 w:751)
471 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
472 /// Storage: `Staking::Payee` (r:751 w:0)
473 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
474 /// The range of component `u` is `[0, 751]`.
475 fn deprecate_controller_batch(u: u32, ) -> Weight {
476 // Proof Size summary in bytes:
477 // Measured: `713 + u * (227 ±0)`
478 // Estimated: `990 + u * (7132 ±0)`
479 // Minimum execution time: 5_817_000 picoseconds.
480 Weight::from_parts(5_936_000, 0)
481 .saturating_add(Weight::from_parts(0, 990))
482 // Standard Error: 54_063
483 .saturating_add(Weight::from_parts(29_689_171, 0).saturating_mul(u.into()))
484 .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(u.into())))
485 .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(u.into())))
486 .saturating_add(Weight::from_parts(0, 7132).saturating_mul(u.into()))
487 }
488 /// Storage: `Staking::SlashingSpans` (r:1 w:1)
489 /// Proof: `Staking::SlashingSpans` (`max_values`: None, `max_size`: None, mode: `Measured`)
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(1091), added: 3566, 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(103), added: 2578, 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::ListNodes` (r:2 w:2)
507 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
508 /// Storage: `VoterList::ListBags` (r:1 w:1)
509 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
510 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
511 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
512 /// Storage: `Staking::Payee` (r:0 w:1)
513 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
514 /// Storage: `Staking::SpanSlash` (r:0 w:100)
515 /// Proof: `Staking::SpanSlash` (`max_values`: None, `max_size`: Some(76), added: 2551, mode: `MaxEncodedLen`)
516 /// The range of component `s` is `[0, 100]`.
517 fn force_unstake(s: u32, ) -> Weight {
518 // Proof Size summary in bytes:
519 // Measured: `2153 + s * (4 ±0)`
520 // Estimated: `6248 + s * (4 ±0)`
521 // Minimum execution time: 123_490_000 picoseconds.
522 Weight::from_parts(137_249_494, 0)
523 .saturating_add(Weight::from_parts(0, 6248))
524 // Standard Error: 6_715
525 .saturating_add(Weight::from_parts(1_530_644, 0).saturating_mul(s.into()))
526 .saturating_add(T::DbWeight::get().reads(13))
527 .saturating_add(T::DbWeight::get().writes(13))
528 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
529 .saturating_add(Weight::from_parts(0, 4).saturating_mul(s.into()))
530 }
531 /// Storage: `Staking::UnappliedSlashes` (r:999 w:999)
532 /// Proof: `Staking::UnappliedSlashes` (`max_values`: None, `max_size`: Some(3231), added: 5706, mode: `MaxEncodedLen`)
533 /// The range of component `s` is `[1, 1000]`.
534 fn cancel_deferred_slash(s: u32, ) -> Weight {
535 // Proof Size summary in bytes:
536 // Measured: `707 + s * (122 ±0)`
537 // Estimated: `990 + s * (5706 ±0)`
538 // Minimum execution time: 20_676_000 picoseconds.
539 Weight::from_parts(21_507_000, 0)
540 .saturating_add(Weight::from_parts(0, 990))
541 // Standard Error: 20_065
542 .saturating_add(Weight::from_parts(9_154_355, 0).saturating_mul(s.into()))
543 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
544 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
545 .saturating_add(Weight::from_parts(0, 5706).saturating_mul(s.into()))
546 }
547 /// Storage: `Staking::Bonded` (r:65 w:0)
548 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
549 /// Storage: `Staking::Ledger` (r:65 w:65)
550 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
551 /// Storage: `Staking::ErasStakersClipped` (r:1 w:0)
552 /// Proof: `Staking::ErasStakersClipped` (`max_values`: None, `max_size`: None, mode: `Measured`)
553 /// Storage: `Staking::ErasStakersOverview` (r:1 w:0)
554 /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
555 /// Storage: `Staking::ClaimedRewards` (r:1 w:1)
556 /// Proof: `Staking::ClaimedRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
557 /// Storage: `Staking::CurrentEra` (r:1 w:0)
558 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
559 /// Storage: `Staking::ErasValidatorReward` (r:1 w:0)
560 /// Proof: `Staking::ErasValidatorReward` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
561 /// Storage: `Staking::Bonded` (r:65 w:0)
562 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
563 /// Storage: `Staking::Ledger` (r:65 w:65)
564 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
565 /// Storage: `System::Account` (r:65 w:65)
566 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
567 /// Storage: `Staking::VirtualStakers` (r:65 w:0)
568 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
569 /// Storage: `Balances::Holds` (r:65 w:65)
570 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
571 /// Storage: `Staking::ErasStakersPaged` (r:1 w:0)
572 /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: None, mode: `Measured`)
573 /// Storage: `Staking::ErasRewardPoints` (r:1 w:0)
574 /// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: None, mode: `Measured`)
575 /// Storage: `Staking::ErasValidatorPrefs` (r:1 w:0)
576 /// Proof: `Staking::ErasValidatorPrefs` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
577 /// Storage: `Staking::Payee` (r:65 w:0)
578 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
579 /// The range of component `n` is `[0, 64]`.
580 fn payout_stakers_alive_staked(n: u32, ) -> Weight {
581 // Proof Size summary in bytes:
582 // Measured: `8200 + n * (389 ±0)`
583 // Estimated: `10730 + n * (3566 ±0)`
584 // Minimum execution time: 220_979_000 picoseconds.
585 Weight::from_parts(291_787_302, 0)
586 .saturating_add(Weight::from_parts(0, 10730))
587 // Standard Error: 104_894
588 .saturating_add(Weight::from_parts(87_146_778, 0).saturating_mul(n.into()))
589 .saturating_add(T::DbWeight::get().reads(13))
590 .saturating_add(T::DbWeight::get().reads((6_u64).saturating_mul(n.into())))
591 .saturating_add(T::DbWeight::get().writes(4))
592 .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(n.into())))
593 .saturating_add(Weight::from_parts(0, 3566).saturating_mul(n.into()))
594 }
595 /// Storage: `Staking::Ledger` (r:1 w:1)
596 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
597 /// Storage: `Staking::Bonded` (r:1 w:0)
598 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
599 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
600 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
601 /// Storage: `Balances::Holds` (r:1 w:0)
602 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
603 /// Storage: `VoterList::ListNodes` (r:3 w:3)
604 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
605 /// Storage: `VoterList::ListBags` (r:2 w:2)
606 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
607 /// The range of component `l` is `[1, 32]`.
608 fn rebond(l: u32, ) -> Weight {
609 // Proof Size summary in bytes:
610 // Measured: `1948 + l * (5 ±0)`
611 // Estimated: `8877`
612 // Minimum execution time: 100_837_000 picoseconds.
613 Weight::from_parts(104_761_938, 0)
614 .saturating_add(Weight::from_parts(0, 8877))
615 // Standard Error: 7_180
616 .saturating_add(Weight::from_parts(46_074, 0).saturating_mul(l.into()))
617 .saturating_add(T::DbWeight::get().reads(9))
618 .saturating_add(T::DbWeight::get().writes(6))
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::Bonded` (r:1 w:1)
623 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
624 /// Storage: `Staking::Ledger` (r:1 w:1)
625 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
626 /// Storage: `Staking::SlashingSpans` (r:1 w:1)
627 /// Proof: `Staking::SlashingSpans` (`max_values`: None, `max_size`: None, mode: `Measured`)
628 /// Storage: `Balances::Holds` (r:1 w:1)
629 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
630 /// Storage: `Staking::Validators` (r:1 w:0)
631 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
632 /// Storage: `Staking::Nominators` (r:1 w:1)
633 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
634 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
635 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
636 /// Storage: `VoterList::ListNodes` (r:2 w:2)
637 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
638 /// Storage: `VoterList::ListBags` (r:1 w:1)
639 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
640 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
641 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
642 /// Storage: `Staking::Payee` (r:0 w:1)
643 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
644 /// Storage: `Staking::SpanSlash` (r:0 w:100)
645 /// Proof: `Staking::SpanSlash` (`max_values`: None, `max_size`: Some(76), added: 2551, mode: `MaxEncodedLen`)
646 /// The range of component `s` is `[1, 100]`.
647 fn reap_stash(s: u32, ) -> Weight {
648 // Proof Size summary in bytes:
649 // Measured: `2153 + s * (4 ±0)`
650 // Estimated: `6248 + s * (4 ±0)`
651 // Minimum execution time: 137_012_000 picoseconds.
652 Weight::from_parts(146_678_342, 0)
653 .saturating_add(Weight::from_parts(0, 6248))
654 // Standard Error: 5_929
655 .saturating_add(Weight::from_parts(1_520_249, 0).saturating_mul(s.into()))
656 .saturating_add(T::DbWeight::get().reads(12))
657 .saturating_add(T::DbWeight::get().writes(12))
658 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
659 .saturating_add(Weight::from_parts(0, 4).saturating_mul(s.into()))
660 }
661
662 /// Storage: `VoterList::CounterForListNodes` (r:1 w:0)
663 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
664 /// Storage: `VoterList::ListBags` (r:178 w:0)
665 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
666 /// Storage: `VoterList::ListNodes` (r:110 w:0)
667 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
668 /// Storage: `Staking::Bonded` (r:110 w:0)
669 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
670 /// Storage: `Staking::Ledger` (r:110 w:0)
671 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
672 /// Storage: `Staking::Nominators` (r:110 w:0)
673 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
674 /// Storage: `Staking::Validators` (r:11 w:0)
675 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
676 /// Storage: `Staking::CounterForValidators` (r:1 w:0)
677 /// Proof: `Staking::CounterForValidators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
678 /// Storage: `Staking::ValidatorCount` (r:1 w:0)
679 /// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
680 /// Storage: `Staking::MinimumValidatorCount` (r:1 w:0)
681 /// Proof: `Staking::MinimumValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
682 /// Storage: `Staking::CurrentEra` (r:1 w:1)
683 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
684 /// Storage: `Staking::ErasValidatorPrefs` (r:0 w:10)
685 /// Proof: `Staking::ErasValidatorPrefs` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
686 /// Storage: `Staking::ErasStakersPaged` (r:0 w:20)
687 /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: None, mode: `Measured`)
688 /// Storage: `Staking::ErasStakersOverview` (r:0 w:10)
689 /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
690 /// Storage: `Staking::ErasTotalStake` (r:0 w:1)
691 /// Proof: `Staking::ErasTotalStake` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
692 /// Storage: `Staking::ErasStartSessionIndex` (r:0 w:1)
693 /// Proof: `Staking::ErasStartSessionIndex` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
694 /// Storage: `Staking::MinimumActiveStake` (r:0 w:1)
695 /// Proof: `Staking::MinimumActiveStake` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
696 /// The range of component `v` is `[1, 10]`.
697 /// The range of component `n` is `[0, 100]`.
698 fn new_era(v: u32, n: u32, ) -> Weight {
699 // Proof Size summary in bytes:
700 // Measured: `0 + n * (716 ±0) + v * (3594 ±0)`
701 // Estimated: `456136 + n * (3566 ±4) + v * (3566 ±40)`
702 // Minimum execution time: 654_756_000 picoseconds.
703 Weight::from_parts(658_861_000, 0)
704 .saturating_add(Weight::from_parts(0, 456136))
705 // Standard Error: 2_078_102
706 .saturating_add(Weight::from_parts(67_775_668, 0).saturating_mul(v.into()))
707 // Standard Error: 207_071
708 .saturating_add(Weight::from_parts(22_624_711, 0).saturating_mul(n.into()))
709 .saturating_add(T::DbWeight::get().reads(184))
710 .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
711 .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
712 .saturating_add(T::DbWeight::get().writes(8))
713 .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(v.into())))
714 .saturating_add(Weight::from_parts(0, 3566).saturating_mul(n.into()))
715 .saturating_add(Weight::from_parts(0, 3566).saturating_mul(v.into()))
716 }
717 /// Storage: `Staking::MinCommission` (r:0 w:1)
718 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
719 /// Storage: `Staking::MinValidatorBond` (r:0 w:1)
720 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
721 /// Storage: `Staking::MaxValidatorsCount` (r:0 w:1)
722 /// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
723 /// Storage: `Staking::MaxStakedRewards` (r:0 w:1)
724 /// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
725 /// Storage: `Staking::ChillThreshold` (r:0 w:1)
726 /// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
727 /// Storage: `Staking::MaxNominatorsCount` (r:0 w:1)
728 /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
729 /// Storage: `Staking::MinNominatorBond` (r:0 w:1)
730 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
731 fn set_staking_configs_all_set() -> Weight {
732 // Proof Size summary in bytes:
733 // Measured: `0`
734 // Estimated: `0`
735 // Minimum execution time: 4_595_000 picoseconds.
736 Weight::from_parts(4_926_000, 0)
737 .saturating_add(Weight::from_parts(0, 0))
738 .saturating_add(T::DbWeight::get().writes(7))
739 }
740 /// Storage: `Staking::MinCommission` (r:0 w:1)
741 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
742 /// Storage: `Staking::MinValidatorBond` (r:0 w:1)
743 /// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
744 /// Storage: `Staking::MaxValidatorsCount` (r:0 w:1)
745 /// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
746 /// Storage: `Staking::MaxStakedRewards` (r:0 w:1)
747 /// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
748 /// Storage: `Staking::ChillThreshold` (r:0 w:1)
749 /// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
750 /// Storage: `Staking::MaxNominatorsCount` (r:0 w:1)
751 /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
752 /// Storage: `Staking::MinNominatorBond` (r:0 w:1)
753 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
754 fn set_staking_configs_all_remove() -> Weight {
755 // Proof Size summary in bytes:
756 // Measured: `0`
757 // Estimated: `0`
758 // Minimum execution time: 4_409_000 picoseconds.
759 Weight::from_parts(4_633_000, 0)
760 .saturating_add(Weight::from_parts(0, 0))
761 .saturating_add(T::DbWeight::get().writes(7))
762 }
763 /// Storage: `Staking::Bonded` (r:1 w:0)
764 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
765 /// Storage: `Staking::Ledger` (r:1 w:0)
766 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
767 /// Storage: `Staking::Nominators` (r:1 w:1)
768 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
769 /// Storage: `Staking::ChillThreshold` (r:1 w:0)
770 /// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
771 /// Storage: `Staking::MaxNominatorsCount` (r:1 w:0)
772 /// Proof: `Staking::MaxNominatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
773 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
774 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
775 /// Storage: `Staking::MinNominatorBond` (r:1 w:0)
776 /// Proof: `Staking::MinNominatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
777 /// Storage: `Staking::Validators` (r:1 w:0)
778 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
779 /// Storage: `VoterList::ListNodes` (r:2 w:2)
780 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
781 /// Storage: `VoterList::ListBags` (r:1 w:1)
782 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
783 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
784 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
785 fn chill_other() -> Weight {
786 // Proof Size summary in bytes:
787 // Measured: `1903`
788 // Estimated: `6248`
789 // Minimum execution time: 93_808_000 picoseconds.
790 Weight::from_parts(96_458_000, 0)
791 .saturating_add(Weight::from_parts(0, 6248))
792 .saturating_add(T::DbWeight::get().reads(12))
793 .saturating_add(T::DbWeight::get().writes(6))
794 }
795 /// Storage: `Staking::MinCommission` (r:1 w:0)
796 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
797 /// Storage: `Staking::Validators` (r:1 w:1)
798 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
799 fn force_apply_min_commission() -> Weight {
800 // Proof Size summary in bytes:
801 // Measured: `691`
802 // Estimated: `3510`
803 // Minimum execution time: 18_769_000 picoseconds.
804 Weight::from_parts(19_635_000, 0)
805 .saturating_add(Weight::from_parts(0, 3510))
806 .saturating_add(T::DbWeight::get().reads(2))
807 .saturating_add(T::DbWeight::get().writes(1))
808 }
809 /// Storage: `Staking::MinCommission` (r:0 w:1)
810 /// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
811 fn set_min_commission() -> Weight {
812 // Proof Size summary in bytes:
813 // Measured: `0`
814 // Estimated: `0`
815 // Minimum execution time: 2_785_000 picoseconds.
816 Weight::from_parts(2_978_000, 0)
817 .saturating_add(Weight::from_parts(0, 0))
818 .saturating_add(T::DbWeight::get().writes(1))
819 }
820 /// Storage: `System::Account` (r:1 w:0)
821 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
822 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
823 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
824 /// Storage: `Balances::Holds` (r:1 w:0)
825 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
826 /// Storage: `Balances::Locks` (r:1 w:0)
827 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
828 /// Storage: `Staking::Bonded` (r:1 w:1)
829 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
830 /// Storage: `Staking::Ledger` (r:1 w:1)
831 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
832 fn restore_ledger() -> Weight {
833 // Proof Size summary in bytes:
834 // Measured: `1040`
835 // Estimated: `4764`
836 // Minimum execution time: 56_516_000 picoseconds.
837 Weight::from_parts(57_947_000, 0)
838 .saturating_add(Weight::from_parts(0, 4764))
839 .saturating_add(T::DbWeight::get().reads(6))
840 .saturating_add(T::DbWeight::get().writes(2))
841 }
842 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
843 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
844 /// Storage: `Staking::Bonded` (r:1 w:0)
845 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
846 /// Storage: `Staking::Ledger` (r:1 w:0)
847 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
848 /// Storage: `Balances::Locks` (r:1 w:1)
849 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
850 /// Storage: `Balances::Freezes` (r:1 w:0)
851 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
852 /// Storage: `Balances::Holds` (r:1 w:1)
853 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
854 fn migrate_currency() -> Weight {
855 // Proof Size summary in bytes:
856 // Measured: `1209`
857 // Estimated: `4764`
858 // Minimum execution time: 102_058_000 picoseconds.
859 Weight::from_parts(104_291_000, 0)
860 .saturating_add(Weight::from_parts(0, 4764))
861 .saturating_add(T::DbWeight::get().reads(6))
862 .saturating_add(T::DbWeight::get().writes(2))
863 }
864 /// Storage: `Staking::CurrentEra` (r:1 w:0)
865 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
866 /// Storage: `Staking::ErasStartSessionIndex` (r:1 w:0)
867 /// Proof: `Staking::ErasStartSessionIndex` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
868 /// Storage: `Staking::ActiveEra` (r:1 w:0)
869 /// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
870 /// Storage: `Staking::Invulnerables` (r:1 w:0)
871 /// Proof: `Staking::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`)
872 /// Storage: `Staking::ErasStakersOverview` (r:1 w:0)
873 /// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
874 /// Storage: `Session::DisabledValidators` (r:1 w:1)
875 /// Proof: `Session::DisabledValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
876 /// Storage: `Session::Validators` (r:1 w:0)
877 /// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
878 /// Storage: `Staking::ValidatorSlashInEra` (r:1 w:1)
879 /// Proof: `Staking::ValidatorSlashInEra` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
880 /// Storage: `Staking::OffenceQueue` (r:1 w:1)
881 /// Proof: `Staking::OffenceQueue` (`max_values`: None, `max_size`: Some(101), added: 2576, mode: `MaxEncodedLen`)
882 /// Storage: `Staking::OffenceQueueEras` (r:1 w:1)
883 /// Proof: `Staking::OffenceQueueEras` (`max_values`: Some(1), `max_size`: Some(2690), added: 3185, mode: `MaxEncodedLen`)
884 fn manual_slash() -> Weight {
885 // Proof Size summary in bytes:
886 // Measured: `514`
887 // Estimated: `4175`
888 // Minimum execution time: 30_000_000 picoseconds.
889 Weight::from_parts(33_000_000, 4175)
890 .saturating_add(T::DbWeight::get().reads(10_u64))
891 .saturating_add(T::DbWeight::get().writes(4_u64))
892 }
893}