1
// Copyright 2025 Moonbeam foundation
2
// This file is part of Moonbeam.
3

            
4
// Moonbeam is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8

            
9
// Moonbeam is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13

            
14
// You should have received a copy of the GNU General Public License
15
// along with Moonbeam.  If not, see <http://www.gnu.org/licenses/>.
16

            
17

            
18
//! Autogenerated weights for `pallet_parachain_staking`
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
21
//! DATE: 2025-05-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-36`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
25

            
26
// Executed Command:
27
// ./frame-omni-bencher
28
// v1
29
// benchmark
30
// pallet
31
// --runtime=./target/production/wbuild/moonriver-runtime/moonriver_runtime.wasm
32
// --genesis-builder=runtime
33
// --genesis-builder-preset=development
34
// --steps=50
35
// --repeat=20
36
// --pallet=pallet_parachain_staking
37
// --extrinsic=*
38
// --wasm-execution=compiled
39
// --header=./file_header.txt
40
// --template=./benchmarking/frame-weight-template.hbs
41
// --output=./runtime/moonriver/src/weights
42

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

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

            
50
/// Weights for `pallet_parachain_staking`.
51
pub struct WeightInfo<T>(PhantomData<T>);
52
impl<T: frame_system::Config> pallet_parachain_staking::WeightInfo for WeightInfo<T> {
53
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
54
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
55
	fn set_staking_expectations() -> Weight {
56
		// Proof Size summary in bytes:
57
		//  Measured:  `88`
58
		//  Estimated: `1573`
59
		// Minimum execution time: 9_209_000 picoseconds.
60
		Weight::from_parts(9_554_000, 1573)
61
			.saturating_add(T::DbWeight::get().reads(1_u64))
62
			.saturating_add(T::DbWeight::get().writes(1_u64))
63
	}
64
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
65
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
66
	fn set_inflation() -> Weight {
67
		// Proof Size summary in bytes:
68
		//  Measured:  `88`
69
		//  Estimated: `1573`
70
		// Minimum execution time: 37_207_000 picoseconds.
71
		Weight::from_parts(37_976_000, 1573)
72
			.saturating_add(T::DbWeight::get().reads(1_u64))
73
			.saturating_add(T::DbWeight::get().writes(1_u64))
74
	}
75
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
76
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
77
	fn set_parachain_bond_account() -> Weight {
78
		// Proof Size summary in bytes:
79
		//  Measured:  `30`
80
		//  Estimated: `1515`
81
		// Minimum execution time: 9_918_000 picoseconds.
82
		Weight::from_parts(10_288_000, 1515)
83
			.saturating_add(T::DbWeight::get().reads(1_u64))
84
			.saturating_add(T::DbWeight::get().writes(1_u64))
85
	}
86
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
87
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
88
	fn set_parachain_bond_reserve_percent() -> Weight {
89
		// Proof Size summary in bytes:
90
		//  Measured:  `30`
91
		//  Estimated: `1515`
92
		// Minimum execution time: 9_768_000 picoseconds.
93
		Weight::from_parts(10_297_000, 1515)
94
			.saturating_add(T::DbWeight::get().reads(1_u64))
95
			.saturating_add(T::DbWeight::get().writes(1_u64))
96
	}
97
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
98
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
99
	fn set_inflation_distribution_config() -> Weight {
100
		// Proof Size summary in bytes:
101
		//  Measured:  `30`
102
		//  Estimated: `1515`
103
		// Minimum execution time: 7_907_000 picoseconds.
104
		Weight::from_parts(8_294_000, 1515)
105
			.saturating_add(T::DbWeight::get().reads(1_u64))
106
			.saturating_add(T::DbWeight::get().writes(1_u64))
107
	}
108
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:1)
109
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
110
	fn set_total_selected() -> Weight {
111
		// Proof Size summary in bytes:
112
		//  Measured:  `28`
113
		//  Estimated: `1513`
114
		// Minimum execution time: 8_463_000 picoseconds.
115
		Weight::from_parts(8_771_000, 1513)
116
			.saturating_add(T::DbWeight::get().reads(1_u64))
117
			.saturating_add(T::DbWeight::get().writes(1_u64))
118
	}
119
	/// Storage: `ParachainStaking::CollatorCommission` (r:1 w:1)
