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

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

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

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

            
17

            
18
//! Autogenerated weights for `pallet_parachain_staking`
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 48.0.0
21
//! DATE: 2025-09-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `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
// --output=./runtime/moonbase/src/weights
42

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

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

            
50
/// Weights for `pallet_parachain_staking`.
51
pub struct WeightInfo<T>(PhantomData<T>);
52
impl<T: frame_system::Config> pallet_parachain_staking::WeightInfo for WeightInfo<T> {
53
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
54
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
55
	fn set_staking_expectations() -> Weight {
56
		// Proof Size summary in bytes:
57
		//  Measured:  `88`
58
		//  Estimated: `1573`
59
		// Minimum execution time: 8_859_000 picoseconds.
60
		Weight::from_parts(9_274_000, 1573)
61
			.saturating_add(T::DbWeight::get().reads(1_u64))
62
			.saturating_add(T::DbWeight::get().writes(1_u64))
63
	}
64
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
65
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
66
	fn set_inflation() -> Weight {
67
		// Proof Size summary in bytes:
68
		//  Measured:  `88`
69
		//  Estimated: `1573`
70
		// Minimum execution time: 36_839_000 picoseconds.
71
		Weight::from_parts(37_459_000, 1573)
72
			.saturating_add(T::DbWeight::get().reads(1_u64))
73
			.saturating_add(T::DbWeight::get().writes(1_u64))
74
	}
75
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
76
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
77
	fn set_inflation_distribution_config() -> Weight {
78
		// Proof Size summary in bytes:
79
		//  Measured:  `30`
80
		//  Estimated: `1515`
81
		// Minimum execution time: 7_556_000 picoseconds.
82
		Weight::from_parts(8_094_000, 1515)
83
			.saturating_add(T::DbWeight::get().reads(1_u64))
84
			.saturating_add(T::DbWeight::get().writes(1_u64))
85
	}
86
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:1)
87
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
88
	fn set_total_selected() -> Weight {
89
		// Proof Size summary in bytes:
90
		//  Measured:  `28`
91
		//  Estimated: `1513`
92
		// Minimum execution time: 8_367_000 picoseconds.
93
		Weight::from_parts(8_584_000, 1513)
94
			.saturating_add(T::DbWeight::get().reads(1_u64))
95
			.saturating_add(T::DbWeight::get().writes(1_u64))
96
	}
97
	/// Storage: `ParachainStaking::CollatorCommission` (r:1 w:1)
98
	/// Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
99
	fn set_collator_commission() -> Weight {
100
		// Proof Size summary in bytes:
101
		//  Measured:  `27`
102
		//  Estimated: `1512`
103
		// Minimum execution time: 7_479_000 picoseconds.
104
		Weight::from_parts(7_724_000, 1512)
105
			.saturating_add(T::DbWeight::get().reads(1_u64))
106
			.saturating_add(T::DbWeight::get().writes(1_u64))
107
	}
108
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
109
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
110
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
111
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
112
	fn set_blocks_per_round() -> Weight {
113
		// Proof Size summary in bytes:
114
		//  Measured:  `116`
115
		//  Estimated: `1601`
116
		// Minimum execution time: 40_463_000 picoseconds.
117
		Weight::from_parts(40_981_000, 1601)
118
			.saturating_add(T::DbWeight::get().reads(2_u64))
119
			.saturating_add(T::DbWeight::get().writes(1_u64))
120
	}
121
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
122
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
123
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
124
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
125
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
126
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
127
	/// Storage: `System::Account` (r:1 w:1)
128
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
129
	/// Storage: `Balances::Locks` (r:1 w:1)
130
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
131
	/// Storage: `Balances::Freezes` (r:1 w:0)
132
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
133
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
134
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
135
	/// Storage: `ParachainStaking::TopDelegations` (r:0 w:1)
136
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
137
	/// Storage: `ParachainStaking::BottomDelegations` (r:0 w:1)
138
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
139
	/// The range of component `x` is `[3, 200]`.
