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

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

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

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

            
17

            
18
//! Autogenerated weights for `pallet_parachain_staking`
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
21
//! DATE: 2025-05-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-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: 9_426_000 picoseconds.
60
		Weight::from_parts(9_860_000, 1573)
61
			.saturating_add(T::DbWeight::get().reads(1_u64))
62
			.saturating_add(T::DbWeight::get().writes(1_u64))
63
	}
64
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
65
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
66
	fn set_inflation() -> Weight {
67
		// Proof Size summary in bytes:
68
		//  Measured:  `88`
69
		//  Estimated: `1573`
70
		// Minimum execution time: 37_612_000 picoseconds.
71
		Weight::from_parts(38_520_000, 1573)
72
			.saturating_add(T::DbWeight::get().reads(1_u64))
73
			.saturating_add(T::DbWeight::get().writes(1_u64))
74
	}
75
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
76
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
77
	fn set_parachain_bond_account() -> Weight {
78
		// Proof Size summary in bytes:
79
		//  Measured:  `30`
80
		//  Estimated: `1515`
81
		// Minimum execution time: 10_059_000 picoseconds.
82
		Weight::from_parts(10_544_000, 1515)
83
			.saturating_add(T::DbWeight::get().reads(1_u64))
84
			.saturating_add(T::DbWeight::get().writes(1_u64))
85
	}
86
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
87
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
88
	fn set_parachain_bond_reserve_percent() -> Weight {
89
		// Proof Size summary in bytes:
90
		//  Measured:  `30`
91
		//  Estimated: `1515`
92
		// Minimum execution time: 10_094_000 picoseconds.
93
		Weight::from_parts(10_480_000, 1515)
94
			.saturating_add(T::DbWeight::get().reads(1_u64))
95
			.saturating_add(T::DbWeight::get().writes(1_u64))
96
	}
97
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
98
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
99
	fn set_inflation_distribution_config() -> Weight {
100
		// Proof Size summary in bytes:
101
		//  Measured:  `30`
102
		//  Estimated: `1515`
103
		// Minimum execution time: 7_910_000 picoseconds.
104
		Weight::from_parts(8_288_000, 1515)
105
			.saturating_add(T::DbWeight::get().reads(1_u64))
106
			.saturating_add(T::DbWeight::get().writes(1_u64))
107
	}
108
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:1)
109
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
110
	fn set_total_selected() -> Weight {
111
		// Proof Size summary in bytes:
112
		//  Measured:  `28`
113
		//  Estimated: `1513`
114
		// Minimum execution time: 8_476_000 picoseconds.
115
		Weight::from_parts(8_722_000, 1513)
116
			.saturating_add(T::DbWeight::get().reads(1_u64))
117
			.saturating_add(T::DbWeight::get().writes(1_u64))
118
	}
119
	/// Storage: `ParachainStaking::CollatorCommission` (r:1 w:1)
120
	/// Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
121
	fn set_collator_commission() -> Weight {
122
		// Proof Size summary in bytes:
123
		//  Measured:  `27`
124
		//  Estimated: `1512`
125
		// Minimum execution time: 7_673_000 picoseconds.
126
		Weight::from_parts(7_904_000, 1512)
127
			.saturating_add(T::DbWeight::get().reads(1_u64))
128
			.saturating_add(T::DbWeight::get().writes(1_u64))
129
	}
130
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
131
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
132
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
133
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
134
	fn set_blocks_per_round() -> Weight {
135
		// Proof Size summary in bytes:
136
		//  Measured:  `116`
137
		//  Estimated: `1601`
138
		// Minimum execution time: 40_535_000 picoseconds.
139
		Weight::from_parts(41_343_000, 1601)
140
			.saturating_add(T::DbWeight::get().reads(2_u64))
141
			.saturating_add(T::DbWeight::get().writes(1_u64))
142
	}
143
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
144
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
145
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
146
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
147
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
148
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
149
	/// Storage: `System::Account` (r:1 w:1)
150
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
151
	/// Storage: `Balances::Locks` (r:1 w:1)
