pallet_fast_unstake/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// This file is part of Substrate.
19
20// Copyright (C) Parity Technologies (UK) Ltd.
21// SPDX-License-Identifier: Apache-2.0
22
23// Licensed under the Apache License, Version 2.0 (the "License");
24// you may not use this file except in compliance with the License.
25// You may obtain a copy of the License at
26//
27// http://www.apache.org/licenses/LICENSE-2.0
28//
29// Unless required by applicable law or agreed to in writing, software
30// distributed under the License is distributed on an "AS IS" BASIS,
31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32// See the License for the specific language governing permissions and
33// limitations under the License.
34
35//! Autogenerated weights for `pallet_fast_unstake`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `4563561839a5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
41//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
42
43// Executed Command:
44// frame-omni-bencher
45// v1
46// benchmark
47// pallet
48// --extrinsic=*
49// --runtime=target/production/wbuild/kitchensink-runtime/kitchensink_runtime.wasm
50// --pallet=pallet_fast_unstake
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/fast-unstake/src/weights.rs
53// --wasm-execution=compiled
54// --steps=50
55// --repeat=20
56// --heap-pages=4096
57// --template=substrate/.maintain/frame-weight-template.hbs
58// --no-storage-info
59// --no-min-squares
60// --no-median-slopes
61// --genesis-builder-policy=none
62// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage,pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier
63
64#![cfg_attr(rustfmt, rustfmt_skip)]
65#![allow(unused_parens)]
66#![allow(unused_imports)]
67#![allow(missing_docs)]
68#![allow(dead_code)]
69
70use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
71use core::marker::PhantomData;
72
73/// Weight functions needed for `pallet_fast_unstake`.
74pub trait WeightInfo {
75 fn on_idle_unstake(b: u32, ) -> Weight;
76 fn on_idle_check(v: u32, b: u32, ) -> Weight;
77 fn register_fast_unstake() -> Weight;
78 fn deregister() -> Weight;
79 fn control() -> Weight;
80}
81
82/// Weights for `pallet_fast_unstake` using the Substrate node and recommended hardware.
83pub struct SubstrateWeight<T>(PhantomData<T>);
84impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
85 /// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
86 /// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
87 /// Storage: `Staking::ValidatorCount` (r:1 w:0)
88 /// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
89 /// Storage: `FastUnstake::Head` (r:1 w:1)
90 /// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
91 /// Storage: `FastUnstake::CounterForQueue` (r:1 w:0)
92 /// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
93 /// Storage: `MultiBlock::CurrentPhase` (r:1 w:0)
94 /// Proof: `MultiBlock::CurrentPhase` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
95 /// Storage: `Staking::CurrentEra` (r:1 w:0)
96 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
97 /// Storage: `Staking::SlashingSpans` (r:64 w:0)
98 /// Proof: `Staking::SlashingSpans` (`max_values`: None, `max_size`: None, mode: `Measured`)
99 /// Storage: `Staking::Bonded` (r:64 w:64)
100 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
101 /// Storage: `Staking::Ledger` (r:64 w:64)
102 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
103 /// Storage: `Staking::VirtualStakers` (r:64 w:64)
104 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
105 /// Storage: `Balances::Holds` (r:64 w:64)
106 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(427), added: 2902, mode: `MaxEncodedLen`)
107 /// Storage: `System::Account` (r:64 w:64)
108 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
109 /// Storage: `Staking::Validators` (r:64 w:0)
110 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
111 /// Storage: `Staking::Nominators` (r:64 w:0)
112 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
113 /// Storage: `Staking::Payee` (r:0 w:64)
114 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
115 /// The range of component `b` is `[1, 64]`.
116 fn on_idle_unstake(b: u32, ) -> Weight {
117 // Proof Size summary in bytes:
118 // Measured: `57 + b * (443 ±0)`
119 // Estimated: `7253 + b * (3566 ±0)`
120 // Minimum execution time: 86_174_000 picoseconds.
121 Weight::from_parts(9_455_381, 7253)
122 // Standard Error: 41_683
123 .saturating_add(Weight::from_parts(72_236_736, 0).saturating_mul(b.into()))
124 .saturating_add(T::DbWeight::get().reads(6_u64))
125 .saturating_add(T::DbWeight::get().reads((8_u64).saturating_mul(b.into())))
126 .saturating_add(T::DbWeight::get().writes(1_u64))
127 .saturating_add(T::DbWeight::get().writes((6_u64).saturating_mul(b.into())))
128 .saturating_add(Weight::from_parts(0, 3566).saturating_mul(b.into()))
129 }
130 /// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
131 /// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
132 /// Storage: `Staking::ValidatorCount` (r:1 w:0)
133 /// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
134 /// Storage: `FastUnstake::Head` (r:1 w:1)
135 /// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
136 /// Storage: `FastUnstake::CounterForQueue` (r:1 w:0)
137 /// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
138 /// Storage: `MultiBlock::CurrentPhase` (r:1 w:0)
139 /// Proof: `MultiBlock::CurrentPhase` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
140 /// Storage: `Staking::CurrentEra` (r:1 w:0)
141 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
142 /// Storage: `Staking::ErasStakersPaged` (r:257 w:0)
143 /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: None, mode: `Measured`)
144 /// The range of component `v` is `[1, 256]`.
145 /// The range of component `b` is `[1, 64]`.
146 fn on_idle_check(v: u32, b: u32, ) -> Weight {
147 // Proof Size summary in bytes:
148 // Measured: `850 + b * (48 ±0) + v * (1318 ±0)`
149 // Estimated: `7253 + b * (49 ±0) + v * (3794 ±0)`
150 // Minimum execution time: 517_331_000 picoseconds.
151 Weight::from_parts(530_541_000, 7253)
152 // Standard Error: 2_918_095
153 .saturating_add(Weight::from_parts(95_402_277, 0).saturating_mul(v.into()))
154 // Standard Error: 11_675_633
155 .saturating_add(Weight::from_parts(365_913_743, 0).saturating_mul(b.into()))
156 .saturating_add(T::DbWeight::get().reads(7_u64))
157 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
158 .saturating_add(T::DbWeight::get().writes(1_u64))
159 .saturating_add(Weight::from_parts(0, 49).saturating_mul(b.into()))
160 .saturating_add(Weight::from_parts(0, 3794).saturating_mul(v.into()))
161 }
162 /// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
163 /// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
164 /// Storage: `Staking::Ledger` (r:1 w:1)
165 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
166 /// Storage: `Staking::Bonded` (r:1 w:0)
167 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
168 /// Storage: `FastUnstake::Queue` (r:1 w:1)
169 /// Proof: `FastUnstake::Queue` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
170 /// Storage: `FastUnstake::Head` (r:1 w:0)
171 /// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
172 /// Storage: `Staking::Validators` (r:1 w:0)
173 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
174 /// Storage: `Staking::Nominators` (r:1 w:1)
175 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
176 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
177 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
178 /// Storage: `VoterList::ListNodes` (r:1 w:1)
179 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
180 /// Storage: `VoterList::ListBags` (r:1 w:1)
181 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
182 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
183 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
184 /// Storage: `Staking::CurrentEra` (r:1 w:0)
185 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
186 /// Storage: `Staking::VirtualStakers` (r:1 w:0)
187 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
188 /// Storage: `Balances::Holds` (r:1 w:0)
189 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(427), added: 2902, mode: `MaxEncodedLen`)
190 /// Storage: `FastUnstake::CounterForQueue` (r:1 w:1)
191 /// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
192 fn register_fast_unstake() -> Weight {
193 // Proof Size summary in bytes:
194 // Measured: `702`
195 // Estimated: `7253`
196 // Minimum execution time: 115_559_000 picoseconds.
197 Weight::from_parts(118_297_000, 7253)
198 .saturating_add(T::DbWeight::get().reads(15_u64))
199 .saturating_add(T::DbWeight::get().writes(8_u64))
200 }
201 /// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
202 /// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
203 /// Storage: `Staking::Ledger` (r:1 w:0)
204 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
205 /// Storage: `Staking::Bonded` (r:1 w:0)
206 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
207 /// Storage: `FastUnstake::Queue` (r:1 w:1)
208 /// Proof: `FastUnstake::Queue` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
209 /// Storage: `FastUnstake::Head` (r:1 w:0)
210 /// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
211 /// Storage: `FastUnstake::CounterForQueue` (r:1 w:1)
212 /// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
213 fn deregister() -> Weight {
214 // Proof Size summary in bytes:
215 // Measured: `428`
216 // Estimated: `7253`
217 // Minimum execution time: 38_629_000 picoseconds.
218 Weight::from_parts(39_404_000, 7253)
219 .saturating_add(T::DbWeight::get().reads(6_u64))
220 .saturating_add(T::DbWeight::get().writes(2_u64))
221 }
222 /// Storage: `FastUnstake::ErasToCheckPerBlock` (r:0 w:1)
223 /// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
224 fn control() -> Weight {
225 // Proof Size summary in bytes:
226 // Measured: `0`
227 // Estimated: `0`
228 // Minimum execution time: 1_730_000 picoseconds.
229 Weight::from_parts(1_802_000, 0)
230 .saturating_add(T::DbWeight::get().writes(1_u64))
231 }
232}
233
234// For backwards compatibility and tests.
235impl WeightInfo for () {
236 /// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
237 /// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
238 /// Storage: `Staking::ValidatorCount` (r:1 w:0)
239 /// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
240 /// Storage: `FastUnstake::Head` (r:1 w:1)
241 /// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
242 /// Storage: `FastUnstake::CounterForQueue` (r:1 w:0)
243 /// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
244 /// Storage: `MultiBlock::CurrentPhase` (r:1 w:0)
245 /// Proof: `MultiBlock::CurrentPhase` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
246 /// Storage: `Staking::CurrentEra` (r:1 w:0)
247 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
248 /// Storage: `Staking::SlashingSpans` (r:64 w:0)
249 /// Proof: `Staking::SlashingSpans` (`max_values`: None, `max_size`: None, mode: `Measured`)
250 /// Storage: `Staking::Bonded` (r:64 w:64)
251 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
252 /// Storage: `Staking::Ledger` (r:64 w:64)
253 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
254 /// Storage: `Staking::VirtualStakers` (r:64 w:64)
255 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
256 /// Storage: `Balances::Holds` (r:64 w:64)
257 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(427), added: 2902, mode: `MaxEncodedLen`)
258 /// Storage: `System::Account` (r:64 w:64)
259 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
260 /// Storage: `Staking::Validators` (r:64 w:0)
261 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
262 /// Storage: `Staking::Nominators` (r:64 w:0)
263 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
264 /// Storage: `Staking::Payee` (r:0 w:64)
265 /// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
266 /// The range of component `b` is `[1, 64]`.
267 fn on_idle_unstake(b: u32, ) -> Weight {
268 // Proof Size summary in bytes:
269 // Measured: `57 + b * (443 ±0)`
270 // Estimated: `7253 + b * (3566 ±0)`
271 // Minimum execution time: 86_174_000 picoseconds.
272 Weight::from_parts(9_455_381, 7253)
273 // Standard Error: 41_683
274 .saturating_add(Weight::from_parts(72_236_736, 0).saturating_mul(b.into()))
275 .saturating_add(RocksDbWeight::get().reads(6_u64))
276 .saturating_add(RocksDbWeight::get().reads((8_u64).saturating_mul(b.into())))
277 .saturating_add(RocksDbWeight::get().writes(1_u64))
278 .saturating_add(RocksDbWeight::get().writes((6_u64).saturating_mul(b.into())))
279 .saturating_add(Weight::from_parts(0, 3566).saturating_mul(b.into()))
280 }
281 /// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
282 /// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
283 /// Storage: `Staking::ValidatorCount` (r:1 w:0)
284 /// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
285 /// Storage: `FastUnstake::Head` (r:1 w:1)
286 /// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
287 /// Storage: `FastUnstake::CounterForQueue` (r:1 w:0)
288 /// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
289 /// Storage: `MultiBlock::CurrentPhase` (r:1 w:0)
290 /// Proof: `MultiBlock::CurrentPhase` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
291 /// Storage: `Staking::CurrentEra` (r:1 w:0)
292 /// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
293 /// Storage: `Staking::ErasStakersPaged` (r:257 w:0)
294 /// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: None, mode: `Measured`)
295 /// The range of component `v` is `[1, 256]`.
296 /// The range of component `b` is `[1, 64]`.
297 fn on_idle_check(v: u32, b: u32, ) -> Weight {
298 // Proof Size summary in bytes:
299 // Measured: `850 + b * (48 ±0) + v * (1318 ±0)`
300 // Estimated: `7253 + b * (49 ±0) + v * (3794 ±0)`
301 // Minimum execution time: 517_331_000 picoseconds.
302 Weight::from_parts(530_541_000, 7253)
303 // Standard Error: 2_918_095
304 .saturating_add(Weight::from_parts(95_402_277, 0).saturating_mul(v.into()))
305 // Standard Error: 11_675_633
306 .saturating_add(Weight::from_parts(365_913_743, 0).saturating_mul(b.into()))
307 .saturating_add(RocksDbWeight::get().reads(7_u64))
308 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(v.into())))
309 .saturating_add(RocksDbWeight::get().writes(1_u64))
310 .saturating_add(Weight::from_parts(0, 49).saturating_mul(b.into()))
311 .saturating_add(Weight::from_parts(0, 3794).saturating_mul(v.into()))
312 }
313 /// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
314 /// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
315 /// Storage: `Staking::Ledger` (r:1 w:1)
316 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
317 /// Storage: `Staking::Bonded` (r:1 w:0)
318 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
319 /// Storage: `FastUnstake::Queue` (r:1 w:1)
320 /// Proof: `FastUnstake::Queue` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
321 /// Storage: `FastUnstake::Head` (r:1 w:0)
322 /// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
323 /// Storage: `Staking::Validators` (r:1 w:0)
324 /// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
325 /// Storage: `Staking::Nominators` (r:1 w:1)
326 /// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
327 /// Storage: `Staking::CounterForNominators` (r:1 w:1)
328 /// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
329 /// Storage: `VoterList::ListNodes` (r:1 w:1)
330 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
331 /// Storage: `VoterList::ListBags` (r:1 w:1)
332 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
333 /// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
334 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, 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: `Staking::VirtualStakers` (r:1 w:0)
338 /// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
339 /// Storage: `Balances::Holds` (r:1 w:0)
340 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(427), added: 2902, mode: `MaxEncodedLen`)
341 /// Storage: `FastUnstake::CounterForQueue` (r:1 w:1)
342 /// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
343 fn register_fast_unstake() -> Weight {
344 // Proof Size summary in bytes:
345 // Measured: `702`
346 // Estimated: `7253`
347 // Minimum execution time: 115_559_000 picoseconds.
348 Weight::from_parts(118_297_000, 7253)
349 .saturating_add(RocksDbWeight::get().reads(15_u64))
350 .saturating_add(RocksDbWeight::get().writes(8_u64))
351 }
352 /// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
353 /// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
354 /// Storage: `Staking::Ledger` (r:1 w:0)
355 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
356 /// Storage: `Staking::Bonded` (r:1 w:0)
357 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
358 /// Storage: `FastUnstake::Queue` (r:1 w:1)
359 /// Proof: `FastUnstake::Queue` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
360 /// Storage: `FastUnstake::Head` (r:1 w:0)
361 /// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
362 /// Storage: `FastUnstake::CounterForQueue` (r:1 w:1)
363 /// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
364 fn deregister() -> Weight {
365 // Proof Size summary in bytes:
366 // Measured: `428`
367 // Estimated: `7253`
368 // Minimum execution time: 38_629_000 picoseconds.
369 Weight::from_parts(39_404_000, 7253)
370 .saturating_add(RocksDbWeight::get().reads(6_u64))
371 .saturating_add(RocksDbWeight::get().writes(2_u64))
372 }
373 /// Storage: `FastUnstake::ErasToCheckPerBlock` (r:0 w:1)
374 /// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
375 fn control() -> Weight {
376 // Proof Size summary in bytes:
377 // Measured: `0`
378 // Estimated: `0`
379 // Minimum execution time: 1_730_000 picoseconds.
380 Weight::from_parts(1_802_000, 0)
381 .saturating_add(RocksDbWeight::get().writes(1_u64))
382 }
383}