1
// Copyright 2024 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
//! Autogenerated weights for `pallet_parachain_staking`
18
//!
19
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 43.0.0
20
//! DATE: 2025-02-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21
//! WORST CASE MAP SIZE: `1000000`
22
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
23
//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
24

            
25
// Executed Command:
26
// ./target/production/moonbeam
27
// benchmark
28
// pallet
29
// --runtime=./target/production/wbuild/moonriver-runtime/moonriver_runtime.wasm
30
// --genesis-builder=runtime
31
// --genesis-builder-preset=development
32
// --steps=50
33
// --repeat=20
34
// --pallet=pallet_parachain_staking
35
// --extrinsic=*
36
// --wasm-execution=compiled
37
// --header=./file_header.txt
38
// --template=./benchmarking/frame-weight-template.hbs
39
// --output=./runtime/moonriver/src/weights/
40

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

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

            
48
/// Weights for `pallet_parachain_staking`.
49
pub struct WeightInfo<T>(PhantomData<T>);
50
impl<T: frame_system::Config> pallet_parachain_staking::WeightInfo for WeightInfo<T> {
51
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
52
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
53
	fn set_staking_expectations() -> Weight {
54
		// Proof Size summary in bytes:
55
		//  Measured:  `88`
56
		//  Estimated: `1573`
57
		// Minimum execution time: 9_233_000 picoseconds.
58
		Weight::from_parts(9_692_000, 1573)
59
			.saturating_add(T::DbWeight::get().reads(1_u64))
60
			.saturating_add(T::DbWeight::get().writes(1_u64))
61
	}
62
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
63
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
64
	fn set_inflation() -> Weight {
65
		// Proof Size summary in bytes:
66
		//  Measured:  `88`
67
		//  Estimated: `1573`
68
		// Minimum execution time: 37_509_000 picoseconds.
69
		Weight::from_parts(38_002_000, 1573)
70
			.saturating_add(T::DbWeight::get().reads(1_u64))
71
			.saturating_add(T::DbWeight::get().writes(1_u64))
72
	}
73
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
74
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
75
	fn set_parachain_bond_account() -> Weight {
76
		// Proof Size summary in bytes:
77
		//  Measured:  `30`
78
		//  Estimated: `1515`
79
		// Minimum execution time: 10_260_000 picoseconds.
80
		Weight::from_parts(10_706_000, 1515)
81
			.saturating_add(T::DbWeight::get().reads(1_u64))
82
			.saturating_add(T::DbWeight::get().writes(1_u64))
83
	}
84
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
85
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
86
	fn set_parachain_bond_reserve_percent() -> Weight {
87
		// Proof Size summary in bytes:
88
		//  Measured:  `30`
89
		//  Estimated: `1515`
90
		// Minimum execution time: 10_403_000 picoseconds.
91
		Weight::from_parts(10_663_000, 1515)
92
			.saturating_add(T::DbWeight::get().reads(1_u64))
93
			.saturating_add(T::DbWeight::get().writes(1_u64))
94
	}
95
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
96
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
97
	fn set_inflation_distribution_config() -> Weight {
98
		// Proof Size summary in bytes:
99
		//  Measured:  `30`
100
		//  Estimated: `1515`
101
		// Minimum execution time: 8_045_000 picoseconds.
102
		Weight::from_parts(8_265_000, 1515)
103
			.saturating_add(T::DbWeight::get().reads(1_u64))
104
			.saturating_add(T::DbWeight::get().writes(1_u64))
105
	}
106
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:1)
107
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
108
	fn set_total_selected() -> Weight {
109
		// Proof Size summary in bytes:
110
		//  Measured:  `28`
111
		//  Estimated: `1513`
112
		// Minimum execution time: 8_475_000 picoseconds.
113
		Weight::from_parts(8_847_000, 1513)
114
			.saturating_add(T::DbWeight::get().reads(1_u64))
115
			.saturating_add(T::DbWeight::get().writes(1_u64))
116
	}