152
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
153
	/// Storage: `Balances::Freezes` (r:1 w:0)
154
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
155
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
156
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
157
	/// Storage: `ParachainStaking::TopDelegations` (r:0 w:1)
158
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
159
	/// Storage: `ParachainStaking::BottomDelegations` (r:0 w:1)
160
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
161
	/// The range of component `x` is `[3, 200]`.
162
	fn join_candidates(x: u32, ) -> Weight {
163
		// Proof Size summary in bytes:
164
		//  Measured:  `1417 + x * (38 ±0)`
165
		//  Estimated: `4752 + x * (41 ±0)`
166
		// Minimum execution time: 52_897_000 picoseconds.
167
		Weight::from_parts(63_349_267, 4752)
168
			// Standard Error: 3_447
169
			.saturating_add(Weight::from_parts(229_487, 0).saturating_mul(x.into()))
170
			.saturating_add(T::DbWeight::get().reads(7_u64))
171
			.saturating_add(T::DbWeight::get().writes(7_u64))
172
			.saturating_add(Weight::from_parts(0, 41).saturating_mul(x.into()))
173
	}
174
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
175
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
176
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
177
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
178
	/// The range of component `x` is `[3, 200]`.
179
	fn schedule_leave_candidates(x: u32, ) -> Weight {
180
		// Proof Size summary in bytes:
181
		//  Measured:  `665 + x * (37 ±0)`
182
		//  Estimated: `4023 + x * (38 ±0)`
183
		// Minimum execution time: 17_333_000 picoseconds.
184
		Weight::from_parts(24_055_835, 4023)
185
			// Standard Error: 2_424
186
			.saturating_add(Weight::from_parts(164_537, 0).saturating_mul(x.into()))
187
			.saturating_add(T::DbWeight::get().reads(2_u64))
188
			.saturating_add(T::DbWeight::get().writes(2_u64))
189
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
190
	}
191
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
192
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
193
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
194
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
195
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
196
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
197
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
198
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
199
	/// Storage: `Balances::Locks` (r:350 w:350)
200
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
201
	/// Storage: `Balances::Freezes` (r:350 w:0)
202
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
203
	/// Storage: `System::Account` (r:350 w:350)
204
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
205
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
206
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
207
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
208
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
209
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
210
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
211
	/// The range of component `x` is `[2, 350]`.
212
	fn execute_leave_candidates_worst_case(x: u32, ) -> Weight {
213
		// Proof Size summary in bytes:
214
		//  Measured:  `1597 + x * (431 ±0)`
215
		//  Estimated: `4885 + x * (3762 ±0)`
216
		// Minimum execution time: 116_246_000 picoseconds.
217
		Weight::from_parts(117_436_000, 4885)
218
			// Standard Error: 110_617
219
			.saturating_add(Weight::from_parts(42_137_427, 0).saturating_mul(x.into()))
220
			.saturating_add(T::DbWeight::get().reads(5_u64))
221
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
222
			.saturating_add(T::DbWeight::get().writes(5_u64))
223
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
224
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
225
	}
226
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
227
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
228
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
229
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
230
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
231
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
232
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
233
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
234
	/// Storage: `Balances::Locks` (r:350 w:350)
235
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
236
	/// Storage: `Balances::Freezes` (r:350 w:0)
237
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
238
	/// Storage: `System::Account` (r:350 w:350)
239
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
240
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
241
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
242
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
243
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
244
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
245
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
246
	/// The range of component `x` is `[2, 350]`.
247
	/// The range of component `y` is `[2, 350]`.
248
	fn execute_leave_candidates_ideal(x: u32, _y: u32, ) -> Weight {
249
		// Proof Size summary in bytes:
250
		//  Measured:  `1591 + x * (431 ±0)`
251
		//  Estimated: `4866 + x * (3762 ±0)`
252
		// Minimum execution time: 107_071_000 picoseconds.
253
		Weight::from_parts(110_688_000, 4866)
254
			// Standard Error: 42_992
255
			.saturating_add(Weight::from_parts(43_581_968, 0).saturating_mul(x.into()))
256
			.saturating_add(T::DbWeight::get().reads(5_u64))
257
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
258
			.saturating_add(T::DbWeight::get().writes(5_u64))
259
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
260
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
261
	}
