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
//! Autogenerated weights for `pallet_parachain_staking`
18
//!
19
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 46.1.0
20
//! DATE: 2025-06-19, STEPS: `5`, REPEAT: `5`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21
//! WORST CASE MAP SIZE: `1000000`
22
//! HOSTNAME: `Michaels-MacBook-Pro-2.local`, CPU: `<UNKNOWN>`
23
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
24

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

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

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

            
49
/// Weight functions needed for `pallet_parachain_staking`.
50
pub trait WeightInfo {
51
	fn set_staking_expectations() -> Weight;
52
	fn set_inflation() -> Weight;
53
	fn set_inflation_distribution_config() -> Weight;
54
	fn set_total_selected() -> Weight;
55
	fn set_collator_commission() -> Weight;
56
	fn set_blocks_per_round() -> Weight;
57
	fn join_candidates(x: u32, ) -> Weight;
58
	fn schedule_leave_candidates(x: u32, ) -> Weight;
59
	fn execute_leave_candidates_worst_case(x: u32, ) -> Weight;
60
	fn execute_leave_candidates_ideal(x: u32, y: u32, ) -> Weight;
61
	fn cancel_leave_candidates(x: u32, ) -> Weight;
62
	fn go_offline(x: u32, ) -> Weight;
63
	fn go_online(x: u32, ) -> Weight;
64
	fn candidate_bond_more(x: u32, ) -> Weight;
65
	fn schedule_candidate_bond_less() -> Weight;
66
	fn execute_candidate_bond_less(x: u32, ) -> Weight;
67
	fn cancel_candidate_bond_less() -> Weight;
68
	fn schedule_revoke_delegation(x: u32, ) -> Weight;
69
	fn delegator_bond_more(x: u32, ) -> Weight;
70
	fn schedule_delegator_bond_less(x: u32, ) -> Weight;
71
	fn execute_delegator_revoke_delegation_worst() -> Weight;
72
	fn execute_delegator_bond_less_worst() -> Weight;
73
	fn cancel_delegation_request(x: u32, ) -> Weight;
74
	fn prepare_staking_payouts() -> Weight;
75
	fn get_rewardable_delegators(y: u32, ) -> Weight;
76
	fn select_top_candidates(x: u32, y: u32, ) -> Weight;
77
	fn pay_one_collator_reward_best(x: u32, y: u32, ) -> Weight;
78
	fn pay_one_collator_reward(y: u32, ) -> Weight;
79
	fn base_on_initialize() -> Weight;
80
	fn set_auto_compound(x: u32, y: u32, ) -> Weight;
81
	fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight;
82
	fn delegate_with_auto_compound_worst() -> Weight;
83
	fn mint_collator_reward() -> Weight;
84
	fn notify_inactive_collator() -> Weight;
85
	fn mark_collators_as_inactive(x: u32, ) -> Weight;
86
}
87

            
88
/// Weights for `pallet_parachain_staking` using the Substrate node and recommended hardware.
89
pub struct SubstrateWeight<T>(PhantomData<T>);
90
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
91
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
92
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
93
	fn set_staking_expectations() -> Weight {
94
		// Proof Size summary in bytes:
95
		//  Measured:  `88`
96
		//  Estimated: `1573`
97
		// Minimum execution time: 8_000_000 picoseconds.
98
		Weight::from_parts(10_000_000, 1573)
99
			.saturating_add(T::DbWeight::get().reads(1_u64))
100
			.saturating_add(T::DbWeight::get().writes(1_u64))
101
	}
102
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
103
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
104
	fn set_inflation() -> Weight {
105
		// Proof Size summary in bytes:
106
		//  Measured:  `88`
107
		//  Estimated: `1573`
108
		// Minimum execution time: 25_000_000 picoseconds.
109
		Weight::from_parts(27_000_000, 1573)
110
			.saturating_add(T::DbWeight::get().reads(1_u64))
111
			.saturating_add(T::DbWeight::get().writes(1_u64))
112
	}
113
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
114
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
115
	fn set_inflation_distribution_config() -> Weight {
116
		// Proof Size summary in bytes:
117
		//  Measured:  `30`
118
		//  Estimated: `1515`
119
		// Minimum execution time: 7_000_000 picoseconds.
120
		Weight::from_parts(7_000_000, 1515)
121
			.saturating_add(T::DbWeight::get().reads(1_u64))
122
			.saturating_add(T::DbWeight::get().writes(1_u64))
123
	}
124
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:1)
125
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
126
	fn set_total_selected() -> Weight {
127
		// Proof Size summary in bytes:
128
		//  Measured:  `28`
129
		//  Estimated: `1513`
130
		// Minimum execution time: 8_000_000 picoseconds.
131
		Weight::from_parts(8_000_000, 1513)
132
			.saturating_add(T::DbWeight::get().reads(1_u64))
133
			.saturating_add(T::DbWeight::get().writes(1_u64))
134
	}
135
	/// Storage: `ParachainStaking::CollatorCommission` (r:1 w:1)
136
	/// Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
137
	fn set_collator_commission() -> Weight {
138
		// Proof Size summary in bytes:
139
		//  Measured:  `27`
140
		//  Estimated: `1512`
141
		// Minimum execution time: 7_000_000 picoseconds.
142
		Weight::from_parts(8_000_000, 1512)
143
			.saturating_add(T::DbWeight::get().reads(1_u64))
144
			.saturating_add(T::DbWeight::get().writes(1_u64))
145
	}
146
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
147
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
148
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
149
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
150
	fn set_blocks_per_round() -> Weight {
151
		// Proof Size summary in bytes:
152
		//  Measured:  `116`
153
		//  Estimated: `1601`
154
		// Minimum execution time: 29_000_000 picoseconds.
155
		Weight::from_parts(29_000_000, 1601)
156
			.saturating_add(T::DbWeight::get().reads(2_u64))
157
			.saturating_add(T::DbWeight::get().writes(1_u64))
158
	}
159
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
160
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
161
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
162
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
163
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
164
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
165
	/// Storage: `System::Account` (r:1 w:1)
166
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
167
	/// Storage: `Balances::Freezes` (r:1 w:1)
168
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
169
	/// Storage: `Balances::Locks` (r:1 w:0)
170
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
171
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
172
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
173
	/// Storage: `ParachainStaking::TopDelegations` (r:0 w:1)
174
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
175
	/// Storage: `ParachainStaking::BottomDelegations` (r:0 w:1)
176
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
177
	/// The range of component `x` is `[3, 200]`.
178
	fn join_candidates(x: u32, ) -> Weight {
179
		// Proof Size summary in bytes:
180
		//  Measured:  `1406 + x * (38 ±0)`
181
		//  Estimated: `4752 + x * (43 ±1)`
182
		// Minimum execution time: 57_000_000 picoseconds.
183
		Weight::from_parts(62_371_559, 4752)
184
			// Standard Error: 37_712
185
			.saturating_add(Weight::from_parts(123_469, 0).saturating_mul(x.into()))
186
			.saturating_add(T::DbWeight::get().reads(8_u64))
187
			.saturating_add(T::DbWeight::get().writes(7_u64))
188
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
189
	}
190
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
191
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
192
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
193
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
194
	/// The range of component `x` is `[3, 200]`.
