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 49.0.0
21
//! DATE: 2025-12-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-36`, 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/moonriver-runtime/moonriver_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
// --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
/// Weights for `pallet_parachain_staking`.
51
pub struct WeightInfo<T>(PhantomData<T>);
52
impl<T: frame_system::Config> pallet_parachain_staking::WeightInfo for WeightInfo<T> {
53
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
54
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
55
	fn set_staking_expectations() -> Weight {
56
		// Proof Size summary in bytes:
57
		//  Measured:  `88`
58
		//  Estimated: `1573`
59
		// Minimum execution time: 8_844_000 picoseconds.
60
		Weight::from_parts(9_190_000, 1573)
61
			.saturating_add(T::DbWeight::get().reads(1_u64))
62
			.saturating_add(T::DbWeight::get().writes(1_u64))
63
	}
64
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
65
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
66
	fn set_inflation() -> Weight {
67
		// Proof Size summary in bytes:
68
		//  Measured:  `88`
69
		//  Estimated: `1573`
70
		// Minimum execution time: 36_401_000 picoseconds.
71
		Weight::from_parts(37_097_000, 1573)
72
			.saturating_add(T::DbWeight::get().reads(1_u64))
73
			.saturating_add(T::DbWeight::get().writes(1_u64))
74
	}
75
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
76
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
77
	fn set_inflation_distribution_config() -> Weight {
78
		// Proof Size summary in bytes:
79
		//  Measured:  `30`
80
		//  Estimated: `1515`
81
		// Minimum execution time: 7_492_000 picoseconds.
82
		Weight::from_parts(7_892_000, 1515)
83
			.saturating_add(T::DbWeight::get().reads(1_u64))
84
			.saturating_add(T::DbWeight::get().writes(1_u64))
85
	}
86
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:1)
87
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
88
	fn set_total_selected() -> Weight {
89
		// Proof Size summary in bytes:
90
		//  Measured:  `28`
91
		//  Estimated: `1513`
92
		// Minimum execution time: 8_330_000 picoseconds.
93
		Weight::from_parts(8_643_000, 1513)
94
			.saturating_add(T::DbWeight::get().reads(1_u64))
95
			.saturating_add(T::DbWeight::get().writes(1_u64))
96
	}
97
	/// Storage: `ParachainStaking::CollatorCommission` (r:1 w:1)
98
	/// Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
99
	fn set_collator_commission() -> Weight {
100
		// Proof Size summary in bytes:
101
		//  Measured:  `27`
102
		//  Estimated: `1512`
103
		// Minimum execution time: 7_435_000 picoseconds.
104
		Weight::from_parts(7_881_000, 1512)
105
			.saturating_add(T::DbWeight::get().reads(1_u64))
106
			.saturating_add(T::DbWeight::get().writes(1_u64))
107
	}
108
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
109
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
110
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
111
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
112
	fn set_blocks_per_round() -> Weight {
113
		// Proof Size summary in bytes:
114
		//  Measured:  `116`
115
		//  Estimated: `1601`
116
		// Minimum execution time: 39_110_000 picoseconds.
117
		Weight::from_parts(40_003_000, 1601)
118
			.saturating_add(T::DbWeight::get().reads(2_u64))
119
			.saturating_add(T::DbWeight::get().writes(1_u64))
120
	}
121
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
122
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
123
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
124
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
125
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
126
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
127
	/// Storage: `System::Account` (r:1 w:1)
128
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
129
	/// Storage: `Balances::Freezes` (r:1 w:1)
130
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
131
	/// Storage: `Balances::Locks` (r:1 w:0)
132
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
133
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
134
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
135
	/// Storage: `ParachainStaking::TopDelegations` (r:0 w:1)
136
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
137
	/// Storage: `ParachainStaking::BottomDelegations` (r:0 w:1)
138
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
139
	/// The range of component `x` is `[3, 200]`.
140
	fn join_candidates(x: u32, ) -> Weight {
141
		// Proof Size summary in bytes:
142
		//  Measured:  `1384 + x * (38 ±0)`
143
		//  Estimated: `4752 + x * (41 ±0)`
144
		// Minimum execution time: 49_629_000 picoseconds.
145
		Weight::from_parts(60_687_890, 4752)
146
			// Standard Error: 1_769
147
			.saturating_add(Weight::from_parts(102_638, 0).saturating_mul(x.into()))
148
			.saturating_add(T::DbWeight::get().reads(7_u64))
149
			.saturating_add(T::DbWeight::get().writes(7_u64))
150
			.saturating_add(Weight::from_parts(0, 41).saturating_mul(x.into()))
151
	}
