1
// Copyright 2025 Moonbeam foundation
2
// This file is part of Moonbeam.
3

            
4
// Moonbeam is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8

            
9
// Moonbeam is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13

            
14
// You should have received a copy of the GNU General Public License
15
// along with Moonbeam.  If not, see <http://www.gnu.org/licenses/>.
16

            
17

            
18
//! Autogenerated weights for `pallet_collective_treasury_council`
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 43.0.0
21
//! DATE: 2025-03-07, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `Mac`, CPU: `<UNKNOWN>`
24
//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
25

            
26
// Executed Command:
27
// frame-omni-bencher
28
// v1
29
// benchmark
30
// pallet
31
// --runtime=./target/release/wbuild/moonriver-runtime/moonriver_runtime.wasm
32
// --genesis-builder=runtime
33
// --genesis-builder-preset=development
34
// --steps=2
35
// --repeat=1
36
// --pallet=pallet_collective_treasury_council
37
// --extrinsic=*
38
// --wasm-execution=compiled
39
// --header=./file_header.txt
40
// --template=./benchmarking/frame-weight-template.hbs
41
// --output=./runtime/moonriver/src/weights
42

            
43
#![cfg_attr(rustfmt, rustfmt_skip)]
44
#![allow(unused_parens)]
45
#![allow(unused_imports)]
46

            
47
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
48
use sp_std::marker::PhantomData;
49

            
50
use pallet_collective as pallet_collective_treasury_council;
51

            
52
/// Weights for `pallet_collective_treasury_council`.
53
pub struct WeightInfo<T>(PhantomData<T>);
54
impl<T: frame_system::Config> pallet_collective_treasury_council::WeightInfo for WeightInfo<T> {
55
	/// Storage: `TreasuryCouncilCollective::Members` (r:1 w:1)
56
	/// Proof: `TreasuryCouncilCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
57
	/// Storage: `TreasuryCouncilCollective::Proposals` (r:1 w:0)
58
	/// Proof: `TreasuryCouncilCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
59
	/// Storage: `TreasuryCouncilCollective::Voting` (r:20 w:20)
60
	/// Proof: `TreasuryCouncilCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
61
	/// Storage: `TreasuryCouncilCollective::Prime` (r:0 w:1)
62
	/// Proof: `TreasuryCouncilCollective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
63
	/// The range of component `m` is `[0, 9]`.
64
	/// The range of component `n` is `[0, 9]`.
65
	/// The range of component `p` is `[0, 20]`.
66
10
	fn set_members(m: u32, _n: u32, p: u32, ) -> Weight {
67
10
		// Proof Size summary in bytes:
68
10
		//  Measured:  `0 + m * (493 ±0) + p * (211 ±0)`
69
10
		//  Estimated: `1651 + m * (313 ±108) + p * (8192 ±48)`
70
10
		// Minimum execution time: 8_000_000 picoseconds.
71
10
		Weight::from_parts(8_000_000, 1651)
72
10
			// Standard Error: 2_454_584
73
10
			.saturating_add(Weight::from_parts(5_341_880, 0).saturating_mul(m.into()))
74
10
			// Standard Error: 1_104_562
75
10
			.saturating_add(Weight::from_parts(2_353_846, 0).saturating_mul(p.into()))
76
10
			.saturating_add(T::DbWeight::get().reads(2_u64))
77
10
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
78
10
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
79
10
			.saturating_add(T::DbWeight::get().writes(2_u64))
80
10
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into())))
81
10
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
82
10
			.saturating_add(Weight::from_parts(0, 313).saturating_mul(m.into()))
83
10
			.saturating_add(Weight::from_parts(0, 8192).saturating_mul(p.into()))
84
10
	}
85
	/// Storage: `TreasuryCouncilCollective::Members` (r:1 w:0)
86
	/// Proof: `TreasuryCouncilCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
87
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
88
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
89
	/// The range of component `b` is `[2, 1024]`.
90
	/// The range of component `m` is `[1, 9]`.