195
	fn schedule_leave_candidates(x: u32, ) -> Weight {
196
		// Proof Size summary in bytes:
197
		//  Measured:  `659 + x * (37 ±0)`
198
		//  Estimated: `3867 + x * (39 ±0)`
199
		// Minimum execution time: 16_000_000 picoseconds.
200
		Weight::from_parts(19_575_089, 3867)
201
			// Standard Error: 13_668
202
			.saturating_add(Weight::from_parts(105_647, 0).saturating_mul(x.into()))
203
			.saturating_add(T::DbWeight::get().reads(2_u64))
204
			.saturating_add(T::DbWeight::get().writes(2_u64))
205
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
206
	}
207
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
208
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
209
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
210
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
211
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
212
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
213
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
214
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
215
	/// Storage: `Balances::Freezes` (r:350 w:350)
216
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
217
	/// Storage: `System::Account` (r:350 w:350)
218
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
219
	/// Storage: `Balances::Locks` (r:350 w:1)
220
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
221
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
222
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
223
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
224
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
225
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
226
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
227
	/// The range of component `x` is `[2, 350]`.
228
	fn execute_leave_candidates_worst_case(x: u32, ) -> Weight {
229
		// Proof Size summary in bytes:
230
		//  Measured:  `1169 + x * (456 ±0)`
231
		//  Estimated: `4830 + x * (3762 ±3)`
232
		// Minimum execution time: 137_000_000 picoseconds.
233
		Weight::from_parts(137_000_000, 4830)
234
			// Standard Error: 632_958
235
			.saturating_add(Weight::from_parts(42_365_414, 0).saturating_mul(x.into()))
236
			.saturating_add(T::DbWeight::get().reads(4_u64))
237
			.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(x.into())))
238
			.saturating_add(T::DbWeight::get().writes(6_u64))
239
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
240
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
241
	}
242
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
243
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
244
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
245
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
246
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
247
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
248
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
249
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
250
	/// Storage: `Balances::Freezes` (r:350 w:350)
251
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
252
	/// Storage: `System::Account` (r:350 w:350)
253
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
254
	/// Storage: `Balances::Locks` (r:350 w:1)
255
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
256
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
257
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
258
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
259
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
260
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
261
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
262
	/// The range of component `x` is `[2, 350]`.
263
	/// The range of component `y` is `[2, 350]`.
264
	fn execute_leave_candidates_ideal(x: u32, _y: u32, ) -> Weight {
265
		// Proof Size summary in bytes:
266
		//  Measured:  `1169 + x * (456 ±0)`
267
		//  Estimated: `4830 + x * (3762 ±0)`
268
		// Minimum execution time: 111_000_000 picoseconds.
269
		Weight::from_parts(149_062_452, 4830)
270
			// Standard Error: 616_234
271
			.saturating_add(Weight::from_parts(43_983_652, 0).saturating_mul(x.into()))
272
			.saturating_add(T::DbWeight::get().reads(4_u64))
273
			.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(x.into())))
274
			.saturating_add(T::DbWeight::get().writes(6_u64))
275
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
276
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
277
	}
278
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
279
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
280
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
281
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
282
	/// The range of component `x` is `[3, 200]`.
283
	fn cancel_leave_candidates(x: u32, ) -> Weight {
284
		// Proof Size summary in bytes:
285
		//  Measured:  `627 + x * (37 ±0)`
286
		//  Estimated: `3835 + x * (39 ±0)`
287
		// Minimum execution time: 15_000_000 picoseconds.
288
		Weight::from_parts(17_412_225, 3835)
289
			// Standard Error: 9_403
290
			.saturating_add(Weight::from_parts(92_764, 0).saturating_mul(x.into()))
291
			.saturating_add(T::DbWeight::get().reads(2_u64))
292
			.saturating_add(T::DbWeight::get().writes(2_u64))
293
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
294
	}
295
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
296
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
297
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
298
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
299
	/// The range of component `x` is `[1, 200]`.
300
	fn go_offline(x: u32, ) -> Weight {
301
		// Proof Size summary in bytes:
302
		//  Measured:  `562 + x * (38 ±0)`
303
		//  Estimated: `3828 + x * (39 ±0)`
304
		// Minimum execution time: 15_000_000 picoseconds.
305
		Weight::from_parts(17_962_310, 3828)
306
			// Standard Error: 10_178
307
			.saturating_add(Weight::from_parts(80_881, 0).saturating_mul(x.into()))
308
			.saturating_add(T::DbWeight::get().reads(2_u64))
309
			.saturating_add(T::DbWeight::get().writes(2_u64))
310
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
311
	}
312
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
313
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
314
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
315
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
316
	/// The range of component `x` is `[1, 200]`.
317
	fn go_online(x: u32, ) -> Weight {
318
		// Proof Size summary in bytes:
319
		//  Measured:  `526 + x * (38 ±0)`
320
		//  Estimated: `3791 + x * (39 ±0)`
321
		// Minimum execution time: 14_000_000 picoseconds.
322
		Weight::from_parts(17_749_962, 3791)
323
			// Standard Error: 12_623
324
			.saturating_add(Weight::from_parts(88_989, 0).saturating_mul(x.into()))
325
			.saturating_add(T::DbWeight::get().reads(2_u64))
326
			.saturating_add(T::DbWeight::get().writes(2_u64))
327
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
328
	}
329
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
330
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
331
	/// Storage: `System::Account` (r:1 w:1)
332
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
333
	/// Storage: `Balances::Locks` (r:1 w:1)
334
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
335
	/// Storage: `Balances::Freezes` (r:1 w:1)
336
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
337
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
338
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
339
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
340
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
341
	/// The range of component `x` is `[1, 200]`.
342
	fn candidate_bond_more(x: u32, ) -> Weight {
343
		// Proof Size summary in bytes:
344
		//  Measured:  `932 + x * (44 ±0)`
345
		//  Estimated: `4752 + x * (45 ±1)`
346
		// Minimum execution time: 82_000_000 picoseconds.
347
		Weight::from_parts(87_570_121, 4752)
348
			// Standard Error: 22_771
349
			.saturating_add(Weight::from_parts(80_803, 0).saturating_mul(x.into()))
350
			.saturating_add(T::DbWeight::get().reads(7_u64))
351
			.saturating_add(T::DbWeight::get().writes(7_u64))
352
			.saturating_add(Weight::from_parts(0, 45).saturating_mul(x.into()))
353
	}
354
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
355
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
356
	fn schedule_candidate_bond_less() -> Weight {
357
		// Proof Size summary in bytes:
358
		//  Measured:  `171`
359
		//  Estimated: `3636`
360
		// Minimum execution time: 12_000_000 picoseconds.
361
		Weight::from_parts(13_000_000, 3636)
362
			.saturating_add(T::DbWeight::get().reads(1_u64))
363
			.saturating_add(T::DbWeight::get().writes(1_u64))
364
	}
365
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
366
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
367
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
368
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
369
	/// Storage: `Balances::Locks` (r:1 w:1)
370
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
371
	/// Storage: `Balances::Freezes` (r:1 w:1)
372
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
373
	/// Storage: `System::Account` (r:1 w:1)