117
	/// Storage: `ParachainStaking::CollatorCommission` (r:1 w:1)
118
	/// Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
119
	fn set_collator_commission() -> Weight {
120
		// Proof Size summary in bytes:
121
		//  Measured:  `27`
122
		//  Estimated: `1512`
123
		// Minimum execution time: 7_980_000 picoseconds.
124
		Weight::from_parts(8_239_000, 1512)
125
			.saturating_add(T::DbWeight::get().reads(1_u64))
126
			.saturating_add(T::DbWeight::get().writes(1_u64))
127
	}
128
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
129
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
130
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
131
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
132
	fn set_blocks_per_round() -> Weight {
133
		// Proof Size summary in bytes:
134
		//  Measured:  `116`
135
		//  Estimated: `1601`
136
		// Minimum execution time: 40_545_000 picoseconds.
137
		Weight::from_parts(41_360_000, 1601)
138
			.saturating_add(T::DbWeight::get().reads(2_u64))
139
			.saturating_add(T::DbWeight::get().writes(1_u64))
140
	}
141
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
142
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
143
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
144
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
145
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
146
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
147
	/// Storage: `System::Account` (r:1 w:1)
148
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
149
	/// Storage: `Balances::Locks` (r:1 w:1)
150
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
151
	/// Storage: `Balances::Freezes` (r:1 w:0)
152
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
153
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
154
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
155
	/// Storage: `ParachainStaking::TopDelegations` (r:0 w:1)
156
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
157
	/// Storage: `ParachainStaking::BottomDelegations` (r:0 w:1)
158
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
159
	/// The range of component `x` is `[3, 200]`.
160
	fn join_candidates(x: u32, ) -> Weight {
161
		// Proof Size summary in bytes:
162
		//  Measured:  `1384 + x * (38 ±0)`
163
		//  Estimated: `4752 + x * (41 ±0)`
164
		// Minimum execution time: 52_136_000 picoseconds.
165
		Weight::from_parts(63_585_224, 4752)
166
			// Standard Error: 1_920
167
			.saturating_add(Weight::from_parts(89_089, 0).saturating_mul(x.into()))
168
			.saturating_add(T::DbWeight::get().reads(7_u64))
169
			.saturating_add(T::DbWeight::get().writes(7_u64))
170
			.saturating_add(Weight::from_parts(0, 41).saturating_mul(x.into()))
171
	}
172
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
173
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
174
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
175
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
176
	/// The range of component `x` is `[3, 200]`.
177
	fn schedule_leave_candidates(x: u32, ) -> Weight {
178
		// Proof Size summary in bytes:
179
		//  Measured:  `665 + x * (37 ±0)`
180
		//  Estimated: `4023 + x * (38 ±0)`
181
		// Minimum execution time: 17_650_000 picoseconds.
182
		Weight::from_parts(27_401_398, 4023)
183
			// Standard Error: 1_342
184
			.saturating_add(Weight::from_parts(66_013, 0).saturating_mul(x.into()))
185
			.saturating_add(T::DbWeight::get().reads(2_u64))
186
			.saturating_add(T::DbWeight::get().writes(2_u64))
187
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
188
	}
189
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
190
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
191
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
192
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
193
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
194
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
195
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
196
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
197
	/// Storage: `Balances::Locks` (r:350 w:350)
198
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
199
	/// Storage: `Balances::Freezes` (r:350 w:0)
200
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
201
	/// Storage: `System::Account` (r:350 w:350)
202
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
203
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
204
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
205
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
206
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
207
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
208
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
209
	/// The range of component `x` is `[2, 350]`.