120
	/// Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
121
	fn set_collator_commission() -> Weight {
122
		// Proof Size summary in bytes:
123
		//  Measured:  `27`
124
		//  Estimated: `1512`
125
		// Minimum execution time: 7_724_000 picoseconds.
126
		Weight::from_parts(8_045_000, 1512)
127
			.saturating_add(T::DbWeight::get().reads(1_u64))
128
			.saturating_add(T::DbWeight::get().writes(1_u64))
129
	}
130
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
131
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
132
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
133
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
134
	fn set_blocks_per_round() -> Weight {
135
		// Proof Size summary in bytes:
136
		//  Measured:  `116`
137
		//  Estimated: `1601`
138
		// Minimum execution time: 40_324_000 picoseconds.
139
		Weight::from_parts(41_085_000, 1601)
140
			.saturating_add(T::DbWeight::get().reads(2_u64))
141
			.saturating_add(T::DbWeight::get().writes(1_u64))
142
	}
143
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
144
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
145
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
146
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
147
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
148
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
149
	/// Storage: `System::Account` (r:1 w:1)
150
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
151
	/// Storage: `Balances::Locks` (r:1 w:1)
152
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
153
	/// Storage: `Balances::Freezes` (r:1 w:0)
154
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
155
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
156
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
157
	/// Storage: `ParachainStaking::TopDelegations` (r:0 w:1)
158
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
159
	/// Storage: `ParachainStaking::BottomDelegations` (r:0 w:1)
160
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
161
	/// The range of component `x` is `[3, 200]`.
162
	fn join_candidates(x: u32, ) -> Weight {
163
		// Proof Size summary in bytes:
164
		//  Measured:  `1384 + x * (38 ±0)`
165
		//  Estimated: `4752 + x * (41 ±0)`
166
		// Minimum execution time: 53_242_000 picoseconds.
167
		Weight::from_parts(63_085_761, 4752)
168
			// Standard Error: 2_148
169
			.saturating_add(Weight::from_parts(132_982, 0).saturating_mul(x.into()))
170
			.saturating_add(T::DbWeight::get().reads(7_u64))
171
			.saturating_add(T::DbWeight::get().writes(7_u64))
172
			.saturating_add(Weight::from_parts(0, 41).saturating_mul(x.into()))
173
	}
174
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
175
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
176
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
177
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
178
	/// The range of component `x` is `[3, 200]`.
179
	fn schedule_leave_candidates(x: u32, ) -> Weight {
180
		// Proof Size summary in bytes:
181
		//  Measured:  `665 + x * (37 ±0)`
182
		//  Estimated: `4023 + x * (38 ±0)`
183
		// Minimum execution time: 17_708_000 picoseconds.
184
		Weight::from_parts(26_919_931, 4023)
185
			// Standard Error: 1_785
186
			.saturating_add(Weight::from_parts(101_595, 0).saturating_mul(x.into()))
187
			.saturating_add(T::DbWeight::get().reads(2_u64))
188
			.saturating_add(T::DbWeight::get().writes(2_u64))
189
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
190
	}
191
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
192
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
193
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
194
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
195
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
196
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
197
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
198
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
199
	/// Storage: `Balances::Locks` (r:350 w:350)
200
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
201
	/// Storage: `Balances::Freezes` (r:350 w:0)
202
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
203
	/// Storage: `System::Account` (r:350 w:350)
204
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
205
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
206
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
207
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
208
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
209
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
210
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
211
	/// The range of component `x` is `[2, 350]`.
212
	fn execute_leave_candidates_worst_case(x: u32, ) -> Weight {
213
		// Proof Size summary in bytes:
214
		//  Measured:  `1115 + x * (431 ±0)`
215
		//  Estimated: `4773 + x * (3762 ±0)`
216
		// Minimum execution time: 123_960_000 picoseconds.
217
		Weight::from_parts(125_192_000, 4773)
218
			// Standard Error: 80_277
219
			.saturating_add(Weight::from_parts(39_174_454, 0).saturating_mul(x.into()))
220
			.saturating_add(T::DbWeight::get().reads(5_u64))
221
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
222
			.saturating_add(T::DbWeight::get().writes(5_u64))
223
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
224
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
225
	}