374
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
375
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
376
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
377
	/// The range of component `x` is `[1, 200]`.
378
	fn execute_candidate_bond_less(x: u32, ) -> Weight {
379
		// Proof Size summary in bytes:
380
		//  Measured:  `1091 + x * (43 ±0)`
381
		//  Estimated: `4752 + x * (45 ±1)`
382
		// Minimum execution time: 87_000_000 picoseconds.
383
		Weight::from_parts(116_267_098, 4752)
384
			.saturating_add(T::DbWeight::get().reads(7_u64))
385
			.saturating_add(T::DbWeight::get().writes(7_u64))
386
			.saturating_add(Weight::from_parts(0, 45).saturating_mul(x.into()))
387
	}
388
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
389
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
390
	fn cancel_candidate_bond_less() -> Weight {
391
		// Proof Size summary in bytes:
392
		//  Measured:  `191`
393
		//  Estimated: `3656`
394
		// Minimum execution time: 12_000_000 picoseconds.
395
		Weight::from_parts(12_000_000, 3656)
396
			.saturating_add(T::DbWeight::get().reads(1_u64))
397
			.saturating_add(T::DbWeight::get().writes(1_u64))
398
	}
399
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
400
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
401
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
402
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
403
	/// The range of component `x` is `[0, 349]`.
404
	fn schedule_revoke_delegation(x: u32, ) -> Weight {
405
		// Proof Size summary in bytes:
406
		//  Measured:  `233 + x * (43 ±0)`
407
		//  Estimated: `3832 + x * (44 ±0)`
408
		// Minimum execution time: 14_000_000 picoseconds.
409
		Weight::from_parts(19_302_147, 3832)
410
			// Standard Error: 13_114
411
			.saturating_add(Weight::from_parts(108_100, 0).saturating_mul(x.into()))
412
			.saturating_add(T::DbWeight::get().reads(2_u64))
413
			.saturating_add(T::DbWeight::get().writes(2_u64))
414
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
415
	}
416
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
417
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
418
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
419
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
420
	/// Storage: `System::Account` (r:1 w:1)
421
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
422
	/// Storage: `Balances::Locks` (r:1 w:1)
423
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
424
	/// Storage: `Balances::Freezes` (r:1 w:1)
425
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
426
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
427
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
428
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
429
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
430
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
431
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
432
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
433
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
434
	/// The range of component `x` is `[0, 349]`.
435
	fn delegator_bond_more(x: u32, ) -> Weight {
436
		// Proof Size summary in bytes:
437
		//  Measured:  `2205 + x * (78 ±0)`
438
		//  Estimated: `5197 + x * (78 ±1)`
439
		// Minimum execution time: 91_000_000 picoseconds.
440
		Weight::from_parts(99_039_136, 5197)
441
			// Standard Error: 19_700
442
			.saturating_add(Weight::from_parts(165_867, 0).saturating_mul(x.into()))
443
			.saturating_add(T::DbWeight::get().reads(10_u64))
444
			.saturating_add(T::DbWeight::get().writes(9_u64))
445
			.saturating_add(Weight::from_parts(0, 78).saturating_mul(x.into()))
446
	}
447
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
448
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
449
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
450
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
451
	/// The range of component `x` is `[0, 349]`.
452
	fn schedule_delegator_bond_less(x: u32, ) -> Weight {
453
		// Proof Size summary in bytes:
454
		//  Measured:  `233 + x * (43 ±0)`
455
		//  Estimated: `3832 + x * (44 ±0)`
456
		// Minimum execution time: 14_000_000 picoseconds.
457
		Weight::from_parts(19_757_281, 3832)
458
			// Standard Error: 9_837
459
			.saturating_add(Weight::from_parts(107_019, 0).saturating_mul(x.into()))
460
			.saturating_add(T::DbWeight::get().reads(2_u64))
461
			.saturating_add(T::DbWeight::get().writes(2_u64))
462
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
463
	}
464
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
465
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
466
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
467
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
468
	/// Storage: `Balances::Locks` (r:1 w:1)
469
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
470
	/// Storage: `Balances::Freezes` (r:1 w:1)
471
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
472
	/// Storage: `System::Account` (r:1 w:1)
473
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
474
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
475
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
476
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
477
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
478
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
479
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
480
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
481
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
482
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
483
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
484
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
485
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
486
	fn execute_delegator_revoke_delegation_worst() -> Weight {
487
		// Proof Size summary in bytes:
488
		//  Measured:  `37373`
489
		//  Estimated: `40838`
490
		// Minimum execution time: 136_000_000 picoseconds.
491
		Weight::from_parts(149_000_000, 40838)
492
			.saturating_add(T::DbWeight::get().reads(11_u64))
493
			.saturating_add(T::DbWeight::get().writes(11_u64))
494
	}
495
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
496
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
497
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
498
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
499
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
500
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
501
	/// Storage: `Balances::Locks` (r:1 w:1)
502
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
503
	/// Storage: `Balances::Freezes` (r:1 w:1)
504
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
505
	/// Storage: `System::Account` (r:1 w:1)
506
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
507
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
508
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
509
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
510
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
511
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
512
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
513
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
514
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
515
	fn execute_delegator_bond_less_worst() -> Weight {
516
		// Proof Size summary in bytes:
517
		//  Measured:  `29995`
518
		//  Estimated: `33460`
519
		// Minimum execution time: 147_000_000 picoseconds.
520
		Weight::from_parts(164_000_000, 33460)
521
			.saturating_add(T::DbWeight::get().reads(11_u64))
522
			.saturating_add(T::DbWeight::get().writes(11_u64))
523
	}
524
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
525
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
526
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
527
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
528
	/// The range of component `x` is `[0, 349]`.
529
	fn cancel_delegation_request(x: u32, ) -> Weight {
530
		// Proof Size summary in bytes:
531
		//  Measured:  `528 + x * (42 ±0)`
532
		//  Estimated: `3947 + x * (43 ±0)`
533
		// Minimum execution time: 26_000_000 picoseconds.
534
		Weight::from_parts(34_815_644, 3947)
535
			// Standard Error: 13_381
536
			.saturating_add(Weight::from_parts(57_315, 0).saturating_mul(x.into()))
537
			.saturating_add(T::DbWeight::get().reads(2_u64))
538
			.saturating_add(T::DbWeight::get().writes(2_u64))
539
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
540
	}
541
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
542
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
543
1
	fn prepare_staking_payouts() -> Weight {
544
		// Proof Size summary in bytes:
545
		//  Measured:  `3`
546
		//  Estimated: `3468`
547
		// Minimum execution time: 2_000_000 picoseconds.
548
1
		Weight::from_parts(3_000_000, 3468)
549
1
			.saturating_add(T::DbWeight::get().reads(1_u64))
550
1
	}
551
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
552
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
553
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
554
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
555
	/// The range of component `y` is `[0, 100]`.
556
	fn get_rewardable_delegators(y: u32, ) -> Weight {
557
		// Proof Size summary in bytes:
558
		//  Measured:  `88 + y * (36 ±0)`
559
		//  Estimated: `3553 + y * (36 ±0)`
560
		// Minimum execution time: 6_000_000 picoseconds.
561
		Weight::from_parts(7_133_333, 3553)
562
			// Standard Error: 5_951
563
			.saturating_add(Weight::from_parts(36_000, 0).saturating_mul(y.into()))
564
			.saturating_add(T::DbWeight::get().reads(2_u64))
565
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
566
	}