210
	fn execute_leave_candidates_worst_case(x: u32, ) -> Weight {
211
		// Proof Size summary in bytes:
212
		//  Measured:  `1115 + x * (431 ±0)`
213
		//  Estimated: `4773 + x * (3762 ±0)`
214
		// Minimum execution time: 116_167_000 picoseconds.
215
		Weight::from_parts(117_483_000, 4773)
216
			// Standard Error: 76_497
217
			.saturating_add(Weight::from_parts(37_924_418, 0).saturating_mul(x.into()))
218
			.saturating_add(T::DbWeight::get().reads(5_u64))
219
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
220
			.saturating_add(T::DbWeight::get().writes(5_u64))
221
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
222
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
223
	}
224
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
225
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
226
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
227
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
228
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
229
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
230
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
231
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
232
	/// Storage: `Balances::Locks` (r:350 w:350)
233
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
234
	/// Storage: `Balances::Freezes` (r:350 w:0)
235
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
236
	/// Storage: `System::Account` (r:350 w:350)
237
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
238
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
239
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
240
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
241
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
242
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
243
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
244
	/// The range of component `x` is `[2, 350]`.
245
	/// The range of component `y` is `[2, 350]`.
246
	fn execute_leave_candidates_ideal(x: u32, _y: u32, ) -> Weight {
247
		// Proof Size summary in bytes:
248
		//  Measured:  `1106 + x * (431 ±0)`
249
		//  Estimated: `4773 + x * (3762 ±0)`
250
		// Minimum execution time: 106_266_000 picoseconds.
251
		Weight::from_parts(108_134_000, 4773)
252
			// Standard Error: 32_535
253
			.saturating_add(Weight::from_parts(39_947_018, 0).saturating_mul(x.into()))
254
			.saturating_add(T::DbWeight::get().reads(5_u64))
255
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
256
			.saturating_add(T::DbWeight::get().writes(5_u64))
257
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
258
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
259
	}
260
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
261
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
262
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
263
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
264
	/// The range of component `x` is `[3, 200]`.
265
	fn cancel_leave_candidates(x: u32, ) -> Weight {
266
		// Proof Size summary in bytes:
267
		//  Measured:  `633 + x * (37 ±0)`
268
		//  Estimated: `3991 + x * (38 ±0)`
269
		// Minimum execution time: 17_478_000 picoseconds.
270
		Weight::from_parts(26_910_309, 3991)
271
			// Standard Error: 1_370
272
			.saturating_add(Weight::from_parts(62_453, 0).saturating_mul(x.into()))
273
			.saturating_add(T::DbWeight::get().reads(2_u64))
274
			.saturating_add(T::DbWeight::get().writes(2_u64))
275
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
276
	}
277
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
278
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
279
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
280
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
281
	/// The range of component `x` is `[1, 200]`.
282
1
	fn go_offline(x: u32, ) -> Weight {
283
1
		// Proof Size summary in bytes:
284
1
		//  Measured:  `530 + x * (38 ±0)`
285
1
		//  Estimated: `3931 + x * (39 ±0)`
286
1
		// Minimum execution time: 16_289_000 picoseconds.
287
1
		Weight::from_parts(24_300_962, 3931)
288
1
			// Standard Error: 1_837
289
1
			.saturating_add(Weight::from_parts(77_743, 0).saturating_mul(x.into()))
290
1
			.saturating_add(T::DbWeight::get().reads(2_u64))
291
1
			.saturating_add(T::DbWeight::get().writes(2_u64))
292
1
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
293
1
	}
294
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
295
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
296
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
297
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
298
	/// The range of component `x` is `[1, 200]`.
299
	fn go_online(x: u32, ) -> Weight {
300
		// Proof Size summary in bytes:
301
		//  Measured:  `494 + x * (38 ±0)`
302
		//  Estimated: `3895 + x * (39 ±0)`
303
		// Minimum execution time: 16_205_000 picoseconds.
304
		Weight::from_parts(24_045_977, 3895)
305
			// Standard Error: 1_840
306
			.saturating_add(Weight::from_parts(79_149, 0).saturating_mul(x.into()))
307
			.saturating_add(T::DbWeight::get().reads(2_u64))
308
			.saturating_add(T::DbWeight::get().writes(2_u64))
309
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
310
	}