226
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
227
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
228
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
229
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
230
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
231
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
232
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
233
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
234
	/// Storage: `Balances::Locks` (r:350 w:350)
235
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
236
	/// Storage: `Balances::Freezes` (r:350 w:0)
237
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
238
	/// Storage: `System::Account` (r:350 w:350)
239
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
240
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
241
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
242
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
243
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
244
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
245
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
246
	/// The range of component `x` is `[2, 350]`.
247
	/// The range of component `y` is `[2, 350]`.
248
	fn execute_leave_candidates_ideal(x: u32, _y: u32, ) -> Weight {
249
		// Proof Size summary in bytes:
250
		//  Measured:  `1106 + x * (431 ±0)`
251
		//  Estimated: `4773 + x * (3762 ±0)`
252
		// Minimum execution time: 114_162_000 picoseconds.
253
		Weight::from_parts(115_782_000, 4773)
254
			// Standard Error: 35_637
255
			.saturating_add(Weight::from_parts(40_834_846, 0).saturating_mul(x.into()))
256
			.saturating_add(T::DbWeight::get().reads(5_u64))
257
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
258
			.saturating_add(T::DbWeight::get().writes(5_u64))
259
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
260
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
261
	}
262
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
263
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
264
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
265
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
266
	/// The range of component `x` is `[3, 200]`.
267
	fn cancel_leave_candidates(x: u32, ) -> Weight {
268
		// Proof Size summary in bytes:
269
		//  Measured:  `633 + x * (37 ±0)`
270
		//  Estimated: `3991 + x * (38 ±0)`
271
		// Minimum execution time: 17_383_000 picoseconds.
272
		Weight::from_parts(25_591_659, 3991)
273
			// Standard Error: 1_446
274
			.saturating_add(Weight::from_parts(106_197, 0).saturating_mul(x.into()))
275
			.saturating_add(T::DbWeight::get().reads(2_u64))
276
			.saturating_add(T::DbWeight::get().writes(2_u64))
277
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
278
	}
279
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
280
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
281
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
282
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
283
	/// The range of component `x` is `[1, 200]`.
284
1
	fn go_offline(x: u32, ) -> Weight {
285
1
		// Proof Size summary in bytes:
286
1
		//  Measured:  `530 + x * (38 ±0)`
287
1
		//  Estimated: `3931 + x * (39 ±0)`
288
1
		// Minimum execution time: 16_361_000 picoseconds.
289
1
		Weight::from_parts(22_412_668, 3931)
290
1
			// Standard Error: 1_820
291
1
			.saturating_add(Weight::from_parts(116_457, 0).saturating_mul(x.into()))
292
1
			.saturating_add(T::DbWeight::get().reads(2_u64))
293
1
			.saturating_add(T::DbWeight::get().writes(2_u64))
294
1
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
295
1
	}
296
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
297
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
298
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
299
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
300
	/// The range of component `x` is `[1, 200]`.
301
	fn go_online(x: u32, ) -> Weight {
302
		// Proof Size summary in bytes:
303
		//  Measured:  `494 + x * (38 ±0)`
304
		//  Estimated: `3895 + x * (39 ±0)`
305
		// Minimum execution time: 16_228_000 picoseconds.
306
		Weight::from_parts(22_943_827, 3895)
307
			// Standard Error: 1_785
308
			.saturating_add(Weight::from_parts(113_282, 0).saturating_mul(x.into()))
309
			.saturating_add(T::DbWeight::get().reads(2_u64))
310
			.saturating_add(T::DbWeight::get().writes(2_u64))
311
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
312
	}
313
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
314
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
315
	/// Storage: `System::Account` (r:1 w:1)
316
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
317
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
318
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
319
	/// Storage: `Balances::Locks` (r:1 w:1)
320
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
321
	/// Storage: `Balances::Freezes` (r:1 w:0)
322
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
323
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
324
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
325
	/// The range of component `x` is `[1, 200]`.
326
	fn candidate_bond_more(x: u32, ) -> Weight {
327
		// Proof Size summary in bytes:
328
		//  Measured:  `1233 + x * (42 ±0)`
329
		//  Estimated: `4752 + x * (44 ±0)`
330
		// Minimum execution time: 48_758_000 picoseconds.
331
		Weight::from_parts(56_984_525, 4752)
332
			// Standard Error: 1_681
333
			.saturating_add(Weight::from_parts(132_706, 0).saturating_mul(x.into()))
334
			.saturating_add(T::DbWeight::get().reads(6_u64))
335
			.saturating_add(T::DbWeight::get().writes(5_u64))
336
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
337
	}