567
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
568
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
569
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
570
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
571
	/// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
572
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
573
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:51 w:0)
574
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
575
	/// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
576
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
577
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
578
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
579
	/// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
580
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
581
	/// Storage: `ParachainStaking::AtStake` (r:0 w:51)
582
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
583
	/// The range of component `x` is `[0, 50]`.
584
	/// The range of component `y` is `[0, 100]`.
585
1
	fn select_top_candidates(x: u32, y: u32, ) -> Weight {
586
		// Proof Size summary in bytes:
587
		//  Measured:  `0 + x * (3818 ±0) + y * (1800 ±0)`
588
		//  Estimated: `3710 + x * (4038 ±272) + y * (655 ±135)`
589
		// Minimum execution time: 19_000_000 picoseconds.
590
1
		Weight::from_parts(20_000_000, 3710)
591
			// Standard Error: 507_202
592
1
			.saturating_add(Weight::from_parts(16_073_459, 0).saturating_mul(x.into()))
593
			// Standard Error: 253_235
594
1
			.saturating_add(Weight::from_parts(1_074_727, 0).saturating_mul(y.into()))
595
1
			.saturating_add(T::DbWeight::get().reads(6_u64))
596
1
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
597
1
			.saturating_add(T::DbWeight::get().writes(2_u64))
598
1
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
599
1
			.saturating_add(Weight::from_parts(0, 4038).saturating_mul(x.into()))
600
1
			.saturating_add(Weight::from_parts(0, 655).saturating_mul(y.into()))
601
1
	}
602
	/// Storage: `System::Account` (r:349 w:349)
603
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
604
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
605
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
606
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
607
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
608
	/// Storage: `Balances::Locks` (r:349 w:349)
609
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
610
	/// Storage: `Balances::Freezes` (r:349 w:349)
611
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
612
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
613
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
614
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
615
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
616
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
617
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
618
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
619
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
620
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
621
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
622
	/// The range of component `x` is `[0, 349]`.
623
	/// The range of component `y` is `[0, 349]`.
624
	fn pay_one_collator_reward_best(x: u32, y: u32, ) -> Weight {
625
		// Proof Size summary in bytes:
626
		//  Measured:  `0 + x * (389 ±0) + y * (144 ±0) + z * (41 ±0)`
627
		//  Estimated: `328284 + x * (2591 ±265) + y * (1733 ±265) + z * (41 ±0)`
628
		// Minimum execution time: 0_000 picoseconds.
629
		Weight::from_parts(0, 328284)
630
			// Standard Error: 5_334_461
631
			.saturating_add(Weight::from_parts(76_561_571, 0).saturating_mul(x.into()))
632
			// Standard Error: 5_334_461
633
			.saturating_add(Weight::from_parts(50_346_827, 0).saturating_mul(y.into()))
634
			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(x.into())))
635
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(y.into())))
636
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
637
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(y.into())))
638
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(x.into()))
639
			.saturating_add(Weight::from_parts(0, 1733).saturating_mul(y.into()))
640
	}
641
	/// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
642
	/// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
643
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
644
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
645
	/// Storage: `ParachainStaking::AtStake` (r:2 w:1)
646
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
647
	/// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
648
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
649
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
650
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
651
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
652
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
653
	/// Storage: `System::Account` (r:301 w:301)
654
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
655
	/// The range of component `y` is `[0, 300]`.
656
	fn pay_one_collator_reward(y: u32, ) -> Weight {
657
		// Proof Size summary in bytes:
658
		//  Measured:  `1430 + y * (162 ±0)`
659
		//  Estimated: `6996 + y * (2591 ±0)`
660
		// Minimum execution time: 53_000_000 picoseconds.
661
		Weight::from_parts(69_200_000, 6996)
662
			// Standard Error: 254_782
663
			.saturating_add(Weight::from_parts(22_444_888, 0).saturating_mul(y.into()))
664
			.saturating_add(T::DbWeight::get().reads(8_u64))
665
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
666
			.saturating_add(T::DbWeight::get().writes(3_u64))
667
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
668
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
669
	}
670
1
	fn base_on_initialize() -> Weight {
671
		// Proof Size summary in bytes:
672
		//  Measured:  `0`
673
		//  Estimated: `0`
674
		// Minimum execution time: 1_000_000 picoseconds.
675
1
		Weight::from_parts(1_000_000, 0)
676
1
	}
677
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
678
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
679
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
680
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
681
	/// The range of component `x` is `[0, 300]`.
682
	/// The range of component `y` is `[0, 100]`.
683
	fn set_auto_compound(x: u32, y: u32, ) -> Weight {
684
		// Proof Size summary in bytes:
685
		//  Measured:  `427 + x * (23 ±0) + y * (36 ±0)`
686
		//  Estimated: `3802 + x * (24 ±0) + y * (36 ±0)`
687
		// Minimum execution time: 16_000_000 picoseconds.
688
		Weight::from_parts(19_300_000, 3802)
689
			// Standard Error: 11_639
690
			.saturating_add(Weight::from_parts(71_555, 0).saturating_mul(x.into()))
691
			// Standard Error: 34_918
692
			.saturating_add(Weight::from_parts(58_666, 0).saturating_mul(y.into()))
693
			.saturating_add(T::DbWeight::get().reads(2_u64))
694
			.saturating_add(T::DbWeight::get().writes(1_u64))
695
			.saturating_add(Weight::from_parts(0, 24).saturating_mul(x.into()))
696
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
697
	}
698
	/// Storage: `System::Account` (r:1 w:1)
699
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
700
	/// Storage: `ParachainStaking::MigratedDelegators` (r:1 w:0)
701
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
702
	/// Storage: `Balances::Freezes` (r:1 w:1)
703
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
704
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
705
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
706
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
707
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
708
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
709
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
710
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
711
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
712
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
713
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
714
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
715
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
716
	/// Storage: `Balances::Locks` (r:1 w:0)
717
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
718
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
719
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
720
	/// The range of component `x` is `[0, 350]`.
721
	/// The range of component `y` is `[0, 349]`.
722
	/// The range of component `z` is `[0, 99]`.
723
	fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
724
		// Proof Size summary in bytes:
725
		//  Measured:  `0 + x * (61 ±0) + y * (21 ±0) + z * (81 ±0)`
726
		//  Estimated: `13973 + x * (55 ±2) + y * (21 ±2) + z * (86 ±8)`
727
		// Minimum execution time: 79_000_000 picoseconds.
728
		Weight::from_parts(61_282_010, 13973)
729
			// Standard Error: 18_907
730
			.saturating_add(Weight::from_parts(161_692, 0).saturating_mul(x.into()))
731
			// Standard Error: 18_960
732
			.saturating_add(Weight::from_parts(24_780, 0).saturating_mul(y.into()))
733
			// Standard Error: 66_606
734
			.saturating_add(Weight::from_parts(222_324, 0).saturating_mul(z.into()))
735
			.saturating_add(T::DbWeight::get().reads(11_u64))
