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 48.0.0
21
//! DATE: 2025-10-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-198`, 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
// --output=./runtime/moonbase/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: 5_000_000 picoseconds.
60
		Weight::from_parts(6_000_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: 21_000_000 picoseconds.
71
		Weight::from_parts(22_000_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: 5_000_000 picoseconds.
82
		Weight::from_parts(5_000_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: 5_000_000 picoseconds.
93
		Weight::from_parts(6_000_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: 5_000_000 picoseconds.
104
		Weight::from_parts(5_000_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: 22_000_000 picoseconds.
117
		Weight::from_parts(23_000_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: 34_000_000 picoseconds.
145
		Weight::from_parts(37_221_253, 4752)
146
			// Standard Error: 1_225
147
			.saturating_add(Weight::from_parts(39_286, 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: 11_000_000 picoseconds.
162
		Weight::from_parts(13_611_254, 4023)
163
			// Standard Error: 1_398
164
			.saturating_add(Weight::from_parts(22_596, 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:1 w:1)
184
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
185
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
186
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
187
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
188
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
189
	/// The range of component `x` is `[2, 350]`.
190
	fn execute_leave_candidates_worst_case(x: u32, ) -> Weight {
191
		// Proof Size summary in bytes:
192
		//  Measured:  `1310 + x * (423 ±0)`
193
		//  Estimated: `4791 + x * (3762 ±0)`
194
		// Minimum execution time: 68_000_000 picoseconds.
195
		Weight::from_parts(68_000_000, 4791)
196
			// Standard Error: 67_530
197
			.saturating_add(Weight::from_parts(29_208_890, 0).saturating_mul(x.into()))
198
			.saturating_add(T::DbWeight::get().reads(5_u64))
199
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
200
			.saturating_add(T::DbWeight::get().writes(5_u64))
201
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
202
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
203
	}
204
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
205
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
206
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
207
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
208
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
209
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
210
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
211
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
212
	/// Storage: `Balances::Freezes` (r:350 w:350)
213
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
214
	/// Storage: `System::Account` (r:350 w:350)
215
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
216
	/// Storage: `Balances::Locks` (r:350 w:0)
217
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
218
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
219
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
220
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
221
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
222
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
223
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
224
	/// The range of component `x` is `[2, 350]`.
225
	/// The range of component `y` is `[2, 350]`.
226
	fn execute_leave_candidates_ideal(x: u32, _y: u32, ) -> Weight {
227
		// Proof Size summary in bytes:
228
		//  Measured:  `1303 + x * (423 ±0)`
229
		//  Estimated: `4791 + x * (3762 ±0)`
230
		// Minimum execution time: 61_000_000 picoseconds.
231
		Weight::from_parts(64_000_000, 4791)
232
			// Standard Error: 35_972
233
			.saturating_add(Weight::from_parts(30_899_048, 0).saturating_mul(x.into()))
234
			.saturating_add(T::DbWeight::get().reads(5_u64))
235
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
236
			.saturating_add(T::DbWeight::get().writes(5_u64))
237
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
238
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
239
	}
240
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
241
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
242
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
243
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
244
	/// The range of component `x` is `[3, 200]`.
245
	fn cancel_leave_candidates(x: u32, ) -> Weight {
246
		// Proof Size summary in bytes:
247
		//  Measured:  `633 + x * (37 ±0)`
248
		//  Estimated: `3991 + x * (38 ±0)`
249
		// Minimum execution time: 10_000_000 picoseconds.
250
		Weight::from_parts(11_018_876, 3991)
251
			// Standard Error: 1_079
252
			.saturating_add(Weight::from_parts(45_705, 0).saturating_mul(x.into()))
253
			.saturating_add(T::DbWeight::get().reads(2_u64))
254
			.saturating_add(T::DbWeight::get().writes(2_u64))
255
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
256
	}
257
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
258
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
259
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
260
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
261
	/// The range of component `x` is `[1, 200]`.
262
1
	fn go_offline(x: u32, ) -> Weight {
263
		// Proof Size summary in bytes:
264
		//  Measured:  `530 + x * (38 ±0)`
265
		//  Estimated: `3931 + x * (39 ±0)`
266
		// Minimum execution time: 10_000_000 picoseconds.
267
1
		Weight::from_parts(10_996_104, 3931)
268
			// Standard Error: 421
269
1
			.saturating_add(Weight::from_parts(28_393, 0).saturating_mul(x.into()))
270
1
			.saturating_add(T::DbWeight::get().reads(2_u64))
271
1
			.saturating_add(T::DbWeight::get().writes(2_u64))
272
1
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
273
1
	}
274
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
275
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
276
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
277
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
278
	/// The range of component `x` is `[1, 200]`.
279
	fn go_online(x: u32, ) -> Weight {
280
		// Proof Size summary in bytes:
281
		//  Measured:  `494 + x * (38 ±0)`
282
		//  Estimated: `3895 + x * (39 ±0)`
283
		// Minimum execution time: 10_000_000 picoseconds.
284
		Weight::from_parts(11_597_985, 3895)
285
			// Standard Error: 596
286
			.saturating_add(Weight::from_parts(28_174, 0).saturating_mul(x.into()))
287
			.saturating_add(T::DbWeight::get().reads(2_u64))
288
			.saturating_add(T::DbWeight::get().writes(2_u64))
289
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
290
	}
291
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
292
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
293
	/// Storage: `System::Account` (r:1 w:1)
294
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
295
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
296
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
297
	/// Storage: `Balances::Freezes` (r:1 w:1)
298
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
299
	/// Storage: `Balances::Locks` (r:1 w:0)
300
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
301
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
302
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
303
	/// The range of component `x` is `[1, 200]`.
304
	fn candidate_bond_more(x: u32, ) -> Weight {
305
		// Proof Size summary in bytes:
306
		//  Measured:  `1225 + x * (42 ±0)`
307
		//  Estimated: `4752 + x * (44 ±0)`
308
		// Minimum execution time: 31_000_000 picoseconds.
309
		Weight::from_parts(34_708_962, 4752)
310
			// Standard Error: 2_107
311
			.saturating_add(Weight::from_parts(50_560, 0).saturating_mul(x.into()))
312
			.saturating_add(T::DbWeight::get().reads(6_u64))
313
			.saturating_add(T::DbWeight::get().writes(5_u64))
314
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
315
	}
316
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
317
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
318
	fn schedule_candidate_bond_less() -> Weight {
319
		// Proof Size summary in bytes:
320
		//  Measured:  `171`
321
		//  Estimated: `3636`
322
		// Minimum execution time: 9_000_000 picoseconds.
323
		Weight::from_parts(9_000_000, 3636)
324
			.saturating_add(T::DbWeight::get().reads(1_u64))
325
			.saturating_add(T::DbWeight::get().writes(1_u64))
326
	}
327
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
328
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
329
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
330
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
331
	/// Storage: `Balances::Freezes` (r:1 w:1)
332
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
333
	/// Storage: `System::Account` (r:1 w:1)
334
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
335
	/// Storage: `Balances::Locks` (r:1 w:0)
336
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
337
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
338
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
339
	/// The range of component `x` is `[1, 200]`.
340
	fn execute_candidate_bond_less(x: u32, ) -> Weight {
341
		// Proof Size summary in bytes:
342
		//  Measured:  `1314 + x * (42 ±0)`
343
		//  Estimated: `4752 + x * (43 ±0)`
344
		// Minimum execution time: 31_000_000 picoseconds.
345
		Weight::from_parts(33_049_874, 4752)
346
			// Standard Error: 651
347
			.saturating_add(Weight::from_parts(37_373, 0).saturating_mul(x.into()))
348
			.saturating_add(T::DbWeight::get().reads(6_u64))
349
			.saturating_add(T::DbWeight::get().writes(5_u64))
350
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
351
	}
352
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
353
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
354
	fn cancel_candidate_bond_less() -> Weight {
355
		// Proof Size summary in bytes:
356
		//  Measured:  `191`
357
		//  Estimated: `3656`
358
		// Minimum execution time: 8_000_000 picoseconds.
359
		Weight::from_parts(8_000_000, 3656)
360
			.saturating_add(T::DbWeight::get().reads(1_u64))
361
			.saturating_add(T::DbWeight::get().writes(1_u64))
362
	}
363
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
364
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
365
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
366
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
367
	/// The range of component `x` is `[0, 349]`.
368
	fn schedule_revoke_delegation(x: u32, ) -> Weight {
369
		// Proof Size summary in bytes:
370
		//  Measured:  `606 + x * (42 ±0)`
371
		//  Estimated: `4050 + x * (43 ±0)`
372
		// Minimum execution time: 11_000_000 picoseconds.
373
		Weight::from_parts(14_220_842, 4050)
374
			// Standard Error: 728
375
			.saturating_add(Weight::from_parts(54_781, 0).saturating_mul(x.into()))
376
			.saturating_add(T::DbWeight::get().reads(2_u64))
377
			.saturating_add(T::DbWeight::get().writes(2_u64))
378
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
379
	}
380
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
381
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
382
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
383
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
384
	/// Storage: `System::Account` (r:1 w:1)
385
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
386
	/// Storage: `Balances::Freezes` (r:1 w:1)
387
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
388
	/// Storage: `Balances::Locks` (r:1 w:0)
389
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
390
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
391
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
392
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
393
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
394
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
395
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
396
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
397
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
398
	/// The range of component `x` is `[0, 349]`.
399
	fn delegator_bond_more(x: u32, ) -> Weight {
400
		// Proof Size summary in bytes:
401
		//  Measured:  `1980 + x * (79 ±0)`
402
		//  Estimated: `5425 + x * (79 ±0)`
403
		// Minimum execution time: 45_000_000 picoseconds.
404
		Weight::from_parts(49_931_046, 5425)
405
			// Standard Error: 2_168
406
			.saturating_add(Weight::from_parts(89_684, 0).saturating_mul(x.into()))
407
			.saturating_add(T::DbWeight::get().reads(9_u64))
408
			.saturating_add(T::DbWeight::get().writes(7_u64))
409
			.saturating_add(Weight::from_parts(0, 79).saturating_mul(x.into()))
410
	}
411
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
412
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
413
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
414
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
415
	/// The range of component `x` is `[0, 349]`.
416
	fn schedule_delegator_bond_less(x: u32, ) -> Weight {
417
		// Proof Size summary in bytes:
418
		//  Measured:  `606 + x * (42 ±0)`
419
		//  Estimated: `4050 + x * (43 ±0)`
420
		// Minimum execution time: 11_000_000 picoseconds.
421
		Weight::from_parts(13_869_319, 4050)
422
			// Standard Error: 940
423
			.saturating_add(Weight::from_parts(58_008, 0).saturating_mul(x.into()))
424
			.saturating_add(T::DbWeight::get().reads(2_u64))
425
			.saturating_add(T::DbWeight::get().writes(2_u64))
426
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
427
	}
428
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
429
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
430
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
431
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
432
	/// Storage: `Balances::Freezes` (r:1 w:1)
433
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
434
	/// Storage: `System::Account` (r:1 w:1)
435
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
436
	/// Storage: `Balances::Locks` (r:1 w:0)
437
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
438
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
439
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
440
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
441
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
442
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
443
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
444
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
445
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
446
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
447
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
448
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
449
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
450
	fn execute_delegator_revoke_delegation_worst() -> Weight {
451
		// Proof Size summary in bytes:
452
		//  Measured:  `37340`
453
		//  Estimated: `40805`
454
		// Minimum execution time: 88_000_000 picoseconds.
455
		Weight::from_parts(89_000_000, 40805)
456
			.saturating_add(T::DbWeight::get().reads(11_u64))
457
			.saturating_add(T::DbWeight::get().writes(10_u64))
458
	}
459
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
460
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
461
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
462
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
463
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
464
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
465
	/// Storage: `Balances::Freezes` (r:1 w:1)
466
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
467
	/// Storage: `System::Account` (r:1 w:1)
468
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
469
	/// Storage: `Balances::Locks` (r:1 w:0)
470
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
471
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
472
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
473
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
474
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
475
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
476
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
477
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
478
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
479
	fn execute_delegator_bond_less_worst() -> Weight {
480
		// Proof Size summary in bytes:
481
		//  Measured:  `29962`
482
		//  Estimated: `33427`
483
		// Minimum execution time: 76_000_000 picoseconds.
484
		Weight::from_parts(78_000_000, 33427)
485
			.saturating_add(T::DbWeight::get().reads(10_u64))
486
			.saturating_add(T::DbWeight::get().writes(9_u64))
487
	}
488
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
489
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
490
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
491
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
492
	/// The range of component `x` is `[0, 349]`.
493
	fn cancel_delegation_request(x: u32, ) -> Weight {
494
		// Proof Size summary in bytes:
495
		//  Measured:  `703 + x * (42 ±0)`
496
		//  Estimated: `4132 + x * (43 ±0)`
497
		// Minimum execution time: 13_000_000 picoseconds.
498
		Weight::from_parts(13_960_863, 4132)
499
			// Standard Error: 944
500
			.saturating_add(Weight::from_parts(55_701, 0).saturating_mul(x.into()))
501
			.saturating_add(T::DbWeight::get().reads(2_u64))
502
			.saturating_add(T::DbWeight::get().writes(2_u64))
503
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
504
	}
505
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
506
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
507
5
	fn prepare_staking_payouts() -> Weight {
508
		// Proof Size summary in bytes:
509
		//  Measured:  `3`
510
		//  Estimated: `3468`
511
		// Minimum execution time: 2_000_000 picoseconds.
512
5
		Weight::from_parts(2_000_000, 3468)
513
5
			.saturating_add(T::DbWeight::get().reads(1_u64))
514
5
	}
515
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
516
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
517
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
518
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
519
	/// The range of component `y` is `[0, 100]`.
520
	fn get_rewardable_delegators(y: u32, ) -> Weight {
521
		// Proof Size summary in bytes:
522
		//  Measured:  `90 + y * (36 ±0)`
523
		//  Estimated: `3554 + y * (36 ±0)`
524
		// Minimum execution time: 4_000_000 picoseconds.
525
		Weight::from_parts(5_364_444, 3554)
526
			// Standard Error: 564
527
			.saturating_add(Weight::from_parts(15_580, 0).saturating_mul(y.into()))
528
			.saturating_add(T::DbWeight::get().reads(2_u64))
529
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
530
	}
531
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
532
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
533
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
534
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
535
	/// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
536
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
537
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:51 w:0)
538
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
539
	/// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
540
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
541
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
542
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
543
	/// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
544
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
545
	/// Storage: `ParachainStaking::AtStake` (r:0 w:51)
546
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
547
	/// The range of component `x` is `[0, 50]`.
548
	/// The range of component `y` is `[0, 100]`.
549
69
	fn select_top_candidates(x: u32, y: u32, ) -> Weight {
550
		// Proof Size summary in bytes:
551
		//  Measured:  `0 + x * (3816 ±0) + y * (1800 ±0)`
552
		//  Estimated: `3710 + x * (3975 ±39) + y * (639 ±19)`
553
		// Minimum execution time: 15_000_000 picoseconds.
554
69
		Weight::from_parts(15_000_000, 3710)
555
			// Standard Error: 41_204
556
69
			.saturating_add(Weight::from_parts(12_387_637, 0).saturating_mul(x.into()))
557
			// Standard Error: 20_547
558
69
			.saturating_add(Weight::from_parts(623_724, 0).saturating_mul(y.into()))
559
69
			.saturating_add(T::DbWeight::get().reads(6_u64))
560
69
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
561
69
			.saturating_add(T::DbWeight::get().writes(2_u64))
562
69
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
563
69
			.saturating_add(Weight::from_parts(0, 3975).saturating_mul(x.into()))
564
69
			.saturating_add(Weight::from_parts(0, 639).saturating_mul(y.into()))
565
69
	}
566
	/// Storage: `System::Account` (r:349 w:349)
567
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
568
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
569
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
570
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
571
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
572
	/// Storage: `Balances::Freezes` (r:349 w:349)
573
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
574
	/// Storage: `Balances::Locks` (r:349 w:0)
575
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
576
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
577
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
578
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
579
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
580
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
581
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
582
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
583
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
584
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
585
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
586
	/// The range of component `x` is `[0, 349]`.
587
	/// The range of component `y` is `[0, 349]`.
588
	/// The range of component `z` is `[0, 349]`.
589
2
	fn pay_one_collator_reward_best(x: u32, y: u32, z: u32, ) -> Weight {
590
		// Proof Size summary in bytes:
591
		//  Measured:  `0 + x * (387 ±0) + y * (148 ±0) + z * (41 ±0)`
592
		//  Estimated: `123448 + x * (2591 ±28) + y * (2234 ±28) + z * (28 ±0)`
593
		// Minimum execution time: 0_000 picoseconds.
594
2
		Weight::from_parts(0, 123448)
595
			// Standard Error: 444_599
596
2
			.saturating_add(Weight::from_parts(44_737_113, 0).saturating_mul(x.into()))
597
			// Standard Error: 444_599
598
2
			.saturating_add(Weight::from_parts(22_984_918, 0).saturating_mul(y.into()))
599
2
			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(x.into())))
600
2
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(y.into())))
601
2
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(x.into())))
602
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
603
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(x.into()))
604
2
			.saturating_add(Weight::from_parts(0, 2234).saturating_mul(y.into()))
605
2
			.saturating_add(Weight::from_parts(0, 28).saturating_mul(z.into()))
606
2
	}
607
	/// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
608
	/// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
609
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
610
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
611
	/// Storage: `ParachainStaking::AtStake` (r:2 w:1)
612
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
613
	/// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
614
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
615
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
616
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
617
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
618
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
619
	/// Storage: `System::Account` (r:301 w:301)
620
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
621
	/// The range of component `y` is `[0, 300]`.
622
2
	fn pay_one_collator_reward(y: u32, ) -> Weight {
623
		// Proof Size summary in bytes:
624
		//  Measured:  `1400 + y * (160 ±0)`
625
		//  Estimated: `7145 + y * (2591 ±0)`
626
		// Minimum execution time: 36_000_000 picoseconds.
627
2
		Weight::from_parts(36_000_000, 7145)
628
			// Standard Error: 15_759
629
2
			.saturating_add(Weight::from_parts(17_885_929, 0).saturating_mul(y.into()))
630
2
			.saturating_add(T::DbWeight::get().reads(8_u64))
631
2
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
632
2
			.saturating_add(T::DbWeight::get().writes(3_u64))
633
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
634
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
635
2
	}
636
6616
	fn base_on_initialize() -> Weight {
637
		// Proof Size summary in bytes:
638
		//  Measured:  `0`
639
		//  Estimated: `0`
640
		// Minimum execution time: 0_000 picoseconds.
641
6616
		Weight::from_parts(0, 0)
642
6616
	}
643
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
644
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
645
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
646
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
647
	/// The range of component `x` is `[0, 300]`.
648
	/// The range of component `y` is `[0, 100]`.
649
	fn set_auto_compound(x: u32, y: u32, ) -> Weight {
650
		// Proof Size summary in bytes:
651
		//  Measured:  `672 + x * (22 ±0) + y * (36 ±0)`
652
		//  Estimated: `4028 + x * (23 ±0) + y * (36 ±0)`
653
		// Minimum execution time: 12_000_000 picoseconds.
654
		Weight::from_parts(13_138_228, 4028)
655
			// Standard Error: 1_176
656
			.saturating_add(Weight::from_parts(24_371, 0).saturating_mul(x.into()))
657
			// Standard Error: 3_522
658
			.saturating_add(Weight::from_parts(26_486, 0).saturating_mul(y.into()))
659
			.saturating_add(T::DbWeight::get().reads(2_u64))
660
			.saturating_add(T::DbWeight::get().writes(1_u64))
661
			.saturating_add(Weight::from_parts(0, 23).saturating_mul(x.into()))
662
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
663
	}
664
	/// Storage: `System::Account` (r:1 w:1)
665
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
666
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
667
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
668
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
669
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
670
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
671
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
672
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
673
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
674
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
675
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
676
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
677
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
678
	/// Storage: `Balances::Freezes` (r:1 w:1)
679
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
680
	/// Storage: `Balances::Locks` (r:1 w:0)
681
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
682
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
683
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
684
	/// The range of component `x` is `[0, 350]`.
685
	/// The range of component `y` is `[0, 349]`.
686
	/// The range of component `z` is `[0, 99]`.
687
	fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
688
		// Proof Size summary in bytes:
689
		//  Measured:  `0 + x * (60 ±0) + y * (21 ±0) + z * (78 ±0)`
690
		//  Estimated: `26242 + x * (44 ±0) + y * (19 ±0) + z * (76 ±1)`
691
		// Minimum execution time: 62_000_000 picoseconds.
692
		Weight::from_parts(47_219_865, 26242)
693
			// Standard Error: 2_131
694
			.saturating_add(Weight::from_parts(69_211, 0).saturating_mul(x.into()))
695
			// Standard Error: 2_137
696
			.saturating_add(Weight::from_parts(10_800, 0).saturating_mul(y.into()))
697
			// Standard Error: 7_527
698
			.saturating_add(Weight::from_parts(166_346, 0).saturating_mul(z.into()))
699
			.saturating_add(T::DbWeight::get().reads(9_u64))
700
			.saturating_add(T::DbWeight::get().writes(8_u64))
701
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
702
			.saturating_add(Weight::from_parts(0, 19).saturating_mul(y.into()))
703
			.saturating_add(Weight::from_parts(0, 76).saturating_mul(z.into()))
704
	}