338
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
339
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
340
	fn schedule_candidate_bond_less() -> Weight {
341
		// Proof Size summary in bytes:
342
		//  Measured:  `171`
343
		//  Estimated: `3636`
344
		// Minimum execution time: 14_140_000 picoseconds.
345
		Weight::from_parts(14_811_000, 3636)
346
			.saturating_add(T::DbWeight::get().reads(1_u64))
347
			.saturating_add(T::DbWeight::get().writes(1_u64))
348
	}
349
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
350
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
351
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
352
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
353
	/// Storage: `Balances::Locks` (r:1 w:1)
354
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
355
	/// Storage: `Balances::Freezes` (r:1 w:0)
356
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
357
	/// Storage: `System::Account` (r:1 w:1)
358
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
359
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
360
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
361
	/// The range of component `x` is `[1, 200]`.
362
	fn execute_candidate_bond_less(x: u32, ) -> Weight {
363
		// Proof Size summary in bytes:
364
		//  Measured:  `1322 + x * (42 ±0)`
365
		//  Estimated: `4752 + x * (43 ±0)`
366
		// Minimum execution time: 61_786_000 picoseconds.
367
		Weight::from_parts(72_305_872, 4752)
368
			// Standard Error: 1_893
369
			.saturating_add(Weight::from_parts(118_542, 0).saturating_mul(x.into()))
370
			.saturating_add(T::DbWeight::get().reads(6_u64))
371
			.saturating_add(T::DbWeight::get().writes(5_u64))
372
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
373
	}
374
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
375
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
376
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
377
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
378
	/// Storage: `Balances::Locks` (r:1 w:1)
379
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
380
	/// Storage: `Balances::Freezes` (r:1 w:0)
381
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
382
	/// Storage: `System::Account` (r:1 w:1)
383
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
384
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
385
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
386
	/// The range of component `x` is `[1, 200]`.
387
	fn set_candidate_bond_to_zero(x: u32, ) -> Weight {
388
		// Proof Size summary in bytes:
389
		//  Measured:  `1302 + x * (42 ±0)`
390
		//  Estimated: `4752 + x * (43 ±0)`
391
		// Minimum execution time: 49_107_000 picoseconds.
392
		Weight::from_parts(57_616_551, 4752)
393
			// Standard Error: 1_724
394
			.saturating_add(Weight::from_parts(113_011, 0).saturating_mul(x.into()))
395
			.saturating_add(T::DbWeight::get().reads(6_u64))
396
			.saturating_add(T::DbWeight::get().writes(5_u64))
397
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
398
	}
399
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
400
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
401
	fn cancel_candidate_bond_less() -> Weight {
402
		// Proof Size summary in bytes:
403
		//  Measured:  `191`
404
		//  Estimated: `3656`
405
		// Minimum execution time: 13_157_000 picoseconds.
406
		Weight::from_parts(13_595_000, 3656)
407
			.saturating_add(T::DbWeight::get().reads(1_u64))
408
			.saturating_add(T::DbWeight::get().writes(1_u64))
409
	}
410
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
411
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
412
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
413
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
414
	/// The range of component `x` is `[0, 349]`.
415
	fn schedule_revoke_delegation(x: u32, ) -> Weight {
416
		// Proof Size summary in bytes:
417
		//  Measured:  `606 + x * (42 ±0)`
418
		//  Estimated: `4050 + x * (43 ±0)`
419
		// Minimum execution time: 17_344_000 picoseconds.
420
		Weight::from_parts(29_239_414, 4050)
421
			// Standard Error: 1_387
422
			.saturating_add(Weight::from_parts(100_881, 0).saturating_mul(x.into()))
423
			.saturating_add(T::DbWeight::get().reads(2_u64))
424
			.saturating_add(T::DbWeight::get().writes(2_u64))
425
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
426
	}
427
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
428
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
429
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
430
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
431
	/// Storage: `System::Account` (r:1 w:1)
432
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
433
	/// Storage: `Balances::Locks` (r:1 w:1)