736
			.saturating_add(T::DbWeight::get().writes(8_u64))
737
			.saturating_add(Weight::from_parts(0, 55).saturating_mul(x.into()))
738
			.saturating_add(Weight::from_parts(0, 21).saturating_mul(y.into()))
739
			.saturating_add(Weight::from_parts(0, 86).saturating_mul(z.into()))
740
	}
741
	/// Storage: `System::Account` (r:2 w:2)
742
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
743
	/// Storage: `ParachainStaking::MigratedDelegators` (r:1 w:0)
744
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
745
	/// Storage: `Balances::Freezes` (r:2 w:2)
746
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
747
	/// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
748
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
749
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
750
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
751
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
752
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
753
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
754
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
755
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
756
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
757
	/// Storage: `Balances::Locks` (r:2 w:1)
758
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
759
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
760
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
761
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
762
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
763
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
764
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
765
	fn delegate_with_auto_compound_worst() -> Weight {
766
		// Proof Size summary in bytes:
767
		//  Measured:  `48168`
768
		//  Estimated: `54108`
769
		// Minimum execution time: 205_000_000 picoseconds.
770
		Weight::from_parts(212_000_000, 54108)
771
			.saturating_add(T::DbWeight::get().reads(16_u64))
772
			.saturating_add(T::DbWeight::get().writes(14_u64))
773
	}
774
	/// Storage: `System::Account` (r:1 w:1)
775
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
776
	fn mint_collator_reward() -> Weight {
777
		// Proof Size summary in bytes:
778
		//  Measured:  `128`
779
		//  Estimated: `3581`
780
		// Minimum execution time: 23_000_000 picoseconds.
781
		Weight::from_parts(24_000_000, 3581)
782
			.saturating_add(T::DbWeight::get().reads(1_u64))
783
			.saturating_add(T::DbWeight::get().writes(1_u64))
784
	}
785
	/// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
786
	/// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
787
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
788
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
789
	/// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
790
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
791
	/// Storage: `ParachainStaking::WasInactive` (r:2 w:0)
792
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
793
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
794
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
795
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
796
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
797
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
798
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
799
	fn notify_inactive_collator() -> Weight {
800
		// Proof Size summary in bytes:
801
		//  Measured:  `11212`
802
		//  Estimated: `17152`
803
		// Minimum execution time: 52_000_000 picoseconds.
804
		Weight::from_parts(57_000_000, 17152)
805
			.saturating_add(T::DbWeight::get().reads(8_u64))
806
			.saturating_add(T::DbWeight::get().writes(2_u64))
807
	}
808
	/// Storage: `ParachainStaking::AtStake` (r:52 w:0)
809
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
810
	/// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
811
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
812
	/// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
813
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
814
	/// The range of component `x` is `[0, 50]`.
815
1
	fn mark_collators_as_inactive(x: u32, ) -> Weight {
816
		// Proof Size summary in bytes:
817
		//  Measured:  `102 + x * (104 ±0)`
818
		//  Estimated: `6051 + x * (2579 ±0)`
819
		// Minimum execution time: 16_000_000 picoseconds.
820
1
		Weight::from_parts(15_394_420, 6051)
821
			// Standard Error: 171_814
822
1
			.saturating_add(Weight::from_parts(12_954_526, 0).saturating_mul(x.into()))
823
1
			.saturating_add(T::DbWeight::get().reads(3_u64))
824
1
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
825
1
			.saturating_add(T::DbWeight::get().writes(1_u64))
826
1
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
827
1
			.saturating_add(Weight::from_parts(0, 2579).saturating_mul(x.into()))
828
1
	}
829
}
830

            
831
// For backwards compatibility and tests.
832
impl WeightInfo for () {
833
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
834
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
835
	fn set_staking_expectations() -> Weight {
836
		// Proof Size summary in bytes:
837
		//  Measured:  `88`
838
		//  Estimated: `1573`
839
		// Minimum execution time: 8_000_000 picoseconds.
840
		Weight::from_parts(10_000_000, 1573)
841
			.saturating_add(RocksDbWeight::get().reads(1_u64))
842
			.saturating_add(RocksDbWeight::get().writes(1_u64))
843
	}
844
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
845
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
846
	fn set_inflation() -> Weight {
847
		// Proof Size summary in bytes:
848
		//  Measured:  `88`
849
		//  Estimated: `1573`
850
		// Minimum execution time: 25_000_000 picoseconds.
851
		Weight::from_parts(27_000_000, 1573)
852
			.saturating_add(RocksDbWeight::get().reads(1_u64))
853
			.saturating_add(RocksDbWeight::get().writes(1_u64))
854
	}
855
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
856
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
857
	fn set_inflation_distribution_config() -> Weight {
858
		// Proof Size summary in bytes:
859
		//  Measured:  `30`
860
		//  Estimated: `1515`
861
		// Minimum execution time: 7_000_000 picoseconds.
862
		Weight::from_parts(7_000_000, 1515)
863
			.saturating_add(RocksDbWeight::get().reads(1_u64))
864
			.saturating_add(RocksDbWeight::get().writes(1_u64))
865
	}
866
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:1)
867
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
868
	fn set_total_selected() -> Weight {
869
		// Proof Size summary in bytes:
870
		//  Measured:  `28`
871
		//  Estimated: `1513`
872
		// Minimum execution time: 8_000_000 picoseconds.
873
		Weight::from_parts(8_000_000, 1513)
874
			.saturating_add(RocksDbWeight::get().reads(1_u64))
875
			.saturating_add(RocksDbWeight::get().writes(1_u64))
876
	}
877
	/// Storage: `ParachainStaking::CollatorCommission` (r:1 w:1)
878
	/// Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
879
	fn set_collator_commission() -> Weight {
880
		// Proof Size summary in bytes:
881
		//  Measured:  `27`
882
		//  Estimated: `1512`
883
		// Minimum execution time: 7_000_000 picoseconds.
884
		Weight::from_parts(8_000_000, 1512)
885
			.saturating_add(RocksDbWeight::get().reads(1_u64))
886
			.saturating_add(RocksDbWeight::get().writes(1_u64))
887
	}
888
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
889
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
890
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
891
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
892
	fn set_blocks_per_round() -> Weight {
893
		// Proof Size summary in bytes:
894
		//  Measured:  `116`
895
		//  Estimated: `1601`
896
		// Minimum execution time: 29_000_000 picoseconds.
897
		Weight::from_parts(29_000_000, 1601)
898
			.saturating_add(RocksDbWeight::get().reads(2_u64))
899
			.saturating_add(RocksDbWeight::get().writes(1_u64))
900
	}
901
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
902
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
903
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
904
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
905
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
906
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
907
	/// Storage: `System::Account` (r:1 w:1)
908
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
909
	/// Storage: `Balances::Freezes` (r:1 w:1)
910
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
911
	/// Storage: `Balances::Locks` (r:1 w:0)
912
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
913
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
914
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
915
	/// Storage: `ParachainStaking::TopDelegations` (r:0 w:1)
916
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
917
	/// Storage: `ParachainStaking::BottomDelegations` (r:0 w:1)
918
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
919
	/// The range of component `x` is `[3, 200]`.
