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

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

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

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

            
17

            
18
//! Autogenerated weights for `pallet_parachain_staking`
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.0.0
21
//! DATE: 2026-03-31, 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
// --disable-log-color
42
// --output=./runtime/moonriver/src/weights
43

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

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

            
51
/// Weights for `pallet_parachain_staking`.
52
pub struct WeightInfo<T>(PhantomData<T>);
53
impl<T: frame_system::Config> pallet_parachain_staking::WeightInfo for WeightInfo<T> {
54
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
55
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
56
	fn set_staking_expectations() -> Weight {
57
		// Proof Size summary in bytes:
58
		//  Measured:  `88`
59
		//  Estimated: `1573`
60
		// Minimum execution time: 8_812_000 picoseconds.
61
		Weight::from_parts(9_162_000, 1573)
62
			.saturating_add(T::DbWeight::get().reads(1_u64))
63
			.saturating_add(T::DbWeight::get().writes(1_u64))
64
	}
65
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
66
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
67
	fn set_inflation() -> Weight {
68
		// Proof Size summary in bytes:
69
		//  Measured:  `88`
70
		//  Estimated: `1573`
71
		// Minimum execution time: 36_323_000 picoseconds.
72
		Weight::from_parts(37_600_000, 1573)
73
			.saturating_add(T::DbWeight::get().reads(1_u64))
74
			.saturating_add(T::DbWeight::get().writes(1_u64))
75
	}
76
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
77
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
78
	fn set_inflation_distribution_config() -> Weight {
79
		// Proof Size summary in bytes:
80
		//  Measured:  `30`
81
		//  Estimated: `1515`
82
		// Minimum execution time: 7_561_000 picoseconds.
83
		Weight::from_parts(7_893_000, 1515)
84
			.saturating_add(T::DbWeight::get().reads(1_u64))
85
			.saturating_add(T::DbWeight::get().writes(1_u64))
86
	}
87
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:1)
88
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
89
	fn set_total_selected() -> Weight {
90
		// Proof Size summary in bytes:
91
		//  Measured:  `28`
92
		//  Estimated: `1513`
93
		// Minimum execution time: 8_076_000 picoseconds.
94
		Weight::from_parts(8_432_000, 1513)
95
			.saturating_add(T::DbWeight::get().reads(1_u64))
96
			.saturating_add(T::DbWeight::get().writes(1_u64))
97
	}
98
	/// Storage: `ParachainStaking::CollatorCommission` (r:1 w:1)
99
	/// Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
100
	fn set_collator_commission() -> Weight {
101
		// Proof Size summary in bytes:
102
		//  Measured:  `27`
103
		//  Estimated: `1512`
104
		// Minimum execution time: 7_533_000 picoseconds.
105
		Weight::from_parts(7_879_000, 1512)
106
			.saturating_add(T::DbWeight::get().reads(1_u64))
107
			.saturating_add(T::DbWeight::get().writes(1_u64))
108
	}
109
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
110
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
111
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
112
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
113
	fn set_blocks_per_round() -> Weight {
114
		// Proof Size summary in bytes:
115
		//  Measured:  `116`
116
		//  Estimated: `1601`
117
		// Minimum execution time: 39_146_000 picoseconds.
118
		Weight::from_parts(40_502_000, 1601)
119
			.saturating_add(T::DbWeight::get().reads(2_u64))
120
			.saturating_add(T::DbWeight::get().writes(1_u64))
121
	}
122
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
123
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
124
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
125
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
126
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
127
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
128
	/// Storage: `System::Account` (r:1 w:1)
129
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
130
	/// Storage: `Balances::Freezes` (r:1 w:1)
131
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
132
	/// Storage: `Balances::Locks` (r:1 w:0)
133
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
134
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
135
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
136
	/// Storage: `ParachainStaking::TopDelegations` (r:0 w:1)
137
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
138
	/// Storage: `ParachainStaking::BottomDelegations` (r:0 w:1)