140
	fn join_candidates(x: u32, ) -> Weight {
141
		// Proof Size summary in bytes:
142
		//  Measured:  `1417 + x * (38 ±0)`
143
		//  Estimated: `4752 + x * (41 ±0)`
144
		// Minimum execution time: 49_590_000 picoseconds.
145
		Weight::from_parts(61_198_983, 4752)
146
			// Standard Error: 1_818
147
			.saturating_add(Weight::from_parts(91_148, 0).saturating_mul(x.into()))
148
			.saturating_add(T::DbWeight::get().reads(7_u64))
149
			.saturating_add(T::DbWeight::get().writes(7_u64))
150
			.saturating_add(Weight::from_parts(0, 41).saturating_mul(x.into()))
151
	}
152
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
153
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
154
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
155
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
156
	/// The range of component `x` is `[3, 200]`.
157
	fn schedule_leave_candidates(x: u32, ) -> Weight {
158
		// Proof Size summary in bytes:
159
		//  Measured:  `665 + x * (37 ±0)`
160
		//  Estimated: `4023 + x * (38 ±0)`
161
		// Minimum execution time: 16_539_000 picoseconds.
162
		Weight::from_parts(22_823_115, 4023)
163
			// Standard Error: 1_132
164
			.saturating_add(Weight::from_parts(58_411, 0).saturating_mul(x.into()))
165
			.saturating_add(T::DbWeight::get().reads(2_u64))
166
			.saturating_add(T::DbWeight::get().writes(2_u64))
167
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
168
	}
169
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
170
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
171
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
172
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
173
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
174
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
175
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
176
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
177
	/// Storage: `Balances::Locks` (r:350 w:350)
178
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
179
	/// Storage: `Balances::Freezes` (r:350 w:0)
180
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
181
	/// Storage: `System::Account` (r:350 w:350)
182
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
183
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
184
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
185
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
186
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
187
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
188
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
189
	/// The range of component `x` is `[2, 350]`.
190
	fn execute_leave_candidates_worst_case(x: u32, ) -> Weight {
191
		// Proof Size summary in bytes:
192
		//  Measured:  `1681 + x * (431 ±0)`
193
		//  Estimated: `4945 + x * (3762 ±0)`
194
		// Minimum execution time: 105_471_000 picoseconds.
195
		Weight::from_parts(105_985_000, 4945)
196
			// Standard Error: 56_855
197
			.saturating_add(Weight::from_parts(36_204_591, 0).saturating_mul(x.into()))
198
			.saturating_add(T::DbWeight::get().reads(5_u64))
199
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
200
			.saturating_add(T::DbWeight::get().writes(5_u64))
201
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
202
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
203
	}
204
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
205
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
206
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
207
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
208
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
209
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
210
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
211
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
212
	/// Storage: `Balances::Locks` (r:350 w:350)
213
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
214
	/// Storage: `Balances::Freezes` (r:350 w:0)
215
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
216
	/// Storage: `System::Account` (r:350 w:350)
217
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
218
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
219
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
220
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
221
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
222
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
223
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
224
	/// The range of component `x` is `[2, 350]`.
225
	/// The range of component `y` is `[2, 350]`.
226
	fn execute_leave_candidates_ideal(x: u32, _y: u32, ) -> Weight {
227
		// Proof Size summary in bytes:
228
		//  Measured:  `1676 + x * (431 ±0)`
229
		//  Estimated: `4909 + x * (3762 ±0)`
230
		// Minimum execution time: 98_000_000 picoseconds.
231
		Weight::from_parts(99_370_000, 4909)
232
			// Standard Error: 24_046
233
			.saturating_add(Weight::from_parts(37_450_913, 0).saturating_mul(x.into()))
234
			.saturating_add(T::DbWeight::get().reads(5_u64))
235
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
236
			.saturating_add(T::DbWeight::get().writes(5_u64))
237
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
238
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
239
	}
240
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
241
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
242
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
243
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
244
	/// The range of component `x` is `[3, 200]`.
