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/moonbeam-runtime/moonbeam_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/moonbeam/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
8
	fn set_members(m: u32, _n: u32, p: u32, ) -> Weight {
67
8
		// Proof Size summary in bytes:
68
8
		//  Measured:  `0 + m * (493 ±0) + p * (211 ±0)`
69
8
		//  Estimated: `1651 + m * (313 ±108) + p * (8192 ±48)`
70
8
		// Minimum execution time: 8_000_000 picoseconds.
71
8
		Weight::from_parts(8_000_000, 1651)
72
8
			// Standard Error: 2_656_002
73
8
			.saturating_add(Weight::from_parts(5_205_128, 0).saturating_mul(m.into()))
74
8
			// Standard Error: 1_195_201
75
8
			.saturating_add(Weight::from_parts(2_442_307, 0).saturating_mul(p.into()))
76
8
			.saturating_add(T::DbWeight::get().reads(2_u64))
77
8
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
78
8
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
79
8
			.saturating_add(T::DbWeight::get().writes(2_u64))
80
8
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into())))
81
8
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
82
8
			.saturating_add(Weight::from_parts(0, 313).saturating_mul(m.into()))
83
8
			.saturating_add(Weight::from_parts(0, 8192).saturating_mul(p.into()))
84
8
	}
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: 12_000_000 picoseconds.
96
		Weight::from_parts(11_875_000, 1694)
97
			// Standard Error: 0
98
			.saturating_add(Weight::from_parts(125_000, 0).saturating_mul(m.into()))
99
			.saturating_add(T::DbWeight::get().reads(2_u64))
100
			.saturating_add(Weight::from_parts(0, 20).saturating_mul(m.into()))
101
	}
102
	/// Storage: `TreasuryCouncilCollective::Members` (r:1 w:0)
103
	/// Proof: `TreasuryCouncilCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
104
	/// Storage: `TreasuryCouncilCollective::ProposalOf` (r:1 w:0)
105
	/// Proof: `TreasuryCouncilCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
106
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
107
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
108
	/// The range of component `b` is `[2, 1024]`.
109
	/// The range of component `m` is `[1, 9]`.
110
	fn propose_execute(b: u32, m: u32, ) -> Weight {
111
		// Proof Size summary in bytes:
112
		//  Measured:  `208 + m * (20 ±0)`
113
		//  Estimated: `3674 + m * (20 ±0)`
114
		// Minimum execution time: 14_000_000 picoseconds.
115
		Weight::from_parts(21_309_564, 3674)
116
			// Standard Error: 2_542
117
			.saturating_add(Weight::from_parts(1_467, 0).saturating_mul(b.into()))
118
			.saturating_add(T::DbWeight::get().reads(3_u64))
119
			.saturating_add(Weight::from_parts(0, 20).saturating_mul(m.into()))
120
	}
121
	/// Storage: `TreasuryCouncilCollective::Members` (r:1 w:0)
122
	/// Proof: `TreasuryCouncilCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
123
	/// Storage: `TreasuryCouncilCollective::ProposalOf` (r:1 w:1)
124
	/// Proof: `TreasuryCouncilCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
125
	/// Storage: `TreasuryCouncilCollective::Proposals` (r:1 w:1)
126
	/// Proof: `TreasuryCouncilCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
127
	/// Storage: `TreasuryCouncilCollective::ProposalCount` (r:1 w:1)
128
	/// Proof: `TreasuryCouncilCollective::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
129
	/// Storage: `TreasuryCouncilCollective::Voting` (r:0 w:1)
130
	/// Proof: `TreasuryCouncilCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
131
	/// The range of component `b` is `[2, 1024]`.
132
	/// The range of component `m` is `[2, 9]`.
133
	/// The range of component `p` is `[1, 20]`.
134
	fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
135
		// Proof Size summary in bytes:
136
		//  Measured:  `83 + m * (20 ±0) + p * (58 ±0)`
137
		//  Estimated: `3548 + m * (20 ±0) + p * (58 ±0)`
138
		// Minimum execution time: 16_000_000 picoseconds.
139
		Weight::from_parts(11_678_442, 3548)
140
			// Standard Error: 1_725
141
			.saturating_add(Weight::from_parts(1_630, 0).saturating_mul(b.into()))
142
			// Standard Error: 251_976
143
			.saturating_add(Weight::from_parts(238_095, 0).saturating_mul(m.into()))
144
			// Standard Error: 92_833
145
			.saturating_add(Weight::from_parts(508_771, 0).saturating_mul(p.into()))
146
			.saturating_add(T::DbWeight::get().reads(4_u64))