139
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
140
	/// The range of component `x` is `[3, 200]`.
141
	fn join_candidates(x: u32, ) -> Weight {
142
		// Proof Size summary in bytes:
143
		//  Measured:  `1384 + x * (38 ±0)`
144
		//  Estimated: `4752 + x * (41 ±0)`
145
		// Minimum execution time: 50_555_000 picoseconds.
146
		Weight::from_parts(59_131_058, 4752)
147
			// Standard Error: 1_919
148
			.saturating_add(Weight::from_parts(171_634, 0).saturating_mul(x.into()))
149
			.saturating_add(T::DbWeight::get().reads(7_u64))
150
			.saturating_add(T::DbWeight::get().writes(7_u64))
151
			.saturating_add(Weight::from_parts(0, 41).saturating_mul(x.into()))
152
	}
153
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
154
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
155
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
156
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
157
	/// The range of component `x` is `[3, 200]`.
158
	fn schedule_leave_candidates(x: u32, ) -> Weight {
159
		// Proof Size summary in bytes:
160
		//  Measured:  `665 + x * (37 ±0)`
161
		//  Estimated: `4023 + x * (38 ±0)`
162
		// Minimum execution time: 17_069_000 picoseconds.
163
		Weight::from_parts(23_678_476, 4023)
164
			// Standard Error: 1_483
165
			.saturating_add(Weight::from_parts(129_763, 0).saturating_mul(x.into()))
166
			.saturating_add(T::DbWeight::get().reads(2_u64))
167
			.saturating_add(T::DbWeight::get().writes(2_u64))
168
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
169
	}
170
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
171
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
172
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
173
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
174
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
175
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
176
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
177
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
178
	/// Storage: `Balances::Freezes` (r:350 w:350)
179
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
180
	/// Storage: `System::Account` (r:350 w:350)
181
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
182
	/// Storage: `Balances::Locks` (r:350 w:0)
183
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
184
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:349 w:349)
185
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
186
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
187
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
188
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
189
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
190
	/// Storage: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (r:349 w:349)
191
	/// Proof: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
192
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
193
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
194
	/// The range of component `x` is `[2, 350]`.
195
	fn execute_leave_candidates_worst_case(x: u32, ) -> Weight {
196
		// Proof Size summary in bytes:
197
		//  Measured:  `1267 + x * (505 ±0)`
198
		//  Estimated: `4946 + x * (3762 ±0)`
199
		// Minimum execution time: 134_732_000 picoseconds.
200
		Weight::from_parts(137_932_000, 4946)
201
			// Standard Error: 90_202
202
			.saturating_add(Weight::from_parts(47_374_923, 0).saturating_mul(x.into()))
203
			.saturating_add(T::DbWeight::get().reads(3_u64))
204
			.saturating_add(T::DbWeight::get().reads((6_u64).saturating_mul(x.into())))
205
			.saturating_add(T::DbWeight::get().writes(3_u64))
206
			.saturating_add(T::DbWeight::get().writes((5_u64).saturating_mul(x.into())))
207
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
208
	}
209
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
210
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
211
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
212
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
213
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
214
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
215
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
216
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
217
	/// Storage: `Balances::Freezes` (r:350 w:350)
218
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
219
	/// Storage: `System::Account` (r:350 w:350)
220
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
221
	/// Storage: `Balances::Locks` (r:350 w:0)
222
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
223
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:349 w:349)
224
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
225
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
226
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
227
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
228
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
229
	/// Storage: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (r:349 w:349)
230
	/// Proof: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
231
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
232
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
233
	/// The range of component `x` is `[2, 350]`.
234
	/// The range of component `y` is `[2, 350]`.