262
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
263
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
264
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
265
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
266
	/// The range of component `x` is `[3, 200]`.
267
	fn cancel_leave_candidates(x: u32, ) -> Weight {
268
		// Proof Size summary in bytes:
269
		//  Measured:  `633 + x * (37 ±0)`
270
		//  Estimated: `3991 + x * (38 ±0)`
271
		// Minimum execution time: 16_968_000 picoseconds.
272
		Weight::from_parts(23_176_357, 3991)
273
			// Standard Error: 2_313
274
			.saturating_add(Weight::from_parts(164_539, 0).saturating_mul(x.into()))
275
			.saturating_add(T::DbWeight::get().reads(2_u64))
276
			.saturating_add(T::DbWeight::get().writes(2_u64))
277
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
278
	}
279
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
280
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
281
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
282
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
283
	/// The range of component `x` is `[1, 200]`.
284
1
	fn go_offline(x: u32, ) -> Weight {
285
1
		// Proof Size summary in bytes:
286
1
		//  Measured:  `530 + x * (38 ±0)`
287
1
		//  Estimated: `3931 + x * (39 ±0)`
288
1
		// Minimum execution time: 16_284_000 picoseconds.
289
1
		Weight::from_parts(20_551_388, 3931)
290
1
			// Standard Error: 1_823
291
1
			.saturating_add(Weight::from_parts(170_658, 0).saturating_mul(x.into()))
292
1
			.saturating_add(T::DbWeight::get().reads(2_u64))
293
1
			.saturating_add(T::DbWeight::get().writes(2_u64))
294
1
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
295
1
	}
296
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
297
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
298
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
299
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
300
	/// The range of component `x` is `[1, 200]`.
301
	fn go_online(x: u32, ) -> Weight {
302
		// Proof Size summary in bytes:
303
		//  Measured:  `494 + x * (38 ±0)`
304
		//  Estimated: `3895 + x * (39 ±0)`
305
		// Minimum execution time: 16_256_000 picoseconds.
306
		Weight::from_parts(21_334_345, 3895)
307
			// Standard Error: 2_143
308
			.saturating_add(Weight::from_parts(164_289, 0).saturating_mul(x.into()))
309
			.saturating_add(T::DbWeight::get().reads(2_u64))
310
			.saturating_add(T::DbWeight::get().writes(2_u64))
311
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
312
	}
313
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
314
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
315
	/// Storage: `System::Account` (r:1 w:1)
316
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
317
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
318
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
319
	/// Storage: `Balances::Locks` (r:1 w:1)
320
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
321
	/// Storage: `Balances::Freezes` (r:1 w:0)
322
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
323
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
324
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
325
	/// The range of component `x` is `[1, 200]`.
326
	fn candidate_bond_more(x: u32, ) -> Weight {
327
		// Proof Size summary in bytes:
328
		//  Measured:  `1233 + x * (42 ±0)`
329
		//  Estimated: `4752 + x * (44 ±0)`
330
		// Minimum execution time: 48_767_000 picoseconds.
331
		Weight::from_parts(55_830_355, 4752)
332
			// Standard Error: 2_789
333
			.saturating_add(Weight::from_parts(252_279, 0).saturating_mul(x.into()))
334
			.saturating_add(T::DbWeight::get().reads(6_u64))
335
			.saturating_add(T::DbWeight::get().writes(5_u64))
336
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
337
	}
338
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
339
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
340
	fn schedule_candidate_bond_less() -> Weight {
341
		// Proof Size summary in bytes:
342
		//  Measured:  `171`
343
		//  Estimated: `3636`
344
		// Minimum execution time: 14_280_000 picoseconds.
345
		Weight::from_parts(14_866_000, 3636)
346
			.saturating_add(T::DbWeight::get().reads(1_u64))
347
			.saturating_add(T::DbWeight::get().writes(1_u64))
348
	}
