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-09-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `Michaels-MacBook-Pro-2.local`, CPU: `<UNKNOWN>`
24
//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
25

            
26
// Executed Command:
27
// ./target/release/moonbeam
28
// benchmark
29
// pallet
30
// --runtime=./target/release/wbuild/moonbase-runtime/moonbase_runtime.wasm
31
// --genesis-builder=runtime
32
// --genesis-builder-preset=development
33
// --steps=5
34
// --repeat=5
35
// --pallet=pallet-parachain-staking
36
// --extrinsic=
37
// --wasm-execution=compiled
38
// --header=./file_header.txt
39
// --template=./benchmarking/frame-weight-template.hbs
40
// --output=./runtime/moonriver/src/weights
41

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

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

            
49
/// Weights for `pallet_parachain_staking`.
50
pub struct WeightInfo<T>(PhantomData<T>);
51
impl<T: frame_system::Config> pallet_parachain_staking::WeightInfo for WeightInfo<T> {
52
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
53
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
54
	fn set_staking_expectations() -> Weight {
55
		// Proof Size summary in bytes:
56
		//  Measured:  `88`
57
		//  Estimated: `1573`
58
		// Minimum execution time: 8_764_000 picoseconds.
59
		Weight::from_parts(9_249_000, 1573)
60
			.saturating_add(T::DbWeight::get().reads(1_u64))
61
			.saturating_add(T::DbWeight::get().writes(1_u64))
62
	}
63
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
64
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
65
	fn set_inflation() -> Weight {
66
		// Proof Size summary in bytes:
67
		//  Measured:  `88`
68
		//  Estimated: `1573`
69
		// Minimum execution time: 36_509_000 picoseconds.
70
		Weight::from_parts(37_358_000, 1573)
71
			.saturating_add(T::DbWeight::get().reads(1_u64))
72
			.saturating_add(T::DbWeight::get().writes(1_u64))
73
	}
74
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
75
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
76
	fn set_inflation_distribution_config() -> Weight {
77
		// Proof Size summary in bytes:
78
		//  Measured:  `30`
79
		//  Estimated: `1515`
80
		// Minimum execution time: 7_522_000 picoseconds.
81
		Weight::from_parts(7_737_000, 1515)
82
			.saturating_add(T::DbWeight::get().reads(1_u64))
83
			.saturating_add(T::DbWeight::get().writes(1_u64))
84
	}
85
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:1)
86
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
87
	fn set_total_selected() -> Weight {
88
		// Proof Size summary in bytes:
89
		//  Measured:  `28`
90
		//  Estimated: `1513`
91
		// Minimum execution time: 7_981_000 picoseconds.
92
		Weight::from_parts(8_273_000, 1513)
93
			.saturating_add(T::DbWeight::get().reads(1_u64))
94
			.saturating_add(T::DbWeight::get().writes(1_u64))
95
	}
96
	/// Storage: `ParachainStaking::CollatorCommission` (r:1 w:1)
97
	/// Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
98
	fn set_collator_commission() -> Weight {
99
		// Proof Size summary in bytes:
100
		//  Measured:  `27`
101
		//  Estimated: `1512`
102
		// Minimum execution time: 7_494_000 picoseconds.
103
		Weight::from_parts(7_773_000, 1512)
104
			.saturating_add(T::DbWeight::get().reads(1_u64))
105
			.saturating_add(T::DbWeight::get().writes(1_u64))
106
	}
107
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
108
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
109
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
110
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
111
	fn set_blocks_per_round() -> Weight {
112
		// Proof Size summary in bytes:
113
		//  Measured:  `116`
114
		//  Estimated: `1601`
115
		// Minimum execution time: 39_585_000 picoseconds.
116
		Weight::from_parts(40_192_000, 1601)
117
			.saturating_add(T::DbWeight::get().reads(2_u64))
118
			.saturating_add(T::DbWeight::get().writes(1_u64))
119
	}
120
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
121
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
122
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
123
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
124
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
125
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
126
	/// Storage: `System::Account` (r:1 w:1)
127
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
128
	/// Storage: `ParachainStaking::MigratedCandidates` (r:1 w:0)
129
	/// Proof: `ParachainStaking::MigratedCandidates` (`max_values`: None, `max_size`: None, mode: `Measured`)
130
	/// Storage: `Balances::Freezes` (r:1 w:1)