147
			.saturating_add(T::DbWeight::get().writes(4_u64))
148
			.saturating_add(Weight::from_parts(0, 20).saturating_mul(m.into()))
149
			.saturating_add(Weight::from_parts(0, 58).saturating_mul(p.into()))
150
	}
151
	/// Storage: `TreasuryCouncilCollective::Members` (r:1 w:0)
152
	/// Proof: `TreasuryCouncilCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
153
	/// Storage: `TreasuryCouncilCollective::Voting` (r:1 w:1)
154
	/// Proof: `TreasuryCouncilCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
155
	/// The range of component `m` is `[5, 9]`.
156
	fn vote(_m: u32, ) -> Weight {
157
		// Proof Size summary in bytes:
158
		//  Measured:  `734 + m * (40 ±0)`
159
		//  Estimated: `4559`
160
		// Minimum execution time: 17_000_000 picoseconds.
161
		Weight::from_parts(19_000_000, 4559)
162
			.saturating_add(T::DbWeight::get().reads(2_u64))
163
			.saturating_add(T::DbWeight::get().writes(1_u64))
164
	}
165
	/// Storage: `TreasuryCouncilCollective::Voting` (r:1 w:1)
166
	/// Proof: `TreasuryCouncilCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
167
	/// Storage: `TreasuryCouncilCollective::Members` (r:1 w:0)
168
	/// Proof: `TreasuryCouncilCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
169
	/// Storage: `TreasuryCouncilCollective::Proposals` (r:1 w:1)
170
	/// Proof: `TreasuryCouncilCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
171
	/// Storage: `TreasuryCouncilCollective::ProposalOf` (r:0 w:1)
172
	/// Proof: `TreasuryCouncilCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
173
	/// The range of component `m` is `[4, 9]`.
174
	/// The range of component `p` is `[1, 20]`.
175
	fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
176
		// Proof Size summary in bytes:
177
		//  Measured:  `276 + m * (40 ±0) + p * (55 ±0)`
178
		//  Estimated: `3742 + m * (40 ±0) + p * (55 ±0)`
179
		// Minimum execution time: 18_000_000 picoseconds.
180
		Weight::from_parts(22_263_157, 3742)
181
			// Standard Error: 45_580
182
			.saturating_add(Weight::from_parts(236_842, 0).saturating_mul(p.into()))
183
			.saturating_add(T::DbWeight::get().reads(3_u64))
184
			.saturating_add(T::DbWeight::get().writes(3_u64))
185
			.saturating_add(Weight::from_parts(0, 40).saturating_mul(m.into()))
186
			.saturating_add(Weight::from_parts(0, 55).saturating_mul(p.into()))
187
	}
188
	/// Storage: `TreasuryCouncilCollective::Voting` (r:1 w:1)
189
	/// Proof: `TreasuryCouncilCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
190
	/// Storage: `TreasuryCouncilCollective::Members` (r:1 w:0)
191
	/// Proof: `TreasuryCouncilCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
192
	/// Storage: `TreasuryCouncilCollective::ProposalOf` (r:1 w:1)
193
	/// Proof: `TreasuryCouncilCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
194
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
195
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
196
	/// Storage: `TreasuryCouncilCollective::Proposals` (r:1 w:1)
197
	/// Proof: `TreasuryCouncilCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
198
	/// The range of component `b` is `[2, 1024]`.
199
	/// The range of component `m` is `[4, 9]`.
200
	/// The range of component `p` is `[1, 20]`.
201
	fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
202
		// Proof Size summary in bytes:
203
		//  Measured:  `242 + b * (1 ±0) + m * (40 ±0) + p * (78 ±0)`
204
		//  Estimated: `3707 + b * (1 ±0) + m * (40 ±0) + p * (79 ±0)`
205
		// Minimum execution time: 29_000_000 picoseconds.
206
		Weight::from_parts(26_675_888, 3707)
207
			// Standard Error: 2_351
208
			.saturating_add(Weight::from_parts(652, 0).saturating_mul(b.into()))
209
			// Standard Error: 480_740
210
			.saturating_add(Weight::from_parts(133_333, 0).saturating_mul(m.into()))
211
			// Standard Error: 126_510
212
			.saturating_add(Weight::from_parts(456_140, 0).saturating_mul(p.into()))
213
			.saturating_add(T::DbWeight::get().reads(5_u64))
214
			.saturating_add(T::DbWeight::get().writes(3_u64))
215
			.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
216
			.saturating_add(Weight::from_parts(0, 40).saturating_mul(m.into()))