152
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
153
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
154
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
155
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
156
	/// The range of component `x` is `[3, 200]`.
157
	fn schedule_leave_candidates(x: u32, ) -> Weight {
158
		// Proof Size summary in bytes:
159
		//  Measured:  `665 + x * (37 ±0)`
160
		//  Estimated: `4023 + x * (38 ±0)`
161
		// Minimum execution time: 16_977_000 picoseconds.
162
		Weight::from_parts(24_849_435, 4023)
163
			// Standard Error: 1_183
164
			.saturating_add(Weight::from_parts(69_758, 0).saturating_mul(x.into()))
165
			.saturating_add(T::DbWeight::get().reads(2_u64))
166
			.saturating_add(T::DbWeight::get().writes(2_u64))
167
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
168
	}
169
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
170
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
171
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
172
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
173
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
174
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
175
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
176
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
177
	/// Storage: `Balances::Freezes` (r:350 w:350)
178
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
179
	/// Storage: `System::Account` (r:350 w:350)
180
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
181
	/// Storage: `Balances::Locks` (r:350 w:0)
182
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
183
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:349 w:349)
184
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
185
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
186
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
187
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
188
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
189
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
190
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
191
	/// The range of component `x` is `[2, 350]`.
192
	fn execute_leave_candidates_worst_case(x: u32, ) -> Weight {
193
		// Proof Size summary in bytes:
194
		//  Measured:  `1285 + x * (446 ±0)`
195
		//  Estimated: `4832 + x * (3762 ±0)`
196
		// Minimum execution time: 124_698_000 picoseconds.
197
		Weight::from_parts(126_589_000, 4832)
198
			// Standard Error: 30_091
199
			.saturating_add(Weight::from_parts(39_953_699, 0).saturating_mul(x.into()))
200
			.saturating_add(T::DbWeight::get().reads(4_u64))
201
			.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(x.into())))
202
			.saturating_add(T::DbWeight::get().writes(4_u64))
203
			.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(x.into())))
204
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
205
	}
206
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
207
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
208
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
209
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
210
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
211
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
212
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
213
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
214
	/// Storage: `Balances::Freezes` (r:350 w:350)
215
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
216
	/// Storage: `System::Account` (r:350 w:350)
217
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
218
	/// Storage: `Balances::Locks` (r:350 w:0)
219
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
220
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:349 w:349)
221
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
222
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
223
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
224
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
225
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
226
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
227
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
228
	/// The range of component `x` is `[2, 350]`.
229
	/// The range of component `y` is `[2, 350]`.
230
	fn execute_leave_candidates_ideal(x: u32, _y: u32, ) -> Weight {
231
		// Proof Size summary in bytes:
232
		//  Measured:  `1270 + x * (446 ±0)`
233
		//  Estimated: `4832 + x * (3762 ±0)`
234
		// Minimum execution time: 115_971_000 picoseconds.
235
		Weight::from_parts(23_688_884, 4832)
236
			// Standard Error: 25_296
237
			.saturating_add(Weight::from_parts(39_689_246, 0).saturating_mul(x.into()))
238
			.saturating_add(T::DbWeight::get().reads(4_u64))
239
			.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(x.into())))
240
			.saturating_add(T::DbWeight::get().writes(4_u64))
241
			.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(x.into())))
242
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
243
	}
244
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
245
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
246
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
247
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
248
	/// The range of component `x` is `[3, 200]`.
249
	fn cancel_leave_candidates(x: u32, ) -> Weight {
250
		// Proof Size summary in bytes:
251
		//  Measured:  `633 + x * (37 ±0)`
252
		//  Estimated: `3991 + x * (38 ±0)`
253
		// Minimum execution time: 16_419_000 picoseconds.
254
		Weight::from_parts(24_207_896, 3991)
255
			// Standard Error: 1_165
256
			.saturating_add(Weight::from_parts(73_329, 0).saturating_mul(x.into()))
257
			.saturating_add(T::DbWeight::get().reads(2_u64))
258
			.saturating_add(T::DbWeight::get().writes(2_u64))
259
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
260
	}
