common_runtime/weights/pallet_collective_council.rs
1//! Autogenerated weights for pallet_collective
2//!
3//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0
4//! DATE: 2025-11-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
5//! WORST CASE MAP SIZE: `1000000`
6//! HOSTNAME: `ip-10-173-5-194`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
7//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
8
9// Executed Command:
10// ./scripts/../target/release/frequency
11// benchmark
12// pallet
13// --pallet=pallet_collective
14// --extrinsic
15// *
16// --heap-pages=4096
17// --steps=50
18// --repeat=20
19// --output=./scripts/../runtime/common/src/weights
20// --template=./scripts/../.maintain/runtime-weight-template.hbs
21// --additional-trie-layers=3
22// --runtime=./scripts/../target/release/wbuild/frequency-runtime/frequency_runtime.wasm
23// --genesis-builder=runtime
24
25#![cfg_attr(rustfmt, rustfmt_skip)]
26#![allow(unused_parens)]
27#![allow(unused_imports)]
28#![allow(missing_docs)]
29
30use frame_support::{traits::Get, weights::Weight};
31use core::marker::PhantomData;
32
33/// Weights for `pallet_collective` using the Substrate node and recommended hardware.
34pub struct SubstrateWeight<T>(PhantomData<T>);
35impl<T: frame_system::Config> pallet_collective::WeightInfo for SubstrateWeight<T> {
36 /// Storage: `Council::Members` (r:1 w:1)
37 /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
38 /// Storage: `Council::Proposals` (r:1 w:0)
39 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
40 /// Storage: `Council::Voting` (r:25 w:25)
41 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
42 /// Storage: `Council::Prime` (r:0 w:1)
43 /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
44 /// The range of component `m` is `[0, 10]`.
45 /// The range of component `n` is `[0, 10]`.
46 /// The range of component `p` is `[0, 25]`.
47 /// The range of component `m` is `[0, 10]`.
48 /// The range of component `n` is `[0, 10]`.
49 /// The range of component `p` is `[0, 25]`.
50 fn set_members(m: u32, _n: u32, p: u32, ) -> Weight {
51 // Proof Size summary in bytes:
52 // Measured: `0 + m * (832 ±0) + p * (310 ±0)`
53 // Estimated: `4789 + m * (489 ±5) + p * (2615 ±2)`
54 // Minimum execution time: 8_468_000 picoseconds.
55 Weight::from_parts(9_022_000, 4789)
56 // Standard Error: 104_516
57 .saturating_add(Weight::from_parts(3_576_712, 0).saturating_mul(m.into()))
58 // Standard Error: 42_471
59 .saturating_add(Weight::from_parts(3_984_107, 0).saturating_mul(p.into()))
60 .saturating_add(T::DbWeight::get().reads(2_u64))
61 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
62 .saturating_add(T::DbWeight::get().writes(2_u64))
63 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
64 .saturating_add(Weight::from_parts(0, 489).saturating_mul(m.into()))
65 .saturating_add(Weight::from_parts(0, 2615).saturating_mul(p.into()))
66 }
67 /// Storage: `Council::Members` (r:1 w:0)
68 /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
69 /// The range of component `b` is `[2, 1024]`.
70 /// The range of component `m` is `[1, 10]`.
71 /// The range of component `b` is `[2, 1024]`.
72 /// The range of component `m` is `[1, 10]`.
73 fn execute(b: u32, m: u32, ) -> Weight {
74 // Proof Size summary in bytes:
75 // Measured: `70 + m * (32 ±0)`
76 // Estimated: `2049 + m * (32 ±0)`
77 // Minimum execution time: 14_815_000 picoseconds.
78 Weight::from_parts(15_829_019, 2049)
79 // Standard Error: 30
80 .saturating_add(Weight::from_parts(1_246, 0).saturating_mul(b.into()))
81 .saturating_add(T::DbWeight::get().reads(1_u64))
82 .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
83 }
84 /// Storage: `Council::Members` (r:1 w:0)
85 /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
86 /// Storage: `Council::ProposalOf` (r:1 w:0)
87 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
88 /// The range of component `b` is `[2, 1024]`.
89 /// The range of component `m` is `[1, 10]`.
90 /// The range of component `b` is `[2, 1024]`.
91 /// The range of component `m` is `[1, 10]`.
92 fn propose_execute(b: u32, m: u32, ) -> Weight {
93 // Proof Size summary in bytes:
94 // Measured: `70 + m * (32 ±0)`
95 // Estimated: `4029 + m * (32 ±0)`
96 // Minimum execution time: 17_743_000 picoseconds.
97 Weight::from_parts(18_060_272, 4029)
98 // Standard Error: 30
99 .saturating_add(Weight::from_parts(1_650, 0).saturating_mul(b.into()))
100 // Standard Error: 3_291
101 .saturating_add(Weight::from_parts(30_368, 0).saturating_mul(m.into()))
102 .saturating_add(T::DbWeight::get().reads(2_u64))
103 .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
104 }
105 /// Storage: `Council::Members` (r:1 w:0)
106 /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
107 /// Storage: `Council::ProposalOf` (r:1 w:1)
108 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
109 /// Storage: `Council::Proposals` (r:1 w:1)
110 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
111 /// Storage: `Council::ProposalCount` (r:1 w:1)
112 /// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
113 /// Storage: `Council::Voting` (r:0 w:1)
114 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
115 /// The range of component `b` is `[2, 1024]`.
116 /// The range of component `m` is `[2, 10]`.
117 /// The range of component `p` is `[1, 25]`.
118 /// The range of component `b` is `[2, 1024]`.
119 /// The range of component `m` is `[2, 10]`.
120 /// The range of component `p` is `[1, 25]`.
121 fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
122 // Proof Size summary in bytes:
123 // Measured: `113 + m * (32 ±0) + p * (51 ±0)`
124 // Estimated: `4025 + m * (42 ±0) + p * (49 ±0)`
125 // Minimum execution time: 22_929_000 picoseconds.
126 Weight::from_parts(22_322_328, 4025)
127 // Standard Error: 82
128 .saturating_add(Weight::from_parts(2_462, 0).saturating_mul(b.into()))
129 // Standard Error: 9_715
130 .saturating_add(Weight::from_parts(173_945, 0).saturating_mul(m.into()))
131 // Standard Error: 3_390
132 .saturating_add(Weight::from_parts(324_211, 0).saturating_mul(p.into()))
133 .saturating_add(T::DbWeight::get().reads(4_u64))
134 .saturating_add(T::DbWeight::get().writes(4_u64))
135 .saturating_add(Weight::from_parts(0, 42).saturating_mul(m.into()))
136 .saturating_add(Weight::from_parts(0, 49).saturating_mul(p.into()))
137 }
138 /// Storage: `Council::Members` (r:1 w:0)
139 /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
140 /// Storage: `Council::Voting` (r:1 w:1)
141 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
142 /// The range of component `m` is `[5, 10]`.
143 /// The range of component `m` is `[5, 10]`.
144 fn vote(m: u32, ) -> Weight {
145 // Proof Size summary in bytes:
146 // Measured: `571 + m * (64 ±0)`
147 // Estimated: `4531 + m * (64 ±0)`
148 // Minimum execution time: 21_397_000 picoseconds.
149 Weight::from_parts(22_219_349, 4531)
150 // Standard Error: 7_129
151 .saturating_add(Weight::from_parts(157_096, 0).saturating_mul(m.into()))
152 .saturating_add(T::DbWeight::get().reads(2_u64))
153 .saturating_add(T::DbWeight::get().writes(1_u64))
154 .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
155 }
156 /// Storage: `Council::Voting` (r:1 w:1)
157 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
158 /// Storage: `Council::Members` (r:1 w:0)
159 /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
160 /// Storage: `Council::Proposals` (r:1 w:1)
161 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
162 /// Storage: `Council::ProposalOf` (r:0 w:1)
163 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
164 /// The range of component `m` is `[4, 10]`.
165 /// The range of component `p` is `[1, 25]`.
166 /// The range of component `m` is `[4, 10]`.
167 /// The range of component `p` is `[1, 25]`.
168 fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
169 // Proof Size summary in bytes:
170 // Measured: `41 + m * (64 ±0) + p * (54 ±0)`
171 // Estimated: `4019 + m * (80 ±0) + p * (50 ±0)`
172 // Minimum execution time: 24_313_000 picoseconds.
173 Weight::from_parts(24_094_071, 4019)
174 // Standard Error: 10_126
175 .saturating_add(Weight::from_parts(219_705, 0).saturating_mul(m.into()))
176 // Standard Error: 2_701
177 .saturating_add(Weight::from_parts(280_639, 0).saturating_mul(p.into()))
178 .saturating_add(T::DbWeight::get().reads(3_u64))
179 .saturating_add(T::DbWeight::get().writes(3_u64))
180 .saturating_add(Weight::from_parts(0, 80).saturating_mul(m.into()))
181 .saturating_add(Weight::from_parts(0, 50).saturating_mul(p.into()))
182 }
183 /// Storage: `Council::Voting` (r:1 w:1)
184 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
185 /// Storage: `Council::Members` (r:1 w:0)
186 /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
187 /// Storage: `Council::ProposalOf` (r:1 w:1)
188 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
189 /// Storage: `Council::Proposals` (r:1 w:1)
190 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
191 /// The range of component `b` is `[2, 1024]`.
192 /// The range of component `m` is `[4, 10]`.
193 /// The range of component `p` is `[1, 25]`.
194 /// The range of component `b` is `[2, 1024]`.
195 /// The range of component `m` is `[4, 10]`.
196 /// The range of component `p` is `[1, 25]`.
197 fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
198 // Proof Size summary in bytes:
199 // Measured: `72 + b * (1 ±0) + m * (64 ±0) + p * (72 ±0)`
200 // Estimated: `4025 + b * (1 ±0) + m * (85 ±1) + p * (65 ±0)`
201 // Minimum execution time: 34_274_000 picoseconds.
202 Weight::from_parts(30_889_055, 4025)
203 // Standard Error: 124
204 .saturating_add(Weight::from_parts(2_798, 0).saturating_mul(b.into()))
205 // Standard Error: 19_271
206 .saturating_add(Weight::from_parts(288_709, 0).saturating_mul(m.into()))
207 // Standard Error: 5_155
208 .saturating_add(Weight::from_parts(463_833, 0).saturating_mul(p.into()))
209 .saturating_add(T::DbWeight::get().reads(4_u64))
210 .saturating_add(T::DbWeight::get().writes(3_u64))
211 .saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
212 .saturating_add(Weight::from_parts(0, 85).saturating_mul(m.into()))
213 .saturating_add(Weight::from_parts(0, 65).saturating_mul(p.into()))
214 }
215 /// Storage: `Council::Voting` (r:1 w:1)
216 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
217 /// Storage: `Council::Members` (r:1 w:0)
218 /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
219 /// Storage: `Council::Prime` (r:1 w:0)
220 /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
221 /// Storage: `Council::Proposals` (r:1 w:1)
222 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
223 /// Storage: `Council::ProposalOf` (r:0 w:1)
224 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
225 /// The range of component `m` is `[4, 10]`.
226 /// The range of component `p` is `[1, 25]`.
227 /// The range of component `m` is `[4, 10]`.
228 /// The range of component `p` is `[1, 25]`.
229 fn close_disapproved(m: u32, p: u32, ) -> Weight {
230 // Proof Size summary in bytes:
231 // Measured: `61 + m * (64 ±0) + p * (54 ±0)`
232 // Estimated: `4039 + m * (80 ±0) + p * (50 ±0)`
233 // Minimum execution time: 26_839_000 picoseconds.
234 Weight::from_parts(26_643_644, 4039)
235 // Standard Error: 10_451
236 .saturating_add(Weight::from_parts(226_870, 0).saturating_mul(m.into()))
237 // Standard Error: 2_787
238 .saturating_add(Weight::from_parts(273_883, 0).saturating_mul(p.into()))
239 .saturating_add(T::DbWeight::get().reads(4_u64))
240 .saturating_add(T::DbWeight::get().writes(3_u64))
241 .saturating_add(Weight::from_parts(0, 80).saturating_mul(m.into()))
242 .saturating_add(Weight::from_parts(0, 50).saturating_mul(p.into()))
243 }
244 /// Storage: `Council::Voting` (r:1 w:1)
245 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
246 /// Storage: `Council::Members` (r:1 w:0)
247 /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
248 /// Storage: `Council::Prime` (r:1 w:0)
249 /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
250 /// Storage: `Council::ProposalOf` (r:1 w:1)
251 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
252 /// Storage: `Council::Proposals` (r:1 w:1)
253 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
254 /// The range of component `b` is `[2, 1024]`.
255 /// The range of component `m` is `[4, 10]`.
256 /// The range of component `p` is `[1, 25]`.
257 /// The range of component `b` is `[2, 1024]`.
258 /// The range of component `m` is `[4, 10]`.
259 /// The range of component `p` is `[1, 25]`.
260 fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
261 // Proof Size summary in bytes:
262 // Measured: `92 + b * (1 ±0) + m * (64 ±0) + p * (72 ±0)`
263 // Estimated: `4045 + b * (1 ±0) + m * (85 ±1) + p * (65 ±0)`
264 // Minimum execution time: 37_025_000 picoseconds.
265 Weight::from_parts(34_656_908, 4045)
266 // Standard Error: 94
267 .saturating_add(Weight::from_parts(2_521, 0).saturating_mul(b.into()))
268 // Standard Error: 14_554
269 .saturating_add(Weight::from_parts(197_660, 0).saturating_mul(m.into()))
270 // Standard Error: 3_894
271 .saturating_add(Weight::from_parts(469_122, 0).saturating_mul(p.into()))
272 .saturating_add(T::DbWeight::get().reads(5_u64))
273 .saturating_add(T::DbWeight::get().writes(3_u64))
274 .saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
275 .saturating_add(Weight::from_parts(0, 85).saturating_mul(m.into()))
276 .saturating_add(Weight::from_parts(0, 65).saturating_mul(p.into()))
277 }
278 /// Storage: `Council::Proposals` (r:1 w:1)
279 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
280 /// Storage: `Council::Voting` (r:0 w:1)
281 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
282 /// Storage: `Council::ProposalOf` (r:0 w:1)
283 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
284 /// The range of component `p` is `[1, 25]`.
285 /// The range of component `p` is `[1, 25]`.
286 fn disapprove_proposal(p: u32, ) -> Weight {
287 // Proof Size summary in bytes:
288 // Measured: `226 + p * (32 ±0)`
289 // Estimated: `2206 + p * (32 ±0)`
290 // Minimum execution time: 15_477_000 picoseconds.
291 Weight::from_parts(16_215_965, 2206)
292 // Standard Error: 1_457
293 .saturating_add(Weight::from_parts(231_012, 0).saturating_mul(p.into()))
294 .saturating_add(T::DbWeight::get().reads(1_u64))
295 .saturating_add(T::DbWeight::get().writes(3_u64))
296 .saturating_add(Weight::from_parts(0, 32).saturating_mul(p.into()))
297 }
298 /// Storage: `Council::ProposalOf` (r:1 w:1)
299 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
300 /// Storage: `Council::CostOf` (r:1 w:0)
301 /// Proof: `Council::CostOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
302 /// Storage: `Council::Proposals` (r:1 w:1)
303 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
304 /// Storage: `Council::Voting` (r:0 w:1)
305 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
306 /// The range of component `d` is `[0, 1]`.
307 /// The range of component `p` is `[1, 25]`.
308 /// The range of component `d` is `[0, 1]`.
309 /// The range of component `p` is `[1, 25]`.
310 fn kill(d: u32, p: u32, ) -> Weight {
311 // Proof Size summary in bytes:
312 // Measured: `1185 + p * (52 ±0)`
313 // Estimated: `5190 + d * (88 ±2) + p * (51 ±0)`
314 // Minimum execution time: 21_822_000 picoseconds.
315 Weight::from_parts(22_696_419, 5190)
316 // Standard Error: 42_509
317 .saturating_add(Weight::from_parts(407_554, 0).saturating_mul(d.into()))
318 // Standard Error: 2_639
319 .saturating_add(Weight::from_parts(334_023, 0).saturating_mul(p.into()))
320 .saturating_add(T::DbWeight::get().reads(3_u64))
321 .saturating_add(T::DbWeight::get().writes(3_u64))
322 .saturating_add(Weight::from_parts(0, 88).saturating_mul(d.into()))
323 .saturating_add(Weight::from_parts(0, 51).saturating_mul(p.into()))
324 }
325 /// Storage: `Council::ProposalOf` (r:1 w:0)
326 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
327 /// Storage: `Council::CostOf` (r:1 w:0)
328 /// Proof: `Council::CostOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
329 fn release_proposal_cost() -> Weight {
330 // Proof Size summary in bytes:
331 // Measured: `675`
332 // Estimated: `4635`
333 // Minimum execution time: 14_592_000 picoseconds.
334 Weight::from_parts(15_095_000, 4635)
335 .saturating_add(T::DbWeight::get().reads(2_u64))
336 }
337}
338
339
340#[cfg(test)]
341mod tests {
342 use frame_support::{traits::Get, weights::Weight, dispatch::DispatchClass};
343 use crate::constants::{MAXIMUM_BLOCK_WEIGHT, NORMAL_DISPATCH_RATIO};
344 use crate::weights::extrinsic_weights::ExtrinsicBaseWeight;
345
346 #[allow(dead_code)]
347 struct BlockWeights;
348 impl Get<frame_system::limits::BlockWeights> for BlockWeights {
349 fn get() -> frame_system::limits::BlockWeights {
350 frame_system::limits::BlockWeights::builder()
351 .base_block(Weight::zero())
352 .for_class(DispatchClass::all(), |weights| {
353 weights.base_extrinsic = ExtrinsicBaseWeight::get();
354 })
355 .for_class(DispatchClass::non_mandatory(), |weights| {
356 weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);
357 })
358 .build_or_panic()
359 }
360 }
361
362 #[test]
363 fn test_set_members() {
364 assert!(
365 BlockWeights::get()
366 .per_class
367 .get(frame_support::dispatch::DispatchClass::Normal)
368 .max_extrinsic
369 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
370 .proof_size()
371 > 4789
372 );
373 }
374 #[test]
375 fn test_execute() {
376 assert!(
377 BlockWeights::get()
378 .per_class
379 .get(frame_support::dispatch::DispatchClass::Normal)
380 .max_extrinsic
381 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
382 .proof_size()
383 > 2049
384 );
385 }
386 #[test]
387 fn test_propose_execute() {
388 assert!(
389 BlockWeights::get()
390 .per_class
391 .get(frame_support::dispatch::DispatchClass::Normal)
392 .max_extrinsic
393 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
394 .proof_size()
395 > 4029
396 );
397 }
398 #[test]
399 fn test_propose_proposed() {
400 assert!(
401 BlockWeights::get()
402 .per_class
403 .get(frame_support::dispatch::DispatchClass::Normal)
404 .max_extrinsic
405 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
406 .proof_size()
407 > 4025
408 );
409 }
410 #[test]
411 fn test_vote() {
412 assert!(
413 BlockWeights::get()
414 .per_class
415 .get(frame_support::dispatch::DispatchClass::Normal)
416 .max_extrinsic
417 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
418 .proof_size()
419 > 4531
420 );
421 }
422 #[test]
423 fn test_close_early_disapproved() {
424 assert!(
425 BlockWeights::get()
426 .per_class
427 .get(frame_support::dispatch::DispatchClass::Normal)
428 .max_extrinsic
429 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
430 .proof_size()
431 > 4019
432 );
433 }
434 #[test]
435 fn test_close_early_approved() {
436 assert!(
437 BlockWeights::get()
438 .per_class
439 .get(frame_support::dispatch::DispatchClass::Normal)
440 .max_extrinsic
441 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
442 .proof_size()
443 > 4025
444 );
445 }
446 #[test]
447 fn test_close_disapproved() {
448 assert!(
449 BlockWeights::get()
450 .per_class
451 .get(frame_support::dispatch::DispatchClass::Normal)
452 .max_extrinsic
453 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
454 .proof_size()
455 > 4039
456 );
457 }
458 #[test]
459 fn test_close_approved() {
460 assert!(
461 BlockWeights::get()
462 .per_class
463 .get(frame_support::dispatch::DispatchClass::Normal)
464 .max_extrinsic
465 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
466 .proof_size()
467 > 4045
468 );
469 }
470 #[test]
471 fn test_disapprove_proposal() {
472 assert!(
473 BlockWeights::get()
474 .per_class
475 .get(frame_support::dispatch::DispatchClass::Normal)
476 .max_extrinsic
477 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
478 .proof_size()
479 > 2206
480 );
481 }
482 #[test]
483 fn test_kill() {
484 assert!(
485 BlockWeights::get()
486 .per_class
487 .get(frame_support::dispatch::DispatchClass::Normal)
488 .max_extrinsic
489 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
490 .proof_size()
491 > 5190
492 );
493 }
494 #[test]
495 fn test_release_proposal_cost() {
496 assert!(
497 BlockWeights::get()
498 .per_class
499 .get(frame_support::dispatch::DispatchClass::Normal)
500 .max_extrinsic
501 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
502 .proof_size()
503 > 4635
504 );
505 }
506}