217
			.saturating_add(Weight::from_parts(0, 79).saturating_mul(p.into()))
218
	}
219
	/// Storage: `TreasuryCouncilCollective::Voting` (r:1 w:1)
220
	/// Proof: `TreasuryCouncilCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
221
	/// Storage: `TreasuryCouncilCollective::Members` (r:1 w:0)
222
	/// Proof: `TreasuryCouncilCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
223
	/// Storage: `TreasuryCouncilCollective::Prime` (r:1 w:0)
224
	/// Proof: `TreasuryCouncilCollective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
225
	/// Storage: `TreasuryCouncilCollective::Proposals` (r:1 w:1)
226
	/// Proof: `TreasuryCouncilCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
227
	/// Storage: `TreasuryCouncilCollective::ProposalOf` (r:0 w:1)
228
	/// Proof: `TreasuryCouncilCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
229
	/// The range of component `m` is `[4, 9]`.
230
	/// The range of component `p` is `[1, 20]`.
231
	fn close_disapproved(m: u32, p: u32, ) -> Weight {
232
		// Proof Size summary in bytes:
233
		//  Measured:  `327 + m * (32 ±0) + p * (55 ±0)`
234
		//  Estimated: `3792 + m * (32 ±0) + p * (55 ±0)`
235
		// Minimum execution time: 24_000_000 picoseconds.
236
		Weight::from_parts(42_021_052, 3792)
237
			// Standard Error: 173_205
238
			.saturating_add(Weight::from_parts(100_000, 0).saturating_mul(m.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, 32).saturating_mul(m.into()))
242
			.saturating_add(Weight::from_parts(0, 55).saturating_mul(p.into()))
243
	}
244
	/// Storage: `TreasuryCouncilCollective::Voting` (r:1 w:1)
245
	/// Proof: `TreasuryCouncilCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
246
	/// Storage: `TreasuryCouncilCollective::Members` (r:1 w:0)
247
	/// Proof: `TreasuryCouncilCollective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
248
	/// Storage: `TreasuryCouncilCollective::Prime` (r:1 w:0)
249
	/// Proof: `TreasuryCouncilCollective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
250
	/// Storage: `TreasuryCouncilCollective::ProposalOf` (r:1 w:1)
251
	/// Proof: `TreasuryCouncilCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
252
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
253
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
254
	/// Storage: `TreasuryCouncilCollective::Proposals` (r:1 w:1)
255
	/// Proof: `TreasuryCouncilCollective::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, 9]`.
258
	/// The range of component `p` is `[1, 20]`.
259
	fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
260
		// Proof Size summary in bytes:
261
		//  Measured:  `260 + b * (1 ±0) + m * (40 ±0) + p * (78 ±0)`
262
		//  Estimated: `3725 + b * (1 ±0) + m * (40 ±0) + p * (79 ±0)`
263
		// Minimum execution time: 29_000_000 picoseconds.
264
		Weight::from_parts(37_530_724, 3725)
265
			// Standard Error: 652
266
			.saturating_add(Weight::from_parts(1_304, 0).saturating_mul(b.into()))
267
			// Standard Error: 35_087
268
			.saturating_add(Weight::from_parts(333_333, 0).saturating_mul(p.into()))
269
			.saturating_add(T::DbWeight::get().reads(6_u64))
270
			.saturating_add(T::DbWeight::get().writes(3_u64))
271
			.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
272
			.saturating_add(Weight::from_parts(0, 40).saturating_mul(m.into()))
273
			.saturating_add(Weight::from_parts(0, 79).saturating_mul(p.into()))
274
	}
275
	/// Storage: `TreasuryCouncilCollective::Proposals` (r:1 w:1)
276
	/// Proof: `TreasuryCouncilCollective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
277
	/// Storage: `TreasuryCouncilCollective::Voting` (r:0 w:1)
278
	/// Proof: `TreasuryCouncilCollective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
279
	/// Storage: `TreasuryCouncilCollective::ProposalOf` (r:0 w:1)
280
	/// Proof: `TreasuryCouncilCollective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
281
	/// The range of component `p` is `[1, 20]`.
282
	fn disapprove_proposal(_p: u32, ) -> Weight {
283
		// Proof Size summary in bytes:
284
		//  Measured:  `324 + p * (32 ±0)`
285
		//  Estimated: `2451`
286
		// Minimum execution time: 11_000_000 picoseconds.
287
		Weight::from_parts(22_000_000, 2451)
288
			.saturating_add(T::DbWeight::get().reads(1_u64))
289
			.saturating_add(T::DbWeight::get().writes(3_u64))
290
	}
291
}