349
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
350
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
351
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
352
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
353
	/// Storage: `Balances::Locks` (r:1 w:1)
354
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
355
	/// Storage: `Balances::Freezes` (r:1 w:0)
356
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
357
	/// Storage: `System::Account` (r:1 w:1)
358
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
359
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
360
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
361
	/// The range of component `x` is `[1, 200]`.
362
	fn execute_candidate_bond_less(x: u32, ) -> Weight {
363
		// Proof Size summary in bytes:
364
		//  Measured:  `1322 + x * (42 ±0)`
365
		//  Estimated: `4752 + x * (43 ±0)`
366
		// Minimum execution time: 55_108_000 picoseconds.
367
		Weight::from_parts(64_179_744, 4752)
368
			// Standard Error: 2_769
369
			.saturating_add(Weight::from_parts(212_286, 0).saturating_mul(x.into()))
370
			.saturating_add(T::DbWeight::get().reads(6_u64))
371
			.saturating_add(T::DbWeight::get().writes(5_u64))
372
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
373
	}
374
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
375
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
376
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
377
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
378
	/// Storage: `Balances::Locks` (r:1 w:1)
379
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
380
	/// Storage: `Balances::Freezes` (r:1 w:0)
381
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
382
	/// Storage: `System::Account` (r:1 w:1)
383
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
384
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
385
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
386
	/// The range of component `x` is `[1, 200]`.
387
	fn set_candidate_bond_to_zero(x: u32, ) -> Weight {
388
		// Proof Size summary in bytes:
389
		//  Measured:  `1302 + x * (42 ±0)`
390
		//  Estimated: `4752 + x * (43 ±0)`
391
		// Minimum execution time: 50_106_000 picoseconds.
392
		Weight::from_parts(58_174_600, 4752)
393
			// Standard Error: 2_450
394
			.saturating_add(Weight::from_parts(187_897, 0).saturating_mul(x.into()))
395
			.saturating_add(T::DbWeight::get().reads(6_u64))
396
			.saturating_add(T::DbWeight::get().writes(5_u64))
397
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
398
	}
399
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
400
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
401
	fn cancel_candidate_bond_less() -> Weight {
402
		// Proof Size summary in bytes:
403
		//  Measured:  `191`
404
		//  Estimated: `3656`
405
		// Minimum execution time: 13_467_000 picoseconds.
406
		Weight::from_parts(13_954_000, 3656)
407
			.saturating_add(T::DbWeight::get().reads(1_u64))
408
			.saturating_add(T::DbWeight::get().writes(1_u64))
409
	}
410
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
411
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
412
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
413
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
414
	/// The range of component `x` is `[0, 349]`.
415
	fn schedule_revoke_delegation(x: u32, ) -> Weight {
416
		// Proof Size summary in bytes:
417
		//  Measured:  `606 + x * (42 ±0)`
418
		//  Estimated: `4050 + x * (43 ±0)`
419
		// Minimum execution time: 17_543_000 picoseconds.
420
		Weight::from_parts(27_643_133, 4050)
421
			// Standard Error: 2_247
422
			.saturating_add(Weight::from_parts(159_536, 0).saturating_mul(x.into()))
423
			.saturating_add(T::DbWeight::get().reads(2_u64))
424
			.saturating_add(T::DbWeight::get().writes(2_u64))
425
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
426
	}
427
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
428
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
429
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
430
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
431
	/// Storage: `System::Account` (r:1 w:1)
432
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
433
	/// Storage: `Balances::Locks` (r:1 w:1)
434
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
435
	/// Storage: `Balances::Freezes` (r:1 w:0)
436
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
437
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
438
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
439
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
440
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
441
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
442
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
443
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
444
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
445
	/// The range of component `x` is `[0, 349]`.