261
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
262
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
263
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
264
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
265
	/// The range of component `x` is `[1, 200]`.
266
1
	fn go_offline(x: u32, ) -> Weight {
267
		// Proof Size summary in bytes:
268
		//  Measured:  `530 + x * (38 ±0)`
269
		//  Estimated: `3931 + x * (39 ±0)`
270
		// Minimum execution time: 15_845_000 picoseconds.
271
1
		Weight::from_parts(22_297_181, 3931)
272
			// Standard Error: 1_459
273
1
			.saturating_add(Weight::from_parts(78_200, 0).saturating_mul(x.into()))
274
1
			.saturating_add(T::DbWeight::get().reads(2_u64))
275
1
			.saturating_add(T::DbWeight::get().writes(2_u64))
276
1
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
277
1
	}
278
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
279
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
280
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
281
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
282
	/// The range of component `x` is `[1, 200]`.
283
	fn go_online(x: u32, ) -> Weight {
284
		// Proof Size summary in bytes:
285
		//  Measured:  `494 + x * (38 ±0)`
286
		//  Estimated: `3895 + x * (39 ±0)`
287
		// Minimum execution time: 16_066_000 picoseconds.
288
		Weight::from_parts(22_123_895, 3895)
289
			// Standard Error: 1_420
290
			.saturating_add(Weight::from_parts(83_472, 0).saturating_mul(x.into()))
291
			.saturating_add(T::DbWeight::get().reads(2_u64))
292
			.saturating_add(T::DbWeight::get().writes(2_u64))
293
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
294
	}
295
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
296
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
297
	/// Storage: `System::Account` (r:1 w:1)
298
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
299
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
300
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
301
	/// Storage: `Balances::Freezes` (r:1 w:1)
302
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
303
	/// Storage: `Balances::Locks` (r:1 w:0)
304
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
305
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
306
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
307
	/// The range of component `x` is `[1, 200]`.
308
	fn candidate_bond_more(x: u32, ) -> Weight {
309
		// Proof Size summary in bytes:
310
		//  Measured:  `1225 + x * (42 ±0)`
311
		//  Estimated: `4752 + x * (44 ±0)`
312
		// Minimum execution time: 45_265_000 picoseconds.
313
		Weight::from_parts(54_913_093, 4752)
314
			// Standard Error: 1_931
315
			.saturating_add(Weight::from_parts(104_665, 0).saturating_mul(x.into()))
316
			.saturating_add(T::DbWeight::get().reads(6_u64))
317
			.saturating_add(T::DbWeight::get().writes(5_u64))
318
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
319
	}
320
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
321
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
322
	fn schedule_candidate_bond_less() -> Weight {
323
		// Proof Size summary in bytes:
324
		//  Measured:  `171`
325
		//  Estimated: `3636`
326
		// Minimum execution time: 13_607_000 picoseconds.
327
		Weight::from_parts(14_327_000, 3636)
328
			.saturating_add(T::DbWeight::get().reads(1_u64))
329
			.saturating_add(T::DbWeight::get().writes(1_u64))
330
	}
331
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
332
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
333
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
334
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
335
	/// Storage: `Balances::Freezes` (r:1 w:1)
336
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
337
	/// Storage: `System::Account` (r:1 w:1)
338
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
339
	/// Storage: `Balances::Locks` (r:1 w:0)
340
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
341
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
342
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
343
	/// The range of component `x` is `[1, 200]`.
344
	fn execute_candidate_bond_less(x: u32, ) -> Weight {
345
		// Proof Size summary in bytes:
346
		//  Measured:  `1314 + x * (42 ±0)`
347
		//  Estimated: `4752 + x * (43 ±0)`
348
		// Minimum execution time: 51_747_000 picoseconds.
349
		Weight::from_parts(59_767_894, 4752)
350
			// Standard Error: 1_497
351
			.saturating_add(Weight::from_parts(73_274, 0).saturating_mul(x.into()))
352
			.saturating_add(T::DbWeight::get().reads(6_u64))
353
			.saturating_add(T::DbWeight::get().writes(5_u64))
354
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
355
	}