311
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
312
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
313
	/// Storage: `System::Account` (r:1 w:1)
314
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
315
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
316
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
317
	/// Storage: `Balances::Locks` (r:1 w:1)
318
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
319
	/// Storage: `Balances::Freezes` (r:1 w:0)
320
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
321
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
322
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
323
	/// The range of component `x` is `[1, 200]`.
324
	fn candidate_bond_more(x: u32, ) -> Weight {
325
		// Proof Size summary in bytes:
326
		//  Measured:  `1233 + x * (42 ±0)`
327
		//  Estimated: `4752 + x * (44 ±0)`
328
		// Minimum execution time: 48_928_000 picoseconds.
329
		Weight::from_parts(58_749_959, 4752)
330
			// Standard Error: 1_897
331
			.saturating_add(Weight::from_parts(93_899, 0).saturating_mul(x.into()))
332
			.saturating_add(T::DbWeight::get().reads(6_u64))
333
			.saturating_add(T::DbWeight::get().writes(5_u64))
334
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
335
	}
336
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
337
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
338
	fn schedule_candidate_bond_less() -> Weight {
339
		// Proof Size summary in bytes:
340
		//  Measured:  `171`
341
		//  Estimated: `3636`
342
		// Minimum execution time: 13_872_000 picoseconds.
343
		Weight::from_parts(14_472_000, 3636)
344
			.saturating_add(T::DbWeight::get().reads(1_u64))
345
			.saturating_add(T::DbWeight::get().writes(1_u64))
346
	}
347
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
348
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
349
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
350
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
351
	/// Storage: `Balances::Locks` (r:1 w:1)
352
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
353
	/// Storage: `Balances::Freezes` (r:1 w:0)
354
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
355
	/// Storage: `System::Account` (r:1 w:1)
356
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
357
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
358
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
359
	/// The range of component `x` is `[1, 200]`.
360
	fn execute_candidate_bond_less(x: u32, ) -> Weight {
361
		// Proof Size summary in bytes:
362
		//  Measured:  `1322 + x * (42 ±0)`
363
		//  Estimated: `4752 + x * (43 ±0)`
364
		// Minimum execution time: 56_901_000 picoseconds.
365
		Weight::from_parts(64_967_065, 4752)
366
			// Standard Error: 4_928
367
			.saturating_add(Weight::from_parts(87_206, 0).saturating_mul(x.into()))
368
			.saturating_add(T::DbWeight::get().reads(6_u64))
369
			.saturating_add(T::DbWeight::get().writes(5_u64))
370
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
371
	}
372
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
373
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
374
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
375
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
376
	/// Storage: `Balances::Locks` (r:1 w:1)
377
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
378
	/// Storage: `Balances::Freezes` (r:1 w:0)
379
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
380
	/// Storage: `System::Account` (r:1 w:1)
381
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
382
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
383
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
384
	/// The range of component `x` is `[1, 200]`.
385
	fn set_candidate_bond_to_zero(x: u32, ) -> Weight {
386
		// Proof Size summary in bytes:
387
		//  Measured:  `1302 + x * (42 ±0)`
388
		//  Estimated: `4752 + x * (43 ±0)`
389
		// Minimum execution time: 46_908_000 picoseconds.
390
		Weight::from_parts(54_768_707, 4752)
391
			// Standard Error: 1_257
392
			.saturating_add(Weight::from_parts(82_730, 0).saturating_mul(x.into()))
393
			.saturating_add(T::DbWeight::get().reads(6_u64))
394
			.saturating_add(T::DbWeight::get().writes(5_u64))
395
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
396
	}