446
	fn delegator_bond_more(x: u32, ) -> Weight {
447
		// Proof Size summary in bytes:
448
		//  Measured:  `2034 + x * (79 ±0)`
449
		//  Estimated: `5460 + x * (79 ±0)`
450
		// Minimum execution time: 70_410_000 picoseconds.
451
		Weight::from_parts(90_080_033, 5460)
452
			// Standard Error: 2_634
453
			.saturating_add(Weight::from_parts(226_105, 0).saturating_mul(x.into()))
454
			.saturating_add(T::DbWeight::get().reads(9_u64))
455
			.saturating_add(T::DbWeight::get().writes(7_u64))
456
			.saturating_add(Weight::from_parts(0, 79).saturating_mul(x.into()))
457
	}
458
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
459
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
460
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
461
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
462
	/// The range of component `x` is `[0, 349]`.
463
	fn schedule_delegator_bond_less(x: u32, ) -> Weight {
464
		// Proof Size summary in bytes:
465
		//  Measured:  `606 + x * (42 ±0)`
466
		//  Estimated: `4050 + x * (43 ±0)`
467
		// Minimum execution time: 18_134_000 picoseconds.
468
		Weight::from_parts(28_242_317, 4050)
469
			// Standard Error: 2_079
470
			.saturating_add(Weight::from_parts(165_544, 0).saturating_mul(x.into()))
471
			.saturating_add(T::DbWeight::get().reads(2_u64))
472
			.saturating_add(T::DbWeight::get().writes(2_u64))
473
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
474
	}
475
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
476
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
477
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
478
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
479
	/// Storage: `Balances::Locks` (r:1 w:1)
480
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
481
	/// Storage: `Balances::Freezes` (r:1 w:0)
482
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
483
	/// Storage: `System::Account` (r:1 w:1)
484
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
485
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:0)
486
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
487
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
488
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
489
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
490
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
491
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
492
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
493
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
494
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
495
	fn execute_revoke_delegation() -> Weight {
496
		// Proof Size summary in bytes:
497
		//  Measured:  `1037`
498
		//  Estimated: `4752`
499
		// Minimum execution time: 85_989_000 picoseconds.
500
		Weight::from_parts(88_377_000, 4752)
501
			.saturating_add(T::DbWeight::get().reads(10_u64))
502
			.saturating_add(T::DbWeight::get().writes(8_u64))
503
	}
504
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
505
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
506
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
507
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
508
	/// Storage: `Balances::Locks` (r:1 w:1)
509
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
510
	/// Storage: `Balances::Freezes` (r:1 w:0)
511
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
512
	/// Storage: `System::Account` (r:1 w:1)
513
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
514
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
515
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
516
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
517
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
518
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
519
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
520
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
521
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
522
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
523
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
524
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
525
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
526
	fn execute_delegator_revoke_delegation_worst() -> Weight {
527
		// Proof Size summary in bytes:
528
		//  Measured:  `37381`
529
		//  Estimated: `40846`
530
		// Minimum execution time: 186_069_000 picoseconds.
531
		Weight::from_parts(205_707_000, 40846)
532
			.saturating_add(T::DbWeight::get().reads(11_u64))
533
			.saturating_add(T::DbWeight::get().writes(10_u64))
534
	}
535
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
536
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
537
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
538
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
539
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
540
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
541
	/// Storage: `Balances::Locks` (r:1 w:1)
542
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
543
	/// Storage: `Balances::Freezes` (r:1 w:0)
544
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
545
	/// Storage: `System::Account` (r:1 w:1)
546
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
547
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
548
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
549
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
550
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
551
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
552
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
553
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
554
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
555
	fn execute_delegator_bond_less_worst() -> Weight {
556
		// Proof Size summary in bytes:
557
		//  Measured:  `30003`
558
		//  Estimated: `33468`
559
		// Minimum execution time: 168_934_000 picoseconds.
560
		Weight::from_parts(179_050_000, 33468)
561
			.saturating_add(T::DbWeight::get().reads(10_u64))
562
			.saturating_add(T::DbWeight::get().writes(9_u64))
563
	}
564
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
565
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
566
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
567
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
568
	/// The range of component `x` is `[0, 349]`.