235
	fn execute_leave_candidates_ideal(x: u32, _y: u32, ) -> Weight {
236
		// Proof Size summary in bytes:
237
		//  Measured:  `1249 + x * (505 ±0)`
238
		//  Estimated: `4946 + x * (3762 ±0)`
239
		// Minimum execution time: 128_872_000 picoseconds.
240
		Weight::from_parts(129_762_000, 4946)
241
			// Standard Error: 47_550
242
			.saturating_add(Weight::from_parts(46_097_748, 0).saturating_mul(x.into()))
243
			.saturating_add(T::DbWeight::get().reads(3_u64))
244
			.saturating_add(T::DbWeight::get().reads((6_u64).saturating_mul(x.into())))
245
			.saturating_add(T::DbWeight::get().writes(3_u64))
246
			.saturating_add(T::DbWeight::get().writes((5_u64).saturating_mul(x.into())))
247
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
248
	}
249
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
250
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
251
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
252
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
253
	/// The range of component `x` is `[3, 200]`.
254
	fn cancel_leave_candidates(x: u32, ) -> Weight {
255
		// Proof Size summary in bytes:
256
		//  Measured:  `633 + x * (37 ±0)`
257
		//  Estimated: `3991 + x * (38 ±0)`
258
		// Minimum execution time: 16_667_000 picoseconds.
259
		Weight::from_parts(22_702_978, 3991)
260
			// Standard Error: 1_194
261
			.saturating_add(Weight::from_parts(129_271, 0).saturating_mul(x.into()))
262
			.saturating_add(T::DbWeight::get().reads(2_u64))
263
			.saturating_add(T::DbWeight::get().writes(2_u64))
264
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
265
	}
266
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
267
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
268
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
269
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
270
	/// The range of component `x` is `[1, 200]`.
271
1
	fn go_offline(x: u32, ) -> Weight {
272
		// Proof Size summary in bytes:
273
		//  Measured:  `530 + x * (38 ±0)`
274
		//  Estimated: `3931 + x * (39 ±0)`
275
		// Minimum execution time: 16_057_000 picoseconds.
276
1
		Weight::from_parts(20_449_713, 3931)
277
			// Standard Error: 1_644
278
1
			.saturating_add(Weight::from_parts(131_446, 0).saturating_mul(x.into()))
279
1
			.saturating_add(T::DbWeight::get().reads(2_u64))
280
1
			.saturating_add(T::DbWeight::get().writes(2_u64))
281
1
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
282
1
	}
283
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
284
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
285
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
286
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
287
	/// The range of component `x` is `[1, 200]`.
288
	fn go_online(x: u32, ) -> Weight {
289
		// Proof Size summary in bytes:
290
		//  Measured:  `494 + x * (38 ±0)`
291
		//  Estimated: `3895 + x * (39 ±0)`
292
		// Minimum execution time: 15_465_000 picoseconds.
293
		Weight::from_parts(20_236_992, 3895)
294
			// Standard Error: 2_132
295
			.saturating_add(Weight::from_parts(155_852, 0).saturating_mul(x.into()))
296
			.saturating_add(T::DbWeight::get().reads(2_u64))
297
			.saturating_add(T::DbWeight::get().writes(2_u64))
298
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
299
	}
300
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
301
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
302
	/// Storage: `System::Account` (r:1 w:1)
303
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
304
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
305
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
306
	/// Storage: `Balances::Freezes` (r:1 w:1)
307
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
308
	/// Storage: `Balances::Locks` (r:1 w:0)
309
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
310
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
311
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
312
	/// The range of component `x` is `[1, 200]`.
313
	fn candidate_bond_more(x: u32, ) -> Weight {
314
		// Proof Size summary in bytes:
315
		//  Measured:  `1225 + x * (42 ±0)`
316
		//  Estimated: `4752 + x * (44 ±0)`
317
		// Minimum execution time: 46_469_000 picoseconds.
318
		Weight::from_parts(53_837_980, 4752)
319
			// Standard Error: 1_893
320
			.saturating_add(Weight::from_parts(152_273, 0).saturating_mul(x.into()))
321
			.saturating_add(T::DbWeight::get().reads(6_u64))
322
			.saturating_add(T::DbWeight::get().writes(5_u64))
323
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
324
	}
