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-198`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
25

            
26
// Executed Command:
27
// ./frame-omni-bencher
28
// v1
29
// benchmark
30
// pallet
31
// --runtime=./target/production/wbuild/moonbase-runtime/moonbase_runtime.wasm
32
// --genesis-builder=runtime
33
// --genesis-builder-preset=development
34
// --steps=50
35
// --repeat=20
36
// --pallet=pallet_parachain_staking
37
// --extrinsic=*
38
// --wasm-execution=compiled
39
// --header=./file_header.txt
40
// --template=./benchmarking/frame-weight-template.hbs
41
// --disable-log-color
42
// --output=./runtime/moonbase/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_700_000 picoseconds.
61
		Weight::from_parts(9_152_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_199_000 picoseconds.
72
		Weight::from_parts(37_139_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_754_000 picoseconds.
83
		Weight::from_parts(8_004_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_115_000 picoseconds.
94
		Weight::from_parts(8_533_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_455_000 picoseconds.
105
		Weight::from_parts(7_877_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_362_000 picoseconds.
118
		Weight::from_parts(39_951_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_913_000 picoseconds.
146
		Weight::from_parts(57_895_359, 4752)
147
			// Standard Error: 3_580
148
			.saturating_add(Weight::from_parts(213_481, 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_473_000 picoseconds.
163
		Weight::from_parts(21_499_597, 4023)
164
			// Standard Error: 3_150
165
			.saturating_add(Weight::from_parts(166_781, 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:  `1304 + x * (504 ±0)`
198
		//  Estimated: `4980 + x * (3762 ±0)`
199
		// Minimum execution time: 126_702_000 picoseconds.
200
		Weight::from_parts(130_318_000, 4980)
201
			// Standard Error: 115_144
202
			.saturating_add(Weight::from_parts(46_294_924, 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:  `1296 + x * (504 ±0)`
238
		//  Estimated: `4980 + x * (3762 ±0)`
239
		// Minimum execution time: 116_702_000 picoseconds.
240
		Weight::from_parts(351_832_915, 4980)
241
			// Standard Error: 165_809
242
			.saturating_add(Weight::from_parts(48_713_248, 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_363_000 picoseconds.
259
		Weight::from_parts(21_462_428, 3991)
260
			// Standard Error: 2_559
261
			.saturating_add(Weight::from_parts(178_830, 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: 15_614_000 picoseconds.
276
1
		Weight::from_parts(17_825_827, 3931)
277
			// Standard Error: 3_209
278
1
			.saturating_add(Weight::from_parts(166_334, 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_913_000 picoseconds.
293
		Weight::from_parts(18_456_718, 3895)
294
			// Standard Error: 2_255
295
			.saturating_add(Weight::from_parts(164_583, 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_100_000 picoseconds.
318
		Weight::from_parts(53_813_468, 4752)
319
			// Standard Error: 4_944
320
			.saturating_add(Weight::from_parts(163_045, 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_870_000 picoseconds.
332
		Weight::from_parts(14_276_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: 46_341_000 picoseconds.
354
		Weight::from_parts(53_469_092, 4752)
355
			// Standard Error: 5_295
356
			.saturating_add(Weight::from_parts(161_243, 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_773_000 picoseconds.
368
		Weight::from_parts(13_203_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: 25_304_000 picoseconds.
386
		Weight::from_parts(37_660_975, 4562)
387
			// Standard Error: 2_483
388
			.saturating_add(Weight::from_parts(83_643, 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:  `2591 + x * (39 ±0)`
415
		//  Estimated: `5948 + x * (39 ±0)`
416
		// Minimum execution time: 66_536_000 picoseconds.
417
		Weight::from_parts(86_579_569, 5948)
418
			// Standard Error: 4_894
419
			.saturating_add(Weight::from_parts(212_718, 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: 28_955_000 picoseconds.
438
		Weight::from_parts(50_641_160, 5113)
439
			// Standard Error: 3_677
440
			.saturating_add(Weight::from_parts(72_756, 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: 173_954_000 picoseconds.
476
		Weight::from_parts(214_871_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:  `17446`
507
		//  Estimated: `20911`
508
		// Minimum execution time: 155_221_000 picoseconds.
509
		Weight::from_parts(176_615_000, 20911)
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: 34_661_000 picoseconds.
527
		Weight::from_parts(44_167_519, 5237)
528
			// Standard Error: 2_186
529
			.saturating_add(Weight::from_parts(126_275, 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_885_000 picoseconds.
541
5
		Weight::from_parts(3_088_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_519_000 picoseconds.
554
		Weight::from_parts(5_243_073, 3603)
555
			// Standard Error: 7_981
556
			.saturating_add(Weight::from_parts(4_417_452, 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
70
	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 ±2_918) + y * (44259 ±1_455)`