569
	fn cancel_delegation_request(x: u32, ) -> Weight {
570
		// Proof Size summary in bytes:
571
		//  Measured:  `703 + x * (42 ±0)`
572
		//  Estimated: `4132 + x * (43 ±0)`
573
		// Minimum execution time: 28_566_000 picoseconds.
574
		Weight::from_parts(36_586_899, 4132)
575
			// Standard Error: 1_319
576
			.saturating_add(Weight::from_parts(123_143, 0).saturating_mul(x.into()))
577
			.saturating_add(T::DbWeight::get().reads(2_u64))
578
			.saturating_add(T::DbWeight::get().writes(2_u64))
579
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
580
	}
581
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
582
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
583
5
	fn prepare_staking_payouts() -> Weight {
584
5
		// Proof Size summary in bytes:
585
5
		//  Measured:  `3`
586
5
		//  Estimated: `3468`
587
5
		// Minimum execution time: 3_197_000 picoseconds.
588
5
		Weight::from_parts(3_321_000, 3468)
589
5
			.saturating_add(T::DbWeight::get().reads(1_u64))
590
5
	}
591
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
592
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
593
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
594
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
595
	/// The range of component `y` is `[0, 100]`.
596
	fn get_rewardable_delegators(y: u32, ) -> Weight {
597
		// Proof Size summary in bytes:
598
		//  Measured:  `90 + y * (36 ±0)`
599
		//  Estimated: `3554 + y * (36 ±0)`
600
		// Minimum execution time: 7_979_000 picoseconds.
601
		Weight::from_parts(9_055_631, 3554)
602
			// Standard Error: 883
603
			.saturating_add(Weight::from_parts(73_821, 0).saturating_mul(y.into()))
604
			.saturating_add(T::DbWeight::get().reads(2_u64))
605
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
606
	}
607
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
608
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
609
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
610
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
611
	/// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
612
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
613
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:51 w:0)
614
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
615
	/// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
616
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
617
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
618
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
619
	/// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
620
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
621
	/// Storage: `ParachainStaking::AtStake` (r:0 w:51)
622
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
623
	/// The range of component `x` is `[0, 50]`.
624
	/// The range of component `y` is `[0, 100]`.
625
71
	fn select_top_candidates(x: u32, y: u32, ) -> Weight {
626
71
		// Proof Size summary in bytes:
627
71
		//  Measured:  `0 + x * (3816 ±0) + y * (1800 ±0)`
628
71
		//  Estimated: `3710 + x * (3975 ±39) + y * (639 ±19)`
629
71
		// Minimum execution time: 23_239_000 picoseconds.
630
71
		Weight::from_parts(23_772_000, 3710)
631
71
			// Standard Error: 94_021
632
71
			.saturating_add(Weight::from_parts(20_836_818, 0).saturating_mul(x.into()))
633
71
			// Standard Error: 46_886
634
71
			.saturating_add(Weight::from_parts(1_822_913, 0).saturating_mul(y.into()))
635
71
			.saturating_add(T::DbWeight::get().reads(6_u64))
636
71
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
637
71
			.saturating_add(T::DbWeight::get().writes(2_u64))
638
71
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
639
71
			.saturating_add(Weight::from_parts(0, 3975).saturating_mul(x.into()))
640
71
			.saturating_add(Weight::from_parts(0, 639).saturating_mul(y.into()))
641
71
	}
642
	/// Storage: `System::Account` (r:349 w:349)
643
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
644
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
645
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
646
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
647
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
648
	/// Storage: `Balances::Locks` (r:349 w:349)
649
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
650
	/// Storage: `Balances::Freezes` (r:349 w:0)
651
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
652
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
653
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
654
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
655
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
656
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
657
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
658
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
659
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
660
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
661
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
662
	/// The range of component `x` is `[0, 349]`.
663
	/// The range of component `y` is `[0, 349]`.
664
	/// The range of component `z` is `[0, 349]`.