397
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
398
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
399
	fn cancel_candidate_bond_less() -> Weight {
400
		// Proof Size summary in bytes:
401
		//  Measured:  `191`
402
		//  Estimated: `3656`
403
		// Minimum execution time: 13_345_000 picoseconds.
404
		Weight::from_parts(13_820_000, 3656)
405
			.saturating_add(T::DbWeight::get().reads(1_u64))
406
			.saturating_add(T::DbWeight::get().writes(1_u64))
407
	}
408
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
409
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
410
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
411
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
412
	/// The range of component `x` is `[0, 349]`.
413
	fn schedule_revoke_delegation(x: u32, ) -> Weight {
414
		// Proof Size summary in bytes:
415
		//  Measured:  `606 + x * (42 ±0)`
416
		//  Estimated: `4050 + x * (43 ±0)`
417
		// Minimum execution time: 17_632_000 picoseconds.
418
		Weight::from_parts(30_687_462, 4050)
419
			// Standard Error: 978
420
			.saturating_add(Weight::from_parts(61_795, 0).saturating_mul(x.into()))
421
			.saturating_add(T::DbWeight::get().reads(2_u64))
422
			.saturating_add(T::DbWeight::get().writes(2_u64))
423
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
424
	}
425
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
426
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
427
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
428
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
429
	/// Storage: `System::Account` (r:1 w:1)
430
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
431
	/// Storage: `Balances::Locks` (r:1 w:1)
432
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
433
	/// Storage: `Balances::Freezes` (r:1 w:0)
434
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
435
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
436
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
437
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
438
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
439
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
440
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
441
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
442
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
443
	/// The range of component `x` is `[0, 349]`.
444
	fn delegator_bond_more(x: u32, ) -> Weight {
445
		// Proof Size summary in bytes:
446
		//  Measured:  `1994 + x * (79 ±0)`
447
		//  Estimated: `5416 + x * (79 ±0)`
448
		// Minimum execution time: 69_335_000 picoseconds.
449
		Weight::from_parts(88_004_050, 5416)
450
			// Standard Error: 1_532
451
			.saturating_add(Weight::from_parts(115_604, 0).saturating_mul(x.into()))
452
			.saturating_add(T::DbWeight::get().reads(9_u64))
453
			.saturating_add(T::DbWeight::get().writes(7_u64))
454
			.saturating_add(Weight::from_parts(0, 79).saturating_mul(x.into()))
455
	}
456
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
457
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
458
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
459
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
460
	/// The range of component `x` is `[0, 349]`.
461
	fn schedule_delegator_bond_less(x: u32, ) -> Weight {
462
		// Proof Size summary in bytes:
463
		//  Measured:  `606 + x * (42 ±0)`
464
		//  Estimated: `4050 + x * (43 ±0)`
465
		// Minimum execution time: 17_616_000 picoseconds.
466
		Weight::from_parts(30_463_413, 4050)
467
			// Standard Error: 1_153
468
			.saturating_add(Weight::from_parts(66_112, 0).saturating_mul(x.into()))
469
			.saturating_add(T::DbWeight::get().reads(2_u64))
470
			.saturating_add(T::DbWeight::get().writes(2_u64))
471
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
472
	}
473
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
474
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
475
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
476
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
477
	/// Storage: `Balances::Locks` (r:1 w:1)
478
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
479
	/// Storage: `Balances::Freezes` (r:1 w:0)
480
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
481
	/// Storage: `System::Account` (r:1 w:1)
482
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
483
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:0)
484
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
485
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
486
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
487
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
488
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
489
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
490
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
491
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
492
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
493
	fn execute_revoke_delegation() -> Weight {
494
		// Proof Size summary in bytes:
495
		//  Measured:  `1004`
496
		//  Estimated: `4752`
497
		// Minimum execution time: 86_461_000 picoseconds.
498
		Weight::from_parts(88_593_000, 4752)
499
			.saturating_add(T::DbWeight::get().reads(10_u64))
500
			.saturating_add(T::DbWeight::get().writes(8_u64))
501
	}
502
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
503
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
504
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
505
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
506
	/// Storage: `Balances::Locks` (r:1 w:1)