131
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
132
	/// Storage: `Balances::Locks` (r:1 w:0)
133
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
134
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
135
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
136
	/// Storage: `ParachainStaking::TopDelegations` (r:0 w:1)
137
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
138
	/// Storage: `ParachainStaking::BottomDelegations` (r:0 w:1)
139
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
140
	/// The range of component `x` is `[3, 200]`.
141
	fn join_candidates(x: u32, ) -> Weight {
142
		// Proof Size summary in bytes:
143
		//  Measured:  `1384 + x * (38 ±0)`
144
		//  Estimated: `4752 + x * (41 ±0)`
145
		// Minimum execution time: 50_653_000 picoseconds.
146
		Weight::from_parts(60_762_286, 4752)
147
			// Standard Error: 1_694
148
			.saturating_add(Weight::from_parts(90_910, 0).saturating_mul(x.into()))
149
			.saturating_add(T::DbWeight::get().reads(7_u64))
150
			.saturating_add(T::DbWeight::get().writes(7_u64))
151
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
152
	}
153
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
154
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
155
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
156
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
157
	/// The range of component `x` is `[3, 200]`.
158
	fn schedule_leave_candidates(x: u32, ) -> Weight {
159
		// Proof Size summary in bytes:
160
		//  Measured:  `665 + x * (37 ±0)`
161
		//  Estimated: `4023 + x * (38 ±0)`
162
		// Minimum execution time: 16_719_000 picoseconds.
163
		Weight::from_parts(24_780_060, 4023)
164
			// Standard Error: 1_158
165
			.saturating_add(Weight::from_parts(60_950, 0).saturating_mul(x.into()))
166
			.saturating_add(T::DbWeight::get().reads(2_u64))
167
			.saturating_add(T::DbWeight::get().writes(2_u64))
168
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
169
	}
170
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
171
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
172
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
173
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
174
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
175
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
176
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
177
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
178
	/// Storage: `ParachainStaking::MigratedDelegators` (r:349 w:0)
179
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
180
	/// Storage: `Balances::Freezes` (r:350 w:350)
181
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
182
	/// Storage: `System::Account` (r:350 w:350)
183
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
184
	/// Storage: `Balances::Locks` (r:350 w:1)
185
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
186
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
187
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
188
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
189
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
190
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
191
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
192
	/// The range of component `x` is `[2, 350]`.
193
	fn execute_leave_candidates_worst_case(x: u32, ) -> Weight {
194
		// Proof Size summary in bytes:
195
		//  Measured:  `1302 + x * (431 ±0)`
196
		//  Estimated: `4773 + x * (3762 ±0)`
197
		// Minimum execution time: 110_687_000 picoseconds.
198
		Weight::from_parts(111_636_000, 4773)
199
			// Standard Error: 52_020
200
			.saturating_add(Weight::from_parts(36_371_563, 0).saturating_mul(x.into()))
201
			.saturating_add(T::DbWeight::get().reads(5_u64))
202
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
203
			.saturating_add(T::DbWeight::get().writes(5_u64))
204
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
205
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
206
	}
207
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
208
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
209
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
210
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
211
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
212
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
213
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
214
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
215
	/// Storage: `ParachainStaking::MigratedDelegators` (r:349 w:0)
216
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
217
	/// Storage: `Balances::Freezes` (r:350 w:350)
218
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
219
	/// Storage: `System::Account` (r:350 w:350)
220
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
221
	/// Storage: `Balances::Locks` (r:350 w:1)
222
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
223
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
224
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
225
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
226
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
227
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
228
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
229
	/// The range of component `x` is `[2, 350]`.
230
	/// The range of component `y` is `[2, 350]`.
231
	fn execute_leave_candidates_ideal(x: u32, _y: u32, ) -> Weight {
232
		// Proof Size summary in bytes:
233
		//  Measured:  `1295 + x * (431 ±0)`
234
		//  Estimated: `4773 + x * (3762 ±0)`
235
		// Minimum execution time: 103_873_000 picoseconds.
236
		Weight::from_parts(104_847_000, 4773)
237
			// Standard Error: 22_496
238
			.saturating_add(Weight::from_parts(37_505_720, 0).saturating_mul(x.into()))
239
			.saturating_add(T::DbWeight::get().reads(5_u64))
240
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
241
			.saturating_add(T::DbWeight::get().writes(5_u64))
242
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
243
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
244
	}