434
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
435
	/// Storage: `Balances::Freezes` (r:1 w:0)
436
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
437
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
438
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
439
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
440
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
441
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
442
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
443
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
444
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
445
	/// The range of component `x` is `[0, 349]`.
446
	fn delegator_bond_more(x: u32, ) -> Weight {
447
		// Proof Size summary in bytes:
448
		//  Measured:  `1994 + x * (79 ±0)`
449
		//  Estimated: `5416 + x * (79 ±0)`
450
		// Minimum execution time: 70_098_000 picoseconds.
451
		Weight::from_parts(86_619_478, 5416)
452
			// Standard Error: 1_766
453
			.saturating_add(Weight::from_parts(158_207, 0).saturating_mul(x.into()))
454
			.saturating_add(T::DbWeight::get().reads(9_u64))
455
			.saturating_add(T::DbWeight::get().writes(7_u64))
456
			.saturating_add(Weight::from_parts(0, 79).saturating_mul(x.into()))
457
	}
458
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
459
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
460
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
461
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
462
	/// The range of component `x` is `[0, 349]`.
463
	fn schedule_delegator_bond_less(x: u32, ) -> Weight {
464
		// Proof Size summary in bytes:
465
		//  Measured:  `606 + x * (42 ±0)`
466
		//  Estimated: `4050 + x * (43 ±0)`
467
		// Minimum execution time: 17_787_000 picoseconds.
468
		Weight::from_parts(30_050_044, 4050)
469
			// Standard Error: 1_543
470
			.saturating_add(Weight::from_parts(102_642, 0).saturating_mul(x.into()))
471
			.saturating_add(T::DbWeight::get().reads(2_u64))
472
			.saturating_add(T::DbWeight::get().writes(2_u64))
473
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
474
	}
475
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
476
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
477
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
478
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
479
	/// Storage: `Balances::Locks` (r:1 w:1)
480
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
481
	/// Storage: `Balances::Freezes` (r:1 w:0)
482
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
483
	/// Storage: `System::Account` (r:1 w:1)
484
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
485
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:0)
486
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
487
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
488
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
489
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
490
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
491
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
492
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
493
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
494
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
495
	fn execute_revoke_delegation() -> Weight {
496
		// Proof Size summary in bytes:
497
		//  Measured:  `1004`
498
		//  Estimated: `4752`
499
		// Minimum execution time: 95_288_000 picoseconds.
500
		Weight::from_parts(99_249_000, 4752)
501
			.saturating_add(T::DbWeight::get().reads(10_u64))
502
			.saturating_add(T::DbWeight::get().writes(8_u64))
503
	}
504
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
505
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
506
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
507
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
508
	/// Storage: `Balances::Locks` (r:1 w:1)
509
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
510
	/// Storage: `Balances::Freezes` (r:1 w:0)
511
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
512
	/// Storage: `System::Account` (r:1 w:1)
513
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
514
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
515
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
516
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
517
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
518
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
519
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
520
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
521
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
522
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
523
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
524
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
525
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
526
	fn execute_delegator_revoke_delegation_worst() -> Weight {
527
		// Proof Size summary in bytes:
528
		//  Measured:  `37348`
529
		//  Estimated: `40813`
530
		// Minimum execution time: 181_802_000 picoseconds.
531
		Weight::from_parts(189_227_000, 40813)
532
			.saturating_add(T::DbWeight::get().reads(11_u64))
533
			.saturating_add(T::DbWeight::get().writes(10_u64))
534
	}
535
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
536
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
537
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
538
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
539
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
540
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
541
	/// Storage: `Balances::Locks` (r:1 w:1)
542
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
543
	/// Storage: `Balances::Freezes` (r:1 w:0)
544
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
545
	/// Storage: `System::Account` (r:1 w:1)
546
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
547
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
548
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
549
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
550
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
551
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
552
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
553
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
554
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
555
	fn execute_delegator_bond_less_worst() -> Weight {
556
		// Proof Size summary in bytes:
557
		//  Measured:  `29970`
558
		//  Estimated: `33435`
559
		// Minimum execution time: 162_129_000 picoseconds.
560
		Weight::from_parts(178_634_000, 33435)
561
			.saturating_add(T::DbWeight::get().reads(10_u64))
562
			.saturating_add(T::DbWeight::get().writes(9_u64))
563
	}