583
		// Minimum execution time: 19_873_000 picoseconds.
584
70
		Weight::from_parts(20_263_000, 258431)
585
			// Standard Error: 6_390_384
586
70
			.saturating_add(Weight::from_parts(205_512_142, 0).saturating_mul(x.into()))
587
			// Standard Error: 3_186_713
588
70
			.saturating_add(Weight::from_parts(98_634_908, 0).saturating_mul(y.into()))
589
70
			.saturating_add(T::DbWeight::get().reads(5_u64))
590
70
			.saturating_add(T::DbWeight::get().reads((39_u64).saturating_mul(x.into())))
591
70
			.saturating_add(T::DbWeight::get().reads((18_u64).saturating_mul(y.into())))
592
70
			.saturating_add(T::DbWeight::get().writes(2_u64))
593
70
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
594
70
			.saturating_add(Weight::from_parts(0, 89003).saturating_mul(x.into()))
595
70
			.saturating_add(Weight::from_parts(0, 44259).saturating_mul(y.into()))
596
70
	}
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: `110836 + x * (2591 ±0) + y * (1308 ±30)`
623
		// Minimum execution time: 211_000 picoseconds.
624
2
		Weight::from_parts(228_000, 110836)
625
			// Standard Error: 587_030
626
2
			.saturating_add(Weight::from_parts(41_362_143, 0).saturating_mul(x.into()))
627
			// Standard Error: 587_030