245
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
246
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
247
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
248
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
249
	/// The range of component `x` is `[3, 200]`.
250
	fn cancel_leave_candidates(x: u32, ) -> Weight {
251
		// Proof Size summary in bytes:
252
		//  Measured:  `633 + x * (37 ±0)`
253
		//  Estimated: `3991 + x * (38 ±0)`
254
		// Minimum execution time: 16_167_000 picoseconds.
255
		Weight::from_parts(23_992_241, 3991)
256
			// Standard Error: 1_201
257
			.saturating_add(Weight::from_parts(72_385, 0).saturating_mul(x.into()))
258
			.saturating_add(T::DbWeight::get().reads(2_u64))
259
			.saturating_add(T::DbWeight::get().writes(2_u64))
260
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
261
	}
262
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
263
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
264
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
265
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
266
	/// The range of component `x` is `[1, 200]`.
267
1
	fn go_offline(x: u32, ) -> Weight {
268
1
		// Proof Size summary in bytes:
269
1
		//  Measured:  `530 + x * (38 ±0)`
270
1
		//  Estimated: `3931 + x * (39 ±0)`
271
1
		// Minimum execution time: 15_678_000 picoseconds.
272
1
		Weight::from_parts(22_216_507, 3931)
273
1
			// Standard Error: 1_479
274
1
			.saturating_add(Weight::from_parts(74_616, 0).saturating_mul(x.into()))
275
1
			.saturating_add(T::DbWeight::get().reads(2_u64))
276
1
			.saturating_add(T::DbWeight::get().writes(2_u64))
277
1
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
278
1
	}
279
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
280
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
281
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
282
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
283
	/// The range of component `x` is `[1, 200]`.
284
	fn go_online(x: u32, ) -> Weight {
285
		// Proof Size summary in bytes:
286
		//  Measured:  `494 + x * (38 ±0)`
287
		//  Estimated: `3895 + x * (39 ±0)`
288
		// Minimum execution time: 15_644_000 picoseconds.
289
		Weight::from_parts(22_136_932, 3895)
290
			// Standard Error: 1_511
291
			.saturating_add(Weight::from_parts(80_409, 0).saturating_mul(x.into()))
292
			.saturating_add(T::DbWeight::get().reads(2_u64))
293
			.saturating_add(T::DbWeight::get().writes(2_u64))
294
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
295
	}
296
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
297
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
298
	/// Storage: `System::Account` (r:1 w:1)
299
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
300
	/// Storage: `ParachainStaking::MigratedCandidates` (r:1 w:1)
301
	/// Proof: `ParachainStaking::MigratedCandidates` (`max_values`: None, `max_size`: None, mode: `Measured`)
302
	/// Storage: `Balances::Locks` (r:1 w:1)
303
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
304
	/// Storage: `Balances::Freezes` (r:1 w:1)
305
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
306
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
307
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
308
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
309
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
310
	/// The range of component `x` is `[1, 200]`.
311
	fn candidate_bond_more(x: u32, ) -> Weight {
312
		// Proof Size summary in bytes:
313
		//  Measured:  `1233 + x * (42 ±0)`
314
		//  Estimated: `4752 + x * (44 ±0)`
315
		// Minimum execution time: 46_110_000 picoseconds.
316
		Weight::from_parts(55_080_187, 4752)
317
			// Standard Error: 1_867
318
			.saturating_add(Weight::from_parts(99_791, 0).saturating_mul(x.into()))
319
			.saturating_add(T::DbWeight::get().reads(6_u64))
320
			.saturating_add(T::DbWeight::get().writes(5_u64))
321
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
322
	}
323
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
324
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
325
	fn schedule_candidate_bond_less() -> Weight {
326
		// Proof Size summary in bytes:
327
		//  Measured:  `171`
328
		//  Estimated: `3636`
329
		// Minimum execution time: 13_540_000 picoseconds.
330
		Weight::from_parts(14_179_000, 3636)
331
			.saturating_add(T::DbWeight::get().reads(1_u64))
332
			.saturating_add(T::DbWeight::get().writes(1_u64))
333
	}
334
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
335
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
336
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
337
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
338
	/// Storage: `ParachainStaking::MigratedCandidates` (r:1 w:1)
