-
Notifications
You must be signed in to change notification settings - Fork 838
/
Copy pathpallet_democracy.rs
513 lines (506 loc) · 25 KB
/
pallet_democracy.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
// Copyright (C) Parity Technologies (UK) Ltd.
// This file is part of Polkadot.
// Polkadot is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Polkadot is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
//! Autogenerated weights for `pallet_democracy`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-03-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/polkadot
// benchmark
// pallet
// --chain=kusama-dev
// --steps=50
// --repeat=20
// --pallet=pallet_democracy
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --header=./file_header.txt
// --output=./runtime/kusama/src/weights/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData;
/// Weight functions for `pallet_democracy`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_democracy::WeightInfo for WeightInfo<T> {
/// Storage: Democracy PublicPropCount (r:1 w:1)
/// Proof: Democracy PublicPropCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Democracy PublicProps (r:1 w:1)
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
/// Storage: Democracy Blacklist (r:1 w:0)
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
/// Storage: Democracy DepositOf (r:0 w:1)
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
fn propose() -> Weight {
// Proof Size summary in bytes:
// Measured: `4768`
// Estimated: `26379`
// Minimum execution time: 35_098_000 picoseconds.
Weight::from_parts(35_696_000, 0)
.saturating_add(Weight::from_parts(0, 26379))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
/// Storage: Democracy DepositOf (r:1 w:1)
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
fn second() -> Weight {
// Proof Size summary in bytes:
// Measured: `3523`
// Estimated: `6695`
// Minimum execution time: 32_218_000 picoseconds.
Weight::from_parts(32_458_000, 0)
.saturating_add(Weight::from_parts(0, 6695))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// Storage: Democracy VotingOf (r:1 w:1)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
fn vote_new() -> Weight {
// Proof Size summary in bytes:
// Measured: `3437`
// Estimated: `15690`
// Minimum execution time: 46_641_000 picoseconds.
Weight::from_parts(47_324_000, 0)
.saturating_add(Weight::from_parts(0, 15690))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// Storage: Democracy VotingOf (r:1 w:1)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
fn vote_existing() -> Weight {
// Proof Size summary in bytes:
// Measured: `3459`
// Estimated: `15690`
// Minimum execution time: 47_172_000 picoseconds.
Weight::from_parts(47_732_000, 0)
.saturating_add(Weight::from_parts(0, 15690))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// Storage: Democracy Cancellations (r:1 w:1)
/// Proof: Democracy Cancellations (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:1 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn emergency_cancel() -> Weight {
// Proof Size summary in bytes:
// Measured: `333`
// Estimated: `10682`
// Minimum execution time: 25_744_000 picoseconds.
Weight::from_parts(26_226_000, 0)
.saturating_add(Weight::from_parts(0, 10682))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
/// Storage: Democracy PublicProps (r:1 w:1)
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
/// Storage: Democracy DepositOf (r:1 w:1)
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:3 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
/// Storage: Democracy NextExternal (r:1 w:1)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// Storage: Democracy Blacklist (r:0 w:1)
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
fn blacklist() -> Weight {
// Proof Size summary in bytes:
// Measured: `5877`
// Estimated: `42332`
// Minimum execution time: 88_365_000 picoseconds.
Weight::from_parts(90_080_000, 0)
.saturating_add(Weight::from_parts(0, 42332))
.saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().writes(7))
}
/// Storage: Democracy NextExternal (r:1 w:1)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
/// Storage: Democracy Blacklist (r:1 w:0)
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
fn external_propose() -> Weight {
// Proof Size summary in bytes:
// Measured: `3383`
// Estimated: `8320`
// Minimum execution time: 12_868_000 picoseconds.
Weight::from_parts(13_178_000, 0)
.saturating_add(Weight::from_parts(0, 8320))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Democracy NextExternal (r:0 w:1)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
fn external_propose_majority() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_714_000 picoseconds.
Weight::from_parts(3_895_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Democracy NextExternal (r:0 w:1)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
fn external_propose_default() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_565_000 picoseconds.
Weight::from_parts(3_831_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Democracy NextExternal (r:1 w:1)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumCount (r:1 w:1)
/// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:1 w:2)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumInfoOf (r:0 w:1)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
fn fast_track() -> Weight {
// Proof Size summary in bytes:
// Measured: `253`
// Estimated: `6624`
// Minimum execution time: 26_453_000 picoseconds.
Weight::from_parts(26_938_000, 0)
.saturating_add(Weight::from_parts(0, 6624))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(5))
}
/// Storage: Democracy NextExternal (r:1 w:1)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
/// Storage: Democracy Blacklist (r:1 w:1)
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:1 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn veto_external() -> Weight {
// Proof Size summary in bytes:
// Measured: `3486`
// Estimated: `11838`
// Minimum execution time: 30_869_000 picoseconds.
Weight::from_parts(31_397_000, 0)
.saturating_add(Weight::from_parts(0, 11838))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
/// Storage: Democracy PublicProps (r:1 w:1)
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
/// Storage: Democracy DepositOf (r:1 w:1)
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:1 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn cancel_proposal() -> Weight {
// Proof Size summary in bytes:
// Measured: `5788`
// Estimated: `31993`
// Minimum execution time: 72_692_000 picoseconds.
Weight::from_parts(73_692_000, 0)
.saturating_add(Weight::from_parts(0, 31993))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(4))
}
/// Storage: Democracy MetadataOf (r:1 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumInfoOf (r:0 w:1)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
fn cancel_referendum() -> Weight {
// Proof Size summary in bytes:
// Measured: `238`
// Estimated: `3518`
// Minimum execution time: 19_506_000 picoseconds.
Weight::from_parts(19_823_000, 0)
.saturating_add(Weight::from_parts(0, 3518))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: Democracy LowestUnbaked (r:1 w:1)
/// Proof: Democracy LowestUnbaked (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumCount (r:1 w:0)
/// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumInfoOf (r:99 w:0)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 99]`.
fn on_initialize_base(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `211 + r * (86 ±0)`
// Estimated: `3968 + r * (2676 ±0)`
// Minimum execution time: 6_019_000 picoseconds.
Weight::from_parts(9_632_674, 0)
.saturating_add(Weight::from_parts(0, 3968))
// Standard Error: 6_651
.saturating_add(Weight::from_parts(2_769_264, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
}
/// Storage: Democracy LowestUnbaked (r:1 w:1)
/// Proof: Democracy LowestUnbaked (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumCount (r:1 w:0)
/// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Democracy LastTabledWasExternal (r:1 w:0)
/// Proof: Democracy LastTabledWasExternal (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
/// Storage: Democracy NextExternal (r:1 w:0)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
/// Storage: Democracy PublicProps (r:1 w:0)
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumInfoOf (r:99 w:0)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 99]`.
fn on_initialize_base_with_launch_period(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `211 + r * (86 ±0)`
// Estimated: `25258 + r * (2676 ±0)`
// Minimum execution time: 9_143_000 picoseconds.
Weight::from_parts(12_247_629, 0)
.saturating_add(Weight::from_parts(0, 25258))
// Standard Error: 6_077
.saturating_add(Weight::from_parts(2_764_547, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
}
/// Storage: Democracy VotingOf (r:3 w:3)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumInfoOf (r:99 w:99)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 99]`.
fn delegate(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `797 + r * (108 ±0)`
// Estimated: `25554 + r * (2676 ±0)`
// Minimum execution time: 41_153_000 picoseconds.
Weight::from_parts(42_787_487, 0)
.saturating_add(Weight::from_parts(0, 25554))
// Standard Error: 7_883
.saturating_add(Weight::from_parts(3_862_521, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(4))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into())))
.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
}
/// Storage: Democracy VotingOf (r:2 w:2)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumInfoOf (r:99 w:99)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 99]`.
fn undelegate(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `460 + r * (108 ±0)`
// Estimated: `14520 + r * (2676 ±0)`
// Minimum execution time: 20_767_000 picoseconds.
Weight::from_parts(21_768_239, 0)
.saturating_add(Weight::from_parts(0, 14520))
// Standard Error: 9_791
.saturating_add(Weight::from_parts(3_862_103, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into())))
.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
}
/// Storage: Democracy PublicProps (r:0 w:1)
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
fn clear_public_proposals() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_663_000 picoseconds.
Weight::from_parts(3_798_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Democracy VotingOf (r:1 w:1)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 99]`.
fn unlock_remove(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `530`
// Estimated: `15617`
// Minimum execution time: 19_923_000 picoseconds.
Weight::from_parts(25_945_279, 0)
.saturating_add(Weight::from_parts(0, 15617))
// Standard Error: 1_366
.saturating_add(Weight::from_parts(22_003, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
/// Storage: Democracy VotingOf (r:1 w:1)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 99]`.
fn unlock_set(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `531 + r * (22 ±0)`
// Estimated: `15617`
// Minimum execution time: 24_393_000 picoseconds.
Weight::from_parts(25_690_593, 0)
.saturating_add(Weight::from_parts(0, 15617))
// Standard Error: 553
.saturating_add(Weight::from_parts(59_042, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// Storage: Democracy VotingOf (r:1 w:1)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
/// The range of component `r` is `[1, 100]`.
fn remove_vote(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `695 + r * (26 ±0)`
// Estimated: `10926`
// Minimum execution time: 15_551_000 picoseconds.
Weight::from_parts(17_809_948, 0)
.saturating_add(Weight::from_parts(0, 10926))
// Standard Error: 1_907
.saturating_add(Weight::from_parts(86_496, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// Storage: Democracy VotingOf (r:1 w:1)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
/// The range of component `r` is `[1, 100]`.
fn remove_other_vote(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `695 + r * (26 ±0)`
// Estimated: `10926`
// Minimum execution time: 16_027_000 picoseconds.
Weight::from_parts(17_860_077, 0)
.saturating_add(Weight::from_parts(0, 10926))
// Standard Error: 1_950
.saturating_add(Weight::from_parts(87_722, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: Democracy NextExternal (r:1 w:0)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
/// Storage: Preimage StatusFor (r:1 w:0)
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:0 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn set_external_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `323`
// Estimated: `5173`
// Minimum execution time: 17_551_000 picoseconds.
Weight::from_parts(17_776_000, 0)
.saturating_add(Weight::from_parts(0, 5173))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Democracy NextExternal (r:1 w:0)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:1 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn clear_external_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `253`
// Estimated: `5135`
// Minimum execution time: 16_020_000 picoseconds.
Weight::from_parts(16_477_000, 0)
.saturating_add(Weight::from_parts(0, 5135))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Democracy PublicProps (r:1 w:0)
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
/// Storage: Preimage StatusFor (r:1 w:0)
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:0 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn set_proposal_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `4855`
// Estimated: `21743`
// Minimum execution time: 33_144_000 picoseconds.
Weight::from_parts(33_457_000, 0)
.saturating_add(Weight::from_parts(0, 21743))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Democracy PublicProps (r:1 w:0)
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:1 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn clear_proposal_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `4789`
// Estimated: `21705`
// Minimum execution time: 31_022_000 picoseconds.
Weight::from_parts(31_534_000, 0)
.saturating_add(Weight::from_parts(0, 21705))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Preimage StatusFor (r:1 w:0)
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:0 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn set_referendum_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `144`
// Estimated: `3556`
// Minimum execution time: 14_512_000 picoseconds.
Weight::from_parts(14_769_000, 0)
.saturating_add(Weight::from_parts(0, 3556))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Democracy ReferendumInfoOf (r:1 w:0)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:1 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn clear_referendum_metadata() -> Weight {
// Proof Size summary in bytes:
// Measured: `269`
// Estimated: `7184`
// Minimum execution time: 17_966_000 picoseconds.
Weight::from_parts(18_270_000, 0)
.saturating_add(Weight::from_parts(0, 7184))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
}