245
	fn cancel_leave_candidates(x: u32, ) -> Weight {
246
		// Proof Size summary in bytes:
247
		//  Measured:  `633 + x * (37 ±0)`
248
		//  Estimated: `3991 + x * (38 ±0)`
249
		// Minimum execution time: 16_209_000 picoseconds.
250
		Weight::from_parts(22_331_254, 3991)
251
			// Standard Error: 1_220
252
			.saturating_add(Weight::from_parts(59_945, 0).saturating_mul(x.into()))
253
			.saturating_add(T::DbWeight::get().reads(2_u64))
254
			.saturating_add(T::DbWeight::get().writes(2_u64))
255
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
256
	}
257
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
258
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
259
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
260
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
261
	/// The range of component `x` is `[1, 200]`.
262
1
	fn go_offline(x: u32, ) -> Weight {
263
1
		// Proof Size summary in bytes:
264
1
		//  Measured:  `530 + x * (38 ±0)`
265
1
		//  Estimated: `3931 + x * (39 ±0)`
266
1
		// Minimum execution time: 15_425_000 picoseconds.
267
1
		Weight::from_parts(20_847_668, 3931)
268
1
			// Standard Error: 1_095
269
1
			.saturating_add(Weight::from_parts(60_114, 0).saturating_mul(x.into()))
270
1
			.saturating_add(T::DbWeight::get().reads(2_u64))
271
1
			.saturating_add(T::DbWeight::get().writes(2_u64))
272
1
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
273
1
	}
274
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
275
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
276
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
277
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
278
	/// The range of component `x` is `[1, 200]`.
279
	fn go_online(x: u32, ) -> Weight {
280
		// Proof Size summary in bytes:
281
		//  Measured:  `494 + x * (38 ±0)`
282
		//  Estimated: `3895 + x * (39 ±0)`
283
		// Minimum execution time: 15_571_000 picoseconds.
284
		Weight::from_parts(20_885_827, 3895)
285
			// Standard Error: 1_110
286
			.saturating_add(Weight::from_parts(65_814, 0).saturating_mul(x.into()))
287
			.saturating_add(T::DbWeight::get().reads(2_u64))
288
			.saturating_add(T::DbWeight::get().writes(2_u64))
289
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
290
	}
291
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
292
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
293
	/// Storage: `System::Account` (r:1 w:1)
294
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
295
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
296
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
297
	/// Storage: `Balances::Locks` (r:1 w:1)
298
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
299
	/// Storage: `Balances::Freezes` (r:1 w:0)
300
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
301
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
302
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
303
	/// The range of component `x` is `[1, 200]`.
304
	fn candidate_bond_more(x: u32, ) -> Weight {
305
		// Proof Size summary in bytes:
306
		//  Measured:  `1233 + x * (42 ±0)`
307
		//  Estimated: `4752 + x * (44 ±0)`
308
		// Minimum execution time: 45_665_000 picoseconds.
309
		Weight::from_parts(54_994_291, 4752)
310
			// Standard Error: 1_812
311
			.saturating_add(Weight::from_parts(94_150, 0).saturating_mul(x.into()))
312
			.saturating_add(T::DbWeight::get().reads(6_u64))
313
			.saturating_add(T::DbWeight::get().writes(5_u64))
314
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
315
	}
316
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
317
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
318
	fn schedule_candidate_bond_less() -> Weight {
319
		// Proof Size summary in bytes:
320
		//  Measured:  `171`
321
		//  Estimated: `3636`
322
		// Minimum execution time: 13_444_000 picoseconds.
323
		Weight::from_parts(14_057_000, 3636)
324
			.saturating_add(T::DbWeight::get().reads(1_u64))
325
			.saturating_add(T::DbWeight::get().writes(1_u64))
326
	}
327
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
328
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
329
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
330
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
331
	/// Storage: `Balances::Locks` (r:1 w:1)
332
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
333
	/// Storage: `Balances::Freezes` (r:1 w:0)
334
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
335
	/// Storage: `System::Account` (r:1 w:1)
336
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
337
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
338
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
339
	/// The range of component `x` is `[1, 200]`.
