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_parachain_staking`
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 51.0.0
21
//! DATE: 2026-02-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
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/production/wbuild/moonbase-runtime/moonbase_runtime.wasm
32
// --genesis-builder=runtime
33
// --genesis-builder-preset=development
34
// --steps=50
35
// --repeat=20
36
// --pallet=pallet_parachain_staking
37
// --extrinsic=*
38
// --wasm-execution=compiled
39
// --header=./file_header.txt
40
// --template=./benchmarking/frame-weight-template.hbs
41
// --disable-log-color
42
// --output=./runtime/moonbase/src/weights
43

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

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

            
51
/// Weights for `pallet_parachain_staking`.
52
pub struct WeightInfo<T>(PhantomData<T>);
53
impl<T: frame_system::Config> pallet_parachain_staking::WeightInfo for WeightInfo<T> {
54
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
55
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
56
	fn set_staking_expectations() -> Weight {
57
		// Proof Size summary in bytes:
58
		//  Measured:  `88`
59
		//  Estimated: `1573`
60
		// Minimum execution time: 9_493_000 picoseconds.
61
		Weight::from_parts(9_788_000, 1573)
62
			.saturating_add(T::DbWeight::get().reads(1_u64))
63
			.saturating_add(T::DbWeight::get().writes(1_u64))
64
	}
65
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
66
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
67
	fn set_inflation() -> Weight {
68
		// Proof Size summary in bytes:
69
		//  Measured:  `88`
70
		//  Estimated: `1573`
71
		// Minimum execution time: 36_083_000 picoseconds.
72
		Weight::from_parts(38_181_000, 1573)
73
			.saturating_add(T::DbWeight::get().reads(1_u64))
74
			.saturating_add(T::DbWeight::get().writes(1_u64))
75
	}
76
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
77
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
78
	fn set_inflation_distribution_config() -> Weight {
79
		// Proof Size summary in bytes:
80
		//  Measured:  `30`
81
		//  Estimated: `1515`
82
		// Minimum execution time: 7_975_000 picoseconds.
83
		Weight::from_parts(8_471_000, 1515)
84
			.saturating_add(T::DbWeight::get().reads(1_u64))
85
			.saturating_add(T::DbWeight::get().writes(1_u64))
86
	}
87
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:1)
88
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
89
	fn set_total_selected() -> Weight {
90
		// Proof Size summary in bytes:
91
		//  Measured:  `28`
92
		//  Estimated: `1513`
93
		// Minimum execution time: 8_491_000 picoseconds.
94
		Weight::from_parts(8_742_000, 1513)
95
			.saturating_add(T::DbWeight::get().reads(1_u64))
96
			.saturating_add(T::DbWeight::get().writes(1_u64))
97
	}
98
	/// Storage: `ParachainStaking::CollatorCommission` (r:1 w:1)
99
	/// Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
100
	fn set_collator_commission() -> Weight {
101
		// Proof Size summary in bytes:
102
		//  Measured:  `27`
103
		//  Estimated: `1512`
104
		// Minimum execution time: 7_720_000 picoseconds.
105
		Weight::from_parts(8_214_000, 1512)
106
			.saturating_add(T::DbWeight::get().reads(1_u64))
107
			.saturating_add(T::DbWeight::get().writes(1_u64))
108
	}
109
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
110
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
111
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
112
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
113
	fn set_blocks_per_round() -> Weight {
114
		// Proof Size summary in bytes:
115
		//  Measured:  `116`
116
		//  Estimated: `1601`
117
		// Minimum execution time: 40_326_000 picoseconds.
118
		Weight::from_parts(41_320_000, 1601)
119
			.saturating_add(T::DbWeight::get().reads(2_u64))
120
			.saturating_add(T::DbWeight::get().writes(1_u64))
121
	}
122
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
123
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
124
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
125
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
126
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
127
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
128
	/// Storage: `System::Account` (r:1 w:1)
129
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
130
	/// Storage: `Balances::Freezes` (r:1 w:1)
131
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
132
	/// Storage: `Balances::Locks` (r:1 w:0)
133
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
134
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
135
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
136
	/// Storage: `ParachainStaking::TopDelegations` (r:0 w:1)
137
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
138
	/// Storage: `ParachainStaking::BottomDelegations` (r:0 w:1)
139
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
140
	/// The range of component `x` is `[3, 200]`.
141
	fn join_candidates(x: u32, ) -> Weight {
142
		// Proof Size summary in bytes:
143
		//  Measured:  `1384 + x * (38 ±0)`
144
		//  Estimated: `4752 + x * (41 ±0)`
145
		// Minimum execution time: 53_490_000 picoseconds.
146
		Weight::from_parts(64_128_761, 4752)
147
			// Standard Error: 1_814
148
			.saturating_add(Weight::from_parts(98_045, 0).saturating_mul(x.into()))
149
			.saturating_add(T::DbWeight::get().reads(7_u64))
150
			.saturating_add(T::DbWeight::get().writes(7_u64))
151
			.saturating_add(Weight::from_parts(0, 41).saturating_mul(x.into()))
152
	}
153
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
154
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
155
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
156
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
157
	/// The range of component `x` is `[3, 200]`.
158
	fn schedule_leave_candidates(x: u32, ) -> Weight {
159
		// Proof Size summary in bytes:
160
		//  Measured:  `665 + x * (37 ±0)`
161
		//  Estimated: `4023 + x * (38 ±0)`
162
		// Minimum execution time: 18_051_000 picoseconds.
163
		Weight::from_parts(24_194_259, 4023)
164
			// Standard Error: 1_025
165
			.saturating_add(Weight::from_parts(58_273, 0).saturating_mul(x.into()))
166
			.saturating_add(T::DbWeight::get().reads(2_u64))
167
			.saturating_add(T::DbWeight::get().writes(2_u64))
168
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
169
	}
170
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
171
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
172
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
173
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
174
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
175
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
176
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
177
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
178
	/// Storage: `Balances::Freezes` (r:350 w:350)
179
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
180
	/// Storage: `System::Account` (r:350 w:350)
181
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
182
	/// Storage: `Balances::Locks` (r:350 w:0)
183
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
184
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:349 w:349)
185
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
186
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
187
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
188
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
189
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
190
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
191
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
192
	/// The range of component `x` is `[2, 350]`.
193
	fn execute_leave_candidates_worst_case(x: u32, ) -> Weight {
194
		// Proof Size summary in bytes:
195
		//  Measured:  `1326 + x * (446 ±0)`
196
		//  Estimated: `4866 + x * (3762 ±0)`
197
		// Minimum execution time: 122_035_000 picoseconds.
198
		Weight::from_parts(126_416_000, 4866)
199
			// Standard Error: 28_500
200
			.saturating_add(Weight::from_parts(42_686_357, 0).saturating_mul(x.into()))
201
			.saturating_add(T::DbWeight::get().reads(4_u64))
202
			.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(x.into())))
203
			.saturating_add(T::DbWeight::get().writes(4_u64))
204
			.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(x.into())))
205
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
206
	}
207
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
208
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
209
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
210
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
211
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
212
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
213
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
214
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
215
	/// Storage: `Balances::Freezes` (r:350 w:350)
216
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
217
	/// Storage: `System::Account` (r:350 w:350)
218
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
219
	/// Storage: `Balances::Locks` (r:350 w:0)
220
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
221
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:349 w:349)
222
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
223
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
224
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
225
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
226
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
227
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
228
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
229
	/// The range of component `x` is `[2, 350]`.
230
	/// The range of component `y` is `[2, 350]`.
231
	fn execute_leave_candidates_ideal(x: u32, _y: u32, ) -> Weight {
232
		// Proof Size summary in bytes:
233
		//  Measured:  `1315 + x * (446 ±0)`
234
		//  Estimated: `4866 + x * (3762 ±0)`
235
		// Minimum execution time: 116_187_000 picoseconds.
236
		Weight::from_parts(19_625_236, 4866)
237
			// Standard Error: 27_462
238
			.saturating_add(Weight::from_parts(42_556_754, 0).saturating_mul(x.into()))
239
			.saturating_add(T::DbWeight::get().reads(4_u64))
240
			.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(x.into())))
241
			.saturating_add(T::DbWeight::get().writes(4_u64))
242
			.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(x.into())))
243
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
244
	}
245
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
246
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
247
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
248
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
249
	/// The range of component `x` is `[3, 200]`.
250
	fn cancel_leave_candidates(x: u32, ) -> Weight {
251
		// Proof Size summary in bytes:
252
		//  Measured:  `633 + x * (37 ±0)`
253
		//  Estimated: `3991 + x * (38 ±0)`
254
		// Minimum execution time: 17_261_000 picoseconds.
255
		Weight::from_parts(23_327_122, 3991)
256
			// Standard Error: 1_014
257
			.saturating_add(Weight::from_parts(64_385, 0).saturating_mul(x.into()))
258
			.saturating_add(T::DbWeight::get().reads(2_u64))
259
			.saturating_add(T::DbWeight::get().writes(2_u64))
260
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
261
	}
262
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
263
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
264
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
265
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
266
	/// The range of component `x` is `[1, 200]`.
267
1
	fn go_offline(x: u32, ) -> Weight {
268
		// Proof Size summary in bytes:
269
		//  Measured:  `530 + x * (38 ±0)`
270
		//  Estimated: `3931 + x * (39 ±0)`
271
		// Minimum execution time: 16_822_000 picoseconds.
272
1
		Weight::from_parts(22_358_626, 3931)
273
			// Standard Error: 1_100
274
1
			.saturating_add(Weight::from_parts(63_583, 0).saturating_mul(x.into()))
275
1
			.saturating_add(T::DbWeight::get().reads(2_u64))
276
1
			.saturating_add(T::DbWeight::get().writes(2_u64))
277
1
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
278
1
	}
279
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
280
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
281
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
282
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
283
	/// The range of component `x` is `[1, 200]`.
284
	fn go_online(x: u32, ) -> Weight {
285
		// Proof Size summary in bytes:
286
		//  Measured:  `494 + x * (38 ±0)`
287
		//  Estimated: `3895 + x * (39 ±0)`
288
		// Minimum execution time: 16_551_000 picoseconds.
289
		Weight::from_parts(22_307_845, 3895)
290
			// Standard Error: 1_130
291
			.saturating_add(Weight::from_parts(67_751, 0).saturating_mul(x.into()))
292
			.saturating_add(T::DbWeight::get().reads(2_u64))
293
			.saturating_add(T::DbWeight::get().writes(2_u64))
294
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
295
	}
296
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
297
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
298
	/// Storage: `System::Account` (r:1 w:1)
299
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
300
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
301
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
302
	/// Storage: `Balances::Freezes` (r:1 w:1)
303
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
304
	/// Storage: `Balances::Locks` (r:1 w:0)
305
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
306
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
307
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
308
	/// The range of component `x` is `[1, 200]`.
309
	fn candidate_bond_more(x: u32, ) -> Weight {
310
		// Proof Size summary in bytes:
311
		//  Measured:  `1225 + x * (42 ±0)`
312
		//  Estimated: `4752 + x * (44 ±0)`
313
		// Minimum execution time: 48_880_000 picoseconds.
314
		Weight::from_parts(58_713_987, 4752)
315
			// Standard Error: 2_092
316
			.saturating_add(Weight::from_parts(99_217, 0).saturating_mul(x.into()))
317
			.saturating_add(T::DbWeight::get().reads(6_u64))
318
			.saturating_add(T::DbWeight::get().writes(5_u64))
319
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
320
	}
321
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
322
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
323
	fn schedule_candidate_bond_less() -> Weight {
324
		// Proof Size summary in bytes:
325
		//  Measured:  `171`
326
		//  Estimated: `3636`
327
		// Minimum execution time: 14_400_000 picoseconds.
328
		Weight::from_parts(15_179_000, 3636)
329
			.saturating_add(T::DbWeight::get().reads(1_u64))
330
			.saturating_add(T::DbWeight::get().writes(1_u64))
331
	}
332
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
333
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
334
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
335
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
336
	/// Storage: `Balances::Freezes` (r:1 w:1)
337
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
338
	/// Storage: `System::Account` (r:1 w:1)
339
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
340
	/// Storage: `Balances::Locks` (r:1 w:0)
341
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
342
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
343
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
344
	/// The range of component `x` is `[1, 200]`.
345
	fn execute_candidate_bond_less(x: u32, ) -> Weight {
346
		// Proof Size summary in bytes:
347
		//  Measured:  `1314 + x * (42 ±0)`
348
		//  Estimated: `4752 + x * (43 ±0)`
349
		// Minimum execution time: 49_494_000 picoseconds.
350
		Weight::from_parts(59_265_031, 4752)
351
			// Standard Error: 1_714
352
			.saturating_add(Weight::from_parts(84_284, 0).saturating_mul(x.into()))
353
			.saturating_add(T::DbWeight::get().reads(6_u64))
354
			.saturating_add(T::DbWeight::get().writes(5_u64))
355
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
356
	}
357
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
358
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
359
	fn cancel_candidate_bond_less() -> Weight {
360
		// Proof Size summary in bytes:
361
		//  Measured:  `191`
362
		//  Estimated: `3656`
363
		// Minimum execution time: 13_616_000 picoseconds.
364
		Weight::from_parts(14_349_000, 3656)
365
			.saturating_add(T::DbWeight::get().reads(1_u64))
366
			.saturating_add(T::DbWeight::get().writes(1_u64))
367
	}
368
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
369
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
370
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
371
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
372
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
373
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
374
	/// The range of component `x` is `[0, 349]`.
375
	fn schedule_revoke_delegation(x: u32, ) -> Weight {
376
		// Proof Size summary in bytes:
377
		//  Measured:  `1265 + x * (2 ±0)`
378
		//  Estimated: `4562 + x * (3 ±0)`
379
		// Minimum execution time: 24_137_000 picoseconds.
380
		Weight::from_parts(39_214_870, 4562)
381
			// Standard Error: 1_185
382
			.saturating_add(Weight::from_parts(31_474, 0).saturating_mul(x.into()))
383
			.saturating_add(T::DbWeight::get().reads(3_u64))
384
			.saturating_add(T::DbWeight::get().writes(3_u64))
385
			.saturating_add(Weight::from_parts(0, 3).saturating_mul(x.into()))
386
	}
387
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
388
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
389
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
390
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
391
	/// Storage: `System::Account` (r:1 w:1)
392
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
393
	/// Storage: `Balances::Freezes` (r:1 w:1)
394
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
395
	/// Storage: `Balances::Locks` (r:1 w:0)
396
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
397
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
398
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
399
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
400
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
401
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
402
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
403
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
404
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
405
	/// The range of component `x` is `[0, 349]`.
406
	fn delegator_bond_more(x: u32, ) -> Weight {
407
		// Proof Size summary in bytes:
408
		//  Measured:  `2556 + x * (39 ±0)`
409
		//  Estimated: `5909 + x * (39 ±0)`
410
		// Minimum execution time: 69_430_000 picoseconds.
411
		Weight::from_parts(90_232_320, 5909)
412
			// Standard Error: 1_877
413
			.saturating_add(Weight::from_parts(88_641, 0).saturating_mul(x.into()))
414
			.saturating_add(T::DbWeight::get().reads(9_u64))
415
			.saturating_add(T::DbWeight::get().writes(7_u64))
416
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
417
	}
418
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
419
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
420
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
421
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
422
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
423
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
424
	/// The range of component `x` is `[0, 349]`.
425
	fn schedule_delegator_bond_less(x: u32, ) -> Weight {
426
		// Proof Size summary in bytes:
427
		//  Measured:  `1265 + x * (2 ±0)`
428
		//  Estimated: `4562 + x * (3 ±0)`
429
		// Minimum execution time: 24_904_000 picoseconds.
430
		Weight::from_parts(39_667_006, 4562)
431
			// Standard Error: 1_159
432
			.saturating_add(Weight::from_parts(32_123, 0).saturating_mul(x.into()))
433
			.saturating_add(T::DbWeight::get().reads(3_u64))
434
			.saturating_add(T::DbWeight::get().writes(3_u64))
435
			.saturating_add(Weight::from_parts(0, 3).saturating_mul(x.into()))
436
	}
437
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
438
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
439
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
440
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
441
	/// Storage: `Balances::Freezes` (r:1 w:1)
442
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
443
	/// Storage: `System::Account` (r:1 w:1)
444
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
445
	/// Storage: `Balances::Locks` (r:1 w:0)
446
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
447
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
448
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
449
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
450
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
451
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
452
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
453
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
454
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
455
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
456
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
457
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
458
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
459
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
460
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
461
	fn execute_delegator_revoke_delegation_worst() -> Weight {
462
		// Proof Size summary in bytes:
463
		//  Measured:  `23907`
464
		//  Estimated: `27372`
465
		// Minimum execution time: 146_788_000 picoseconds.
466
		Weight::from_parts(150_862_000, 27372)
467
			.saturating_add(T::DbWeight::get().reads(12_u64))
468
			.saturating_add(T::DbWeight::get().writes(11_u64))
469
	}
470
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
471
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
472
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
473
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
474
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
475
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
476
	/// Storage: `Balances::Freezes` (r:1 w:1)
477
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
478
	/// Storage: `System::Account` (r:1 w:1)
479
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
480
	/// Storage: `Balances::Locks` (r:1 w:0)
481
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
482
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
483
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
484
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
485
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
486
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
487
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
488
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
489
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
490
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
491
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
492
	fn execute_delegator_bond_less_worst() -> Weight {
493
		// Proof Size summary in bytes:
494
		//  Measured:  `16529`
495
		//  Estimated: `19994`
496
		// Minimum execution time: 130_814_000 picoseconds.
497
		Weight::from_parts(135_324_000, 19994)
498
			.saturating_add(T::DbWeight::get().reads(11_u64))
499
			.saturating_add(T::DbWeight::get().writes(10_u64))
500
	}
501
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
502
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
503
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
504
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
505
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
506
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
507
	/// The range of component `x` is `[0, 349]`.
508
	fn cancel_delegation_request(x: u32, ) -> Weight {
509
		// Proof Size summary in bytes:
510
		//  Measured:  `1352 + x * (2 ±0)`
511
		//  Estimated: `4664 + x * (3 ±0)`
512
		// Minimum execution time: 29_477_000 picoseconds.
513
		Weight::from_parts(40_242_957, 4664)
514
			// Standard Error: 895
515
			.saturating_add(Weight::from_parts(28_317, 0).saturating_mul(x.into()))
516
			.saturating_add(T::DbWeight::get().reads(3_u64))
517
			.saturating_add(T::DbWeight::get().writes(3_u64))
518
			.saturating_add(Weight::from_parts(0, 3).saturating_mul(x.into()))
519
	}
520
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
521
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
522
5
	fn prepare_staking_payouts() -> Weight {
523
		// Proof Size summary in bytes:
524
		//  Measured:  `3`
525
		//  Estimated: `3468`
526
		// Minimum execution time: 3_086_000 picoseconds.
527
5
		Weight::from_parts(3_224_000, 3468)
528
5
			.saturating_add(T::DbWeight::get().reads(1_u64))
529
5
	}
530
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
531
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
532
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
533
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
534
	/// The range of component `y` is `[0, 100]`.
535
	fn get_rewardable_delegators(y: u32, ) -> Weight {
536
		// Proof Size summary in bytes:
537
		//  Measured:  `98 + y * (36 ±0)`
538
		//  Estimated: `3562 + y * (36 ±0)`
539
		// Minimum execution time: 10_090_000 picoseconds.
540
		Weight::from_parts(12_631_381, 3562)
541
			// Standard Error: 864
542
			.saturating_add(Weight::from_parts(48_114, 0).saturating_mul(y.into()))
543
			.saturating_add(T::DbWeight::get().reads(2_u64))
544
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
545
	}
546
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
547
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
548
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
549
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
550
	/// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
551
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
552
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:51 w:0)
553
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
554
	/// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
555
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
556
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
557
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
558
	/// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
559
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
560
	/// Storage: `ParachainStaking::AtStake` (r:0 w:51)
561
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
562
	/// The range of component `x` is `[0, 50]`.
563
	/// The range of component `y` is `[0, 100]`.
564
70
	fn select_top_candidates(x: u32, y: u32, ) -> Weight {
565
		// Proof Size summary in bytes:
566
		//  Measured:  `0 + x * (3816 ±0) + y * (1800 ±0)`
567
		//  Estimated: `3718 + x * (3975 ±39) + y * (639 ±19)`
568
		// Minimum execution time: 27_296_000 picoseconds.
569
70
		Weight::from_parts(27_734_000, 3718)
570
			// Standard Error: 72_474
571
70
			.saturating_add(Weight::from_parts(20_904_824, 0).saturating_mul(x.into()))
572
			// Standard Error: 36_140
573
70
			.saturating_add(Weight::from_parts(1_129_279, 0).saturating_mul(y.into()))
574
70
			.saturating_add(T::DbWeight::get().reads(6_u64))
575
70
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
576
70
			.saturating_add(T::DbWeight::get().writes(2_u64))
577
70
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
578
70
			.saturating_add(Weight::from_parts(0, 3975).saturating_mul(x.into()))
579
70
			.saturating_add(Weight::from_parts(0, 639).saturating_mul(y.into()))
580
70
	}
581
	/// Storage: `System::Account` (r:349 w:349)
582
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
583
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
584
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
585
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:349 w:0)
586
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
587
	/// Storage: `Balances::Freezes` (r:349 w:349)
588
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
589
	/// Storage: `Balances::Locks` (r:349 w:0)
590
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
591
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
592
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
593
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
594
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
595
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
596
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
597
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
598
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
599
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
600
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
601
	/// The range of component `x` is `[0, 349]`.
602
	/// The range of component `y` is `[0, 349]`.
603
2
	fn pay_one_collator_reward_best(x: u32, y: u32, ) -> Weight {
604
		// Proof Size summary in bytes:
605
		//  Measured:  `0 + x * (346 ±0) + y * (148 ±0)`
606
		//  Estimated: `110853 + x * (2591 ±30) + y * (1308 ±30)`
607
		// Minimum execution time: 230_000 picoseconds.
608
2
		Weight::from_parts(244_000, 110853)
609
			// Standard Error: 588_522
610
2
			.saturating_add(Weight::from_parts(44_031_912, 0).saturating_mul(x.into()))
611
			// Standard Error: 588_522
612
2
			.saturating_add(Weight::from_parts(17_234_843, 0).saturating_mul(y.into()))
613
2
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
614
2
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
615
2
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(x.into())))
616
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
617
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(x.into()))
618
2
			.saturating_add(Weight::from_parts(0, 1308).saturating_mul(y.into()))
619
2
	}
620
	/// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
621
	/// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
622
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
623
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
624
	/// Storage: `ParachainStaking::AtStake` (r:2 w:1)
625
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
626
	/// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
627
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
628
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
629
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
630
	/// Storage: `System::Account` (r:301 w:301)
631
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
632
	/// The range of component `y` is `[0, 300]`.
633
2
	fn pay_one_collator_reward(y: u32, ) -> Weight {
634
		// Proof Size summary in bytes:
635
		//  Measured:  `1383 + y * (160 ±0)`
636
		//  Estimated: `7128 + y * (2591 ±0)`
637
		// Minimum execution time: 53_889_000 picoseconds.
638
2
		Weight::from_parts(36_366_438, 7128)
639
			// Standard Error: 12_206
640
2
			.saturating_add(Weight::from_parts(24_606_947, 0).saturating_mul(y.into()))
641
2
			.saturating_add(T::DbWeight::get().reads(7_u64))
642
2
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
643
2
			.saturating_add(T::DbWeight::get().writes(3_u64))
644
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
645
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
646
2
	}
647
6619
	fn base_on_initialize() -> Weight {
648
		// Proof Size summary in bytes:
649
		//  Measured:  `0`
650
		//  Estimated: `0`
651
		// Minimum execution time: 871_000 picoseconds.
652
6619
		Weight::from_parts(932_000, 0)
653
6619
	}
654
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
655
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
656
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
657
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
658
	/// The range of component `x` is `[0, 300]`.
659
	/// The range of component `y` is `[0, 100]`.
660
	fn set_auto_compound(x: u32, y: u32, ) -> Weight {
661
		// Proof Size summary in bytes:
662
		//  Measured:  `672 + x * (22 ±0) + y * (36 ±0)`
663
		//  Estimated: `4028 + x * (23 ±0) + y * (36 ±0)`
664
		// Minimum execution time: 25_796_000 picoseconds.
665
		Weight::from_parts(30_131_428, 4028)
666
			// Standard Error: 371
667
			.saturating_add(Weight::from_parts(39_984, 0).saturating_mul(x.into()))
668
			// Standard Error: 1_112
669
			.saturating_add(Weight::from_parts(21_730, 0).saturating_mul(y.into()))
670
			.saturating_add(T::DbWeight::get().reads(2_u64))
671
			.saturating_add(T::DbWeight::get().writes(1_u64))
672
			.saturating_add(Weight::from_parts(0, 23).saturating_mul(x.into()))
673
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
674
	}
675
	/// Storage: `System::Account` (r:1 w:1)
676
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
677
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
678
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
679
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
680
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
681
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
682
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
683
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
684
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
685
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
686
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
687
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
688
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
689
	/// Storage: `Balances::Freezes` (r:1 w:1)
690
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
691
	/// Storage: `Balances::Locks` (r:1 w:0)
692
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
693
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
694
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
695
	/// The range of component `x` is `[0, 350]`.
696
	/// The range of component `y` is `[0, 349]`.
697
	/// The range of component `z` is `[0, 99]`.
698
	fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
699
		// Proof Size summary in bytes:
700
		//  Measured:  `0 + x * (60 ±0) + y * (21 ±0) + z * (78 ±0)`
701
		//  Estimated: `26242 + x * (44 ±0) + y * (19 ±0) + z * (76 ±1)`
702
		// Minimum execution time: 112_233_000 picoseconds.
703
		Weight::from_parts(94_048_687, 26242)
704
			// Standard Error: 1_298
705
			.saturating_add(Weight::from_parts(116_328, 0).saturating_mul(x.into()))
706
			// Standard Error: 1_302
707
			.saturating_add(Weight::from_parts(2_767, 0).saturating_mul(y.into()))
708
			// Standard Error: 4_586
709
			.saturating_add(Weight::from_parts(207_785, 0).saturating_mul(z.into()))
710
			.saturating_add(T::DbWeight::get().reads(9_u64))
711
			.saturating_add(T::DbWeight::get().writes(8_u64))
712
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
713
			.saturating_add(Weight::from_parts(0, 19).saturating_mul(y.into()))
714
			.saturating_add(Weight::from_parts(0, 76).saturating_mul(z.into()))
715
	}
716
	/// Storage: `System::Account` (r:2 w:2)
717
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
718
	/// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
719
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
720
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
721
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
722
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
723
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
724
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
725
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
726
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
727
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
728
	/// Storage: `Balances::Freezes` (r:2 w:2)
729
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
730
	/// Storage: `Balances::Locks` (r:2 w:0)
731
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
732
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
733
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
734
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
735
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
736
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
737
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
738
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
739
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
740
	fn delegate_with_auto_compound_worst() -> Weight {
741
		// Proof Size summary in bytes:
742
		//  Measured:  `34862`
743
		//  Estimated: `40802`
744
		// Minimum execution time: 239_362_000 picoseconds.
745
		Weight::from_parts(243_848_000, 40802)
746
			.saturating_add(T::DbWeight::get().reads(16_u64))
747
			.saturating_add(T::DbWeight::get().writes(14_u64))
748
	}
749
	/// Storage: `System::Account` (r:1 w:1)
750
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
751
14
	fn mint_collator_reward() -> Weight {
752
		// Proof Size summary in bytes:
753
		//  Measured:  `128`
754
		//  Estimated: `3581`
755
		// Minimum execution time: 23_986_000 picoseconds.
756
14
		Weight::from_parts(24_615_000, 3581)
757
14
			.saturating_add(T::DbWeight::get().reads(1_u64))
758
14
			.saturating_add(T::DbWeight::get().writes(1_u64))
759
14
	}
760
	/// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
761
	/// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
762
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
763
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
764
	/// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
765
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
766
	/// Storage: `ParachainStaking::WasInactive` (r:2 w:0)
767
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
768
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
769
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
770
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
771
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
772
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
773
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
774
	fn notify_inactive_collator() -> Weight {
775
		// Proof Size summary in bytes:
776
		//  Measured:  `11212`
777
		//  Estimated: `17152`
778
		// Minimum execution time: 71_865_000 picoseconds.
779
		Weight::from_parts(73_422_000, 17152)
780
			.saturating_add(T::DbWeight::get().reads(8_u64))
781
			.saturating_add(T::DbWeight::get().writes(2_u64))
782
	}
783
	/// Storage: `ParachainStaking::AtStake` (r:52 w:0)
784
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
785
	/// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
786
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
787
	/// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
788
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
789
	/// The range of component `x` is `[0, 50]`.
790
5
	fn mark_collators_as_inactive(x: u32, ) -> Weight {
791
		// Proof Size summary in bytes:
792
		//  Measured:  `108 + x * (104 ±0)`
793
		//  Estimated: `6050 + x * (2580 ±0)`
794
		// Minimum execution time: 12_696_000 picoseconds.
795
5
		Weight::from_parts(17_056_852, 6050)
796
			// Standard Error: 16_375
797
5
			.saturating_add(Weight::from_parts(9_905_156, 0).saturating_mul(x.into()))
798
5
			.saturating_add(T::DbWeight::get().reads(3_u64))
799
5
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
800
5
			.saturating_add(T::DbWeight::get().writes(1_u64))
801
5
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
802
5
			.saturating_add(Weight::from_parts(0, 2580).saturating_mul(x.into()))
803
5
	}
804
}