665
2
	fn pay_one_collator_reward_best(x: u32, y: u32, z: u32, ) -> Weight {
666
2
		// Proof Size summary in bytes:
667
2
		//  Measured:  `0 + x * (395 ±0) + y * (156 ±0) + z * (41 ±0)`
668
2
		//  Estimated: `126229 + x * (2591 ±0) + y * (2234 ±20) + z * (28 ±0)`
669
2
		// Minimum execution time: 200_000 picoseconds.
670
2
		Weight::from_parts(212_000, 126229)
671
2
			// Standard Error: 548_882
672
2
			.saturating_add(Weight::from_parts(56_706_200, 0).saturating_mul(x.into()))
673
2
			// Standard Error: 548_882
674
2
			.saturating_add(Weight::from_parts(31_926_282, 0).saturating_mul(y.into()))
675
2
			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(x.into())))
676
2
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(y.into())))
677
2
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(x.into())))
678
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
679
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(x.into()))
680
2
			.saturating_add(Weight::from_parts(0, 2234).saturating_mul(y.into()))
681
2
			.saturating_add(Weight::from_parts(0, 28).saturating_mul(z.into()))
682
2
	}
683
	/// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
684
	/// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
685
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
686
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
687
	/// Storage: `ParachainStaking::AtStake` (r:2 w:1)
688
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
689
	/// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
690
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
691
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
692
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
693
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
694
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
695
	/// Storage: `System::Account` (r:301 w:301)
696
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
697
	/// The range of component `y` is `[0, 300]`.
698
2
	fn pay_one_collator_reward(y: u32, ) -> Weight {
699
2
		// Proof Size summary in bytes:
700
2
		//  Measured:  `1673 + y * (161 ±0)`
701
2
		//  Estimated: `7367 + y * (2591 ±0)`
702
2
		// Minimum execution time: 55_391_000 picoseconds.
703
2
		Weight::from_parts(40_830_360, 7367)
704
2
			// Standard Error: 16_044
705
2
			.saturating_add(Weight::from_parts(18_779_413, 0).saturating_mul(y.into()))
706
2
			.saturating_add(T::DbWeight::get().reads(8_u64))
707
2
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
708
2
			.saturating_add(T::DbWeight::get().writes(3_u64))
709
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
710
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
711
2
	}
712
6621
	fn base_on_initialize() -> Weight {
713
6621
		// Proof Size summary in bytes:
714
6621
		//  Measured:  `0`
715
6621
		//  Estimated: `0`
716
6621
		// Minimum execution time: 769_000 picoseconds.
717
6621
		Weight::from_parts(865_000, 0)
718
6621
	}
719
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
720
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
721
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
722
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
723
	/// The range of component `x` is `[0, 300]`.
724
	/// The range of component `y` is `[0, 100]`.
725
	fn set_auto_compound(x: u32, y: u32, ) -> Weight {
726
		// Proof Size summary in bytes:
727
		//  Measured:  `672 + x * (22 ±0) + y * (36 ±0)`
728
		//  Estimated: `4028 + x * (23 ±0) + y * (36 ±0)`
729
		// Minimum execution time: 31_195_000 picoseconds.
730
		Weight::from_parts(38_288_456, 4028)
731
			// Standard Error: 1_616
732
			.saturating_add(Weight::from_parts(93_771, 0).saturating_mul(x.into()))
733
			// Standard Error: 4_837
734
			.saturating_add(Weight::from_parts(98_289, 0).saturating_mul(y.into()))
735
			.saturating_add(T::DbWeight::get().reads(2_u64))
736
			.saturating_add(T::DbWeight::get().writes(1_u64))
737
			.saturating_add(Weight::from_parts(0, 23).saturating_mul(x.into()))
738
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
739
	}
740
	/// Storage: `System::Account` (r:1 w:1)
741
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
742
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
743
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
744
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
745
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
746
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
747
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
748
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
749
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
750
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
751
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
752
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
753
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
754
	/// Storage: `Balances::Locks` (r:1 w:1)
755
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
756
	/// Storage: `Balances::Freezes` (r:1 w:0)
757
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
758
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
759
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
760
	/// The range of component `x` is `[0, 350]`.
761
	/// The range of component `y` is `[0, 349]`.
762
	/// The range of component `z` is `[0, 99]`.
763
	fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
764
		// Proof Size summary in bytes:
765
		//  Measured:  `0 + x * (60 ±0) + y * (21 ±0) + z * (78 ±0)`