91
	fn execute(b: u32, m: u32, ) -> Weight {
92
		// Proof Size summary in bytes:
93
		//  Measured:  `208 + m * (20 ±0)`
94
		//  Estimated: `1694 + m * (20 ±0)`
95
		// Minimum execution time: 13_000_000 picoseconds.
96
		Weight::from_parts(5_674_779, 1694)
97
			// Standard Error: 9_321
98
			.saturating_add(Weight::from_parts(6_360, 0).saturating_mul(b.into()))
99
			// Standard Error: 1_190_784
100
			.saturating_add(Weight::from_parts(812_500, 0).saturating_mul(m.into()))
101
			.saturating_add(T::DbWeight::get().reads(2_u64))
102
			.saturating_add(Weight::from_parts(0, 20).saturating_mul(m.into()))
103
	}
104
	/// Storage: `TreasuryCouncilCollective::Members` (r:1 w:0)
105
	/// Proof: `TreasuryCouncilCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
106
	/// Storage: `TreasuryCouncilCollective::ProposalOf` (r:1 w:0)
107
	/// Proof: `TreasuryCouncilCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
108
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
109
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
110
	/// The range of component `b` is `[2, 1024]`.
111
	/// The range of component `m` is `[1, 9]`.
112
	fn propose_execute(_b: u32, m: u32, ) -> Weight {
113
		// Proof Size summary in bytes:
114
		//  Measured:  `208 + m * (20 ±0)`
115
		//  Estimated: `3674 + m * (20 ±0)`
116
		// Minimum execution time: 15_000_000 picoseconds.
117
		Weight::from_parts(14_750_000, 3674)
118
			// Standard Error: 433_012
119
			.saturating_add(Weight::from_parts(250_000, 0).saturating_mul(m.into()))
120
			.saturating_add(T::DbWeight::get().reads(3_u64))
121
			.saturating_add(Weight::from_parts(0, 20).saturating_mul(m.into()))
122
	}
123
	/// Storage: `TreasuryCouncilCollective::Members` (r:1 w:0)
124
	/// Proof: `TreasuryCouncilCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
125
	/// Storage: `TreasuryCouncilCollective::ProposalOf` (r:1 w:1)
126
	/// Proof: `TreasuryCouncilCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
127
	/// Storage: `TreasuryCouncilCollective::Proposals` (r:1 w:1)
128
	/// Proof: `TreasuryCouncilCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
129
	/// Storage: `TreasuryCouncilCollective::ProposalCount` (r:1 w:1)
130
	/// Proof: `TreasuryCouncilCollective::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
131
	/// Storage: `TreasuryCouncilCollective::Voting` (r:0 w:1)
132
	/// Proof: `TreasuryCouncilCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
133
	/// The range of component `b` is `[2, 1024]`.
134
	/// The range of component `m` is `[2, 9]`.
135
	/// The range of component `p` is `[1, 20]`.
136
	fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
137
		// Proof Size summary in bytes:
138
		//  Measured:  `83 + m * (20 ±0) + p * (58 ±0)`
139
		//  Estimated: `3548 + m * (20 ±0) + p * (58 ±0)`
140
		// Minimum execution time: 16_000_000 picoseconds.
141
		Weight::from_parts(9_843_753, 3548)
142
			// Standard Error: 2_989
143
			.saturating_add(Weight::from_parts(2_935, 0).saturating_mul(b.into()))
144
			// Standard Error: 436_435
145
			.saturating_add(Weight::from_parts(285_714, 0).saturating_mul(m.into()))
146
			// Standard Error: 160_792
147
			.saturating_add(Weight::from_parts(578_947, 0).saturating_mul(p.into()))
148
			.saturating_add(T::DbWeight::get().reads(4_u64))
149
			.saturating_add(T::DbWeight::get().writes(4_u64))
150
			.saturating_add(Weight::from_parts(0, 20).saturating_mul(m.into()))
151
			.saturating_add(Weight::from_parts(0, 58).saturating_mul(p.into()))
152
	}
153
	/// Storage: `TreasuryCouncilCollective::Members` (r:1 w:0)
154
	/// Proof: `TreasuryCouncilCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
155
	/// Storage: `TreasuryCouncilCollective::Voting` (r:1 w:1)
156
	/// Proof: `TreasuryCouncilCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
157
	/// The range of component `m` is `[5, 9]`.