340
	fn execute_candidate_bond_less(x: u32, ) -> Weight {
341
		// Proof Size summary in bytes:
342
		//  Measured:  `1322 + x * (42 ±0)`
343
		//  Estimated: `4752 + x * (43 ±0)`
344
		// Minimum execution time: 48_763_000 picoseconds.
345
		Weight::from_parts(57_352_095, 4752)
346
			// Standard Error: 1_541
347
			.saturating_add(Weight::from_parts(74_732, 0).saturating_mul(x.into()))
348
			.saturating_add(T::DbWeight::get().reads(6_u64))
349
			.saturating_add(T::DbWeight::get().writes(5_u64))
350
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
351
	}
352
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
353
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
354
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
355
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
356
	/// Storage: `Balances::Locks` (r:1 w:1)
357
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
358
	/// Storage: `Balances::Freezes` (r:1 w:0)
359
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
360
	/// Storage: `System::Account` (r:1 w:1)
361
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
362
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
363
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
364
	/// The range of component `x` is `[1, 200]`.
365
	fn set_candidate_bond_to_zero(x: u32, ) -> Weight {
366
		// Proof Size summary in bytes:
367
		//  Measured:  `1302 + x * (42 ±0)`
368
		//  Estimated: `4752 + x * (43 ±0)`
369
		// Minimum execution time: 45_098_000 picoseconds.
370
		Weight::from_parts(52_487_005, 4752)
371
			// Standard Error: 1_531
372
			.saturating_add(Weight::from_parts(74_799, 0).saturating_mul(x.into()))
373
			.saturating_add(T::DbWeight::get().reads(6_u64))
374
			.saturating_add(T::DbWeight::get().writes(5_u64))
375
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
376
	}
377
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
378
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
379
	fn cancel_candidate_bond_less() -> Weight {
380
		// Proof Size summary in bytes:
381
		//  Measured:  `191`
382
		//  Estimated: `3656`
383
		// Minimum execution time: 12_454_000 picoseconds.
384
		Weight::from_parts(13_046_000, 3656)
385
			.saturating_add(T::DbWeight::get().reads(1_u64))
386
			.saturating_add(T::DbWeight::get().writes(1_u64))
387
	}
388
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
389
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
390
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
391
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
392
	/// The range of component `x` is `[0, 349]`.
393
	fn schedule_revoke_delegation(x: u32, ) -> Weight {
394
		// Proof Size summary in bytes:
395
		//  Measured:  `606 + x * (42 ±0)`
396
		//  Estimated: `4050 + x * (43 ±0)`
397
		// Minimum execution time: 16_689_000 picoseconds.
398
		Weight::from_parts(25_467_939, 4050)
399
			// Standard Error: 1_019
400
			.saturating_add(Weight::from_parts(77_310, 0).saturating_mul(x.into()))
401
			.saturating_add(T::DbWeight::get().reads(2_u64))
402
			.saturating_add(T::DbWeight::get().writes(2_u64))
403
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
404
	}
405
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
406
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
407
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
408
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
409
	/// Storage: `System::Account` (r:1 w:1)
410
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
411
	/// Storage: `Balances::Locks` (r:1 w:1)
412
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
413
	/// Storage: `Balances::Freezes` (r:1 w:0)
414
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
415
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
416
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
417
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
418
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
419
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
420
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
421
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
422
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
423
	/// The range of component `x` is `[0, 349]`.
424
	fn delegator_bond_more(x: u32, ) -> Weight {
425
		// Proof Size summary in bytes:
426
		//  Measured:  `2033 + x * (79 ±0)`
427
		//  Estimated: `5462 + x * (79 ±0)`
428
		// Minimum execution time: 66_492_000 picoseconds.
429
		Weight::from_parts(82_776_242, 5462)
430
			// Standard Error: 1_377
431
			.saturating_add(Weight::from_parts(109_942, 0).saturating_mul(x.into()))
432
			.saturating_add(T::DbWeight::get().reads(9_u64))
433
			.saturating_add(T::DbWeight::get().writes(7_u64))
434
			.saturating_add(Weight::from_parts(0, 79).saturating_mul(x.into()))
435
	}