356
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
357
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
358
	fn cancel_candidate_bond_less() -> Weight {
359
		// Proof Size summary in bytes:
360
		//  Measured:  `191`
361
		//  Estimated: `3656`
362
		// Minimum execution time: 12_771_000 picoseconds.
363
		Weight::from_parts(13_365_000, 3656)
364
			.saturating_add(T::DbWeight::get().reads(1_u64))
365
			.saturating_add(T::DbWeight::get().writes(1_u64))
366
	}
367
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
368
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
369
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
370
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
371
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
372
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
373
	/// The range of component `x` is `[0, 349]`.
374
	fn schedule_revoke_delegation(x: u32, ) -> Weight {
375
		// Proof Size summary in bytes:
376
		//  Measured:  `1265 + x * (2 ±0)`
377
		//  Estimated: `4562 + x * (3 ±0)`
378
		// Minimum execution time: 22_984_000 picoseconds.
379
		Weight::from_parts(37_308_960, 4562)
380
			// Standard Error: 1_094
381
			.saturating_add(Weight::from_parts(30_829, 0).saturating_mul(x.into()))
382
			.saturating_add(T::DbWeight::get().reads(3_u64))
383
			.saturating_add(T::DbWeight::get().writes(3_u64))
384
			.saturating_add(Weight::from_parts(0, 3).saturating_mul(x.into()))
385
	}
386
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
387
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
388
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
389
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
390
	/// Storage: `System::Account` (r:1 w:1)
391
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
392
	/// Storage: `Balances::Freezes` (r:1 w:1)
393
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
394
	/// Storage: `Balances::Locks` (r:1 w:0)
395
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
396
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
397
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
398
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
399
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
400
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
401
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
402
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
403
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
404
	/// The range of component `x` is `[0, 349]`.
405
	fn delegator_bond_more(x: u32, ) -> Weight {
406
		// Proof Size summary in bytes:
407
		//  Measured:  `2570 + x * (39 ±0)`
408
		//  Estimated: `5901 + x * (39 ±0)`
409
		// Minimum execution time: 64_892_000 picoseconds.
410
		Weight::from_parts(85_703_410, 5901)
411
			// Standard Error: 1_882
412
			.saturating_add(Weight::from_parts(86_612, 0).saturating_mul(x.into()))
413
			.saturating_add(T::DbWeight::get().reads(9_u64))
414
			.saturating_add(T::DbWeight::get().writes(7_u64))
415
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
416
	}
417
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
418
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
419
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
420
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
421
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
422
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
423
	/// The range of component `x` is `[0, 349]`.
424
	fn schedule_delegator_bond_less(x: u32, ) -> Weight {
425
		// Proof Size summary in bytes:
426
		//  Measured:  `1265 + x * (2 ±0)`
427
		//  Estimated: `4562 + x * (3 ±0)`
428
		// Minimum execution time: 23_828_000 picoseconds.
429
		Weight::from_parts(37_753_100, 4562)
430
			// Standard Error: 1_071
431
			.saturating_add(Weight::from_parts(32_881, 0).saturating_mul(x.into()))
432
			.saturating_add(T::DbWeight::get().reads(3_u64))
433
			.saturating_add(T::DbWeight::get().writes(3_u64))
434
			.saturating_add(Weight::from_parts(0, 3).saturating_mul(x.into()))
435
	}
436
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
437
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
438
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
439
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
440
	/// Storage: `Balances::Freezes` (r:1 w:1)
441
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
442
	/// Storage: `System::Account` (r:1 w:1)
443
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
444
	/// Storage: `Balances::Locks` (r:1 w:0)
445
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
446
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
447
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
448
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
449
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
450
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
451
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
452
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
453
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
454
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
455
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
456
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
457
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
458
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
459
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
460
	fn execute_delegator_revoke_delegation_worst() -> Weight {
461
		// Proof Size summary in bytes:
462
		//  Measured:  `23907`
463
		//  Estimated: `27372`
464
		// Minimum execution time: 142_373_000 picoseconds.
465
		Weight::from_parts(144_622_000, 27372)
466
			.saturating_add(T::DbWeight::get().reads(12_u64))
467
			.saturating_add(T::DbWeight::get().writes(11_u64))
468
	}
469
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
470
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
471
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
472
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
473
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
474
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
475
	/// Storage: `Balances::Freezes` (r:1 w:1)
476
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
477
	/// Storage: `System::Account` (r:1 w:1)
478
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
479
	/// Storage: `Balances::Locks` (r:1 w:0)