705
	/// Storage: `System::Account` (r:2 w:2)
706
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
707
	/// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
708
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
709
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
710
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
711
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
712
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
713
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
714
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
715
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
716
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
717
	/// Storage: `Balances::Freezes` (r:2 w:2)
718
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
719
	/// Storage: `Balances::Locks` (r:2 w:0)
720
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
721
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
722
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
723
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
724
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
725
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
726
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
727
	fn delegate_with_auto_compound_worst() -> Weight {
728
		// Proof Size summary in bytes:
729
		//  Measured:  `48154`
730
		//  Estimated: `54094`
731
		// Minimum execution time: 153_000_000 picoseconds.
732
		Weight::from_parts(168_000_000, 54094)
733
			.saturating_add(T::DbWeight::get().reads(15_u64))
734
			.saturating_add(T::DbWeight::get().writes(13_u64))
735
	}
736
	/// Storage: `System::Account` (r:1 w:1)
737
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
738
12
	fn mint_collator_reward() -> Weight {
739
		// Proof Size summary in bytes:
740
		//  Measured:  `128`
741
		//  Estimated: `3581`
742
		// Minimum execution time: 17_000_000 picoseconds.
743
12
		Weight::from_parts(17_000_000, 3581)
744
12
			.saturating_add(T::DbWeight::get().reads(1_u64))
745
12
			.saturating_add(T::DbWeight::get().writes(1_u64))
746
12
	}