158
	fn vote(_m: u32, ) -> Weight {
159
		// Proof Size summary in bytes:
160
		//  Measured:  `734 + m * (40 ±0)`
161
		//  Estimated: `4559`
162
		// Minimum execution time: 16_000_000 picoseconds.
163
		Weight::from_parts(17_000_000, 4559)
164
			.saturating_add(T::DbWeight::get().reads(2_u64))
165
			.saturating_add(T::DbWeight::get().writes(1_u64))
166
	}
167
	/// Storage: `TreasuryCouncilCollective::Voting` (r:1 w:1)
168
	/// Proof: `TreasuryCouncilCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
169
	/// Storage: `TreasuryCouncilCollective::Members` (r:1 w:0)
170
	/// Proof: `TreasuryCouncilCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
171
	/// Storage: `TreasuryCouncilCollective::Proposals` (r:1 w:1)
172
	/// Proof: `TreasuryCouncilCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
173
	/// Storage: `TreasuryCouncilCollective::ProposalOf` (r:0 w:1)
174
	/// Proof: `TreasuryCouncilCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
175
	/// The range of component `m` is `[4, 9]`.
176
	/// The range of component `p` is `[1, 20]`.
177
	fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
178
		// Proof Size summary in bytes:
179
		//  Measured:  `276 + m * (40 ±0) + p * (55 ±0)`
180
		//  Estimated: `3742 + m * (40 ±0) + p * (55 ±0)`
181
		// Minimum execution time: 20_000_000 picoseconds.
182
		Weight::from_parts(18_757_894, 3742)
183
			// Standard Error: 866_025
184
			.saturating_add(Weight::from_parts(100_000, 0).saturating_mul(m.into()))
185
			// Standard Error: 227_901
186
			.saturating_add(Weight::from_parts(342_105, 0).saturating_mul(p.into()))
187
			.saturating_add(T::DbWeight::get().reads(3_u64))
188
			.saturating_add(T::DbWeight::get().writes(3_u64))
189
			.saturating_add(Weight::from_parts(0, 40).saturating_mul(m.into()))
190
			.saturating_add(Weight::from_parts(0, 55).saturating_mul(p.into()))
191
	}
192
	/// Storage: `TreasuryCouncilCollective::Voting` (r:1 w:1)
193
	/// Proof: `TreasuryCouncilCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
194
	/// Storage: `TreasuryCouncilCollective::Members` (r:1 w:0)
195
	/// Proof: `TreasuryCouncilCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
196
	/// Storage: `TreasuryCouncilCollective::ProposalOf` (r:1 w:1)
197
	/// Proof: `TreasuryCouncilCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
198
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
199
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
200
	/// Storage: `TreasuryCouncilCollective::Proposals` (r:1 w:1)
201
	/// Proof: `TreasuryCouncilCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
202
	/// The range of component `b` is `[2, 1024]`.
203
	/// The range of component `m` is `[4, 9]`.
204
	/// The range of component `p` is `[1, 20]`.
205
	fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
206
		// Proof Size summary in bytes:
207
		//  Measured:  `242 + b * (1 ±0) + m * (40 ±0) + p * (78 ±0)`
208
		//  Estimated: `3707 + b * (1 ±0) + m * (40 ±0) + p * (79 ±0)`
209
		// Minimum execution time: 29_000_000 picoseconds.
210
		Weight::from_parts(25_417_385, 3707)
211
			// Standard Error: 4_277
212
			.saturating_add(Weight::from_parts(3_587, 0).saturating_mul(b.into()))
213
			// Standard Error: 230_085
214
			.saturating_add(Weight::from_parts(508_771, 0).saturating_mul(p.into()))
215
			.saturating_add(T::DbWeight::get().reads(5_u64))
216
			.saturating_add(T::DbWeight::get().writes(3_u64))
217
			.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
218
			.saturating_add(Weight::from_parts(0, 40).saturating_mul(m.into()))
219
			.saturating_add(Weight::from_parts(0, 79).saturating_mul(p.into()))
220
	}
221
	/// Storage: `TreasuryCouncilCollective::Voting` (r:1 w:1)
222
	/// Proof: `TreasuryCouncilCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
223
	/// Storage: `TreasuryCouncilCollective::Members` (r:1 w:0)
224
	/// Proof: `TreasuryCouncilCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
225
	/// Storage: `TreasuryCouncilCollective::Prime` (r:1 w:0)
226
	/// Proof: `TreasuryCouncilCollective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
