pallet_conviction_voting/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_conviction_voting`
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_conviction_voting
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/conviction-voting/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_conviction_voting`.
74pub trait WeightInfo {
75 fn vote_new() -> Weight;
76 fn vote_existing() -> Weight;
77 fn remove_vote() -> Weight;
78 fn remove_other_vote() -> Weight;
79 fn delegate(r: u32, ) -> Weight;
80 fn undelegate(r: u32, ) -> Weight;
81 fn unlock() -> Weight;
82}
83
84/// Weights for `pallet_conviction_voting` using the Substrate node and recommended hardware.
85pub struct SubstrateWeight<T>(PhantomData<T>);
86impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
87 /// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
88 /// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
89 /// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
90 /// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
91 /// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
92 /// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
93 /// Storage: `Parameters::Parameters` (r:1 w:0)
94 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
95 /// Storage: `Balances::Locks` (r:1 w:1)
96 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
97 /// Storage: `Balances::Freezes` (r:1 w:0)
98 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
99 /// Storage: `Scheduler::Agenda` (r:2 w:2)
100 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
101 /// Storage: `Scheduler::Retries` (r:0 w:1)
102 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
103 fn vote_new() -> Weight {
104 // Proof Size summary in bytes:
105 // Measured: `12820`
106 // Estimated: `219984`
107 // Minimum execution time: 122_673_000 picoseconds.
108 Weight::from_parts(132_468_000, 219984)
109 .saturating_add(T::DbWeight::get().reads(8_u64))
110 .saturating_add(T::DbWeight::get().writes(7_u64))
111 }
112 /// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
113 /// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
114 /// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
115 /// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
116 /// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
117 /// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
118 /// Storage: `Parameters::Parameters` (r:1 w:0)
119 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
120 /// Storage: `Balances::Locks` (r:1 w:1)
121 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
122 /// Storage: `Balances::Freezes` (r:1 w:0)
123 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
124 /// Storage: `Scheduler::Agenda` (r:2 w:2)
125 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
126 /// Storage: `Scheduler::Retries` (r:0 w:1)
127 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
128 fn vote_existing() -> Weight {
129 // Proof Size summary in bytes:
130 // Measured: `19983`
131 // Estimated: `219984`
132 // Minimum execution time: 318_133_000 picoseconds.
133 Weight::from_parts(333_487_000, 219984)
134 .saturating_add(T::DbWeight::get().reads(8_u64))
135 .saturating_add(T::DbWeight::get().writes(7_u64))
136 }
137 /// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
138 /// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
139 /// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
140 /// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
141 /// Storage: `Scheduler::Agenda` (r:2 w:2)
142 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
143 /// Storage: `Scheduler::Retries` (r:0 w:1)
144 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
145 fn remove_vote() -> Weight {
146 // Proof Size summary in bytes:
147 // Measured: `19820`
148 // Estimated: `219984`
149 // Minimum execution time: 288_951_000 picoseconds.
150 Weight::from_parts(305_052_000, 219984)
151 .saturating_add(T::DbWeight::get().reads(4_u64))
152 .saturating_add(T::DbWeight::get().writes(5_u64))
153 }
154 /// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
155 /// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
156 /// Storage: `Referenda::ReferendumInfoFor` (r:1 w:0)
157 /// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
158 fn remove_other_vote() -> Weight {
159 // Proof Size summary in bytes:
160 // Measured: `12599`
161 // Estimated: `30706`
162 // Minimum execution time: 60_940_000 picoseconds.
163 Weight::from_parts(65_626_000, 30706)
164 .saturating_add(T::DbWeight::get().reads(2_u64))
165 .saturating_add(T::DbWeight::get().writes(1_u64))
166 }
167 /// Storage: `Parameters::Parameters` (r:1 w:0)
168 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
169 /// Storage: `ConvictionVoting::VotingFor` (r:2 w:2)
170 /// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
171 /// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
172 /// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
173 /// Storage: `Scheduler::Agenda` (r:2 w:2)
174 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
175 /// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
176 /// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
177 /// Storage: `Balances::Locks` (r:1 w:1)
178 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
179 /// Storage: `Balances::Freezes` (r:1 w:0)
180 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
181 /// Storage: `Scheduler::Retries` (r:0 w:1)
182 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
183 /// The range of component `r` is `[0, 1]`.
184 fn delegate(r: u32, ) -> Weight {
185 // Proof Size summary in bytes:
186 // Measured: `146 + r * (1516 ±0)`
187 // Estimated: `109992 + r * (109992 ±0)`
188 // Minimum execution time: 53_837_000 picoseconds.
189 Weight::from_parts(57_424_161, 109992)
190 // Standard Error: 349_816
191 .saturating_add(Weight::from_parts(45_427_938, 0).saturating_mul(r.into()))
192 .saturating_add(T::DbWeight::get().reads(6_u64))
193 .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(r.into())))
194 .saturating_add(T::DbWeight::get().writes(4_u64))
195 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(r.into())))
196 .saturating_add(Weight::from_parts(0, 109992).saturating_mul(r.into()))
197 }
198 /// Storage: `ConvictionVoting::VotingFor` (r:2 w:2)
199 /// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
200 /// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
201 /// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
202 /// Storage: `Scheduler::Agenda` (r:2 w:2)
203 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
204 /// Storage: `Scheduler::Retries` (r:0 w:1)
205 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
206 /// The range of component `r` is `[0, 1]`.
207 fn undelegate(r: u32, ) -> Weight {
208 // Proof Size summary in bytes:
209 // Measured: `350 + r * (1264 ±0)`
210 // Estimated: `109992 + r * (109992 ±0)`
211 // Minimum execution time: 26_552_000 picoseconds.
212 Weight::from_parts(28_629_093, 109992)
213 // Standard Error: 178_796
214 .saturating_add(Weight::from_parts(38_342_206, 0).saturating_mul(r.into()))
215 .saturating_add(T::DbWeight::get().reads(2_u64))
216 .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(r.into())))
217 .saturating_add(T::DbWeight::get().writes(2_u64))
218 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(r.into())))
219 .saturating_add(Weight::from_parts(0, 109992).saturating_mul(r.into()))
220 }
221 /// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
222 /// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
223 /// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
224 /// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
225 /// Storage: `Parameters::Parameters` (r:1 w:0)
226 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
227 /// Storage: `Balances::Locks` (r:1 w:1)
228 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
229 /// Storage: `Balances::Freezes` (r:1 w:0)
230 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
231 fn unlock() -> Weight {
232 // Proof Size summary in bytes:
233 // Measured: `11593`
234 // Estimated: `30706`
235 // Minimum execution time: 83_405_000 picoseconds.
236 Weight::from_parts(92_198_000, 30706)
237 .saturating_add(T::DbWeight::get().reads(5_u64))
238 .saturating_add(T::DbWeight::get().writes(3_u64))
239 }
240}
241
242// For backwards compatibility and tests.
243impl WeightInfo for () {
244 /// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
245 /// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
246 /// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
247 /// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
248 /// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
249 /// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
250 /// Storage: `Parameters::Parameters` (r:1 w:0)
251 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
252 /// Storage: `Balances::Locks` (r:1 w:1)
253 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
254 /// Storage: `Balances::Freezes` (r:1 w:0)
255 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
256 /// Storage: `Scheduler::Agenda` (r:2 w:2)
257 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
258 /// Storage: `Scheduler::Retries` (r:0 w:1)
259 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
260 fn vote_new() -> Weight {
261 // Proof Size summary in bytes:
262 // Measured: `12820`
263 // Estimated: `219984`
264 // Minimum execution time: 122_673_000 picoseconds.
265 Weight::from_parts(132_468_000, 219984)
266 .saturating_add(RocksDbWeight::get().reads(8_u64))
267 .saturating_add(RocksDbWeight::get().writes(7_u64))
268 }
269 /// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
270 /// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
271 /// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
272 /// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
273 /// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
274 /// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
275 /// Storage: `Parameters::Parameters` (r:1 w:0)
276 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
277 /// Storage: `Balances::Locks` (r:1 w:1)
278 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
279 /// Storage: `Balances::Freezes` (r:1 w:0)
280 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
281 /// Storage: `Scheduler::Agenda` (r:2 w:2)
282 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
283 /// Storage: `Scheduler::Retries` (r:0 w:1)
284 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
285 fn vote_existing() -> Weight {
286 // Proof Size summary in bytes:
287 // Measured: `19983`
288 // Estimated: `219984`
289 // Minimum execution time: 318_133_000 picoseconds.
290 Weight::from_parts(333_487_000, 219984)
291 .saturating_add(RocksDbWeight::get().reads(8_u64))
292 .saturating_add(RocksDbWeight::get().writes(7_u64))
293 }
294 /// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
295 /// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
296 /// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
297 /// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
298 /// Storage: `Scheduler::Agenda` (r:2 w:2)
299 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
300 /// Storage: `Scheduler::Retries` (r:0 w:1)
301 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
302 fn remove_vote() -> Weight {
303 // Proof Size summary in bytes:
304 // Measured: `19820`
305 // Estimated: `219984`
306 // Minimum execution time: 288_951_000 picoseconds.
307 Weight::from_parts(305_052_000, 219984)
308 .saturating_add(RocksDbWeight::get().reads(4_u64))
309 .saturating_add(RocksDbWeight::get().writes(5_u64))
310 }
311 /// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
312 /// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
313 /// Storage: `Referenda::ReferendumInfoFor` (r:1 w:0)
314 /// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
315 fn remove_other_vote() -> Weight {
316 // Proof Size summary in bytes:
317 // Measured: `12599`
318 // Estimated: `30706`
319 // Minimum execution time: 60_940_000 picoseconds.
320 Weight::from_parts(65_626_000, 30706)
321 .saturating_add(RocksDbWeight::get().reads(2_u64))
322 .saturating_add(RocksDbWeight::get().writes(1_u64))
323 }
324 /// Storage: `Parameters::Parameters` (r:1 w:0)
325 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
326 /// Storage: `ConvictionVoting::VotingFor` (r:2 w:2)
327 /// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
328 /// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
329 /// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
330 /// Storage: `Scheduler::Agenda` (r:2 w:2)
331 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
332 /// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
333 /// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
334 /// Storage: `Balances::Locks` (r:1 w:1)
335 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
336 /// Storage: `Balances::Freezes` (r:1 w:0)
337 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
338 /// Storage: `Scheduler::Retries` (r:0 w:1)
339 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
340 /// The range of component `r` is `[0, 1]`.
341 fn delegate(r: u32, ) -> Weight {
342 // Proof Size summary in bytes:
343 // Measured: `146 + r * (1516 ±0)`
344 // Estimated: `109992 + r * (109992 ±0)`
345 // Minimum execution time: 53_837_000 picoseconds.
346 Weight::from_parts(57_424_161, 109992)
347 // Standard Error: 349_816
348 .saturating_add(Weight::from_parts(45_427_938, 0).saturating_mul(r.into()))
349 .saturating_add(RocksDbWeight::get().reads(6_u64))
350 .saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(r.into())))
351 .saturating_add(RocksDbWeight::get().writes(4_u64))
352 .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(r.into())))
353 .saturating_add(Weight::from_parts(0, 109992).saturating_mul(r.into()))
354 }
355 /// Storage: `ConvictionVoting::VotingFor` (r:2 w:2)
356 /// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
357 /// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
358 /// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
359 /// Storage: `Scheduler::Agenda` (r:2 w:2)
360 /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
361 /// Storage: `Scheduler::Retries` (r:0 w:1)
362 /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
363 /// The range of component `r` is `[0, 1]`.
364 fn undelegate(r: u32, ) -> Weight {
365 // Proof Size summary in bytes:
366 // Measured: `350 + r * (1264 ±0)`
367 // Estimated: `109992 + r * (109992 ±0)`
368 // Minimum execution time: 26_552_000 picoseconds.
369 Weight::from_parts(28_629_093, 109992)
370 // Standard Error: 178_796
371 .saturating_add(Weight::from_parts(38_342_206, 0).saturating_mul(r.into()))
372 .saturating_add(RocksDbWeight::get().reads(2_u64))
373 .saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(r.into())))
374 .saturating_add(RocksDbWeight::get().writes(2_u64))
375 .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(r.into())))
376 .saturating_add(Weight::from_parts(0, 109992).saturating_mul(r.into()))
377 }
378 /// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
379 /// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
380 /// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
381 /// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
382 /// Storage: `Parameters::Parameters` (r:1 w:0)
383 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
384 /// Storage: `Balances::Locks` (r:1 w:1)
385 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
386 /// Storage: `Balances::Freezes` (r:1 w:0)
387 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
388 fn unlock() -> Weight {
389 // Proof Size summary in bytes:
390 // Measured: `11593`
391 // Estimated: `30706`
392 // Minimum execution time: 83_405_000 picoseconds.
393 Weight::from_parts(92_198_000, 30706)
394 .saturating_add(RocksDbWeight::get().reads(5_u64))
395 .saturating_add(RocksDbWeight::get().writes(3_u64))
396 }
397}