325
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
326
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
327
	fn schedule_candidate_bond_less() -> Weight {
328
		// Proof Size summary in bytes:
329
		//  Measured:  `171`
330
		//  Estimated: `3636`
331
		// Minimum execution time: 13_646_000 picoseconds.
332
		Weight::from_parts(14_347_000, 3636)
333
			.saturating_add(T::DbWeight::get().reads(1_u64))
334
			.saturating_add(T::DbWeight::get().writes(1_u64))
335
	}
336
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
337
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
338
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
339
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
340
	/// Storage: `Balances::Freezes` (r:1 w:1)
341
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
342
	/// Storage: `System::Account` (r:1 w:1)
343
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
344
	/// Storage: `Balances::Locks` (r:1 w:0)
345
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
346
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
347
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
348
	/// The range of component `x` is `[1, 200]`.
349
	fn execute_candidate_bond_less(x: u32, ) -> Weight {
350
		// Proof Size summary in bytes:
351
		//  Measured:  `1314 + x * (42 ±0)`
352
		//  Estimated: `4752 + x * (43 ±0)`
353
		// Minimum execution time: 51_407_000 picoseconds.
354
		Weight::from_parts(59_558_803, 4752)
355
			// Standard Error: 1_680
356
			.saturating_add(Weight::from_parts(132_604, 0).saturating_mul(x.into()))
357
			.saturating_add(T::DbWeight::get().reads(6_u64))
358
			.saturating_add(T::DbWeight::get().writes(5_u64))
359
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
360
	}
361
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
362
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
363
	fn cancel_candidate_bond_less() -> Weight {
364
		// Proof Size summary in bytes:
365
		//  Measured:  `191`
366
		//  Estimated: `3656`
367
		// Minimum execution time: 12_906_000 picoseconds.
368
		Weight::from_parts(13_355_000, 3656)
369
			.saturating_add(T::DbWeight::get().reads(1_u64))
370
			.saturating_add(T::DbWeight::get().writes(1_u64))
371
	}
372
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
373
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
374
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
375
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
376
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
377
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
378
	/// Storage: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (r:0 w:1)
379
	/// Proof: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
380
	/// The range of component `x` is `[0, 349]`.
381
	fn schedule_revoke_delegation(x: u32, ) -> Weight {
382
		// Proof Size summary in bytes:
383
		//  Measured:  `1265 + x * (2 ±0)`
384
		//  Estimated: `4562 + x * (3 ±0)`
385
		// Minimum execution time: 26_216_000 picoseconds.
386
		Weight::from_parts(39_123_191, 4562)
387
			// Standard Error: 1_682
388
			.saturating_add(Weight::from_parts(84_142, 0).saturating_mul(x.into()))
389
			.saturating_add(T::DbWeight::get().reads(3_u64))
390
			.saturating_add(T::DbWeight::get().writes(4_u64))
391
			.saturating_add(Weight::from_parts(0, 3).saturating_mul(x.into()))
392
	}
393
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
394
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
395
	/// Storage: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (r:1 w:0)
396
	/// Proof: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
397
	/// Storage: `System::Account` (r:1 w:1)
398
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
399
	/// Storage: `Balances::Freezes` (r:1 w:1)
400
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
401
	/// Storage: `Balances::Locks` (r:1 w:0)
402
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
403
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
404
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
405
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
406
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
407
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
408
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
409
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
410
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
411
	/// The range of component `x` is `[0, 349]`.
412
	fn delegator_bond_more(x: u32, ) -> Weight {
413
		// Proof Size summary in bytes:
414
		//  Measured:  `2610 + x * (39 ±0)`
415
		//  Estimated: `5940 + x * (39 ±0)`
416
		// Minimum execution time: 65_916_000 picoseconds.
417
		Weight::from_parts(86_558_052, 5940)
418
			// Standard Error: 2_345
419
			.saturating_add(Weight::from_parts(156_526, 0).saturating_mul(x.into()))
420
			.saturating_add(T::DbWeight::get().reads(9_u64))
421
			.saturating_add(T::DbWeight::get().writes(7_u64))
422
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
423
	}