507
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
508
	/// Storage: `Balances::Freezes` (r:1 w:0)
509
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
510
	/// Storage: `System::Account` (r:1 w:1)
511
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
512
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
513
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
514
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
515
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
516
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
517
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
518
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
519
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
520
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
521
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
522
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
523
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
524
	fn execute_delegator_revoke_delegation_worst() -> Weight {
525
		// Proof Size summary in bytes:
526
		//  Measured:  `37348`
527
		//  Estimated: `40813`
528
		// Minimum execution time: 156_131_000 picoseconds.
529
		Weight::from_parts(158_534_000, 40813)
530
			.saturating_add(T::DbWeight::get().reads(11_u64))
531
			.saturating_add(T::DbWeight::get().writes(10_u64))
532
	}
533
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
534
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
535
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
536
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
537
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
538
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
539
	/// Storage: `Balances::Locks` (r:1 w:1)
540
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
541
	/// Storage: `Balances::Freezes` (r:1 w:0)
542
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
543
	/// Storage: `System::Account` (r:1 w:1)
544
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
545
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
546
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
547
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
548
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
549
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
550
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
551
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
552
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
553
	fn execute_delegator_bond_less_worst() -> Weight {
554
		// Proof Size summary in bytes:
555
		//  Measured:  `29970`
556
		//  Estimated: `33435`
557
		// Minimum execution time: 138_048_000 picoseconds.
558
		Weight::from_parts(140_917_000, 33435)
559
			.saturating_add(T::DbWeight::get().reads(10_u64))
560
			.saturating_add(T::DbWeight::get().writes(9_u64))
561
	}
562
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
563
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
564
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
565
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
566
	/// The range of component `x` is `[0, 349]`.
567
	fn cancel_delegation_request(x: u32, ) -> Weight {
568
		// Proof Size summary in bytes:
569
		//  Measured:  `703 + x * (42 ±0)`
570
		//  Estimated: `4132 + x * (43 ±0)`
571
		// Minimum execution time: 25_713_000 picoseconds.
572
		Weight::from_parts(32_744_835, 4132)
573
			// Standard Error: 586
574
			.saturating_add(Weight::from_parts(55_748, 0).saturating_mul(x.into()))
575
			.saturating_add(T::DbWeight::get().reads(2_u64))
576
			.saturating_add(T::DbWeight::get().writes(2_u64))
577
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
578
	}
579
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
580
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
581
5
	fn prepare_staking_payouts() -> Weight {
582
5
		// Proof Size summary in bytes:
583
5
		//  Measured:  `3`
584
5
		//  Estimated: `3468`
585
5
		// Minimum execution time: 3_027_000 picoseconds.
586
5
		Weight::from_parts(3_221_000, 3468)
587
5
			.saturating_add(T::DbWeight::get().reads(1_u64))
588
5
	}
589
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
590
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
591
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
592
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
593
	/// The range of component `y` is `[0, 100]`.
594
	fn get_rewardable_delegators(y: u32, ) -> Weight {
595
		// Proof Size summary in bytes:
596
		//  Measured:  `90 + y * (36 ±0)`
597
		//  Estimated: `3554 + y * (36 ±0)`
598
		// Minimum execution time: 7_625_000 picoseconds.
599
		Weight::from_parts(9_209_311, 3554)
600
			// Standard Error: 596
601
			.saturating_add(Weight::from_parts(52_653, 0).saturating_mul(y.into()))
602
			.saturating_add(T::DbWeight::get().reads(2_u64))
603
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
604
	}
605
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
606
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
607
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
608
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
609
	/// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
610
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
611
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:51 w:0)
612
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
613
	/// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
614
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
615
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
616
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
617
	/// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
618
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
619
	/// Storage: `ParachainStaking::AtStake` (r:0 w:51)
620
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
621
	/// The range of component `x` is `[0, 50]`.
