-
Notifications
You must be signed in to change notification settings - Fork 838
/
Copy pathpallet_society.rs
437 lines (429 loc) · 20.6 KB
/
pallet_society.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
// 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_society`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-19, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-e8ezs4ez-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! 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
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --pallet=pallet_society
// --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)]
#![allow(missing_docs)]
use frame_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `pallet_society`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_society::WeightInfo for WeightInfo<T> {
/// Storage: Society Bids (r:1 w:1)
/// Proof Skipped: Society Bids (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Candidates (r:1 w:0)
/// Proof Skipped: Society Candidates (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Members (r:1 w:0)
/// Proof Skipped: Society Members (max_values: None, max_size: None, mode: Measured)
/// Storage: Society SuspendedMembers (r:1 w:0)
/// Proof Skipped: Society SuspendedMembers (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Parameters (r:1 w:0)
/// Proof Skipped: Society Parameters (max_values: Some(1), max_size: None, mode: Measured)
fn bid() -> Weight {
// Proof Size summary in bytes:
// Measured: `416`
// Estimated: `3881`
// Minimum execution time: 35_388_000 picoseconds.
Weight::from_parts(36_165_000, 0)
.saturating_add(Weight::from_parts(0, 3881))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Society Bids (r:1 w:1)
/// Proof Skipped: Society Bids (max_values: Some(1), max_size: None, mode: Measured)
fn unbid() -> Weight {
// Proof Size summary in bytes:
// Measured: `433`
// Estimated: `1918`
// Minimum execution time: 28_387_000 picoseconds.
Weight::from_parts(29_224_000, 0)
.saturating_add(Weight::from_parts(0, 1918))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Society Bids (r:1 w:1)
/// Proof Skipped: Society Bids (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Candidates (r:1 w:0)
/// Proof Skipped: Society Candidates (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Members (r:2 w:1)
/// Proof Skipped: Society Members (max_values: None, max_size: None, mode: Measured)
/// Storage: Society SuspendedMembers (r:1 w:0)
/// Proof Skipped: Society SuspendedMembers (max_values: None, max_size: None, mode: Measured)
fn vouch() -> Weight {
// Proof Size summary in bytes:
// Measured: `453`
// Estimated: `6393`
// Minimum execution time: 25_337_000 picoseconds.
Weight::from_parts(26_143_000, 0)
.saturating_add(Weight::from_parts(0, 6393))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: Society Bids (r:1 w:1)
/// Proof Skipped: Society Bids (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Members (r:1 w:1)
/// Proof Skipped: Society Members (max_values: None, max_size: None, mode: Measured)
fn unvouch() -> Weight {
// Proof Size summary in bytes:
// Measured: `507`
// Estimated: `3972`
// Minimum execution time: 17_975_000 picoseconds.
Weight::from_parts(18_695_000, 0)
.saturating_add(Weight::from_parts(0, 3972))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: Society Candidates (r:1 w:1)
/// Proof Skipped: Society Candidates (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Members (r:1 w:0)
/// Proof Skipped: Society Members (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Votes (r:1 w:1)
/// Proof Skipped: Society Votes (max_values: None, max_size: None, mode: Measured)
fn vote() -> Weight {
// Proof Size summary in bytes:
// Measured: `541`
// Estimated: `4006`
// Minimum execution time: 23_173_000 picoseconds.
Weight::from_parts(23_764_000, 0)
.saturating_add(Weight::from_parts(0, 4006))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: Society Defending (r:1 w:1)
/// Proof Skipped: Society Defending (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Members (r:1 w:0)
/// Proof Skipped: Society Members (max_values: None, max_size: None, mode: Measured)
/// Storage: Society ChallengeRoundCount (r:1 w:0)
/// Proof Skipped: Society ChallengeRoundCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society DefenderVotes (r:1 w:1)
/// Proof Skipped: Society DefenderVotes (max_values: None, max_size: None, mode: Measured)
fn defender_vote() -> Weight {
// Proof Size summary in bytes:
// Measured: `533`
// Estimated: `3998`
// Minimum execution time: 21_744_000 picoseconds.
Weight::from_parts(22_406_000, 0)
.saturating_add(Weight::from_parts(0, 3998))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: Society Members (r:1 w:0)
/// Proof Skipped: Society Members (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Payouts (r:1 w:1)
/// Proof Skipped: Society Payouts (max_values: None, max_size: None, mode: Measured)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn payout() -> Weight {
// Proof Size summary in bytes:
// Measured: `622`
// Estimated: `4087`
// Minimum execution time: 50_058_000 picoseconds.
Weight::from_parts(51_077_000, 0)
.saturating_add(Weight::from_parts(0, 4087))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: Society Members (r:1 w:1)
/// Proof Skipped: Society Members (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Payouts (r:1 w:1)
/// Proof Skipped: Society Payouts (max_values: None, max_size: None, mode: Measured)
fn waive_repay() -> Weight {
// Proof Size summary in bytes:
// Measured: `519`
// Estimated: `3984`
// Minimum execution time: 21_305_000 picoseconds.
Weight::from_parts(22_020_000, 0)
.saturating_add(Weight::from_parts(0, 3984))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: Society Head (r:1 w:1)
/// Proof Skipped: Society Head (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society MemberCount (r:1 w:1)
/// Proof Skipped: Society MemberCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society MemberByIndex (r:0 w:1)
/// Proof Skipped: Society MemberByIndex (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Founder (r:0 w:1)
/// Proof Skipped: Society Founder (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Rules (r:0 w:1)
/// Proof Skipped: Society Rules (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Members (r:0 w:1)
/// Proof Skipped: Society Members (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Parameters (r:0 w:1)
/// Proof Skipped: Society Parameters (max_values: Some(1), max_size: None, mode: Measured)
fn found_society() -> Weight {
// Proof Size summary in bytes:
// Measured: `114`
// Estimated: `1599`
// Minimum execution time: 19_952_000 picoseconds.
Weight::from_parts(20_365_000, 0)
.saturating_add(Weight::from_parts(0, 1599))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(7))
}
/// Storage: Society Founder (r:1 w:1)
/// Proof Skipped: Society Founder (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society MemberCount (r:1 w:1)
/// Proof Skipped: Society MemberCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Members (r:5 w:5)
/// Proof Skipped: Society Members (max_values: None, max_size: None, mode: Measured)
/// Storage: Society MemberByIndex (r:5 w:5)
/// Proof Skipped: Society MemberByIndex (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Votes (r:4 w:4)
/// Proof Skipped: Society Votes (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Candidates (r:4 w:4)
/// Proof Skipped: Society Candidates (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Head (r:0 w:1)
/// Proof Skipped: Society Head (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Defending (r:0 w:1)
/// Proof Skipped: Society Defending (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society ChallengeRoundCount (r:0 w:1)
/// Proof Skipped: Society ChallengeRoundCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Skeptic (r:0 w:1)
/// Proof Skipped: Society Skeptic (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Pot (r:0 w:1)
/// Proof Skipped: Society Pot (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Rules (r:0 w:1)
/// Proof Skipped: Society Rules (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society RoundCount (r:0 w:1)
/// Proof Skipped: Society RoundCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Bids (r:0 w:1)
/// Proof Skipped: Society Bids (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Parameters (r:0 w:1)
/// Proof Skipped: Society Parameters (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society NextHead (r:0 w:1)
/// Proof Skipped: Society NextHead (max_values: Some(1), max_size: None, mode: Measured)
fn dissolve() -> Weight {
// Proof Size summary in bytes:
// Measured: `1626`
// Estimated: `14991`
// Minimum execution time: 64_547_000 picoseconds.
Weight::from_parts(66_190_000, 0)
.saturating_add(Weight::from_parts(0, 14991))
.saturating_add(T::DbWeight::get().reads(20))
.saturating_add(T::DbWeight::get().writes(30))
}
/// Storage: Society Founder (r:1 w:0)
/// Proof Skipped: Society Founder (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society SuspendedMembers (r:1 w:1)
/// Proof Skipped: Society SuspendedMembers (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Payouts (r:1 w:0)
/// Proof Skipped: Society Payouts (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Pot (r:1 w:1)
/// Proof Skipped: Society Pot (max_values: Some(1), max_size: None, mode: Measured)
fn judge_suspended_member() -> Weight {
// Proof Size summary in bytes:
// Measured: `456`
// Estimated: `3921`
// Minimum execution time: 22_276_000 picoseconds.
Weight::from_parts(22_817_000, 0)
.saturating_add(Weight::from_parts(0, 3921))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: Society Founder (r:1 w:0)
/// Proof Skipped: Society Founder (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society MemberCount (r:1 w:0)
/// Proof Skipped: Society MemberCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Parameters (r:0 w:1)
/// Proof Skipped: Society Parameters (max_values: Some(1), max_size: None, mode: Measured)
fn set_parameters() -> Weight {
// Proof Size summary in bytes:
// Measured: `359`
// Estimated: `1844`
// Minimum execution time: 14_857_000 picoseconds.
Weight::from_parts(15_268_000, 0)
.saturating_add(Weight::from_parts(0, 1844))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Society Candidates (r:1 w:1)
/// Proof Skipped: Society Candidates (max_values: None, max_size: None, mode: Measured)
/// Storage: Society RoundCount (r:1 w:0)
/// Proof Skipped: Society RoundCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Skeptic (r:1 w:0)
/// Proof Skipped: Society Skeptic (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Votes (r:1 w:0)
/// Proof Skipped: Society Votes (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Members (r:1 w:1)
/// Proof Skipped: Society Members (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Parameters (r:1 w:0)
/// Proof Skipped: Society Parameters (max_values: Some(1), max_size: None, mode: Measured)
fn punish_skeptic() -> Weight {
// Proof Size summary in bytes:
// Measured: `608`
// Estimated: `4073`
// Minimum execution time: 24_995_000 picoseconds.
Weight::from_parts(25_968_000, 0)
.saturating_add(Weight::from_parts(0, 4073))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: Society Candidates (r:1 w:1)
/// Proof Skipped: Society Candidates (max_values: None, max_size: None, mode: Measured)
/// Storage: Society RoundCount (r:1 w:0)
/// Proof Skipped: Society RoundCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Parameters (r:1 w:0)
/// Proof Skipped: Society Parameters (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society MemberCount (r:1 w:1)
/// Proof Skipped: Society MemberCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society NextHead (r:1 w:1)
/// Proof Skipped: Society NextHead (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Society MemberByIndex (r:0 w:1)
/// Proof Skipped: Society MemberByIndex (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Members (r:0 w:1)
/// Proof Skipped: Society Members (max_values: None, max_size: None, mode: Measured)
fn claim_membership() -> Weight {
// Proof Size summary in bytes:
// Measured: `604`
// Estimated: `4069`
// Minimum execution time: 41_570_000 picoseconds.
Weight::from_parts(42_576_000, 0)
.saturating_add(Weight::from_parts(0, 4069))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(6))
}
/// Storage: Society Founder (r:1 w:0)
/// Proof Skipped: Society Founder (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Candidates (r:1 w:1)
/// Proof Skipped: Society Candidates (max_values: None, max_size: None, mode: Measured)
/// Storage: Society RoundCount (r:1 w:0)
/// Proof Skipped: Society RoundCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Parameters (r:1 w:0)
/// Proof Skipped: Society Parameters (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society MemberCount (r:1 w:1)
/// Proof Skipped: Society MemberCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society NextHead (r:1 w:1)
/// Proof Skipped: Society NextHead (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Society MemberByIndex (r:0 w:1)
/// Proof Skipped: Society MemberByIndex (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Members (r:0 w:1)
/// Proof Skipped: Society Members (max_values: None, max_size: None, mode: Measured)
fn bestow_membership() -> Weight {
// Proof Size summary in bytes:
// Measured: `622`
// Estimated: `4087`
// Minimum execution time: 43_450_000 picoseconds.
Weight::from_parts(44_330_000, 0)
.saturating_add(Weight::from_parts(0, 4087))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(6))
}
/// Storage: Society Founder (r:1 w:0)
/// Proof Skipped: Society Founder (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society Candidates (r:1 w:1)
/// Proof Skipped: Society Candidates (max_values: None, max_size: None, mode: Measured)
/// Storage: Society RoundCount (r:1 w:0)
/// Proof Skipped: Society RoundCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: System Account (r:2 w:2)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn kick_candidate() -> Weight {
// Proof Size summary in bytes:
// Measured: `748`
// Estimated: `6196`
// Minimum execution time: 43_754_000 picoseconds.
Weight::from_parts(44_431_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(3))
}
/// Storage: Society Candidates (r:1 w:1)
/// Proof Skipped: Society Candidates (max_values: None, max_size: None, mode: Measured)
/// Storage: Society RoundCount (r:1 w:0)
/// Proof Skipped: Society RoundCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: System Account (r:2 w:2)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn resign_candidacy() -> Weight {
// Proof Size summary in bytes:
// Measured: `718`
// Estimated: `6196`
// Minimum execution time: 38_184_000 picoseconds.
Weight::from_parts(38_748_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
}
/// Storage: Society Candidates (r:1 w:1)
/// Proof Skipped: Society Candidates (max_values: None, max_size: None, mode: Measured)
/// Storage: Society RoundCount (r:1 w:0)
/// Proof Skipped: Society RoundCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: System Account (r:2 w:2)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn drop_candidate() -> Weight {
// Proof Size summary in bytes:
// Measured: `730`
// Estimated: `6196`
// Minimum execution time: 38_442_000 picoseconds.
Weight::from_parts(39_150_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
}
/// Storage: Society Candidates (r:1 w:0)
/// Proof Skipped: Society Candidates (max_values: None, max_size: None, mode: Measured)
/// Storage: Society VoteClearCursor (r:1 w:0)
/// Proof Skipped: Society VoteClearCursor (max_values: None, max_size: None, mode: Measured)
/// Storage: Society Votes (r:2 w:2)
/// Proof Skipped: Society Votes (max_values: None, max_size: None, mode: Measured)
fn cleanup_candidacy() -> Weight {
// Proof Size summary in bytes:
// Measured: `524`
// Estimated: `6464`
// Minimum execution time: 17_373_000 picoseconds.
Weight::from_parts(18_288_000, 0)
.saturating_add(Weight::from_parts(0, 6464))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: Society ChallengeRoundCount (r:1 w:0)
/// Proof Skipped: Society ChallengeRoundCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Society DefenderVotes (r:1 w:1)
/// Proof Skipped: Society DefenderVotes (max_values: None, max_size: None, mode: Measured)
fn cleanup_challenge() -> Weight {
// Proof Size summary in bytes:
// Measured: `482`
// Estimated: `3947`
// Minimum execution time: 12_642_000 picoseconds.
Weight::from_parts(13_281_000, 0)
.saturating_add(Weight::from_parts(0, 3947))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
}