436
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
437
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
438
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
439
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
440
	/// The range of component `x` is `[0, 349]`.
441
	fn schedule_delegator_bond_less(x: u32, ) -> Weight {
442
		// Proof Size summary in bytes:
443
		//  Measured:  `606 + x * (42 ±0)`
444
		//  Estimated: `4050 + x * (43 ±0)`
445
		// Minimum execution time: 17_022_000 picoseconds.
446
		Weight::from_parts(25_897_442, 4050)
447
			// Standard Error: 1_327
448
			.saturating_add(Weight::from_parts(76_868, 0).saturating_mul(x.into()))
449
			.saturating_add(T::DbWeight::get().reads(2_u64))
450
			.saturating_add(T::DbWeight::get().writes(2_u64))
451
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
452
	}
453
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
454
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
455
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
456
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
457
	/// Storage: `Balances::Locks` (r:1 w:1)
458
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
459
	/// Storage: `Balances::Freezes` (r:1 w:0)
460
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
461
	/// Storage: `System::Account` (r:1 w:1)
462
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
463
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:0)
464
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
465
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
466
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
467
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
468
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
469
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
470
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
471
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
472
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
473
	fn execute_revoke_delegation() -> Weight {
474
		// Proof Size summary in bytes:
475
		//  Measured:  `1037`
476
		//  Estimated: `4752`
477
		// Minimum execution time: 75_865_000 picoseconds.
478
		Weight::from_parts(78_215_000, 4752)
479
			.saturating_add(T::DbWeight::get().reads(10_u64))
480
			.saturating_add(T::DbWeight::get().writes(8_u64))
481
	}
482
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
483
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
484
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
485
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
486
	/// Storage: `Balances::Locks` (r:1 w:1)
487
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
488
	/// Storage: `Balances::Freezes` (r:1 w:0)
489
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
490
	/// Storage: `System::Account` (r:1 w:1)