339
	/// Proof: `ParachainStaking::MigratedCandidates` (`max_values`: None, `max_size`: None, mode: `Measured`)
340
	/// Storage: `Balances::Locks` (r:1 w:1)
341
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
342
	/// Storage: `Balances::Freezes` (r:1 w:1)
343
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
344
	/// Storage: `System::Account` (r:1 w:1)
345
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
346
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
347
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
348
	/// The range of component `x` is `[1, 200]`.
349
	fn execute_candidate_bond_less(x: u32, ) -> Weight {
350
		// Proof Size summary in bytes:
351
		//  Measured:  `1322 + x * (42 ±0)`
352
		//  Estimated: `4752 + x * (43 ±0)`
353
		// Minimum execution time: 52_907_000 picoseconds.
354
		Weight::from_parts(61_713_851, 4752)
355
			// Standard Error: 2_267
356
			.saturating_add(Weight::from_parts(84_720, 0).saturating_mul(x.into()))
357
			.saturating_add(T::DbWeight::get().reads(6_u64))
358
			.saturating_add(T::DbWeight::get().writes(5_u64))
359
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
360
	}
361
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
362
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
363
	fn cancel_candidate_bond_less() -> Weight {
364
		// Proof Size summary in bytes:
365
		//  Measured:  `191`
366
		//  Estimated: `3656`
367
		// Minimum execution time: 12_676_000 picoseconds.
368
		Weight::from_parts(13_097_000, 3656)
369
			.saturating_add(T::DbWeight::get().reads(1_u64))
370
			.saturating_add(T::DbWeight::get().writes(1_u64))
371
	}
372
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
373
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
374
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
375
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
376
	/// The range of component `x` is `[0, 349]`.
377
	fn schedule_revoke_delegation(x: u32, ) -> Weight {
378
		// Proof Size summary in bytes:
379
		//  Measured:  `606 + x * (42 ±0)`
380
		//  Estimated: `4050 + x * (43 ±0)`
381
		// Minimum execution time: 16_849_000 picoseconds.
382
		Weight::from_parts(26_848_841, 4050)
383
			// Standard Error: 1_065
384
			.saturating_add(Weight::from_parts(70_660, 0).saturating_mul(x.into()))
385
			.saturating_add(T::DbWeight::get().reads(2_u64))
386
			.saturating_add(T::DbWeight::get().writes(2_u64))
387
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
388
	}
389
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
390
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
391
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
392
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
393
	/// Storage: `System::Account` (r:1 w:1)
394
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
395
	/// Storage: `ParachainStaking::MigratedDelegators` (r:1 w:1)
396
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
397
	/// Storage: `Balances::Locks` (r:1 w:1)
398
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
399
	/// Storage: `Balances::Freezes` (r:1 w:1)
400
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
401
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
402
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
403
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
404
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
405
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
406
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
407
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
408
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
409
	/// The range of component `x` is `[0, 349]`.
410
	fn delegator_bond_more(x: u32, ) -> Weight {
411
		// Proof Size summary in bytes:
412
		//  Measured:  `1990 + x * (79 ±0)`
413
		//  Estimated: `5429 + x * (79 ±0)`
414
		// Minimum execution time: 66_392_000 picoseconds.
415
		Weight::from_parts(83_106_294, 5429)
416
			// Standard Error: 1_518
417
			.saturating_add(Weight::from_parts(116_413, 0).saturating_mul(x.into()))
418
			.saturating_add(T::DbWeight::get().reads(9_u64))
419
			.saturating_add(T::DbWeight::get().writes(7_u64))
420
			.saturating_add(Weight::from_parts(0, 79).saturating_mul(x.into()))
421
	}
422
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
423
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
424
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
425
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
426
	/// The range of component `x` is `[0, 349]`.
427
	fn schedule_delegator_bond_less(x: u32, ) -> Weight {
428
		// Proof Size summary in bytes:
429
		//  Measured:  `606 + x * (42 ±0)`
430
		//  Estimated: `4050 + x * (43 ±0)`
431
		// Minimum execution time: 16_818_000 picoseconds.
432
		Weight::from_parts(27_371_720, 4050)
433
			// Standard Error: 1_072
434
			.saturating_add(Weight::from_parts(71_222, 0).saturating_mul(x.into()))
435
			.saturating_add(T::DbWeight::get().reads(2_u64))
436
			.saturating_add(T::DbWeight::get().writes(2_u64))
437
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
438
	}