424
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
425
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
426
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
427
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
428
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
429
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
430
	/// Storage: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (r:1 w:1)
431
	/// Proof: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
432
	/// The range of component `x` is `[0, 349]`.
433
	fn schedule_delegator_bond_less(x: u32, ) -> Weight {
434
		// Proof Size summary in bytes:
435
		//  Measured:  `1905 + x * (3 ±0)`
436
		//  Estimated: `5113 + x * (5 ±0)`
437
		// Minimum execution time: 31_470_000 picoseconds.
438
		Weight::from_parts(45_388_392, 5113)
439
			// Standard Error: 1_352
440
			.saturating_add(Weight::from_parts(97_564, 0).saturating_mul(x.into()))
441
			.saturating_add(T::DbWeight::get().reads(4_u64))
442
			.saturating_add(T::DbWeight::get().writes(4_u64))
443
			.saturating_add(Weight::from_parts(0, 5).saturating_mul(x.into()))
444
	}
445
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
446
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
447
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
448
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
449
	/// Storage: `Balances::Freezes` (r:1 w:1)
450
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
451
	/// Storage: `System::Account` (r:1 w:1)
452
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
453
	/// Storage: `Balances::Locks` (r:1 w:0)
454
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
455
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
456
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
457
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
458
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
459
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
460
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
461
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
462
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
463
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
464
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
465
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
466
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
467
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
468
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
469
	/// Storage: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (r:0 w:1)
470
	/// Proof: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
471
	fn execute_delegator_revoke_delegation_worst() -> Weight {
472
		// Proof Size summary in bytes:
473
		//  Measured:  `23945`
474
		//  Estimated: `27410`
475
		// Minimum execution time: 186_568_000 picoseconds.
476
		Weight::from_parts(199_636_000, 27410)
477
			.saturating_add(T::DbWeight::get().reads(12_u64))
478
			.saturating_add(T::DbWeight::get().writes(12_u64))
479
	}
480
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
481
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
482
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
483
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
484
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
485
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
486
	/// Storage: `Balances::Freezes` (r:1 w:1)
487
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
488
	/// Storage: `System::Account` (r:1 w:1)
489
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
490
	/// Storage: `Balances::Locks` (r:1 w:0)
491
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
492
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
493
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
494
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
495
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
496
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
497
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
498
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
499
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
500
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
501
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
502
	/// Storage: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (r:1 w:1)
503
	/// Proof: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
504
	fn execute_delegator_bond_less_worst() -> Weight {
505
		// Proof Size summary in bytes:
506
		//  Measured:  `17447`
507
		//  Estimated: `20912`
508
		// Minimum execution time: 166_760_000 picoseconds.
509
		Weight::from_parts(185_181_000, 20912)
510
			.saturating_add(T::DbWeight::get().reads(12_u64))
511
			.saturating_add(T::DbWeight::get().writes(11_u64))
512
	}
513
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
514
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
515
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
516
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
517
	/// Storage: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (r:1 w:1)
518
	/// Proof: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
519
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
520
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
521
	/// The range of component `x` is `[0, 349]`.
522
	fn cancel_delegation_request(x: u32, ) -> Weight {
523
		// Proof Size summary in bytes:
524
		//  Measured:  `1976 + x * (3 ±0)`
525
		//  Estimated: `5237 + x * (5 ±0)`
526
		// Minimum execution time: 35_264_000 picoseconds.
527
		Weight::from_parts(51_543_397, 5237)
528
			// Standard Error: 1_932
529
			.saturating_add(Weight::from_parts(76_577, 0).saturating_mul(x.into()))
530
			.saturating_add(T::DbWeight::get().reads(4_u64))
531
			.saturating_add(T::DbWeight::get().writes(4_u64))
532
			.saturating_add(Weight::from_parts(0, 5).saturating_mul(x.into()))
533
	}