622
	/// The range of component `y` is `[0, 100]`.
623
67
	fn select_top_candidates(x: u32, y: u32, ) -> Weight {
624
67
		// Proof Size summary in bytes:
625
67
		//  Measured:  `0 + x * (3816 ±0) + y * (1800 ±0)`
626
67
		//  Estimated: `3710 + x * (3975 ±39) + y * (639 ±19)`
627
67
		// Minimum execution time: 26_193_000 picoseconds.
628
67
		Weight::from_parts(26_857_000, 3710)
629
67
			// Standard Error: 82_002
630
67
			.saturating_add(Weight::from_parts(17_795_082, 0).saturating_mul(x.into()))
631
67
			// Standard Error: 40_892
632
67
			.saturating_add(Weight::from_parts(1_284_123, 0).saturating_mul(y.into()))
633
67
			.saturating_add(T::DbWeight::get().reads(6_u64))
634
67
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
635
67
			.saturating_add(T::DbWeight::get().writes(2_u64))
636
67
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
637
67
			.saturating_add(Weight::from_parts(0, 3975).saturating_mul(x.into()))
638
67
			.saturating_add(Weight::from_parts(0, 639).saturating_mul(y.into()))
639
67
	}
640
	/// Storage: `System::Account` (r:349 w:349)
641
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
642
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
643
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
644
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
645
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
646
	/// Storage: `Balances::Locks` (r:349 w:349)
647
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
648
	/// Storage: `Balances::Freezes` (r:349 w:0)
649
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
650
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
651
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
652
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
653
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
654
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
655
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
656
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
657
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
658
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
659
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
660
	/// The range of component `x` is `[0, 349]`.
661
	/// The range of component `y` is `[0, 349]`.
662
	/// The range of component `z` is `[0, 349]`.
663
2
	fn pay_one_collator_reward_best(x: u32, y: u32, z: u32, ) -> Weight {
664
2
		// Proof Size summary in bytes:
665
2
		//  Measured:  `0 + x * (395 ±0) + y * (156 ±0) + z * (41 ±0)`
666
2
		//  Estimated: `125619 + x * (2591 ±0) + y * (2234 ±1) + z * (28 ±0)`
667
2
		// Minimum execution time: 198_000 picoseconds.
668
2
		Weight::from_parts(215_000, 125619)
669
2
			// Standard Error: 523_973
670
2
			.saturating_add(Weight::from_parts(53_959_078, 0).saturating_mul(x.into()))
671
2
			// Standard Error: 523_973
672
2
			.saturating_add(Weight::from_parts(30_733_500, 0).saturating_mul(y.into()))
673
2
			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(x.into())))
674
2
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(y.into())))
675
2
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(x.into())))
676
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
677
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(x.into()))
678
2
			.saturating_add(Weight::from_parts(0, 2234).saturating_mul(y.into()))
679
2
			.saturating_add(Weight::from_parts(0, 28).saturating_mul(z.into()))
680
2
	}
681
	/// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
682
	/// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
683
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
684
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
685
	/// Storage: `ParachainStaking::AtStake` (r:2 w:1)
686
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
687
	/// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
688
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
689
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
690
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
691
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
692
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
693
	/// Storage: `System::Account` (r:301 w:301)
694
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
695
	/// The range of component `y` is `[0, 300]`.
696
2
	fn pay_one_collator_reward(y: u32, ) -> Weight {
697
2
		// Proof Size summary in bytes:
698
2
		//  Measured:  `1164 + y * (160 ±0)`
699
2
		//  Estimated: `6969 + y * (2591 ±0)`
700
2
		// Minimum execution time: 54_210_000 picoseconds.
701
2
		Weight::from_parts(42_251_835, 6969)
702
2
			// Standard Error: 10_552
703
2
			.saturating_add(Weight::from_parts(17_952_207, 0).saturating_mul(y.into()))
704
2
			.saturating_add(T::DbWeight::get().reads(8_u64))
705
2
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
706
2
			.saturating_add(T::DbWeight::get().writes(3_u64))
707
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
708
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
709
2
	}
