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-08-20, 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_756_000 picoseconds.
55 Weight::from_parts(9_055_000, 4789)
56 // Standard Error: 105_152
57 .saturating_add(Weight::from_parts(3_653_905, 0).saturating_mul(m.into()))
58 // Standard Error: 42_730
59 .saturating_add(Weight::from_parts(4_035_199, 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: 15_150_000 picoseconds.
78 Weight::from_parts(15_735_212, 2049)
79 // Standard Error: 26
80 .saturating_add(Weight::from_parts(1_472, 0).saturating_mul(b.into()))
81 // Standard Error: 2_844
82 .saturating_add(Weight::from_parts(7_360, 0).saturating_mul(m.into()))
83 .saturating_add(T::DbWeight::get().reads(1_u64))
84 .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
85 }
86 /// Storage: `Council::Members` (r:1 w:0)
87 /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
88 /// Storage: `Council::ProposalOf` (r:1 w:0)
89 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
90 /// The range of component `b` is `[2, 1024]`.
91 /// The range of component `m` is `[1, 10]`.
92 /// The range of component `b` is `[2, 1024]`.
93 /// The range of component `m` is `[1, 10]`.
94 fn propose_execute(b: u32, m: u32, ) -> Weight {
95 // Proof Size summary in bytes:
96 // Measured: `70 + m * (32 ±0)`
97 // Estimated: `4029 + m * (32 ±0)`
98 // Minimum execution time: 17_899_000 picoseconds.
99 Weight::from_parts(18_434_520, 4029)
100 // Standard Error: 35
101 .saturating_add(Weight::from_parts(1_538, 0).saturating_mul(b.into()))
102 // Standard Error: 3_745
103 .saturating_add(Weight::from_parts(49_079, 0).saturating_mul(m.into()))
104 .saturating_add(T::DbWeight::get().reads(2_u64))
105 .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
106 }
107 /// Storage: `Council::Members` (r:1 w:0)
108 /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
109 /// Storage: `Council::ProposalOf` (r:1 w:1)
110 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
111 /// Storage: `Council::Proposals` (r:1 w:1)
112 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
113 /// Storage: `Council::ProposalCount` (r:1 w:1)
114 /// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
115 /// Storage: `Council::Voting` (r:0 w:1)
116 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
117 /// The range of component `b` is `[2, 1024]`.
118 /// The range of component `m` is `[2, 10]`.
119 /// The range of component `p` is `[1, 25]`.
120 /// The range of component `b` is `[2, 1024]`.
121 /// The range of component `m` is `[2, 10]`.
122 /// The range of component `p` is `[1, 25]`.
123 fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
124 // Proof Size summary in bytes:
125 // Measured: `113 + m * (32 ±0) + p * (51 ±0)`
126 // Estimated: `4025 + m * (42 ±0) + p * (49 ±0)`
127 // Minimum execution time: 23_303_000 picoseconds.
128 Weight::from_parts(22_581_552, 4025)
129 // Standard Error: 83
130 .saturating_add(Weight::from_parts(2_426, 0).saturating_mul(b.into()))
131 // Standard Error: 9_824
132 .saturating_add(Weight::from_parts(183_605, 0).saturating_mul(m.into()))
133 // Standard Error: 3_428
134 .saturating_add(Weight::from_parts(328_164, 0).saturating_mul(p.into()))
135 .saturating_add(T::DbWeight::get().reads(4_u64))
136 .saturating_add(T::DbWeight::get().writes(4_u64))
137 .saturating_add(Weight::from_parts(0, 42).saturating_mul(m.into()))
138 .saturating_add(Weight::from_parts(0, 49).saturating_mul(p.into()))
139 }
140 /// Storage: `Council::Members` (r:1 w:0)
141 /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
142 /// Storage: `Council::Voting` (r:1 w:1)
143 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
144 /// The range of component `m` is `[5, 10]`.
145 /// The range of component `m` is `[5, 10]`.
146 fn vote(m: u32, ) -> Weight {
147 // Proof Size summary in bytes:
148 // Measured: `571 + m * (64 ±0)`
149 // Estimated: `4531 + m * (64 ±0)`
150 // Minimum execution time: 22_276_000 picoseconds.
151 Weight::from_parts(22_595_460, 4531)
152 // Standard Error: 6_951
153 .saturating_add(Weight::from_parts(151_891, 0).saturating_mul(m.into()))
154 .saturating_add(T::DbWeight::get().reads(2_u64))
155 .saturating_add(T::DbWeight::get().writes(1_u64))
156 .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
157 }
158 /// Storage: `Council::Voting` (r:1 w:1)
159 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
160 /// Storage: `Council::Members` (r:1 w:0)
161 /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
162 /// Storage: `Council::Proposals` (r:1 w:1)
163 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
164 /// Storage: `Council::ProposalOf` (r:0 w:1)
165 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
166 /// The range of component `m` is `[4, 10]`.
167 /// The range of component `p` is `[1, 25]`.
168 /// The range of component `m` is `[4, 10]`.
169 /// The range of component `p` is `[1, 25]`.
170 fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
171 // Proof Size summary in bytes:
172 // Measured: `41 + m * (64 ±0) + p * (54 ±0)`
173 // Estimated: `4019 + m * (80 ±0) + p * (50 ±0)`
174 // Minimum execution time: 24_744_000 picoseconds.
175 Weight::from_parts(24_654_700, 4019)
176 // Standard Error: 9_933
177 .saturating_add(Weight::from_parts(199_284, 0).saturating_mul(m.into()))
178 // Standard Error: 2_649
179 .saturating_add(Weight::from_parts(278_926, 0).saturating_mul(p.into()))
180 .saturating_add(T::DbWeight::get().reads(3_u64))
181 .saturating_add(T::DbWeight::get().writes(3_u64))
182 .saturating_add(Weight::from_parts(0, 80).saturating_mul(m.into()))
183 .saturating_add(Weight::from_parts(0, 50).saturating_mul(p.into()))
184 }
185 /// Storage: `Council::Voting` (r:1 w:1)
186 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
187 /// Storage: `Council::Members` (r:1 w:0)
188 /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
189 /// Storage: `Council::ProposalOf` (r:1 w:1)
190 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
191 /// Storage: `Council::Proposals` (r:1 w:1)
192 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
193 /// The range of component `b` is `[2, 1024]`.
194 /// The range of component `m` is `[4, 10]`.
195 /// The range of component `p` is `[1, 25]`.
196 /// The range of component `b` is `[2, 1024]`.
197 /// The range of component `m` is `[4, 10]`.
198 /// The range of component `p` is `[1, 25]`.
199 fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
200 // Proof Size summary in bytes:
201 // Measured: `72 + b * (1 ±0) + m * (64 ±0) + p * (72 ±0)`
202 // Estimated: `4025 + b * (1 ±0) + m * (85 ±1) + p * (65 ±0)`
203 // Minimum execution time: 34_869_000 picoseconds.
204 Weight::from_parts(33_010_808, 4025)
205 // Standard Error: 90
206 .saturating_add(Weight::from_parts(2_305, 0).saturating_mul(b.into()))
207 // Standard Error: 13_967
208 .saturating_add(Weight::from_parts(180_586, 0).saturating_mul(m.into()))
209 // Standard Error: 3_736
210 .saturating_add(Weight::from_parts(449_462, 0).saturating_mul(p.into()))
211 .saturating_add(T::DbWeight::get().reads(4_u64))
212 .saturating_add(T::DbWeight::get().writes(3_u64))
213 .saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
214 .saturating_add(Weight::from_parts(0, 85).saturating_mul(m.into()))
215 .saturating_add(Weight::from_parts(0, 65).saturating_mul(p.into()))
216 }
217 /// Storage: `Council::Voting` (r:1 w:1)
218 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
219 /// Storage: `Council::Members` (r:1 w:0)
220 /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
221 /// Storage: `Council::Prime` (r:1 w:0)
222 /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
223 /// Storage: `Council::Proposals` (r:1 w:1)
224 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
225 /// Storage: `Council::ProposalOf` (r:0 w:1)
226 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
227 /// The range of component `m` is `[4, 10]`.
228 /// The range of component `p` is `[1, 25]`.
229 /// The range of component `m` is `[4, 10]`.
230 /// The range of component `p` is `[1, 25]`.
231 fn close_disapproved(m: u32, p: u32, ) -> Weight {
232 // Proof Size summary in bytes:
233 // Measured: `61 + m * (64 ±0) + p * (54 ±0)`
234 // Estimated: `4039 + m * (80 ±0) + p * (50 ±0)`
235 // Minimum execution time: 27_235_000 picoseconds.
236 Weight::from_parts(27_164_926, 4039)
237 // Standard Error: 10_042
238 .saturating_add(Weight::from_parts(212_898, 0).saturating_mul(m.into()))
239 // Standard Error: 2_678
240 .saturating_add(Weight::from_parts(264_959, 0).saturating_mul(p.into()))
241 .saturating_add(T::DbWeight::get().reads(4_u64))
242 .saturating_add(T::DbWeight::get().writes(3_u64))
243 .saturating_add(Weight::from_parts(0, 80).saturating_mul(m.into()))
244 .saturating_add(Weight::from_parts(0, 50).saturating_mul(p.into()))
245 }
246 /// Storage: `Council::Voting` (r:1 w:1)
247 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
248 /// Storage: `Council::Members` (r:1 w:0)
249 /// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
250 /// Storage: `Council::Prime` (r:1 w:0)
251 /// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
252 /// Storage: `Council::ProposalOf` (r:1 w:1)
253 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
254 /// Storage: `Council::Proposals` (r:1 w:1)
255 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
256 /// The range of component `b` is `[2, 1024]`.
257 /// The range of component `m` is `[4, 10]`.
258 /// The range of component `p` is `[1, 25]`.
259 /// The range of component `b` is `[2, 1024]`.
260 /// The range of component `m` is `[4, 10]`.
261 /// The range of component `p` is `[1, 25]`.
262 fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
263 // Proof Size summary in bytes:
264 // Measured: `92 + b * (1 ±0) + m * (64 ±0) + p * (72 ±0)`
265 // Estimated: `4045 + b * (1 ±0) + m * (85 ±1) + p * (65 ±0)`
266 // Minimum execution time: 37_713_000 picoseconds.
267 Weight::from_parts(35_832_086, 4045)
268 // Standard Error: 91
269 .saturating_add(Weight::from_parts(2_437, 0).saturating_mul(b.into()))
270 // Standard Error: 14_142
271 .saturating_add(Weight::from_parts(167_715, 0).saturating_mul(m.into()))
272 // Standard Error: 3_783
273 .saturating_add(Weight::from_parts(443_117, 0).saturating_mul(p.into()))
274 .saturating_add(T::DbWeight::get().reads(5_u64))
275 .saturating_add(T::DbWeight::get().writes(3_u64))
276 .saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
277 .saturating_add(Weight::from_parts(0, 85).saturating_mul(m.into()))
278 .saturating_add(Weight::from_parts(0, 65).saturating_mul(p.into()))
279 }
280 /// Storage: `Council::Proposals` (r:1 w:1)
281 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
282 /// Storage: `Council::Voting` (r:0 w:1)
283 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
284 /// Storage: `Council::ProposalOf` (r:0 w:1)
285 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
286 /// The range of component `p` is `[1, 25]`.
287 /// The range of component `p` is `[1, 25]`.
288 fn disapprove_proposal(p: u32, ) -> Weight {
289 // Proof Size summary in bytes:
290 // Measured: `226 + p * (32 ±0)`
291 // Estimated: `2206 + p * (32 ±0)`
292 // Minimum execution time: 15_870_000 picoseconds.
293 Weight::from_parts(16_731_691, 2206)
294 // Standard Error: 1_343
295 .saturating_add(Weight::from_parts(219_165, 0).saturating_mul(p.into()))
296 .saturating_add(T::DbWeight::get().reads(1_u64))
297 .saturating_add(T::DbWeight::get().writes(3_u64))
298 .saturating_add(Weight::from_parts(0, 32).saturating_mul(p.into()))
299 }
300 /// Storage: `Council::ProposalOf` (r:1 w:1)
301 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
302 /// Storage: `Council::CostOf` (r:1 w:0)
303 /// Proof: `Council::CostOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
304 /// Storage: `Council::Proposals` (r:1 w:1)
305 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
306 /// Storage: `Council::Voting` (r:0 w:1)
307 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
308 /// The range of component `d` is `[0, 1]`.
309 /// The range of component `p` is `[1, 25]`.
310 /// The range of component `d` is `[0, 1]`.
311 /// The range of component `p` is `[1, 25]`.
312 fn kill(d: u32, p: u32, ) -> Weight {
313 // Proof Size summary in bytes:
314 // Measured: `1185 + p * (52 ±0)`
315 // Estimated: `5190 + d * (88 ±2) + p * (51 ±0)`
316 // Minimum execution time: 22_537_000 picoseconds.
317 Weight::from_parts(23_231_566, 5190)
318 // Standard Error: 44_828
319 .saturating_add(Weight::from_parts(461_444, 0).saturating_mul(d.into()))
320 // Standard Error: 2_783
321 .saturating_add(Weight::from_parts(315_753, 0).saturating_mul(p.into()))
322 .saturating_add(T::DbWeight::get().reads(3_u64))
323 .saturating_add(T::DbWeight::get().writes(3_u64))
324 .saturating_add(Weight::from_parts(0, 88).saturating_mul(d.into()))
325 .saturating_add(Weight::from_parts(0, 51).saturating_mul(p.into()))
326 }
327 /// Storage: `Council::ProposalOf` (r:1 w:0)
328 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
329 /// Storage: `Council::CostOf` (r:1 w:0)
330 /// Proof: `Council::CostOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
331 fn release_proposal_cost() -> Weight {
332 // Proof Size summary in bytes:
333 // Measured: `675`
334 // Estimated: `4635`
335 // Minimum execution time: 14_536_000 picoseconds.
336 Weight::from_parts(15_215_000, 4635)
337 .saturating_add(T::DbWeight::get().reads(2_u64))
338 }
339}
340
341
342#[cfg(test)]
343mod tests {
344 use frame_support::{traits::Get, weights::Weight, dispatch::DispatchClass};
345 use crate::constants::{MAXIMUM_BLOCK_WEIGHT, NORMAL_DISPATCH_RATIO};
346 use crate::weights::extrinsic_weights::ExtrinsicBaseWeight;
347
348 #[allow(dead_code)]
349 struct BlockWeights;
350 impl Get<frame_system::limits::BlockWeights> for BlockWeights {
351 fn get() -> frame_system::limits::BlockWeights {
352 frame_system::limits::BlockWeights::builder()
353 .base_block(Weight::zero())
354 .for_class(DispatchClass::all(), |weights| {
355 weights.base_extrinsic = ExtrinsicBaseWeight::get();
356 })
357 .for_class(DispatchClass::non_mandatory(), |weights| {
358 weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);
359 })
360 .build_or_panic()
361 }
362 }
363
364 #[test]
365 fn test_set_members() {
366 assert!(
367 BlockWeights::get()
368 .per_class
369 .get(frame_support::dispatch::DispatchClass::Normal)
370 .max_extrinsic
371 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
372 .proof_size()
373 > 4789
374 );
375 }
376 #[test]
377 fn test_execute() {
378 assert!(
379 BlockWeights::get()
380 .per_class
381 .get(frame_support::dispatch::DispatchClass::Normal)
382 .max_extrinsic
383 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
384 .proof_size()
385 > 2049
386 );
387 }
388 #[test]
389 fn test_propose_execute() {
390 assert!(
391 BlockWeights::get()
392 .per_class
393 .get(frame_support::dispatch::DispatchClass::Normal)
394 .max_extrinsic
395 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
396 .proof_size()
397 > 4029
398 );
399 }
400 #[test]
401 fn test_propose_proposed() {
402 assert!(
403 BlockWeights::get()
404 .per_class
405 .get(frame_support::dispatch::DispatchClass::Normal)
406 .max_extrinsic
407 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
408 .proof_size()
409 > 4025
410 );
411 }
412 #[test]
413 fn test_vote() {
414 assert!(
415 BlockWeights::get()
416 .per_class
417 .get(frame_support::dispatch::DispatchClass::Normal)
418 .max_extrinsic
419 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
420 .proof_size()
421 > 4531
422 );
423 }
424 #[test]
425 fn test_close_early_disapproved() {
426 assert!(
427 BlockWeights::get()
428 .per_class
429 .get(frame_support::dispatch::DispatchClass::Normal)
430 .max_extrinsic
431 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
432 .proof_size()
433 > 4019
434 );
435 }
436 #[test]
437 fn test_close_early_approved() {
438 assert!(
439 BlockWeights::get()
440 .per_class
441 .get(frame_support::dispatch::DispatchClass::Normal)
442 .max_extrinsic
443 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
444 .proof_size()
445 > 4025
446 );
447 }
448 #[test]
449 fn test_close_disapproved() {
450 assert!(
451 BlockWeights::get()
452 .per_class
453 .get(frame_support::dispatch::DispatchClass::Normal)
454 .max_extrinsic
455 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
456 .proof_size()
457 > 4039
458 );
459 }
460 #[test]
461 fn test_close_approved() {
462 assert!(
463 BlockWeights::get()
464 .per_class
465 .get(frame_support::dispatch::DispatchClass::Normal)
466 .max_extrinsic
467 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
468 .proof_size()
469 > 4045
470 );
471 }
472 #[test]
473 fn test_disapprove_proposal() {
474 assert!(
475 BlockWeights::get()
476 .per_class
477 .get(frame_support::dispatch::DispatchClass::Normal)
478 .max_extrinsic
479 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
480 .proof_size()
481 > 2206
482 );
483 }
484 #[test]
485 fn test_kill() {
486 assert!(
487 BlockWeights::get()
488 .per_class
489 .get(frame_support::dispatch::DispatchClass::Normal)
490 .max_extrinsic
491 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
492 .proof_size()
493 > 5190
494 );
495 }
496 #[test]
497 fn test_release_proposal_cost() {
498 assert!(
499 BlockWeights::get()
500 .per_class
501 .get(frame_support::dispatch::DispatchClass::Normal)
502 .max_extrinsic
503 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
504 .proof_size()
505 > 4635
506 );
507 }
508}