439
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
440
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
441
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
442
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
443
	/// Storage: `Balances::Locks` (r:1 w:1)
444
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
445
	/// Storage: `Balances::Freezes` (r:1 w:0)
446
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
447
	/// Storage: `System::Account` (r:1 w:1)
448
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
449
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
450
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
451
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
452
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
453
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
454
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
455
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
456
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
457
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
458
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
459
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
460
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
461
	fn execute_delegator_revoke_delegation_worst() -> Weight {
462
		// Proof Size summary in bytes:
463
		//  Measured:  `37348`
464
		//  Estimated: `40813`
465
		// Minimum execution time: 150_276_000 picoseconds.
466
		Weight::from_parts(154_494_000, 40813)
467
			.saturating_add(T::DbWeight::get().reads(11_u64))
468
			.saturating_add(T::DbWeight::get().writes(11_u64))
469
	}
470
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
471
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
472
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
473
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
474
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
475
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
476
	/// Storage: `ParachainStaking::MigratedDelegators` (r:1 w:1)
477
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
478
	/// Storage: `Balances::Locks` (r:1 w:1)
479
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
480
	/// Storage: `Balances::Freezes` (r:1 w:1)
481
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
482
	/// Storage: `System::Account` (r:1 w:1)
483
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
484
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
485
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
486
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
487
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
488
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
489
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
490
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
491
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
492
	fn execute_delegator_bond_less_worst() -> Weight {
493
		// Proof Size summary in bytes:
494
		//  Measured:  `29970`
495
		//  Estimated: `33435`
496
		// Minimum execution time: 131_369_000 picoseconds.
497
		Weight::from_parts(135_590_000, 33435)
498
			.saturating_add(T::DbWeight::get().reads(10_u64))
499
			.saturating_add(T::DbWeight::get().writes(9_u64))
500
	}
501
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
502
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
503
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
504
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
505
	/// The range of component `x` is `[0, 349]`.
506
	fn cancel_delegation_request(x: u32, ) -> Weight {
507
		// Proof Size summary in bytes:
508
		//  Measured:  `703 + x * (42 ±0)`
509
		//  Estimated: `4132 + x * (43 ±0)`
510
		// Minimum execution time: 22_749_000 picoseconds.
511
		Weight::from_parts(29_318_352, 4132)
512
			// Standard Error: 678
513
			.saturating_add(Weight::from_parts(56_915, 0).saturating_mul(x.into()))
514
			.saturating_add(T::DbWeight::get().reads(2_u64))
515
			.saturating_add(T::DbWeight::get().writes(2_u64))
516
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
517
	}
518
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
519
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
520
5
	fn prepare_staking_payouts() -> Weight {
521
5
		// Proof Size summary in bytes:
522
5
		//  Measured:  `3`
523
5
		//  Estimated: `3468`
524
5
		// Minimum execution time: 2_958_000 picoseconds.
525
5
		Weight::from_parts(3_142_000, 3468)
526
5
			.saturating_add(T::DbWeight::get().reads(1_u64))
527
5
	}
528
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
529
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
530
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
531
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
532
	/// The range of component `y` is `[0, 100]`.
533
	fn get_rewardable_delegators(y: u32, ) -> Weight {
534
		// Proof Size summary in bytes:
535
		//  Measured:  `90 + y * (36 ±0)`
536
		//  Estimated: `3554 + y * (36 ±0)`
537
		// Minimum execution time: 7_182_000 picoseconds.
538
		Weight::from_parts(8_440_830, 3554)
539
			// Standard Error: 584
540
			.saturating_add(Weight::from_parts(51_372, 0).saturating_mul(y.into()))
541
			.saturating_add(T::DbWeight::get().reads(2_u64))
542
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
543
	}
544
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
545
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
546
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
547
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
548
	/// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
549
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
550
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:51 w:0)
551
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
552
	/// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
553
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
554
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
555
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
556
	/// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
557
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
558
	/// Storage: `ParachainStaking::AtStake` (r:0 w:51)
559
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
560
	/// The range of component `x` is `[0, 50]`.
561
	/// The range of component `y` is `[0, 100]`.