747
	/// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
748
	/// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
749
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
750
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
751
	/// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
752
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
753
	/// Storage: `ParachainStaking::WasInactive` (r:2 w:0)
754
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
755
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
756
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
757
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
758
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
759
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
760
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
761
	fn notify_inactive_collator() -> Weight {
762
		// Proof Size summary in bytes:
763
		//  Measured:  `11212`
764
		//  Estimated: `17152`
765
		// Minimum execution time: 38_000_000 picoseconds.
766
		Weight::from_parts(39_000_000, 17152)
767
			.saturating_add(T::DbWeight::get().reads(8_u64))
768
			.saturating_add(T::DbWeight::get().writes(2_u64))
769
	}
770
	/// Storage: `ParachainStaking::AtStake` (r:52 w:0)
771
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
772
	/// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
773
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
774
	/// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
775
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
776
	/// The range of component `x` is `[0, 50]`.
777
5
	fn mark_collators_as_inactive(x: u32, ) -> Weight {
778
		// Proof Size summary in bytes:
779
		//  Measured:  `108 + x * (104 ±0)`
780
		//  Estimated: `6050 + x * (2580 ±0)`
781
		// Minimum execution time: 8_000_000 picoseconds.
782
5
		Weight::from_parts(10_421_260, 6050)
783
			// Standard Error: 5_099
784
5
			.saturating_add(Weight::from_parts(6_394_157, 0).saturating_mul(x.into()))
785
5
			.saturating_add(T::DbWeight::get().reads(3_u64))
786
5
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
787
5
			.saturating_add(T::DbWeight::get().writes(1_u64))
788
5
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
789
5
			.saturating_add(Weight::from_parts(0, 2580).saturating_mul(x.into()))
790
5
	}
791
}