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: `Michaels-MacBook-Pro-2.local`, CPU: `<UNKNOWN>`
24
//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
25

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

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

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

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