227
	/// Storage: `TreasuryCouncilCollective::Proposals` (r:1 w:1)
228
	/// Proof: `TreasuryCouncilCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
229
	/// Storage: `TreasuryCouncilCollective::ProposalOf` (r:0 w:1)
230
	/// Proof: `TreasuryCouncilCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
231
	/// The range of component `m` is `[4, 9]`.
232
	/// The range of component `p` is `[1, 20]`.
233
	fn close_disapproved(m: u32, p: u32, ) -> Weight {
234
		// Proof Size summary in bytes:
235
		//  Measured:  `327 + m * (32 ±0) + p * (55 ±0)`
236
		//  Estimated: `3792 + m * (32 ±0) + p * (55 ±0)`
237
		// Minimum execution time: 21_000_000 picoseconds.
238
		Weight::from_parts(21_715_789, 3792)
239
			// Standard Error: 45_580
240
			.saturating_add(Weight::from_parts(184_210, 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, 32).saturating_mul(m.into()))
244
			.saturating_add(Weight::from_parts(0, 55).saturating_mul(p.into()))
245
	}
246
	/// Storage: `TreasuryCouncilCollective::Voting` (r:1 w:1)
247
	/// Proof: `TreasuryCouncilCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
248
	/// Storage: `TreasuryCouncilCollective::Members` (r:1 w:0)
249
	/// Proof: `TreasuryCouncilCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
250
	/// Storage: `TreasuryCouncilCollective::Prime` (r:1 w:0)
251
	/// Proof: `TreasuryCouncilCollective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
252
	/// Storage: `TreasuryCouncilCollective::ProposalOf` (r:1 w:1)
253
	/// Proof: `TreasuryCouncilCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
254
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
255
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
256
	/// Storage: `TreasuryCouncilCollective::Proposals` (r:1 w:1)
257
	/// Proof: `TreasuryCouncilCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
258
	/// The range of component `b` is `[2, 1024]`.
259
	/// The range of component `m` is `[4, 9]`.
260
	/// The range of component `p` is `[1, 20]`.
261
	fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
262
		// Proof Size summary in bytes:
263
		//  Measured:  `260 + b * (1 ±0) + m * (40 ±0) + p * (78 ±0)`
264
		//  Estimated: `3725 + b * (1 ±0) + m * (40 ±0) + p * (79 ±0)`
265
		// Minimum execution time: 30_000_000 picoseconds.
266
		Weight::from_parts(27_678_092, 3725)
267
			// Standard Error: 652
268
			.saturating_add(Weight::from_parts(1_304, 0).saturating_mul(b.into()))
269
			// Standard Error: 133_333
270
			.saturating_add(Weight::from_parts(66_666, 0).saturating_mul(m.into()))
271
			// Standard Error: 35_087
272
			.saturating_add(Weight::from_parts(385_964, 0).saturating_mul(p.into()))
273
			.saturating_add(T::DbWeight::get().reads(6_u64))
274
			.saturating_add(T::DbWeight::get().writes(3_u64))
275
			.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
276
			.saturating_add(Weight::from_parts(0, 40).saturating_mul(m.into()))
277
			.saturating_add(Weight::from_parts(0, 79).saturating_mul(p.into()))
278
	}
279
	/// Storage: `TreasuryCouncilCollective::Proposals` (r:1 w:1)
280
	/// Proof: `TreasuryCouncilCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
281
	/// Storage: `TreasuryCouncilCollective::Voting` (r:0 w:1)
282
	/// Proof: `TreasuryCouncilCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
283
	/// Storage: `TreasuryCouncilCollective::ProposalOf` (r:0 w:1)
284
	/// Proof: `TreasuryCouncilCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
285
	/// The range of component `p` is `[1, 20]`.
286
	fn disapprove_proposal(_p: u32, ) -> Weight {
287
		// Proof Size summary in bytes:
288
		//  Measured:  `324 + p * (32 ±0)`
289
		//  Estimated: `2451`
290
		// Minimum execution time: 11_000_000 picoseconds.
291
		Weight::from_parts(15_000_000, 2451)
292
			.saturating_add(T::DbWeight::get().reads(1_u64))
293
			.saturating_add(T::DbWeight::get().writes(3_u64))
294
	}
295
}