562
66
	fn select_top_candidates(x: u32, y: u32, ) -> Weight {
563
66
		// Proof Size summary in bytes:
564
66
		//  Measured:  `0 + x * (3816 ±0) + y * (1800 ±0)`
565
66
		//  Estimated: `3710 + x * (3975 ±39) + y * (639 ±19)`
566
66
		// Minimum execution time: 24_487_000 picoseconds.
567
66
		Weight::from_parts(24_851_000, 3710)
568
66
			// Standard Error: 80_923
569
66
			.saturating_add(Weight::from_parts(17_271_393, 0).saturating_mul(x.into()))
570
66
			// Standard Error: 40_354
571
66
			.saturating_add(Weight::from_parts(1_281_925, 0).saturating_mul(y.into()))
572
66
			.saturating_add(T::DbWeight::get().reads(6_u64))
573
66
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
574
66
			.saturating_add(T::DbWeight::get().writes(2_u64))
575
66
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
576
66
			.saturating_add(Weight::from_parts(0, 4038).saturating_mul(x.into()))
577
66
			.saturating_add(Weight::from_parts(0, 655).saturating_mul(y.into()))
578
66
	}
579
	/// Storage: `System::Account` (r:349 w:349)
580
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
581
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
582
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
583
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
584
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
585
	/// Storage: `ParachainStaking::MigratedDelegators` (r:349 w:349)
586
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
587
	/// Storage: `Balances::Locks` (r:349 w:349)
588
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
589
	/// Storage: `Balances::Freezes` (r:349 w:349)
590
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
591
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
592
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
593
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
594
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
595
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
596
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
597
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
598
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
599
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
600
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
601
	/// The range of component `x` is `[0, 349]`.
602
	/// The range of component `y` is `[0, 349]`.
603
	/// The range of component `z` is `[0, 349]`.
604
2
	fn pay_one_collator_reward_best(x: u32, y: u32, z: u32, ) -> Weight {
605
2
		// Proof Size summary in bytes:
606
2
		//  Measured:  `0 + x * (395 ±0) + y * (156 ±0) + z * (41 ±0)`
607
2
		//  Estimated: `125900 + x * (2591 ±0) + y * (2234 ±1) + z * (28 ±0)`
608
2
		// Minimum execution time: 205_000 picoseconds.
609
2
		Weight::from_parts(216_000, 125900)
610
2
			// Standard Error: 479_039
611
2
			.saturating_add(Weight::from_parts(50_510_898, 0).saturating_mul(x.into()))
612
2
			// Standard Error: 479_039
613
2
			.saturating_add(Weight::from_parts(28_182_239, 0).saturating_mul(y.into()))
614
2
			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(x.into())))
615
2
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(y.into())))
616
2
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
617
2
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(y.into())))
618
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(x.into()))
619
2
			.saturating_add(Weight::from_parts(0, 1733).saturating_mul(y.into()))
620
2
			.saturating_add(Weight::from_parts(0, 41).saturating_mul(z.into()))
621
2
	}
622
	/// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
623
	/// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
624
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
625
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
626
	/// Storage: `ParachainStaking::AtStake` (r:2 w:1)
627
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
628
	/// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
629
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
630
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
631
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
632
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
633
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
634
	/// Storage: `System::Account` (r:301 w:301)
635
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
636
	/// The range of component `y` is `[0, 300]`.
637
2
	fn pay_one_collator_reward(y: u32, ) -> Weight {
638
2
		// Proof Size summary in bytes:
639
2
		//  Measured:  `1351 + y * (160 ±0)`
640
2
		//  Estimated: `7093 + y * (2591 ±0)`
641
2
		// Minimum execution time: 50_188_000 picoseconds.
642
2
		Weight::from_parts(42_604_936, 7093)
643
2
			// Standard Error: 6_960
644
2
			.saturating_add(Weight::from_parts(17_574_270, 0).saturating_mul(y.into()))
645
2
			.saturating_add(T::DbWeight::get().reads(8_u64))
646
2
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
647
2
			.saturating_add(T::DbWeight::get().writes(3_u64))
648
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
649
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
650
2
	}
651
6621
	fn base_on_initialize() -> Weight {
652
6621
		// Proof Size summary in bytes:
653
6621
		//  Measured:  `0`
654
6621
		//  Estimated: `0`
655
6621
		// Minimum execution time: 823_000 picoseconds.
656
6621
		Weight::from_parts(889_000, 0)
657
6621
	}