534
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
535
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
536
5
	fn prepare_staking_payouts() -> Weight {
537
		// Proof Size summary in bytes:
538
		//  Measured:  `3`
539
		//  Estimated: `3468`
540
		// Minimum execution time: 2_945_000 picoseconds.
541
5
		Weight::from_parts(3_214_000, 3468)
542
5
			.saturating_add(T::DbWeight::get().reads(1_u64))
543
5
	}
544
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
545
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
546
	/// Storage: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (r:100 w:0)
547
	/// Proof: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
548
	/// The range of component `y` is `[0, 100]`.
549
	fn get_rewardable_delegators(y: u32, ) -> Weight {
550
		// Proof Size summary in bytes:
551
		//  Measured:  `144 + y * (94 ±0)`
552
		//  Estimated: `3603 + y * (2570 ±0)`
553
		// Minimum execution time: 4_640_000 picoseconds.
554
		Weight::from_parts(5_803_295, 3603)
555
			// Standard Error: 7_265
556
			.saturating_add(Weight::from_parts(4_439_025, 0).saturating_mul(y.into()))
557
			.saturating_add(T::DbWeight::get().reads(1_u64))
558
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
559
			.saturating_add(Weight::from_parts(0, 2570).saturating_mul(y.into()))
560
	}
561
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
562
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
563
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
564
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
565
	/// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
566
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
567
	/// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
568
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
569
	/// Storage: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (r:5000 w:0)
570
	/// Proof: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
571
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
572
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
573
	/// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
574
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
575
	/// Storage: `ParachainStaking::AtStake` (r:0 w:51)
576
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
577
	/// The range of component `x` is `[0, 50]`.
578
	/// The range of component `y` is `[0, 100]`.
579
65
	fn select_top_candidates(x: u32, y: u32, ) -> Weight {
580
		// Proof Size summary in bytes:
581
		//  Measured:  `0 + x * (9709 ±0) + y * (4724 ±0)`
582
		//  Estimated: `258431 + x * (89003 ±105) + y * (44259 ±52)`
583
		// Minimum execution time: 21_681_000 picoseconds.
584
65
		Weight::from_parts(21_993_000, 258431)
585
			// Standard Error: 6_302_305
586
65
			.saturating_add(Weight::from_parts(213_002_047, 0).saturating_mul(x.into()))
587
			// Standard Error: 3_142_790
588
65
			.saturating_add(Weight::from_parts(95_275_671, 0).saturating_mul(y.into()))
589
65
			.saturating_add(T::DbWeight::get().reads(5_u64))
590
65
			.saturating_add(T::DbWeight::get().reads((39_u64).saturating_mul(x.into())))
591
65
			.saturating_add(T::DbWeight::get().reads((18_u64).saturating_mul(y.into())))
592
65
			.saturating_add(T::DbWeight::get().writes(2_u64))
593
65
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
594
65
			.saturating_add(Weight::from_parts(0, 89003).saturating_mul(x.into()))
595
65
			.saturating_add(Weight::from_parts(0, 44259).saturating_mul(y.into()))
596
65
	}
597
	/// Storage: `System::Account` (r:349 w:349)
598
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
599
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
600
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
601
	/// Storage: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (r:349 w:0)
602
	/// Proof: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
603
	/// Storage: `Balances::Freezes` (r:349 w:349)
604
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
605
	/// Storage: `Balances::Locks` (r:349 w:0)
606
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
607
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
608
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
609
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
610
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
611
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
612
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
613
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
614
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
615
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
616
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
617
	/// The range of component `x` is `[0, 349]`.
618
	/// The range of component `y` is `[0, 349]`.