766
		//  Estimated: `26250 + x * (44 ±0) + y * (19 ±0) + z * (76 ±1)`
767
		// Minimum execution time: 118_480_000 picoseconds.
768
		Weight::from_parts(95_627_977, 26250)
769
			// Standard Error: 2_836
770
			.saturating_add(Weight::from_parts(243_540, 0).saturating_mul(x.into()))
771
			// Standard Error: 10_015
772
			.saturating_add(Weight::from_parts(387_112, 0).saturating_mul(z.into()))
773
			.saturating_add(T::DbWeight::get().reads(9_u64))
774
			.saturating_add(T::DbWeight::get().writes(8_u64))
775
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
776
			.saturating_add(Weight::from_parts(0, 19).saturating_mul(y.into()))
777
			.saturating_add(Weight::from_parts(0, 76).saturating_mul(z.into()))
778
	}
779
	/// Storage: `System::Account` (r:2 w:2)
780
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
781
	/// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
782
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
783
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
784
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
785
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
786
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
787
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
788
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
789
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
790
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
791
	/// Storage: `Balances::Locks` (r:2 w:2)
792
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
793
	/// Storage: `Balances::Freezes` (r:2 w:0)
794
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
795
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
796
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
797
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
798
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
799
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
800
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
801
	fn delegate_with_auto_compound_worst() -> Weight {
802
		// Proof Size summary in bytes:
803
		//  Measured:  `48170`
804
		//  Estimated: `54110`
805
		// Minimum execution time: 298_016_000 picoseconds.
806
		Weight::from_parts(331_231_000, 54110)
807
			.saturating_add(T::DbWeight::get().reads(15_u64))
808
			.saturating_add(T::DbWeight::get().writes(13_u64))
809
	}
810
	/// Storage: `System::Account` (r:1 w:1)
811
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
812
14
	fn mint_collator_reward() -> Weight {
813
14
		// Proof Size summary in bytes:
814
14
		//  Measured:  `128`
815
14
		//  Estimated: `3581`
816
14
		// Minimum execution time: 19_761_000 picoseconds.
817
14
		Weight::from_parts(20_291_000, 3581)
818
14
			.saturating_add(T::DbWeight::get().reads(1_u64))
819
14
			.saturating_add(T::DbWeight::get().writes(1_u64))
820
14
	}
821
	/// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
822
	/// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
823
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
824
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
825
	/// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
826
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
827
	/// Storage: `ParachainStaking::WasInactive` (r:2 w:0)
828
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
829
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
830
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
831
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
832
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
833
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
834
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
835
	fn notify_inactive_collator() -> Weight {
836
		// Proof Size summary in bytes:
837
		//  Measured:  `11212`
838
		//  Estimated: `17152`
839
		// Minimum execution time: 103_145_000 picoseconds.
840
		Weight::from_parts(114_889_000, 17152)
841
			.saturating_add(T::DbWeight::get().reads(8_u64))
842
			.saturating_add(T::DbWeight::get().writes(2_u64))
843
	}
844
	/// Storage: `ParachainStaking::AtStake` (r:52 w:0)
845
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
846
	/// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
847
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
848
	/// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
849
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
850
	/// The range of component `x` is `[0, 50]`.
851
5
	fn mark_collators_as_inactive(x: u32, ) -> Weight {
852
5
		// Proof Size summary in bytes:
853
5
		//  Measured:  `108 + x * (104 ±0)`
854
5
		//  Estimated: `6050 + x * (2580 ±0)`
855
5
		// Minimum execution time: 11_959_000 picoseconds.
856
5
		Weight::from_parts(11_852_035, 6050)
857
5
			// Standard Error: 26_429
858
5
			.saturating_add(Weight::from_parts(10_386_679, 0).saturating_mul(x.into()))
859
5
			.saturating_add(T::DbWeight::get().reads(3_u64))
860
5
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
861
5
			.saturating_add(T::DbWeight::get().writes(1_u64))
862
5
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
863
5
			.saturating_add(Weight::from_parts(0, 2580).saturating_mul(x.into()))
864
5
	}
865
}