658
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
659
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
660
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
661
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
662
	/// The range of component `x` is `[0, 300]`.
663
	/// The range of component `y` is `[0, 100]`.
664
	fn set_auto_compound(x: u32, y: u32, ) -> Weight {
665
		// Proof Size summary in bytes:
666
		//  Measured:  `672 + x * (22 ±0) + y * (36 ±0)`
667
		//  Estimated: `4028 + x * (23 ±0) + y * (36 ±0)`
668
		// Minimum execution time: 24_535_000 picoseconds.
669
		Weight::from_parts(28_271_345, 4028)
670
			// Standard Error: 445
671
			.saturating_add(Weight::from_parts(39_754, 0).saturating_mul(x.into()))
672
			// Standard Error: 1_334
673
			.saturating_add(Weight::from_parts(34_479, 0).saturating_mul(y.into()))
674
			.saturating_add(T::DbWeight::get().reads(2_u64))
675
			.saturating_add(T::DbWeight::get().writes(1_u64))
676
			.saturating_add(Weight::from_parts(0, 24).saturating_mul(x.into()))
677
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
678
	}
679
	/// Storage: `System::Account` (r:1 w:1)
680
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
681
	/// Storage: `ParachainStaking::MigratedDelegators` (r:1 w:0)
682
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
683
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
684
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
685
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
686
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
687
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
688
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
689
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
690
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
691
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
692
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
693
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
694
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
695
	/// Storage: `Balances::Freezes` (r:1 w:1)
696
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
697
	/// Storage: `Balances::Locks` (r:1 w:0)
698
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
699
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
700
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
701
	/// The range of component `x` is `[0, 350]`.
702
	/// The range of component `y` is `[0, 349]`.
703
	/// The range of component `z` is `[0, 99]`.
704
	fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
705
		// Proof Size summary in bytes:
706
		//  Measured:  `0 + x * (60 ±0) + y * (21 ±0) + z * (78 ±0)`
707
		//  Estimated: `26217 + x * (44 ±0) + y * (19 ±0) + z * (76 ±1)`
708
		// Minimum execution time: 104_408_000 picoseconds.
709
		Weight::from_parts(85_696_833, 26217)
710
			// Standard Error: 1_262
711
			.saturating_add(Weight::from_parts(122_371, 0).saturating_mul(x.into()))
712
			// Standard Error: 1_266
713
			.saturating_add(Weight::from_parts(3_718, 0).saturating_mul(y.into()))
714
			// Standard Error: 4_459
715
			.saturating_add(Weight::from_parts(213_242, 0).saturating_mul(z.into()))
716
			.saturating_add(T::DbWeight::get().reads(9_u64))
717
			.saturating_add(T::DbWeight::get().writes(8_u64))
718
			.saturating_add(Weight::from_parts(0, 55).saturating_mul(x.into()))
719
			.saturating_add(Weight::from_parts(0, 21).saturating_mul(y.into()))
720
			.saturating_add(Weight::from_parts(0, 86).saturating_mul(z.into()))
721
	}
722
	/// Storage: `System::Account` (r:2 w:2)
723
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
724
	/// Storage: `ParachainStaking::MigratedDelegators` (r:1 w:0)
725
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
726
	/// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
727
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
728
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
729
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
730
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
731
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
732
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
733
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
734
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
735
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
736
	/// Storage: `Balances::Locks` (r:2 w:1)
737
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
738
	/// Storage: `Balances::Freezes` (r:2 w:2)
739
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
740
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
741
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
742
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
743
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
744
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
745
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
746
	fn delegate_with_auto_compound_worst() -> Weight {
747
		// Proof Size summary in bytes:
748
		//  Measured:  `48170`
749
		//  Estimated: `54110`
750
		// Minimum execution time: 233_007_000 picoseconds.
751
		Weight::from_parts(237_821_000, 54110)
752
			.saturating_add(T::DbWeight::get().reads(15_u64))
753
			.saturating_add(T::DbWeight::get().writes(13_u64))
754
	}
755
	/// Storage: `System::Account` (r:1 w:1)
756
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
757
14
	fn mint_collator_reward() -> Weight {
758
14
		// Proof Size summary in bytes:
759
14
		//  Measured:  `128`
760
14
		//  Estimated: `3581`
761
14
		// Minimum execution time: 19_355_000 picoseconds.
762
14
		Weight::from_parts(20_098_000, 3581)
763
14
			.saturating_add(T::DbWeight::get().reads(1_u64))
764
14
			.saturating_add(T::DbWeight::get().writes(1_u64))
765
14
	}