920
20
	fn join_candidates(x: u32, ) -> Weight {
921
		// Proof Size summary in bytes:
922
		//  Measured:  `1406 + x * (38 ±0)`
923
		//  Estimated: `4752 + x * (43 ±1)`
924
		// Minimum execution time: 57_000_000 picoseconds.
925
20
		Weight::from_parts(62_371_559, 4752)
926
			// Standard Error: 37_712
927
20
			.saturating_add(Weight::from_parts(123_469, 0).saturating_mul(x.into()))
928
20
			.saturating_add(RocksDbWeight::get().reads(8_u64))
929
20
			.saturating_add(RocksDbWeight::get().writes(7_u64))
930
20
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
931
20
	}
932
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
933
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
934
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
935
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
936
	/// The range of component `x` is `[3, 200]`.
937
40
	fn schedule_leave_candidates(x: u32, ) -> Weight {
938
		// Proof Size summary in bytes:
939
		//  Measured:  `659 + x * (37 ±0)`
940
		//  Estimated: `3867 + x * (39 ±0)`
941
		// Minimum execution time: 16_000_000 picoseconds.
942
40
		Weight::from_parts(19_575_089, 3867)
943
			// Standard Error: 13_668
944
40
			.saturating_add(Weight::from_parts(105_647, 0).saturating_mul(x.into()))
945
40
			.saturating_add(RocksDbWeight::get().reads(2_u64))
946
40
			.saturating_add(RocksDbWeight::get().writes(2_u64))
947
40
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
948
40
	}
949
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
950
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
951
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
952
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
953
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
954
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
955
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
956
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
957
	/// Storage: `ParachainStaking::MigratedDelegators` (r:349 w:0)
958
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
959
	/// Storage: `Balances::Freezes` (r:350 w:350)
960
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
961
	/// Storage: `System::Account` (r:350 w:350)
962
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
963
	/// Storage: `Balances::Locks` (r:350 w:1)
964
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
965
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
966
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
967
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
968
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
969
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
970
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
971
	/// The range of component `x` is `[2, 350]`.
972
20
	fn execute_leave_candidates_worst_case(x: u32, ) -> Weight {
973
		// Proof Size summary in bytes:
974
		//  Measured:  `1169 + x * (456 ±0)`
975
		//  Estimated: `4830 + x * (3762 ±3)`
976
		// Minimum execution time: 137_000_000 picoseconds.
977
20
		Weight::from_parts(137_000_000, 4830)
978
			// Standard Error: 632_958
979
20
			.saturating_add(Weight::from_parts(42_365_414, 0).saturating_mul(x.into()))
980
20
			.saturating_add(RocksDbWeight::get().reads(4_u64))
981
20
			.saturating_add(RocksDbWeight::get().reads((5_u64).saturating_mul(x.into())))
982
20
			.saturating_add(RocksDbWeight::get().writes(6_u64))
983
20
			.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(x.into())))
984
20
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
985
20
	}
986
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
987
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
988
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
989
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
990
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
991
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
992
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
993
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
994
	/// Storage: `ParachainStaking::MigratedDelegators` (r:349 w:0)
995
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
996
	/// Storage: `Balances::Freezes` (r:350 w:350)
997
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
998
	/// Storage: `System::Account` (r:350 w:350)
999
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
	/// Storage: `Balances::Locks` (r:350 w:1)
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// The range of component `x` is `[2, 350]`.
	/// The range of component `y` is `[2, 350]`.
42
	fn execute_leave_candidates_ideal(x: u32, _y: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `1169 + x * (456 ±0)`
		//  Estimated: `4830 + x * (3762 ±0)`
		// Minimum execution time: 111_000_000 picoseconds.
42
		Weight::from_parts(149_062_452, 4830)
			// Standard Error: 616_234
42
			.saturating_add(Weight::from_parts(43_983_652, 0).saturating_mul(x.into()))
42
			.saturating_add(RocksDbWeight::get().reads(4_u64))
42
			.saturating_add(RocksDbWeight::get().reads((5_u64).saturating_mul(x.into())))
42
			.saturating_add(RocksDbWeight::get().writes(6_u64))
42
			.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(x.into())))
42
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
42
	}
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// The range of component `x` is `[3, 200]`.
20
	fn cancel_leave_candidates(x: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `627 + x * (37 ±0)`
		//  Estimated: `3835 + x * (39 ±0)`
		// Minimum execution time: 15_000_000 picoseconds.
20
		Weight::from_parts(17_412_225, 3835)
			// Standard Error: 9_403
20
			.saturating_add(Weight::from_parts(92_764, 0).saturating_mul(x.into()))
20
			.saturating_add(RocksDbWeight::get().reads(2_u64))
20
			.saturating_add(RocksDbWeight::get().writes(2_u64))
20
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
20
	}
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// The range of component `x` is `[1, 200]`.
72
	fn go_offline(x: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `562 + x * (38 ±0)`
		//  Estimated: `3828 + x * (39 ±0)`
		// Minimum execution time: 15_000_000 picoseconds.
72
		Weight::from_parts(17_962_310, 3828)
			// Standard Error: 10_178
72
			.saturating_add(Weight::from_parts(80_881, 0).saturating_mul(x.into()))
72
			.saturating_add(RocksDbWeight::get().reads(2_u64))
72
			.saturating_add(RocksDbWeight::get().writes(2_u64))
72
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
72
	}
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// The range of component `x` is `[1, 200]`.
45
	fn go_online(x: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `526 + x * (38 ±0)`
		//  Estimated: `3791 + x * (39 ±0)`
		// Minimum execution time: 14_000_000 picoseconds.
45
		Weight::from_parts(17_749_962, 3791)
			// Standard Error: 12_623
45
			.saturating_add(Weight::from_parts(88_989, 0).saturating_mul(x.into()))
45
			.saturating_add(RocksDbWeight::get().reads(2_u64))
45
			.saturating_add(RocksDbWeight::get().writes(2_u64))
45
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
45
	}
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `System::Account` (r:1 w:1)
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
	/// Storage: `ParachainStaking::MigratedCandidates` (r:1 w:1)
	/// Proof: `ParachainStaking::MigratedCandidates` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `Balances::Locks` (r:1 w:1)
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
	/// Storage: `Balances::Freezes` (r:1 w:1)
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// The range of component `x` is `[1, 200]`.
45
	fn candidate_bond_more(x: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `932 + x * (44 ±0)`
		//  Estimated: `4752 + x * (45 ±1)`
		// Minimum execution time: 82_000_000 picoseconds.
45
		Weight::from_parts(87_570_121, 4752)
			// Standard Error: 22_771
45
			.saturating_add(Weight::from_parts(80_803, 0).saturating_mul(x.into()))
45
			.saturating_add(RocksDbWeight::get().reads(7_u64))
45
			.saturating_add(RocksDbWeight::get().writes(7_u64))
45
			.saturating_add(Weight::from_parts(0, 45).saturating_mul(x.into()))
45
	}
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
40
	fn schedule_candidate_bond_less() -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `171`
		//  Estimated: `3636`
		// Minimum execution time: 12_000_000 picoseconds.
40
		Weight::from_parts(13_000_000, 3636)
40
			.saturating_add(RocksDbWeight::get().reads(1_u64))