480
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
481
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
482
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
483
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
484
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
485
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
486
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
487
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
488
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
489
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
490
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
491
	fn execute_delegator_bond_less_worst() -> Weight {
492
		// Proof Size summary in bytes:
493
		//  Measured:  `16529`
494
		//  Estimated: `19994`
495
		// Minimum execution time: 124_756_000 picoseconds.
496
		Weight::from_parts(126_503_000, 19994)
497
			.saturating_add(T::DbWeight::get().reads(11_u64))
498
			.saturating_add(T::DbWeight::get().writes(10_u64))
499
	}
500
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
501
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
502
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
503
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
504
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
505
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
506
	/// The range of component `x` is `[0, 349]`.
507
	fn cancel_delegation_request(x: u32, ) -> Weight {
508
		// Proof Size summary in bytes:
509
		//  Measured:  `1352 + x * (2 ±0)`
510
		//  Estimated: `4664 + x * (3 ±0)`
511
		// Minimum execution time: 28_496_000 picoseconds.
512
		Weight::from_parts(38_500_277, 4664)
513
			// Standard Error: 868
514
			.saturating_add(Weight::from_parts(28_154, 0).saturating_mul(x.into()))
515
			.saturating_add(T::DbWeight::get().reads(3_u64))
516
			.saturating_add(T::DbWeight::get().writes(3_u64))
517
			.saturating_add(Weight::from_parts(0, 3).saturating_mul(x.into()))
518
	}
519
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
520
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
521
5
	fn prepare_staking_payouts() -> Weight {
522
		// Proof Size summary in bytes:
523
		//  Measured:  `3`
524
		//  Estimated: `3468`
525
		// Minimum execution time: 2_890_000 picoseconds.
526
5
		Weight::from_parts(3_218_000, 3468)
527
5
			.saturating_add(T::DbWeight::get().reads(1_u64))
528
5
	}
529
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
530
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
531
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
532
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
533
	/// The range of component `y` is `[0, 100]`.
534
	fn get_rewardable_delegators(y: u32, ) -> Weight {
535
		// Proof Size summary in bytes:
536
		//  Measured:  `98 + y * (36 ±0)`
537
		//  Estimated: `3562 + y * (36 ±0)`
538
		// Minimum execution time: 9_816_000 picoseconds.
539
		Weight::from_parts(11_716_247, 3562)
540
			// Standard Error: 633
541
			.saturating_add(Weight::from_parts(55_762, 0).saturating_mul(y.into()))
542
			.saturating_add(T::DbWeight::get().reads(2_u64))
543
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
544
	}
545
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
546
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
547
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
548
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
549
	/// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
550
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
551
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:51 w:0)
552
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
553
	/// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
554
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
555
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
556
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
557
	/// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
558
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
559
	/// Storage: `ParachainStaking::AtStake` (r:0 w:51)
560
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
561
	/// The range of component `x` is `[0, 50]`.
562
	/// The range of component `y` is `[0, 100]`.
563
64
	fn select_top_candidates(x: u32, y: u32, ) -> Weight {
564
		// Proof Size summary in bytes:
565
		//  Measured:  `0 + x * (3816 ±0) + y * (1800 ±0)`
566
		//  Estimated: `3718 + x * (3975 ±39) + y * (639 ±19)`
567
		// Minimum execution time: 26_307_000 picoseconds.
568
64
		Weight::from_parts(27_258_000, 3718)
569
			// Standard Error: 78_259
570
64
			.saturating_add(Weight::from_parts(19_884_129, 0).saturating_mul(x.into()))
571
			// Standard Error: 39_026
572
64
			.saturating_add(Weight::from_parts(1_167_595, 0).saturating_mul(y.into()))
573
64
			.saturating_add(T::DbWeight::get().reads(6_u64))
574
64
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
575
64
			.saturating_add(T::DbWeight::get().writes(2_u64))
576
64
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
577
64
			.saturating_add(Weight::from_parts(0, 3975).saturating_mul(x.into()))
578
64
			.saturating_add(Weight::from_parts(0, 639).saturating_mul(y.into()))
579
64
	}
580
	/// Storage: `System::Account` (r:349 w:349)
581
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
582
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
583
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
584
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:349 w:0)
585
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
586
	/// Storage: `Balances::Freezes` (r:349 w:349)