766
	/// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
767
	/// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
768
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
769
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
770
	/// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
771
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
772
	/// Storage: `ParachainStaking::WasInactive` (r:2 w:0)
773
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
774
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
775
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
776
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
777
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
778
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
779
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
780
	fn notify_inactive_collator() -> Weight {
781
		// Proof Size summary in bytes:
782
		//  Measured:  `11178`
783
		//  Estimated: `17118`
784
		// Minimum execution time: 69_467_000 picoseconds.
785
		Weight::from_parts(71_224_000, 17118)
786
			.saturating_add(T::DbWeight::get().reads(8_u64))
787
			.saturating_add(T::DbWeight::get().writes(2_u64))
788
	}
789
	/// Storage: `ParachainStaking::AtStake` (r:52 w:0)
790
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
791
	/// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
792
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
793
	/// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
794
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
795
	/// The range of component `x` is `[0, 50]`.
796
5
	fn mark_collators_as_inactive(x: u32, ) -> Weight {
797
5
		// Proof Size summary in bytes:
798
5
		//  Measured:  `108 + x * (104 ±0)`
799
5
		//  Estimated: `6050 + x * (2580 ±0)`
800
5
		// Minimum execution time: 11_566_000 picoseconds.
801
5
		Weight::from_parts(17_335_980, 6050)
802
5
			// Standard Error: 17_104
803
5
			.saturating_add(Weight::from_parts(9_153_096, 0).saturating_mul(x.into()))
804
5
			.saturating_add(T::DbWeight::get().reads(3_u64))
805
5
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
806
5
			.saturating_add(T::DbWeight::get().writes(1_u64))
807
5
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
808
5
			.saturating_add(Weight::from_parts(0, 2579).saturating_mul(x.into()))
809
5
	}
810
	/// Storage: `ParachainStaking::MigratedDelegators` (r:100 w:100)
811
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
812
	/// Storage: `ParachainStaking::DelegatorState` (r:100 w:0)
813
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
814
	/// Storage: `Balances::Locks` (r:100 w:100)
815
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
816
	/// Storage: `Balances::Freezes` (r:100 w:100)
817
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
818
	/// Storage: `System::Account` (r:100 w:100)
819
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
820
	/// The range of component `x` is `[1, 100]`.
821
	fn migrate_locks_to_freezes_batch_delegators(x: u32, ) -> Weight {
822
		// Proof Size summary in bytes:
823
		//  Measured:  `463 + x * (329 ±0)`
824
		//  Estimated: `1370 + x * (3762 ±1)`
825
		// Minimum execution time: 49_000_000 picoseconds.
826
		Weight::from_parts(26_430_805, 1370)
827
			// Standard Error: 213_243
828
			.saturating_add(Weight::from_parts(43_210_541, 0).saturating_mul(x.into()))
829
			.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(x.into())))
830
			.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(x.into())))
831
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
832
	}
833
	/// Storage: `ParachainStaking::MigratedCandidates` (r:100 w:100)
834
	/// Proof: `ParachainStaking::MigratedCandidates` (`max_values`: None, `max_size`: None, mode: `Measured`)
835
	/// Storage: `ParachainStaking::CandidateInfo` (r:100 w:0)
836
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
837
	/// Storage: `Balances::Locks` (r:100 w:100)
838
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
839
	/// Storage: `Balances::Freezes` (r:100 w:100)
840
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
841
	/// Storage: `System::Account` (r:100 w:100)
842
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
843
	/// The range of component `x` is `[1, 100]`.
844
	fn migrate_locks_to_freezes_batch_candidates(x: u32, ) -> Weight {
845
		// Proof Size summary in bytes:
846
		//  Measured:  `357 + x * (326 ±0)`
847
		//  Estimated: `1349 + x * (3762 ±1)`
848
		// Minimum execution time: 51_000_000 picoseconds.
849
		Weight::from_parts(11_225_173, 1349)
850
			// Standard Error: 93_283
851
			.saturating_add(Weight::from_parts(42_654_213, 0).saturating_mul(x.into()))
852
			.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(x.into())))
853
			.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(x.into())))
854
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
855
	}
856
}