628
2
			.saturating_add(Weight::from_parts(16_553_642, 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:  `1383 + y * (160 ±0)`
652
		//  Estimated: `7128 + y * (2591 ±0)`
653
		// Minimum execution time: 51_780_000 picoseconds.
654
2
		Weight::from_parts(16_374_408, 7128)
655
			// Standard Error: 20_863
656
2
			.saturating_add(Weight::from_parts(22_468_843, 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
6619
	fn base_on_initialize() -> Weight {
664
		// Proof Size summary in bytes:
665
		//  Measured:  `0`
666
		//  Estimated: `0`
667
		// Minimum execution time: 789_000 picoseconds.
668
6619
		Weight::from_parts(885_000, 0)
669
6619
	}
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: 33_049_000 picoseconds.
681
		Weight::from_parts(45_093_237, 4028)
682
			// Standard Error: 3_374
683
			.saturating_add(Weight::from_parts(54_190, 0).saturating_mul(x.into()))
684
			// Standard Error: 10_102
685
			.saturating_add(Weight::from_parts(22_223, 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: `26242 + x * (44 ±0) + y * (19 ±0) + z * (76 ±1)`
718
		// Minimum execution time: 117_488_000 picoseconds.
719
		Weight::from_parts(73_964_841, 26242)
720
			// Standard Error: 5_890
721
			.saturating_add(Weight::from_parts(213_947, 0).saturating_mul(x.into()))
722
			// Standard Error: 5_905
723
			.saturating_add(Weight::from_parts(33_506, 0).saturating_mul(y.into()))
724
			// Standard Error: 20_799
725
			.saturating_add(Weight::from_parts(306_732, 0).saturating_mul(z.into()))
726
			.saturating_add(T::DbWeight::get().reads(9_u64))
727
			.saturating_add(T::DbWeight::get().writes(8_u64))
728
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
729
			.saturating_add(Weight::from_parts(0, 19).saturating_mul(y.into()))
730
			.saturating_add(Weight::from_parts(0, 76).saturating_mul(z.into()))
731
	}
732
	/// Storage: `System::Account` (r:2 w:2)
733
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
734
	/// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
735
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
736
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
737
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
738
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
739
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
740
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
741
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
742
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
743
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
744
	/// Storage: `Balances::Freezes` (r:2 w:2)
745
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
746
	/// Storage: `Balances::Locks` (r:2 w:0)
747
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
748
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
749
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
750
	/// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
751
	/// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`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: `ParachainStaking::Total` (r:1 w:1)
755
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
756
	/// Storage: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (r:0 w:1)
757
	/// Proof: `ParachainStaking::DelegationScheduledRequestsSummaryMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
758
	fn delegate_with_auto_compound_worst() -> Weight {
759
		// Proof Size summary in bytes:
760
		//  Measured:  `34900`
761
		//  Estimated: `40840`
762
		// Minimum execution time: 325_755_000 picoseconds.
763
		Weight::from_parts(359_062_000, 40840)
764
			.saturating_add(T::DbWeight::get().reads(16_u64))
765
			.saturating_add(T::DbWeight::get().writes(15_u64))
766
	}
767
	/// Storage: `System::Account` (r:1 w:1)
768
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
769
14
	fn mint_collator_reward() -> Weight {
770
		// Proof Size summary in bytes:
771
		//  Measured:  `128`
772
		//  Estimated: `3581`
773
		// Minimum execution time: 22_203_000 picoseconds.
774
14
		Weight::from_parts(23_210_000, 3581)
775
14
			.saturating_add(T::DbWeight::get().reads(1_u64))
776
14
			.saturating_add(T::DbWeight::get().writes(1_u64))
777
14
	}
778
	/// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
779
	/// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
780
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
781
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
782
	/// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
783
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
784
	/// Storage: `ParachainStaking::WasInactive` (r:2 w:0)
785
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
786
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
787
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
788
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
789
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
790
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
791
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
792
	fn notify_inactive_collator() -> Weight {
793
		// Proof Size summary in bytes:
794
		//  Measured:  `11212`
795
		//  Estimated: `17152`
796
		// Minimum execution time: 87_304_000 picoseconds.
797
		Weight::from_parts(98_481_000, 17152)
798
			.saturating_add(T::DbWeight::get().reads(8_u64))
799
			.saturating_add(T::DbWeight::get().writes(2_u64))
800
	}
801
	/// Storage: `ParachainStaking::AtStake` (r:52 w:0)
802
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
803
	/// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
804
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
805
	/// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
806
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
807
	/// The range of component `x` is `[0, 50]`.
808
5
	fn mark_collators_as_inactive(x: u32, ) -> Weight {
809
		// Proof Size summary in bytes:
810
		//  Measured:  `108 + x * (104 ±0)`
811
		//  Estimated: `6050 + x * (2580 ±0)`
812
		// Minimum execution time: 12_052_000 picoseconds.
813
5
		Weight::from_parts(13_830_902, 6050)
814
			// Standard Error: 18_337
815
5
			.saturating_add(Weight::from_parts(9_449_780, 0).saturating_mul(x.into()))
816
5
			.saturating_add(T::DbWeight::get().reads(3_u64))
817
5
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
818
5
			.saturating_add(T::DbWeight::get().writes(1_u64))
819
5
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
820
5
			.saturating_add(Weight::from_parts(0, 2580).saturating_mul(x.into()))
821
5
	}
822
}