564
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
565
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
566
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
567
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
568
	/// The range of component `x` is `[0, 349]`.
569
	fn cancel_delegation_request(x: u32, ) -> Weight {
570
		// Proof Size summary in bytes:
571
		//  Measured:  `703 + x * (42 ±0)`
572
		//  Estimated: `4132 + x * (43 ±0)`
573
		// Minimum execution time: 26_903_000 picoseconds.
574
		Weight::from_parts(34_862_075, 4132)
575
			// Standard Error: 1_128
576
			.saturating_add(Weight::from_parts(79_610, 0).saturating_mul(x.into()))
577
			.saturating_add(T::DbWeight::get().reads(2_u64))
578
			.saturating_add(T::DbWeight::get().writes(2_u64))
579
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
580
	}
581
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
582
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
583
5
	fn prepare_staking_payouts() -> Weight {
584
5
		// Proof Size summary in bytes:
585
5
		//  Measured:  `3`
586
5
		//  Estimated: `3468`
587
5
		// Minimum execution time: 3_137_000 picoseconds.
588
5
		Weight::from_parts(3_262_000, 3468)
589
5
			.saturating_add(T::DbWeight::get().reads(1_u64))
590
5
	}
591
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
592
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
593
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
594
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
595
	/// The range of component `y` is `[0, 100]`.
596
	fn get_rewardable_delegators(y: u32, ) -> Weight {
597
		// Proof Size summary in bytes:
598
		//  Measured:  `90 + y * (36 ±0)`
599
		//  Estimated: `3554 + y * (36 ±0)`
600
		// Minimum execution time: 7_936_000 picoseconds.
601
		Weight::from_parts(9_021_084, 3554)
602
			// Standard Error: 589
603
			.saturating_add(Weight::from_parts(55_114, 0).saturating_mul(y.into()))
604
			.saturating_add(T::DbWeight::get().reads(2_u64))
605
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
606
	}
607
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
608
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
609
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
610
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
611
	/// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
612
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
613
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:51 w:0)
614
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
615
	/// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
616
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
617
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
618
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
619
	/// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
620
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
621
	/// Storage: `ParachainStaking::AtStake` (r:0 w:51)
622
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
623
	/// The range of component `x` is `[0, 50]`.
624
	/// The range of component `y` is `[0, 100]`.
625
68
	fn select_top_candidates(x: u32, y: u32, ) -> Weight {
626
68
		// Proof Size summary in bytes:
627
68
		//  Measured:  `0 + x * (3816 ±0) + y * (1800 ±0)`
628
68
		//  Estimated: `3710 + x * (3975 ±39) + y * (639 ±19)`
629
68
		// Minimum execution time: 26_388_000 picoseconds.
630
68
		Weight::from_parts(26_900_000, 3710)
631
68
			// Standard Error: 99_980
632
68
			.saturating_add(Weight::from_parts(19_959_738, 0).saturating_mul(x.into()))
633
68
			// Standard Error: 49_857
634
68
			.saturating_add(Weight::from_parts(1_694_825, 0).saturating_mul(y.into()))
635
68
			.saturating_add(T::DbWeight::get().reads(6_u64))
636
68
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
637
68
			.saturating_add(T::DbWeight::get().writes(2_u64))
638
68
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
639
68
			.saturating_add(Weight::from_parts(0, 3975).saturating_mul(x.into()))
640
68
			.saturating_add(Weight::from_parts(0, 639).saturating_mul(y.into()))
641
68
	}
642
	/// Storage: `System::Account` (r:349 w:349)
643
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
644
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
645
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
646
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
647
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
648
	/// Storage: `Balances::Locks` (r:349 w:349)
649
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
650
	/// Storage: `Balances::Freezes` (r:349 w:0)
651
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
652
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
653
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
654
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
655
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
656
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
657
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
658
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
659
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
660
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
661
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
662
	/// The range of component `x` is `[0, 349]`.
663
	/// The range of component `y` is `[0, 349]`.
664
	/// The range of component `z` is `[0, 349]`.