40
			.saturating_add(RocksDbWeight::get().writes(1_u64))
40
	}
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::MigratedCandidates` (r:1 w:1)
	/// Proof: `ParachainStaking::MigratedCandidates` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `Balances::Locks` (r:1 w:1)
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
	/// Storage: `Balances::Freezes` (r:1 w:1)
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
	/// Storage: `System::Account` (r:1 w:1)
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// The range of component `x` is `[1, 200]`.
45
	fn execute_candidate_bond_less(x: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `1091 + x * (43 ±0)`
		//  Estimated: `4752 + x * (45 ±1)`
		// Minimum execution time: 87_000_000 picoseconds.
45
		Weight::from_parts(116_267_098, 4752)
45
			.saturating_add(RocksDbWeight::get().reads(7_u64))
45
			.saturating_add(RocksDbWeight::get().writes(7_u64))
45
			.saturating_add(Weight::from_parts(0, 45).saturating_mul(x.into()))
45
	}
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
20
	fn cancel_candidate_bond_less() -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `191`
		//  Estimated: `3656`
		// Minimum execution time: 12_000_000 picoseconds.
20
		Weight::from_parts(12_000_000, 3656)
20
			.saturating_add(RocksDbWeight::get().reads(1_u64))
20
			.saturating_add(RocksDbWeight::get().writes(1_u64))
20
	}
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// The range of component `x` is `[0, 349]`.
166
	fn schedule_revoke_delegation(x: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `233 + x * (43 ±0)`
		//  Estimated: `3832 + x * (44 ±0)`
		// Minimum execution time: 14_000_000 picoseconds.
166
		Weight::from_parts(19_302_147, 3832)
			// Standard Error: 13_114
166
			.saturating_add(Weight::from_parts(108_100, 0).saturating_mul(x.into()))
166
			.saturating_add(RocksDbWeight::get().reads(2_u64))
166
			.saturating_add(RocksDbWeight::get().writes(2_u64))
166
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
166
	}
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `System::Account` (r:1 w:1)
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
	/// Storage: `ParachainStaking::MigratedDelegators` (r:1 w:1)
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `Balances::Locks` (r:1 w:1)
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
	/// Storage: `Balances::Freezes` (r:1 w:1)
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// The range of component `x` is `[0, 349]`.
60
	fn delegator_bond_more(x: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `2205 + x * (78 ±0)`
		//  Estimated: `5197 + x * (78 ±1)`
		// Minimum execution time: 91_000_000 picoseconds.
60
		Weight::from_parts(99_039_136, 5197)
			// Standard Error: 19_700
60
			.saturating_add(Weight::from_parts(165_867, 0).saturating_mul(x.into()))
60
			.saturating_add(RocksDbWeight::get().reads(10_u64))
60
			.saturating_add(RocksDbWeight::get().writes(9_u64))
60
			.saturating_add(Weight::from_parts(0, 78).saturating_mul(x.into()))
60
	}
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// The range of component `x` is `[0, 349]`.
165
	fn schedule_delegator_bond_less(x: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `233 + x * (43 ±0)`
		//  Estimated: `3832 + x * (44 ±0)`
		// Minimum execution time: 14_000_000 picoseconds.
165
		Weight::from_parts(19_757_281, 3832)
			// Standard Error: 9_837
165
			.saturating_add(Weight::from_parts(107_019, 0).saturating_mul(x.into()))
165
			.saturating_add(RocksDbWeight::get().reads(2_u64))
165
			.saturating_add(RocksDbWeight::get().writes(2_u64))
165
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
165
	}
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `Balances::Locks` (r:1 w:1)
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
	/// Storage: `Balances::Freezes` (r:1 w:1)
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
	/// Storage: `System::Account` (r:1 w:1)
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
117
	fn execute_delegator_revoke_delegation_worst() -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `37373`
		//  Estimated: `40838`
		// Minimum execution time: 136_000_000 picoseconds.
117
		Weight::from_parts(149_000_000, 40838)
117
			.saturating_add(RocksDbWeight::get().reads(11_u64))
117
			.saturating_add(RocksDbWeight::get().writes(11_u64))
117
	}
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::MigratedDelegators` (r:1 w:1)
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `Balances::Locks` (r:1 w:1)
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
	/// Storage: `Balances::Freezes` (r:1 w:1)
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
	/// Storage: `System::Account` (r:1 w:1)
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	fn execute_delegator_bond_less_worst() -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `29995`
		//  Estimated: `33460`
		// Minimum execution time: 147_000_000 picoseconds.
		Weight::from_parts(164_000_000, 33460)
			.saturating_add(RocksDbWeight::get().reads(11_u64))
			.saturating_add(RocksDbWeight::get().writes(11_u64))
	}
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// The range of component `x` is `[0, 349]`.
88
	fn cancel_delegation_request(x: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `528 + x * (42 ±0)`
		//  Estimated: `3947 + x * (43 ±0)`
		// Minimum execution time: 26_000_000 picoseconds.
88
		Weight::from_parts(34_815_644, 3947)
			// Standard Error: 13_381
88
			.saturating_add(Weight::from_parts(57_315, 0).saturating_mul(x.into()))
88
			.saturating_add(RocksDbWeight::get().reads(2_u64))
88
			.saturating_add(RocksDbWeight::get().writes(2_u64))
88
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
88
	}
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
572
	fn prepare_staking_payouts() -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `3`
		//  Estimated: `3468`
		// Minimum execution time: 2_000_000 picoseconds.
572
		Weight::from_parts(3_000_000, 3468)
572
			.saturating_add(RocksDbWeight::get().reads(1_u64))
572
	}
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// The range of component `y` is `[0, 100]`.
	fn get_rewardable_delegators(y: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `88 + y * (36 ±0)`
		//  Estimated: `3553 + y * (36 ±0)`
		// Minimum execution time: 6_000_000 picoseconds.
		Weight::from_parts(7_133_333, 3553)
			// Standard Error: 5_951
			.saturating_add(Weight::from_parts(36_000, 0).saturating_mul(y.into()))
			.saturating_add(RocksDbWeight::get().reads(2_u64))
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
	}
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:51 w:0)
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::AtStake` (r:0 w:51)
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// The range of component `x` is `[0, 50]`.
	/// The range of component `y` is `[0, 100]`.
2129
	fn select_top_candidates(x: u32, y: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `0 + x * (3818 ±0) + y * (1800 ±0)`
		//  Estimated: `3710 + x * (4038 ±272) + y * (655 ±135)`
		// Minimum execution time: 19_000_000 picoseconds.
2129
		Weight::from_parts(20_000_000, 3710)
			// Standard Error: 507_202
2129
			.saturating_add(Weight::from_parts(16_073_459, 0).saturating_mul(x.into()))
			// Standard Error: 253_235
2129
			.saturating_add(Weight::from_parts(1_074_727, 0).saturating_mul(y.into()))
2129
			.saturating_add(RocksDbWeight::get().reads(6_u64))
2129
			.saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(x.into())))
2129
			.saturating_add(RocksDbWeight::get().writes(2_u64))
2129
			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(x.into())))
2129
			.saturating_add(Weight::from_parts(0, 4038).saturating_mul(x.into()))
2129
			.saturating_add(Weight::from_parts(0, 655).saturating_mul(y.into()))
2129
	}
	/// Storage: `System::Account` (r:349 w:349)
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::MigratedDelegators` (r:349 w:349)
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `Balances::Locks` (r:349 w:349)
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
	/// Storage: `Balances::Freezes` (r:349 w:349)
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// The range of component `x` is `[0, 349]`.
	/// The range of component `y` is `[0, 349]`.