587
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
588
	/// Storage: `Balances::Locks` (r:349 w:0)
589
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
590
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
591
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
592
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
593
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
594
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
595
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
596
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
597
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
598
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
599
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
600
	/// The range of component `x` is `[0, 349]`.
601
	/// The range of component `y` is `[0, 349]`.
602
2
	fn pay_one_collator_reward_best(x: u32, y: u32, ) -> Weight {
603
		// Proof Size summary in bytes:
604
		//  Measured:  `0 + x * (346 ±0) + y * (148 ±0)`
605
		//  Estimated: `110850 + x * (2591 ±30) + y * (1308 ±30)`
606
		// Minimum execution time: 220_000 picoseconds.
607
2
		Weight::from_parts(235_000, 110850)
608
			// Standard Error: 542_528
609
2
			.saturating_add(Weight::from_parts(39_962_947, 0).saturating_mul(x.into()))
610
			// Standard Error: 542_528
611
2
			.saturating_add(Weight::from_parts(15_834_434, 0).saturating_mul(y.into()))
612
2
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
613
2
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
614
2
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(x.into())))
615
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
616
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(x.into()))
617
2
			.saturating_add(Weight::from_parts(0, 1308).saturating_mul(y.into()))
618
2
	}
619
	/// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
620
	/// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
621
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
622
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
623
	/// Storage: `ParachainStaking::AtStake` (r:2 w:1)
624
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
625
	/// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
626
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
627
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
628
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
629
	/// Storage: `System::Account` (r:301 w:301)
630
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
631
	/// The range of component `y` is `[0, 300]`.
632
2
	fn pay_one_collator_reward(y: u32, ) -> Weight {
633
		// Proof Size summary in bytes:
634
		//  Measured:  `1304 + y * (160 ±0)`
635
		//  Estimated: `7062 + y * (2591 ±0)`
636
		// Minimum execution time: 50_586_000 picoseconds.
637
2
		Weight::from_parts(42_442_025, 7062)
638
			// Standard Error: 7_468
639
2
			.saturating_add(Weight::from_parts(22_092_240, 0).saturating_mul(y.into()))
640
2
			.saturating_add(T::DbWeight::get().reads(7_u64))
641
2
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
642
2
			.saturating_add(T::DbWeight::get().writes(3_u64))
643
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
644
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
645
2
	}
646
6619
	fn base_on_initialize() -> Weight {
647
		// Proof Size summary in bytes:
648
		//  Measured:  `0`
649
		//  Estimated: `0`
650
		// Minimum execution time: 821_000 picoseconds.
651
6619
		Weight::from_parts(892_000, 0)
652
6619
	}
653
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
654
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
655
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
656
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
657
	/// The range of component `x` is `[0, 300]`.
658
	/// The range of component `y` is `[0, 100]`.
659
	fn set_auto_compound(x: u32, y: u32, ) -> Weight {
660
		// Proof Size summary in bytes:
661
		//  Measured:  `672 + x * (22 ±0) + y * (36 ±0)`
662
		//  Estimated: `4028 + x * (23 ±0) + y * (36 ±0)`
663
		// Minimum execution time: 25_136_000 picoseconds.
664
		Weight::from_parts(28_640_971, 4028)
665
			// Standard Error: 427
666
			.saturating_add(Weight::from_parts(41_681, 0).saturating_mul(x.into()))
667
			// Standard Error: 1_279
668
			.saturating_add(Weight::from_parts(34_376, 0).saturating_mul(y.into()))
669
			.saturating_add(T::DbWeight::get().reads(2_u64))
670
			.saturating_add(T::DbWeight::get().writes(1_u64))
671
			.saturating_add(Weight::from_parts(0, 23).saturating_mul(x.into()))
672
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
673
	}
674
	/// Storage: `System::Account` (r:1 w:1)
675
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
676
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
677
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
678
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
679
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
680
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
681
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
682
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
683
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
684
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
685
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
686
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
687
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
688
	/// Storage: `Balances::Freezes` (r:1 w:1)
689
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
690
	/// Storage: `Balances::Locks` (r:1 w:0)
691
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
692
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
693
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
694
	/// The range of component `x` is `[0, 350]`.
695
	/// The range of component `y` is `[0, 349]`.
696
	/// The range of component `z` is `[0, 99]`.
697
	fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