619
2
	fn pay_one_collator_reward_best(x: u32, y: u32, ) -> Weight {
620
		// Proof Size summary in bytes:
621
		//  Measured:  `0 + x * (346 ±0) + y * (148 ±0)`
622
		//  Estimated: `110833 + x * (2591 ±43) + y * (1308 ±43)`
623
		// Minimum execution time: 218_000 picoseconds.
624
2
		Weight::from_parts(254_000, 110833)
625
			// Standard Error: 581_155
626
2
			.saturating_add(Weight::from_parts(41_866_557, 0).saturating_mul(x.into()))
627
			// Standard Error: 581_155
628
2
			.saturating_add(Weight::from_parts(16_531_721, 0).saturating_mul(y.into()))
629
2
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
630
2
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
631
2
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(x.into())))
632
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
633
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(x.into()))
634
2
			.saturating_add(Weight::from_parts(0, 1308).saturating_mul(y.into()))
635
2
	}
636
	/// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
637
	/// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
638
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
639
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
640
	/// Storage: `ParachainStaking::AtStake` (r:2 w:1)
641
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
642
	/// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
643
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
644
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
645
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
646
	/// Storage: `System::Account` (r:301 w:301)
647
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
648
	/// The range of component `y` is `[0, 300]`.
649
2
	fn pay_one_collator_reward(y: u32, ) -> Weight {
650
		// Proof Size summary in bytes:
651
		//  Measured:  `1304 + y * (160 ±0)`
652
		//  Estimated: `7062 + y * (2591 ±0)`
653
		// Minimum execution time: 50_597_000 picoseconds.
654
2
		Weight::from_parts(29_838_830, 7062)
655
			// Standard Error: 15_759
656
2
			.saturating_add(Weight::from_parts(22_557_893, 0).saturating_mul(y.into()))
657
2
			.saturating_add(T::DbWeight::get().reads(7_u64))
658
2
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
659
2
			.saturating_add(T::DbWeight::get().writes(3_u64))
660
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
661
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
662
2
	}
663
6622
	fn base_on_initialize() -> Weight {
664
		// Proof Size summary in bytes:
665
		//  Measured:  `0`
666
		//  Estimated: `0`
667
		// Minimum execution time: 843_000 picoseconds.
668
6622
		Weight::from_parts(923_000, 0)
669
6622
	}
670
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
671
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
672
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
673
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
674
	/// The range of component `x` is `[0, 300]`.
675
	/// The range of component `y` is `[0, 100]`.
676
	fn set_auto_compound(x: u32, y: u32, ) -> Weight {
677
		// Proof Size summary in bytes:
678
		//  Measured:  `672 + x * (22 ±0) + y * (36 ±0)`
679
		//  Estimated: `4028 + x * (23 ±0) + y * (36 ±0)`
680
		// Minimum execution time: 29_340_000 picoseconds.
681
		Weight::from_parts(29_928_526, 4028)
682
			// Standard Error: 1_212
683
			.saturating_add(Weight::from_parts(70_928, 0).saturating_mul(x.into()))
684
			// Standard Error: 3_629
685
			.saturating_add(Weight::from_parts(93_778, 0).saturating_mul(y.into()))
686
			.saturating_add(T::DbWeight::get().reads(2_u64))
687
			.saturating_add(T::DbWeight::get().writes(1_u64))
688
			.saturating_add(Weight::from_parts(0, 23).saturating_mul(x.into()))
689
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
690
	}
691
	/// Storage: `System::Account` (r:1 w:1)
692
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
693
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
694
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
695
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
696
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
697
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
698
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
699
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
700
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
701
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
702
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
703
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
704
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
705
	/// Storage: `Balances::Freezes` (r:1 w:1)
706
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
707
	/// Storage: `Balances::Locks` (r:1 w:0)
708
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
709
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
710
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
711
	/// The range of component `x` is `[0, 350]`.
712
	/// The range of component `y` is `[0, 349]`.
713
	/// The range of component `z` is `[0, 99]`.
714
	fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
715
		// Proof Size summary in bytes:
716
		//  Measured:  `0 + x * (60 ±0) + y * (21 ±0) + z * (78 ±0)`
717
		//  Estimated: `26209 + x * (44 ±0) + y * (19 ±0) + z * (76 ±1)`
718
		// Minimum execution time: 115_586_000 picoseconds.