710
6624
	fn base_on_initialize() -> Weight {
711
6624
		// Proof Size summary in bytes:
712
6624
		//  Measured:  `0`
713
6624
		//  Estimated: `0`
714
6624
		// Minimum execution time: 839_000 picoseconds.
715
6624
		Weight::from_parts(898_000, 0)
716
6624
	}
717
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
718
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
719
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
720
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
721
	/// The range of component `x` is `[0, 300]`.
722
	/// The range of component `y` is `[0, 100]`.
723
	fn set_auto_compound(x: u32, y: u32, ) -> Weight {
724
		// Proof Size summary in bytes:
725
		//  Measured:  `672 + x * (22 ±0) + y * (36 ±0)`
726
		//  Estimated: `4028 + x * (23 ±0) + y * (36 ±0)`
727
		// Minimum execution time: 25_984_000 picoseconds.
728
		Weight::from_parts(29_226_089, 4028)
729
			// Standard Error: 440
730
			.saturating_add(Weight::from_parts(40_855, 0).saturating_mul(x.into()))
731
			// Standard Error: 1_319
732
			.saturating_add(Weight::from_parts(49_260, 0).saturating_mul(y.into()))
733
			.saturating_add(T::DbWeight::get().reads(2_u64))
734
			.saturating_add(T::DbWeight::get().writes(1_u64))
735
			.saturating_add(Weight::from_parts(0, 23).saturating_mul(x.into()))
736
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
737
	}
738
	/// Storage: `System::Account` (r:1 w:1)
739
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
740
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
741
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
742
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
743
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
744
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
745
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
746
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
747
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
748
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
749
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
750
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
751
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
752
	/// Storage: `Balances::Locks` (r:1 w:1)
753
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
754
	/// Storage: `Balances::Freezes` (r:1 w:0)
755
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
756
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
757
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
758
	/// The range of component `x` is `[0, 350]`.
759
	/// The range of component `y` is `[0, 349]`.
760
	/// The range of component `z` is `[0, 99]`.
761
	fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
762
		// Proof Size summary in bytes:
763
		//  Measured:  `0 + x * (60 ±0) + y * (21 ±0) + z * (78 ±0)`
764
		//  Estimated: `26217 + x * (44 ±0) + y * (19 ±0) + z * (76 ±0)`
765
		// Minimum execution time: 109_142_000 picoseconds.
766
		Weight::from_parts(86_114_314, 26217)
767
			// Standard Error: 1_195
768
			.saturating_add(Weight::from_parts(129_521, 0).saturating_mul(x.into()))
769
			// Standard Error: 1_198
770
			.saturating_add(Weight::from_parts(2_979, 0).saturating_mul(y.into()))
771
			// Standard Error: 4_222
772
			.saturating_add(Weight::from_parts(235_417, 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: 240_552_000 picoseconds.
806
		Weight::from_parts(243_610_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
16
	fn mint_collator_reward() -> Weight {
813
16
		// Proof Size summary in bytes:
814
16
		//  Measured:  `128`
815
16
		//  Estimated: `3581`
816
16
		// Minimum execution time: 20_165_000 picoseconds.
817
16
		Weight::from_parts(20_465_000, 3581)
818
16
			.saturating_add(T::DbWeight::get().reads(1_u64))
819
16
			.saturating_add(T::DbWeight::get().writes(1_u64))
820
16
	}
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:  `11178`
838
		//  Estimated: `17118`
839
		// Minimum execution time: 74_751_000 picoseconds.
840
		Weight::from_parts(75_450_000, 17118)
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: 12_242_000 picoseconds.
856
5
		Weight::from_parts(19_106_988, 6050)
857
5
			// Standard Error: 14_496
858
5
			.saturating_add(Weight::from_parts(9_514_437, 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
}