50
	fn pay_one_collator_reward_best(x: u32, y: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `0 + x * (389 ±0) + y * (144 ±0) + z * (41 ±0)`
		//  Estimated: `328284 + x * (2591 ±265) + y * (1733 ±265) + z * (41 ±0)`
		// Minimum execution time: 0_000 picoseconds.
50
		Weight::from_parts(0, 328284)
			// Standard Error: 5_334_461
50
			.saturating_add(Weight::from_parts(76_561_571, 0).saturating_mul(x.into()))
			// Standard Error: 5_334_461
50
			.saturating_add(Weight::from_parts(50_346_827, 0).saturating_mul(y.into()))
50
			.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(x.into())))
50
			.saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(y.into())))
50
			.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(x.into())))
50
			.saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(y.into())))
50
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(x.into()))
50
			.saturating_add(Weight::from_parts(0, 1733).saturating_mul(y.into()))
50
	}
	/// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
	/// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::AtStake` (r:2 w:1)
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `System::Account` (r:301 w:301)
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
	/// The range of component `y` is `[0, 300]`.
50
	fn pay_one_collator_reward(y: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `1430 + y * (162 ±0)`
		//  Estimated: `6996 + y * (2591 ±0)`
		// Minimum execution time: 53_000_000 picoseconds.
50
		Weight::from_parts(69_200_000, 6996)
			// Standard Error: 254_782
50
			.saturating_add(Weight::from_parts(22_444_888, 0).saturating_mul(y.into()))
50
			.saturating_add(RocksDbWeight::get().reads(8_u64))
50
			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(y.into())))
50
			.saturating_add(RocksDbWeight::get().writes(3_u64))
50
			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(y.into())))
50
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
50
	}
1240
	fn base_on_initialize() -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `0`
		//  Estimated: `0`
		// Minimum execution time: 1_000_000 picoseconds.
1240
		Weight::from_parts(1_000_000, 0)
1240
	}
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// The range of component `x` is `[0, 300]`.
	/// The range of component `y` is `[0, 100]`.
80
	fn set_auto_compound(x: u32, y: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `427 + x * (23 ±0) + y * (36 ±0)`
		//  Estimated: `3802 + x * (24 ±0) + y * (36 ±0)`
		// Minimum execution time: 16_000_000 picoseconds.
80
		Weight::from_parts(19_300_000, 3802)
			// Standard Error: 11_639
80
			.saturating_add(Weight::from_parts(71_555, 0).saturating_mul(x.into()))
			// Standard Error: 34_918
80
			.saturating_add(Weight::from_parts(58_666, 0).saturating_mul(y.into()))
80
			.saturating_add(RocksDbWeight::get().reads(2_u64))
80
			.saturating_add(RocksDbWeight::get().writes(1_u64))
80
			.saturating_add(Weight::from_parts(0, 24).saturating_mul(x.into()))
80
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
80
	}
	/// Storage: `System::Account` (r:1 w:1)
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
	/// Storage: `ParachainStaking::MigratedDelegators` (r:1 w:0)
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `Balances::Freezes` (r:1 w:1)
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// Storage: `Balances::Locks` (r:1 w:0)
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// The range of component `x` is `[0, 350]`.
	/// The range of component `y` is `[0, 349]`.
	/// The range of component `z` is `[0, 99]`.
80
	fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `0 + x * (61 ±0) + y * (21 ±0) + z * (81 ±0)`
		//  Estimated: `13973 + x * (55 ±2) + y * (21 ±2) + z * (86 ±8)`
		// Minimum execution time: 79_000_000 picoseconds.
80
		Weight::from_parts(61_282_010, 13973)
			// Standard Error: 18_907
80
			.saturating_add(Weight::from_parts(161_692, 0).saturating_mul(x.into()))
			// Standard Error: 18_960
80
			.saturating_add(Weight::from_parts(24_780, 0).saturating_mul(y.into()))
			// Standard Error: 66_606
80
			.saturating_add(Weight::from_parts(222_324, 0).saturating_mul(z.into()))
80
			.saturating_add(RocksDbWeight::get().reads(11_u64))
80
			.saturating_add(RocksDbWeight::get().writes(8_u64))
80
			.saturating_add(Weight::from_parts(0, 55).saturating_mul(x.into()))
80
			.saturating_add(Weight::from_parts(0, 21).saturating_mul(y.into()))
80
			.saturating_add(Weight::from_parts(0, 86).saturating_mul(z.into()))
80
	}
	/// Storage: `System::Account` (r:2 w:2)
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
	/// Storage: `ParachainStaking::MigratedDelegators` (r:1 w:0)
	/// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `Balances::Freezes` (r:2 w:2)
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
	/// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `Balances::Locks` (r:2 w:1)
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	fn delegate_with_auto_compound_worst() -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `48168`
		//  Estimated: `54108`
		// Minimum execution time: 205_000_000 picoseconds.
		Weight::from_parts(212_000_000, 54108)
			.saturating_add(RocksDbWeight::get().reads(16_u64))
			.saturating_add(RocksDbWeight::get().writes(14_u64))
	}
	/// Storage: `System::Account` (r:1 w:1)
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
50
	fn mint_collator_reward() -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `128`
		//  Estimated: `3581`
		// Minimum execution time: 23_000_000 picoseconds.
50
		Weight::from_parts(24_000_000, 3581)
50
			.saturating_add(RocksDbWeight::get().reads(1_u64))
50
			.saturating_add(RocksDbWeight::get().writes(1_u64))
50
	}
	/// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
	/// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::WasInactive` (r:2 w:0)
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
	fn notify_inactive_collator() -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `11212`
		//  Estimated: `17152`
		// Minimum execution time: 52_000_000 picoseconds.
		Weight::from_parts(57_000_000, 17152)
			.saturating_add(RocksDbWeight::get().reads(8_u64))
			.saturating_add(RocksDbWeight::get().writes(2_u64))
	}
	/// Storage: `ParachainStaking::AtStake` (r:52 w:0)
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
	/// The range of component `x` is `[0, 50]`.
572
	fn mark_collators_as_inactive(x: u32, ) -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `102 + x * (104 ±0)`
		//  Estimated: `6051 + x * (2579 ±0)`
		// Minimum execution time: 16_000_000 picoseconds.
572
		Weight::from_parts(15_394_420, 6051)
			// Standard Error: 171_814
572
			.saturating_add(Weight::from_parts(12_954_526, 0).saturating_mul(x.into()))
572
			.saturating_add(RocksDbWeight::get().reads(3_u64))
572
			.saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(x.into())))
572
			.saturating_add(RocksDbWeight::get().writes(1_u64))
572
			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(x.into())))
572
			.saturating_add(Weight::from_parts(0, 2579).saturating_mul(x.into()))
572
	}
}