719
		Weight::from_parts(79_780_325, 26209)
720
			// Standard Error: 2_787
721
			.saturating_add(Weight::from_parts(203_960, 0).saturating_mul(x.into()))
722
			// Standard Error: 9_843
723
			.saturating_add(Weight::from_parts(453_607, 0).saturating_mul(z.into()))
724
			.saturating_add(T::DbWeight::get().reads(9_u64))
725
			.saturating_add(T::DbWeight::get().writes(8_u64))
726
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
727
			.saturating_add(Weight::from_parts(0, 19).saturating_mul(y.into()))
728
			.saturating_add(Weight::from_parts(0, 76).saturating_mul(z.into()))
729
	}
730
	/// Storage: `System::Account` (r:2 w:2)
731
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
732
	/// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
733
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
734
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
735
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
736
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
737
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
738
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
739
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
740
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
741
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
742
	/// Storage: `Balances::Freezes` (r:2 w:2)
743
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
744
	/// Storage: `Balances::Locks` (r:2 w:0)
745
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
746
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
747
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
748
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
749
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
750
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
751
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
752
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
753
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
754
	/// Storage: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (r:0 w:1)
755
	/// Proof: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
756
	fn delegate_with_auto_compound_worst() -> Weight {
757
		// Proof Size summary in bytes:
758
		//  Measured:  `34900`
759
		//  Estimated: `40840`
760
		// Minimum execution time: 288_318_000 picoseconds.
761
		Weight::from_parts(305_746_000, 40840)
762
			.saturating_add(T::DbWeight::get().reads(16_u64))
763
			.saturating_add(T::DbWeight::get().writes(15_u64))
764
	}
765
	/// Storage: `System::Account` (r:1 w:1)
766
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
767
16
	fn mint_collator_reward() -> Weight {
768
		// Proof Size summary in bytes:
769
		//  Measured:  `128`
770
		//  Estimated: `3581`
771
		// Minimum execution time: 22_828_000 picoseconds.
772
16
		Weight::from_parts(23_641_000, 3581)
773
16
			.saturating_add(T::DbWeight::get().reads(1_u64))
774
16
			.saturating_add(T::DbWeight::get().writes(1_u64))
775
16
	}
776
	/// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
777
	/// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
778
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
779
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
780
	/// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
781
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
782
	/// Storage: `ParachainStaking::WasInactive` (r:2 w:0)
783
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
784
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
785
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
786
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
787
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
788
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
789
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
790
	fn notify_inactive_collator() -> Weight {
791
		// Proof Size summary in bytes:
792
		//  Measured:  `11178`
793
		//  Estimated: `17118`
794
		// Minimum execution time: 82_203_000 picoseconds.
795
		Weight::from_parts(92_027_000, 17118)
796
			.saturating_add(T::DbWeight::get().reads(8_u64))
797
			.saturating_add(T::DbWeight::get().writes(2_u64))
798
	}
799
	/// Storage: `ParachainStaking::AtStake` (r:52 w:0)
800
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
801
	/// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
802
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
803
	/// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
804
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
805
	/// The range of component `x` is `[0, 50]`.
806
5
	fn mark_collators_as_inactive(x: u32, ) -> Weight {
807
		// Proof Size summary in bytes:
808
		//  Measured:  `108 + x * (104 ±0)`
809
		//  Estimated: `6050 + x * (2580 ±0)`
810
		// Minimum execution time: 11_867_000 picoseconds.
811
5
		Weight::from_parts(16_153_072, 6050)
812
			// Standard Error: 17_078
813
5
			.saturating_add(Weight::from_parts(9_348_644, 0).saturating_mul(x.into()))
814
5
			.saturating_add(T::DbWeight::get().reads(3_u64))
815
5
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
816
5
			.saturating_add(T::DbWeight::get().writes(1_u64))
817
5
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
818
5
			.saturating_add(Weight::from_parts(0, 2580).saturating_mul(x.into()))
819
5
	}
820
}