698
		// Proof Size summary in bytes:
699
		//  Measured:  `0 + x * (60 ±0) + y * (21 ±0) + z * (78 ±0)`
700
		//  Estimated: `26209 + x * (44 ±0) + y * (19 ±0) + z * (76 ±1)`
701
		// Minimum execution time: 107_870_000 picoseconds.
702
		Weight::from_parts(85_013_689, 26209)
703
			// Standard Error: 1_361
704
			.saturating_add(Weight::from_parts(127_536, 0).saturating_mul(x.into()))
705
			// Standard Error: 1_365
706
			.saturating_add(Weight::from_parts(7_449, 0).saturating_mul(y.into()))
707
			// Standard Error: 4_808
708
			.saturating_add(Weight::from_parts(232_696, 0).saturating_mul(z.into()))
709
			.saturating_add(T::DbWeight::get().reads(9_u64))
710
			.saturating_add(T::DbWeight::get().writes(8_u64))
711
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
712
			.saturating_add(Weight::from_parts(0, 19).saturating_mul(y.into()))
713
			.saturating_add(Weight::from_parts(0, 76).saturating_mul(z.into()))
714
	}
715
	/// Storage: `System::Account` (r:2 w:2)
716
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
717
	/// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
718
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
719
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
720
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
721
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
722
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
723
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
724
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
725
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
726
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
727
	/// Storage: `Balances::Freezes` (r:2 w:2)
728
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
729
	/// Storage: `Balances::Locks` (r:2 w:0)
730
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
731
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
732
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
733
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
734
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
735
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
736
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
737
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
738
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
739
	fn delegate_with_auto_compound_worst() -> Weight {
740
		// Proof Size summary in bytes:
741
		//  Measured:  `34862`
742
		//  Estimated: `40802`
743
		// Minimum execution time: 234_568_000 picoseconds.
744
		Weight::from_parts(239_765_000, 40802)
745
			.saturating_add(T::DbWeight::get().reads(16_u64))
746
			.saturating_add(T::DbWeight::get().writes(14_u64))
747
	}
748
	/// Storage: `System::Account` (r:1 w:1)
749
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
750
14
	fn mint_collator_reward() -> Weight {
751
		// Proof Size summary in bytes:
752
		//  Measured:  `128`
753
		//  Estimated: `3581`
754
		// Minimum execution time: 22_527_000 picoseconds.
755
14
		Weight::from_parts(23_141_000, 3581)
756
14
			.saturating_add(T::DbWeight::get().reads(1_u64))
757
14
			.saturating_add(T::DbWeight::get().writes(1_u64))
758
14
	}
759
	/// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
760
	/// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
761
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
762
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
763
	/// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
764
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
765
	/// Storage: `ParachainStaking::WasInactive` (r:2 w:0)
766
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
767
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
768
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
769
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
770
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
771
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
772
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
773
	fn notify_inactive_collator() -> Weight {
774
		// Proof Size summary in bytes:
775
		//  Measured:  `11178`
776
		//  Estimated: `17118`
777
		// Minimum execution time: 70_578_000 picoseconds.
778
		Weight::from_parts(71_820_000, 17118)
779
			.saturating_add(T::DbWeight::get().reads(8_u64))
780
			.saturating_add(T::DbWeight::get().writes(2_u64))
781
	}
782
	/// Storage: `ParachainStaking::AtStake` (r:52 w:0)
783
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
784
	/// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
785
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
786
	/// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
787
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
788
	/// The range of component `x` is `[0, 50]`.
789
5
	fn mark_collators_as_inactive(x: u32, ) -> Weight {
790
		// Proof Size summary in bytes:
791
		//  Measured:  `108 + x * (104 ±0)`
792
		//  Estimated: `6050 + x * (2580 ±0)`
793
		// Minimum execution time: 11_735_000 picoseconds.
794
5
		Weight::from_parts(16_818_155, 6050)
795
			// Standard Error: 17_667
796
5
			.saturating_add(Weight::from_parts(9_263_320, 0).saturating_mul(x.into()))
797
5
			.saturating_add(T::DbWeight::get().reads(3_u64))
798
5
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
799
5
			.saturating_add(T::DbWeight::get().writes(1_u64))
800
5
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
801
5
			.saturating_add(Weight::from_parts(0, 2580).saturating_mul(x.into()))
802
5
	}
803
}