665
2
	fn pay_one_collator_reward_best(x: u32, y: u32, z: u32, ) -> Weight {
666
2
		// Proof Size summary in bytes:
667
2
		//  Measured:  `0 + x * (395 ±0) + y * (156 ±0) + z * (41 ±0)`
668
2
		//  Estimated: `125619 + x * (2591 ±8) + y * (2234 ±20) + z * (28 ±0)`
669
2
		// Minimum execution time: 213_000 picoseconds.
670
2
		Weight::from_parts(218_000, 125619)
671
2
			// Standard Error: 526_293
672
2
			.saturating_add(Weight::from_parts(54_309_743, 0).saturating_mul(x.into()))
673
2
			// Standard Error: 526_293
674
2
			.saturating_add(Weight::from_parts(30_184_064, 0).saturating_mul(y.into()))
675
2
			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(x.into())))
676
2
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(y.into())))
677
2
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(x.into())))
678
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
679
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(x.into()))
680
2
			.saturating_add(Weight::from_parts(0, 2234).saturating_mul(y.into()))
681
2
			.saturating_add(Weight::from_parts(0, 28).saturating_mul(z.into()))
682
2
	}
683
	/// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
684
	/// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
685
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
686
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
687
	/// Storage: `ParachainStaking::AtStake` (r:2 w:1)
688
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
689
	/// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
690
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
691
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
692
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
693
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
694
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
695
	/// Storage: `System::Account` (r:301 w:301)
696
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
697
	/// The range of component `y` is `[0, 300]`.
698
2
	fn pay_one_collator_reward(y: u32, ) -> Weight {
699
2
		// Proof Size summary in bytes:
700
2
		//  Measured:  `1164 + y * (160 ±0)`
701
2
		//  Estimated: `6969 + y * (2591 ±0)`
702
2
		// Minimum execution time: 54_701_000 picoseconds.
703
2
		Weight::from_parts(38_051_356, 6969)
704
2
			// Standard Error: 11_427
705
2
			.saturating_add(Weight::from_parts(18_257_602, 0).saturating_mul(y.into()))
706
2
			.saturating_add(T::DbWeight::get().reads(8_u64))
707
2
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
708
2
			.saturating_add(T::DbWeight::get().writes(3_u64))
709
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
710
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
711
2
	}
712
6621
	fn base_on_initialize() -> Weight {
713
6621
		// Proof Size summary in bytes:
714
6621
		//  Measured:  `0`
715
6621
		//  Estimated: `0`
716
6621
		// Minimum execution time: 820_000 picoseconds.
717
6621
		Weight::from_parts(868_000, 0)
718
6621
	}
719
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
720
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
721
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
722
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
723
	/// The range of component `x` is `[0, 300]`.
724
	/// The range of component `y` is `[0, 100]`.
725
	fn set_auto_compound(x: u32, y: u32, ) -> Weight {
726
		// Proof Size summary in bytes:
727
		//  Measured:  `672 + x * (22 ±0) + y * (36 ±0)`
728
		//  Estimated: `4028 + x * (23 ±0) + y * (36 ±0)`
729
		// Minimum execution time: 26_755_000 picoseconds.
730
		Weight::from_parts(28_002_634, 4028)
731
			// Standard Error: 1_036
732
			.saturating_add(Weight::from_parts(73_342, 0).saturating_mul(x.into()))
733
			// Standard Error: 3_101
734
			.saturating_add(Weight::from_parts(99_304, 0).saturating_mul(y.into()))
735
			.saturating_add(T::DbWeight::get().reads(2_u64))
736
			.saturating_add(T::DbWeight::get().writes(1_u64))
737
			.saturating_add(Weight::from_parts(0, 23).saturating_mul(x.into()))
738
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
739
	}
740
	/// Storage: `System::Account` (r:1 w:1)
741
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
742
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
743
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
744
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
745
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
746
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
747
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
748
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
749
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
750
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
751
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
752
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
753
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
754
	/// Storage: `Balances::Locks` (r:1 w:1)
755
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
756
	/// Storage: `Balances::Freezes` (r:1 w:0)
757
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
758
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
759
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
760
	/// The range of component `x` is `[0, 350]`.
761
	/// The range of component `y` is `[0, 349]`.
762
	/// The range of component `z` is `[0, 99]`.
763
	fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
764
		// Proof Size summary in bytes:
765
		//  Measured:  `0 + x * (60 ±0) + y * (21 ±0) + z * (78 ±0)`
766
		//  Estimated: `26217 + x * (44 ±0) + y * (19 ±0) + z * (76 ±1)`
767
		// Minimum execution time: 111_483_000 picoseconds.
768
		Weight::from_parts(73_469_246, 26217)
769
			// Standard Error: 2_114
770
			.saturating_add(Weight::from_parts(202_319, 0).saturating_mul(x.into()))
771
			// Standard Error: 2_119
772
			.saturating_add(Weight::from_parts(10_527, 0).saturating_mul(y.into()))
773
			// Standard Error: 7_465
774
			.saturating_add(Weight::from_parts(378_818, 0).saturating_mul(z.into()))
775
			.saturating_add(T::DbWeight::get().reads(9_u64))
776
			.saturating_add(T::DbWeight::get().writes(8_u64))
777
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
778
			.saturating_add(Weight::from_parts(0, 19).saturating_mul(y.into()))
779
			.saturating_add(Weight::from_parts(0, 76).saturating_mul(z.into()))
780
	}
781
	/// Storage: `System::Account` (r:2 w:2)
782
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
783
	/// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
784
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
785
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
786
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
787
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
788
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
789
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
790
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
791
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
792
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
793
	/// Storage: `Balances::Locks` (r:2 w:2)
794
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
795
	/// Storage: `Balances::Freezes` (r:2 w:0)
796
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
797
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
798
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
799
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
800
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
801
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
802
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
803
	fn delegate_with_auto_compound_worst() -> Weight {
804
		// Proof Size summary in bytes:
805
		//  Measured:  `48170`
806
		//  Estimated: `54110`
807
		// Minimum execution time: 267_155_000 picoseconds.
808
		Weight::from_parts(287_636_000, 54110)
809
			.saturating_add(T::DbWeight::get().reads(15_u64))
810
			.saturating_add(T::DbWeight::get().writes(13_u64))
811
	}
812
	/// Storage: `System::Account` (r:1 w:1)
813
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
814
14
	fn mint_collator_reward() -> Weight {
815
14
		// Proof Size summary in bytes:
816
14
		//  Measured:  `128`
817
14
		//  Estimated: `3581`
818
14
		// Minimum execution time: 19_552_000 picoseconds.
819
14
		Weight::from_parts(20_348_000, 3581)
820
14
			.saturating_add(T::DbWeight::get().reads(1_u64))
821
14
			.saturating_add(T::DbWeight::get().writes(1_u64))
822
14
	}
823
	/// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
824
	/// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
825
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
826
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
827
	/// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
828
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
829
	/// Storage: `ParachainStaking::WasInactive` (r:2 w:0)
830
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
831
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
832
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
833
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
834
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
835
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
836
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
837
	fn notify_inactive_collator() -> Weight {
838
		// Proof Size summary in bytes:
839
		//  Measured:  `11178`
840
		//  Estimated: `17118`
841
		// Minimum execution time: 83_818_000 picoseconds.
842
		Weight::from_parts(93_670_000, 17118)
843
			.saturating_add(T::DbWeight::get().reads(8_u64))
844
			.saturating_add(T::DbWeight::get().writes(2_u64))
845
	}
846
	/// Storage: `ParachainStaking::AtStake` (r:52 w:0)
847
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
848
	/// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
849
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
850
	/// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
851
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
852
	/// The range of component `x` is `[0, 50]`.
853
5
	fn mark_collators_as_inactive(x: u32, ) -> Weight {
854
5
		// Proof Size summary in bytes:
855
5
		//  Measured:  `108 + x * (104 ±0)`
856
5
		//  Estimated: `6050 + x * (2580 ±0)`
857
5
		// Minimum execution time: 12_273_000 picoseconds.
858
5
		Weight::from_parts(18_971_379, 6050)
859
5
			// Standard Error: 17_130
860
5
			.saturating_add(Weight::from_parts(9_678_898, 0).saturating_mul(x.into()))
861
5
			.saturating_add(T::DbWeight::get().reads(3_u64))
862
5
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
863
5
			.saturating_add(T::DbWeight::get().writes(1_u64))
864
5
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
865
5
			.saturating_add(Weight::from_parts(0, 2580).saturating_mul(x.into()))
866
5
	}
867
}