491
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
492
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
493
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
494
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
495
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
496
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
497
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
498
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
499
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
500
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
501
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
502
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
503
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
504
	fn execute_delegator_revoke_delegation_worst() -> Weight {
505
		// Proof Size summary in bytes:
506
		//  Measured:  `37381`
507
		//  Estimated: `40846`
508
		// Minimum execution time: 146_079_000 picoseconds.
509
		Weight::from_parts(149_395_000, 40846)
510
			.saturating_add(T::DbWeight::get().reads(11_u64))
511
			.saturating_add(T::DbWeight::get().writes(10_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::CandidateInfo` (r:1 w:1)
518
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
519
	/// Storage: `Balances::Locks` (r:1 w:1)
520
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
521
	/// Storage: `Balances::Freezes` (r:1 w:0)
522
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
523
	/// Storage: `System::Account` (r:1 w:1)
524
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
525
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
526
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
527
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
528
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
529
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
530
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
531
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
532
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
533
	fn execute_delegator_bond_less_worst() -> Weight {
534
		// Proof Size summary in bytes:
535
		//  Measured:  `30003`
536
		//  Estimated: `33468`
537
		// Minimum execution time: 123_564_000 picoseconds.
538
		Weight::from_parts(126_590_000, 33468)
539
			.saturating_add(T::DbWeight::get().reads(10_u64))
540
			.saturating_add(T::DbWeight::get().writes(9_u64))
541
	}
542
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
543
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
544
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
545
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
546
	/// The range of component `x` is `[0, 349]`.
547
	fn cancel_delegation_request(x: u32, ) -> Weight {
548
		// Proof Size summary in bytes:
549
		//  Measured:  `703 + x * (42 ±0)`
550
		//  Estimated: `4132 + x * (43 ±0)`
551
		// Minimum execution time: 22_859_000 picoseconds.
552
		Weight::from_parts(29_070_905, 4132)
553
			// Standard Error: 690
554
			.saturating_add(Weight::from_parts(53_559, 0).saturating_mul(x.into()))
555
			.saturating_add(T::DbWeight::get().reads(2_u64))
556
			.saturating_add(T::DbWeight::get().writes(2_u64))
557
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
558
	}
559
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
560
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
561
5
	fn prepare_staking_payouts() -> Weight {
562
5
		// Proof Size summary in bytes:
563
5
		//  Measured:  `3`
564
5
		//  Estimated: `3468`
565
5
		// Minimum execution time: 2_889_000 picoseconds.
566
5
		Weight::from_parts(3_084_000, 3468)
567
5
			.saturating_add(T::DbWeight::get().reads(1_u64))
568
5
	}
569
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
570
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
571
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
572
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
573
	/// The range of component `y` is `[0, 100]`.
574
	fn get_rewardable_delegators(y: u32, ) -> Weight {
575
		// Proof Size summary in bytes:
576
		//  Measured:  `90 + y * (36 ±0)`
577
		//  Estimated: `3554 + y * (36 ±0)`
578
		// Minimum execution time: 7_222_000 picoseconds.
579
		Weight::from_parts(8_774_998, 3554)
580
			// Standard Error: 652
581
			.saturating_add(Weight::from_parts(46_442, 0).saturating_mul(y.into()))
582
			.saturating_add(T::DbWeight::get().reads(2_u64))
583
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
584
	}
585
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
586
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
587
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
588
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
589
	/// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
590
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
591
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:51 w:0)
592
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
593
	/// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
594
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
595
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
596
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
597
	/// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
598
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
599
	/// Storage: `ParachainStaking::AtStake` (r:0 w:51)
600
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
601
	/// The range of component `x` is `[0, 50]`.
602
	/// The range of component `y` is `[0, 100]`.
603
73
	fn select_top_candidates(x: u32, y: u32, ) -> Weight {
604
73
		// Proof Size summary in bytes:
605
73
		//  Measured:  `0 + x * (3816 ±0) + y * (1800 ±0)`
606
73
		//  Estimated: `3710 + x * (3975 ±39) + y * (639 ±19)`
607
73
		// Minimum execution time: 21_972_000 picoseconds.
608
73
		Weight::from_parts(22_407_000, 3710)
609
73
			// Standard Error: 92_316
610
73
			.saturating_add(Weight::from_parts(17_584_874, 0).saturating_mul(x.into()))
611
73
			// Standard Error: 46_035
612
73
			.saturating_add(Weight::from_parts(1_416_483, 0).saturating_mul(y.into()))
613
73
			.saturating_add(T::DbWeight::get().reads(6_u64))
614
73
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
615
73
			.saturating_add(T::DbWeight::get().writes(2_u64))
616
73
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
617
73
			.saturating_add(Weight::from_parts(0, 3975).saturating_mul(x.into()))
618
73
			.saturating_add(Weight::from_parts(0, 639).saturating_mul(y.into()))
619
73
	}
620
	/// Storage: `System::Account` (r:349 w:349)
621
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
622
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
623
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
624
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
625
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
626
	/// Storage: `Balances::Locks` (r:349 w:349)
627
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
628
	/// Storage: `Balances::Freezes` (r:349 w:0)
629
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
630
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
631
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
632
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
633
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
634
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
635
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
636
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
637
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
638
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
639
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
640
	/// The range of component `x` is `[0, 349]`.
641
	/// The range of component `y` is `[0, 349]`.
642
	/// The range of component `z` is `[0, 349]`.
643
2
	fn pay_one_collator_reward_best(x: u32, y: u32, z: u32, ) -> Weight {
644
2
		// Proof Size summary in bytes:
645
2
		//  Measured:  `0 + x * (396 ±0) + y * (156 ±0) + z * (41 ±0)`
646
2
		//  Estimated: `126409 + x * (2591 ±8) + y * (2234 ±1) + z * (28 ±0)`
647
2
		// Minimum execution time: 211_000 picoseconds.
648
2
		Weight::from_parts(222_000, 126409)
649
2
			// Standard Error: 495_840
650
2
			.saturating_add(Weight::from_parts(51_382_951, 0).saturating_mul(x.into()))
651
2
			// Standard Error: 495_840
652
2
			.saturating_add(Weight::from_parts(28_492_223, 0).saturating_mul(y.into()))
653
2
			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(x.into())))
654
2
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(y.into())))
655
2
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(x.into())))
656
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
657
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(x.into()))
658
2
			.saturating_add(Weight::from_parts(0, 2234).saturating_mul(y.into()))
659
2
			.saturating_add(Weight::from_parts(0, 28).saturating_mul(z.into()))
660
2
	}
661
	/// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
662
	/// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
663
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
664
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
665
	/// Storage: `ParachainStaking::AtStake` (r:2 w:1)
666
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
667
	/// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
668
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
669
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
670
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
671
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
672
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
673
	/// Storage: `System::Account` (r:301 w:301)
674
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
675
	/// The range of component `y` is `[0, 300]`.
676
2
	fn pay_one_collator_reward(y: u32, ) -> Weight {
677
2
		// Proof Size summary in bytes:
678
2
		//  Measured:  `1732 + y * (161 ±0)`
679
2
		//  Estimated: `7416 + y * (2591 ±0)`
680
2
		// Minimum execution time: 51_731_000 picoseconds.
681
2
		Weight::from_parts(41_649_003, 7416)
682
2
			// Standard Error: 9_117
683
2
			.saturating_add(Weight::from_parts(17_716_088, 0).saturating_mul(y.into()))
684
2
			.saturating_add(T::DbWeight::get().reads(8_u64))
685
2
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
686
2
			.saturating_add(T::DbWeight::get().writes(3_u64))
687
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
688
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
689
2
	}
690
6621
	fn base_on_initialize() -> Weight {
691
6621
		// Proof Size summary in bytes:
692
6621
		//  Measured:  `0`
693
6621
		//  Estimated: `0`
694
6621
		// Minimum execution time: 759_000 picoseconds.
695
6621
		Weight::from_parts(849_000, 0)
696
6621
	}
697
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
698
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
699
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
700
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
701
	/// The range of component `x` is `[0, 300]`.
702
	/// The range of component `y` is `[0, 100]`.
703
	fn set_auto_compound(x: u32, y: u32, ) -> Weight {
704
		// Proof Size summary in bytes:
705
		//  Measured:  `672 + x * (22 ±0) + y * (36 ±0)`
706
		//  Estimated: `4028 + x * (23 ±0) + y * (36 ±0)`
707
		// Minimum execution time: 27_346_000 picoseconds.
708
		Weight::from_parts(31_029_052, 4028)
709
			// Standard Error: 1_190
710
			.saturating_add(Weight::from_parts(32_793, 0).saturating_mul(x.into()))
711
			// Standard Error: 3_563
712
			.saturating_add(Weight::from_parts(55_793, 0).saturating_mul(y.into()))
713
			.saturating_add(T::DbWeight::get().reads(2_u64))
714
			.saturating_add(T::DbWeight::get().writes(1_u64))
715
			.saturating_add(Weight::from_parts(0, 23).saturating_mul(x.into()))
716
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
717
	}
718
	/// Storage: `System::Account` (r:1 w:1)
719
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
720
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
721
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
722
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
723
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
724
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
725
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
726
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
727
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
728
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
729
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
730
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
731
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
732
	/// Storage: `Balances::Locks` (r:1 w:1)
733
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
734
	/// Storage: `Balances::Freezes` (r:1 w:0)
735
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
736
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
737
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
738
	/// The range of component `x` is `[0, 350]`.
739
	/// The range of component `y` is `[0, 349]`.
740
	/// The range of component `z` is `[0, 99]`.
741
	fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
742
		// Proof Size summary in bytes:
743
		//  Measured:  `0 + x * (60 ±0) + y * (21 ±0) + z * (78 ±0)`
744
		//  Estimated: `26250 + x * (44 ±0) + y * (19 ±0) + z * (76 ±1)`
745
		// Minimum execution time: 103_696_000 picoseconds.
746
		Weight::from_parts(89_442_263, 26250)
747
			// Standard Error: 1_988
748
			.saturating_add(Weight::from_parts(132_105, 0).saturating_mul(x.into()))
749
			// Standard Error: 1_993
750
			.saturating_add(Weight::from_parts(4_030, 0).saturating_mul(y.into()))
751
			// Standard Error: 7_020
752
			.saturating_add(Weight::from_parts(190_950, 0).saturating_mul(z.into()))
753
			.saturating_add(T::DbWeight::get().reads(9_u64))
754
			.saturating_add(T::DbWeight::get().writes(8_u64))
755
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
756
			.saturating_add(Weight::from_parts(0, 19).saturating_mul(y.into()))
757
			.saturating_add(Weight::from_parts(0, 76).saturating_mul(z.into()))
758
	}
759
	/// Storage: `System::Account` (r:2 w:2)
760
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
761
	/// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
762
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
763
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
764
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
765
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
766
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
767
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
768
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
769
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
770
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
771
	/// Storage: `Balances::Locks` (r:2 w:2)
772
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
773
	/// Storage: `Balances::Freezes` (r:2 w:0)
774
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
775
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
776
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
777
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
778
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
779
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
780
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
781
	fn delegate_with_auto_compound_worst() -> Weight {
782
		// Proof Size summary in bytes:
783
		//  Measured:  `48170`
784
		//  Estimated: `54110`
785
		// Minimum execution time: 235_071_000 picoseconds.
786
		Weight::from_parts(241_031_000, 54110)
787
			.saturating_add(T::DbWeight::get().reads(15_u64))
788
			.saturating_add(T::DbWeight::get().writes(13_u64))
789
	}
790
	/// Storage: `System::Account` (r:1 w:1)
791
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
792
14
	fn mint_collator_reward() -> Weight {
793
14
		// Proof Size summary in bytes:
794
14
		//  Measured:  `128`
795
14
		//  Estimated: `3581`
796
14
		// Minimum execution time: 19_718_000 picoseconds.
797
14
		Weight::from_parts(20_526_000, 3581)
798
14
			.saturating_add(T::DbWeight::get().reads(1_u64))
799
14
			.saturating_add(T::DbWeight::get().writes(1_u64))
800
14
	}
801
	/// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
802
	/// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
803
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
804
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
805
	/// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
806
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
807
	/// Storage: `ParachainStaking::WasInactive` (r:2 w:0)
808
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
809
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
810
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
811
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
812
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
813
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
814
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
815
	fn notify_inactive_collator() -> Weight {
816
		// Proof Size summary in bytes:
817
		//  Measured:  `11212`
818
		//  Estimated: `17152`
819
		// Minimum execution time: 68_867_000 picoseconds.
820
		Weight::from_parts(71_101_000, 17152)
821
			.saturating_add(T::DbWeight::get().reads(8_u64))
822
			.saturating_add(T::DbWeight::get().writes(2_u64))
823
	}
824
	/// Storage: `ParachainStaking::AtStake` (r:52 w:0)
825
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
826
	/// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
827
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
828
	/// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
829
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
830
	/// The range of component `x` is `[0, 50]`.
831
5
	fn mark_collators_as_inactive(x: u32, ) -> Weight {
832
5
		// Proof Size summary in bytes:
833
5
		//  Measured:  `108 + x * (104 ±0)`
834
5
		//  Estimated: `6050 + x * (2580 ±0)`
835
5
		// Minimum execution time: 11_489_000 picoseconds.
836
5
		Weight::from_parts(16_377_506, 6050)
837
5
			// Standard Error: 14_862
838
5
			.saturating_add(Weight::from_parts(9_110_245, 0).saturating_mul(x.into()))
839
5
			.saturating_add(T::DbWeight::get().reads(3_u64))
840
5
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
841
5
			.saturating_add(T::DbWeight::get().writes(1_u64))
842
5
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
843
5
			.saturating_add(Weight::from_parts(0, 2580).saturating_mul(x.into()))
844
5
	}
845
}