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/moonbeam-runtime/moonbeam_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/moonbeam/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_185_000 picoseconds.
58
		Weight::from_parts(9_608_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_637_000 picoseconds.
69
		Weight::from_parts(38_297_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_178_000 picoseconds.
80
		Weight::from_parts(10_466_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: 9_919_000 picoseconds.
91
		Weight::from_parts(10_457_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: 7_871_000 picoseconds.
102
		Weight::from_parts(8_395_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_489_000 picoseconds.
113
		Weight::from_parts(8_977_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_837_000 picoseconds.
124
		Weight::from_parts(8_143_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_327_000 picoseconds.
137
		Weight::from_parts(40_803_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:  `1407 + x * (38 ±0)`
163
		//  Estimated: `4752 + x * (40 ±0)`
164
		// Minimum execution time: 52_423_000 picoseconds.
165
		Weight::from_parts(63_163_323, 4752)
166
			// Standard Error: 1_731
167
			.saturating_add(Weight::from_parts(88_948, 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, 40).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_537_000 picoseconds.
182
		Weight::from_parts(26_828_428, 4023)
183
			// Standard Error: 1_281
184
			.saturating_add(Weight::from_parts(67_229, 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:  `1218 + x * (431 ±0)`
213
		//  Estimated: `4773 + x * (3762 ±0)`
214
		// Minimum execution time: 117_144_000 picoseconds.
215
		Weight::from_parts(123_191_000, 4773)
216
			// Standard Error: 74_720
217
			.saturating_add(Weight::from_parts(38_106_226, 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:  `1208 + x * (431 ±0)`
249
		//  Estimated: `4773 + x * (3762 ±0)`
250
		// Minimum execution time: 108_489_000 picoseconds.
251
		Weight::from_parts(109_413_000, 4773)
252
			// Standard Error: 32_664
253
			.saturating_add(Weight::from_parts(39_893_578, 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_101_000 picoseconds.
270
		Weight::from_parts(26_203_306, 3991)
271
			// Standard Error: 1_290
272
			.saturating_add(Weight::from_parts(66_880, 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_296_000 picoseconds.
287
1
		Weight::from_parts(23_879_837, 3931)
288
1
			// Standard Error: 1_750
289
1
			.saturating_add(Weight::from_parts(80_748, 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: 15_929_000 picoseconds.
304
		Weight::from_parts(23_681_793, 3895)
305
			// Standard Error: 1_781
306
			.saturating_add(Weight::from_parts(80_609, 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_117_000 picoseconds.
329
		Weight::from_parts(58_138_954, 4752)
330
			// Standard Error: 1_884
331
			.saturating_add(Weight::from_parts(99_821, 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: 14_225_000 picoseconds.
343
		Weight::from_parts(14_973_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: 58_571_000 picoseconds.
365
		Weight::from_parts(71_237_508, 4752)
366
			// Standard Error: 5_378
367
			.saturating_add(Weight::from_parts(101_246, 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: 47_741_000 picoseconds.
390
		Weight::from_parts(54_871_756, 4752)
391
			// Standard Error: 1_330
392
			.saturating_add(Weight::from_parts(83_054, 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_136_000 picoseconds.
404
		Weight::from_parts(13_573_000, 3656)
405
			.saturating_add(T::DbWeight::get().reads(1_u64))
406
			.saturating_add(T::DbWeight::get().writes(1_u64))
407
	}
408
	/// Storage: `System::Account` (r:1 w:1)
409
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
410
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
411
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
412
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
413
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
414
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
415
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
416
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
417
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
418
	/// Storage: `Balances::Locks` (r:1 w:1)
419
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
420
	/// Storage: `Balances::Freezes` (r:1 w:0)
421
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
422
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
423
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
424
	/// The range of component `x` is `[3, 100]`.
425
	/// The range of component `y` is `[2, 300]`.
426
	fn delegate(x: u32, y: u32, ) -> Weight {
427
		// Proof Size summary in bytes:
428
		//  Measured:  `2443 + x * (79 ±0) + y * (38 ±0)`
429
		//  Estimated: `5682 + x * (81 ±0) + y * (39 ±0)`
430
		// Minimum execution time: 98_001_000 picoseconds.
431
		Weight::from_parts(90_350_272, 5682)
432
			// Standard Error: 1_310
433
			.saturating_add(Weight::from_parts(145_492, 0).saturating_mul(x.into()))
434
			// Standard Error: 429
435
			.saturating_add(Weight::from_parts(51_033, 0).saturating_mul(y.into()))
436
			.saturating_add(T::DbWeight::get().reads(8_u64))
437
			.saturating_add(T::DbWeight::get().writes(7_u64))
438
			.saturating_add(Weight::from_parts(0, 81).saturating_mul(x.into()))
439
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(y.into()))
440
	}
441
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
442
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
443
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
444
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
445
	/// The range of component `x` is `[0, 349]`.
446
	fn schedule_revoke_delegation(x: u32, ) -> Weight {
447
		// Proof Size summary in bytes:
448
		//  Measured:  `606 + x * (42 ±0)`
449
		//  Estimated: `4050 + x * (43 ±0)`
450
		// Minimum execution time: 17_179_000 picoseconds.
451
		Weight::from_parts(30_086_939, 4050)
452
			// Standard Error: 963
453
			.saturating_add(Weight::from_parts(63_641, 0).saturating_mul(x.into()))
454
			.saturating_add(T::DbWeight::get().reads(2_u64))
455
			.saturating_add(T::DbWeight::get().writes(2_u64))
456
			.saturating_add(Weight::from_parts(0, 43).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:0)
461
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
462
	/// Storage: `System::Account` (r:1 w:1)
463
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
464
	/// Storage: `Balances::Locks` (r:1 w:1)
465
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
466
	/// Storage: `Balances::Freezes` (r:1 w:0)
467
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
468
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
469
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
470
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
471
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
472
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
473
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
474
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
475
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
476
	/// The range of component `x` is `[0, 349]`.
477
	fn delegator_bond_more(x: u32, ) -> Weight {
478
		// Proof Size summary in bytes:
479
		//  Measured:  `1994 + x * (79 ±0)`
480
		//  Estimated: `5416 + x * (79 ±0)`
481
		// Minimum execution time: 69_179_000 picoseconds.
482
		Weight::from_parts(87_994_003, 5416)
483
			// Standard Error: 1_542
484
			.saturating_add(Weight::from_parts(114_813, 0).saturating_mul(x.into()))
485
			.saturating_add(T::DbWeight::get().reads(9_u64))
486
			.saturating_add(T::DbWeight::get().writes(7_u64))
487
			.saturating_add(Weight::from_parts(0, 79).saturating_mul(x.into()))
488
	}
489
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
490
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
491
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
492
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
493
	/// The range of component `x` is `[0, 349]`.
494
	fn schedule_delegator_bond_less(x: u32, ) -> Weight {
495
		// Proof Size summary in bytes:
496
		//  Measured:  `606 + x * (42 ±0)`
497
		//  Estimated: `4050 + x * (43 ±0)`
498
		// Minimum execution time: 17_720_000 picoseconds.
499
		Weight::from_parts(30_341_251, 4050)
500
			// Standard Error: 1_028
501
			.saturating_add(Weight::from_parts(65_479, 0).saturating_mul(x.into()))
502
			.saturating_add(T::DbWeight::get().reads(2_u64))
503
			.saturating_add(T::DbWeight::get().writes(2_u64))
504
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
505
	}
506
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
507
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
508
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
509
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
510
	/// Storage: `Balances::Locks` (r:1 w:1)
511
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
512
	/// Storage: `Balances::Freezes` (r:1 w:0)
513
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
514
	/// Storage: `System::Account` (r:1 w:1)
515
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
516
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:0)
517
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
518
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
519
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
520
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
521
	/// Proof: `ParachainStaking::TopDelegations` (`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_revoke_delegation() -> Weight {
527
		// Proof Size summary in bytes:
528
		//  Measured:  `1037`
529
		//  Estimated: `4752`
530
		// Minimum execution time: 88_999_000 picoseconds.
531
		Weight::from_parts(93_648_000, 4752)
532
			.saturating_add(T::DbWeight::get().reads(10_u64))
533
			.saturating_add(T::DbWeight::get().writes(8_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: `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::AutoCompoundingDelegations` (r:1 w:1)
546
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
547
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
548
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
549
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
550
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
551
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
552
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
553
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
554
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
555
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
556
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
557
	fn execute_delegator_revoke_delegation_worst() -> Weight {
558
		// Proof Size summary in bytes:
559
		//  Measured:  `37348`
560
		//  Estimated: `40813`
561
		// Minimum execution time: 157_600_000 picoseconds.
562
		Weight::from_parts(166_900_000, 40813)
563
			.saturating_add(T::DbWeight::get().reads(11_u64))
564
			.saturating_add(T::DbWeight::get().writes(10_u64))
565
	}
566
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
567
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
568
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
569
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
570
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
571
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
572
	/// Storage: `Balances::Locks` (r:1 w:1)
573
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
574
	/// Storage: `Balances::Freezes` (r:1 w:0)
575
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
576
	/// Storage: `System::Account` (r:1 w:1)
577
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
578
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
579
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
580
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
581
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
582
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
583
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
584
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
585
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
586
	fn execute_delegator_bond_less_worst() -> Weight {
587
		// Proof Size summary in bytes:
588
		//  Measured:  `29970`
589
		//  Estimated: `33435`
590
		// Minimum execution time: 139_962_000 picoseconds.
591
		Weight::from_parts(148_876_000, 33435)
592
			.saturating_add(T::DbWeight::get().reads(10_u64))
593
			.saturating_add(T::DbWeight::get().writes(9_u64))
594
	}
595
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
596
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
597
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
598
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
599
	/// The range of component `x` is `[0, 349]`.
600
	fn cancel_delegation_request(x: u32, ) -> Weight {
601
		// Proof Size summary in bytes:
602
		//  Measured:  `703 + x * (42 ±0)`
603
		//  Estimated: `4132 + x * (43 ±0)`
604
		// Minimum execution time: 26_189_000 picoseconds.
605
		Weight::from_parts(32_751_314, 4132)
606
			// Standard Error: 574
607
			.saturating_add(Weight::from_parts(56_658, 0).saturating_mul(x.into()))
608
			.saturating_add(T::DbWeight::get().reads(2_u64))
609
			.saturating_add(T::DbWeight::get().writes(2_u64))
610
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
611
	}
612
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
613
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
614
4
	fn prepare_staking_payouts() -> Weight {
615
4
		// Proof Size summary in bytes:
616
4
		//  Measured:  `3`
617
4
		//  Estimated: `3468`
618
4
		// Minimum execution time: 2_968_000 picoseconds.
619
4
		Weight::from_parts(3_213_000, 3468)
620
4
			.saturating_add(T::DbWeight::get().reads(1_u64))
621
4
	}
622
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
623
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
624
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
625
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
626
	/// The range of component `y` is `[0, 100]`.
627
	fn get_rewardable_delegators(y: u32, ) -> Weight {
628
		// Proof Size summary in bytes:
629
		//  Measured:  `90 + y * (36 ±0)`
630
		//  Estimated: `3554 + y * (36 ±0)`
631
		// Minimum execution time: 7_556_000 picoseconds.
632
		Weight::from_parts(9_056_036, 3554)
633
			// Standard Error: 555
634
			.saturating_add(Weight::from_parts(53_107, 0).saturating_mul(y.into()))
635
			.saturating_add(T::DbWeight::get().reads(2_u64))
636
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
637
	}
638
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
639
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
640
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
641
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
642
	/// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
643
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
644
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:51 w:0)
645
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
646
	/// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
647
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
648
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
649
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
650
	/// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
651
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
652
	/// Storage: `ParachainStaking::AtStake` (r:0 w:51)
653
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
654
	/// The range of component `x` is `[0, 50]`.
655
	/// The range of component `y` is `[0, 100]`.
656
67
	fn select_top_candidates(x: u32, y: u32, ) -> Weight {
657
67
		// Proof Size summary in bytes:
658
67
		//  Measured:  `0 + x * (3816 ±0) + y * (1800 ±0)`
659
67
		//  Estimated: `3710 + x * (3975 ±39) + y * (639 ±19)`
660
67
		// Minimum execution time: 26_371_000 picoseconds.
661
67
		Weight::from_parts(26_681_000, 3710)
662
67
			// Standard Error: 80_710
663
67
			.saturating_add(Weight::from_parts(17_736_849, 0).saturating_mul(x.into()))
664
67
			// Standard Error: 40_247
665
67
			.saturating_add(Weight::from_parts(1_296_209, 0).saturating_mul(y.into()))
666
67
			.saturating_add(T::DbWeight::get().reads(6_u64))
667
67
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
668
67
			.saturating_add(T::DbWeight::get().writes(2_u64))
669
67
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
670
67
			.saturating_add(Weight::from_parts(0, 3975).saturating_mul(x.into()))
671
67
			.saturating_add(Weight::from_parts(0, 639).saturating_mul(y.into()))
672
67
	}
673
	/// Storage: `System::Account` (r:349 w:349)
674
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
675
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
676
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
677
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
678
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
679
	/// Storage: `Balances::Locks` (r:349 w:349)
680
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
681
	/// Storage: `Balances::Freezes` (r:349 w:0)
682
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
683
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
684
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
685
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
686
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
687
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
688
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
689
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
690
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
691
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
692
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
693
	/// The range of component `x` is `[0, 349]`.
694
	/// The range of component `y` is `[0, 349]`.
695
	/// The range of component `z` is `[0, 349]`.
696
2
	fn pay_one_collator_reward_best(x: u32, y: u32, z: u32, ) -> Weight {
697
2
		// Proof Size summary in bytes:
698
2
		//  Measured:  `0 + x * (395 ±0) + y * (156 ±0) + z * (41 ±0)`
699
2
		//  Estimated: `125760 + x * (2591 ±8) + y * (2234 ±1) + z * (28 ±0)`
700
2
		// Minimum execution time: 218_000 picoseconds.
701
2
		Weight::from_parts(236_000, 125760)
702
2
			// Standard Error: 519_407
703
2
			.saturating_add(Weight::from_parts(53_000_198, 0).saturating_mul(x.into()))
704
2
			// Standard Error: 519_407
705
2
			.saturating_add(Weight::from_parts(30_454_510, 0).saturating_mul(y.into()))
706
2
			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(x.into())))
707
2
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(y.into())))
708
2
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(x.into())))
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(x.into()))
711
2
			.saturating_add(Weight::from_parts(0, 2234).saturating_mul(y.into()))
712
2
			.saturating_add(Weight::from_parts(0, 28).saturating_mul(z.into()))
713
2
	}
714
	/// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
715
	/// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
716
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
717
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
718
	/// Storage: `ParachainStaking::AtStake` (r:2 w:1)
719
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
720
	/// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
721
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
722
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
723
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
724
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
725
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
726
	/// Storage: `System::Account` (r:301 w:301)
727
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
728
	/// The range of component `y` is `[0, 300]`.
729
2
	fn pay_one_collator_reward(y: u32, ) -> Weight {
730
2
		// Proof Size summary in bytes:
731
2
		//  Measured:  `1257 + y * (160 ±0)`
732
2
		//  Estimated: `7054 + y * (2591 ±0)`
733
2
		// Minimum execution time: 53_744_000 picoseconds.
734
2
		Weight::from_parts(47_951_949, 7054)
735
2
			// Standard Error: 9_486
736
2
			.saturating_add(Weight::from_parts(17_831_265, 0).saturating_mul(y.into()))
737
2
			.saturating_add(T::DbWeight::get().reads(8_u64))
738
2
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
739
2
			.saturating_add(T::DbWeight::get().writes(3_u64))
740
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
741
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
742
2
	}
743
16218
	fn base_on_initialize() -> Weight {
744
16218
		// Proof Size summary in bytes:
745
16218
		//  Measured:  `0`
746
16218
		//  Estimated: `0`
747
16218
		// Minimum execution time: 813_000 picoseconds.
748
16218
		Weight::from_parts(898_000, 0)
749
16218
	}
750
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
751
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
752
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
753
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
754
	/// The range of component `x` is `[0, 300]`.
755
	/// The range of component `y` is `[0, 100]`.
756
	fn set_auto_compound(x: u32, y: u32, ) -> Weight {
757
		// Proof Size summary in bytes:
758
		//  Measured:  `672 + x * (22 ±0) + y * (36 ±0)`
759
		//  Estimated: `4028 + x * (23 ±0) + y * (36 ±0)`
760
		// Minimum execution time: 24_681_000 picoseconds.
761
		Weight::from_parts(29_181_647, 4028)
762
			// Standard Error: 446
763
			.saturating_add(Weight::from_parts(38_787, 0).saturating_mul(x.into()))
764
			// Standard Error: 1_337
765
			.saturating_add(Weight::from_parts(42_573, 0).saturating_mul(y.into()))
766
			.saturating_add(T::DbWeight::get().reads(2_u64))
767
			.saturating_add(T::DbWeight::get().writes(1_u64))
768
			.saturating_add(Weight::from_parts(0, 23).saturating_mul(x.into()))
769
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
770
	}
771
	/// Storage: `System::Account` (r:1 w:1)
772
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
773
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
774
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
775
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
776
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
777
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
778
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
779
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
780
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
781
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
782
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
783
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
784
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
785
	/// Storage: `Balances::Locks` (r:1 w:1)
786
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
787
	/// Storage: `Balances::Freezes` (r:1 w:0)
788
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
789
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
790
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
791
	/// The range of component `x` is `[0, 350]`.
792
	/// The range of component `y` is `[0, 349]`.
793
	/// The range of component `z` is `[0, 99]`.
794
	fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
795
		// Proof Size summary in bytes:
796
		//  Measured:  `0 + x * (60 ±0) + y * (21 ±0) + z * (78 ±0)`
797
		//  Estimated: `26217 + x * (44 ±0) + y * (19 ±0) + z * (76 ±1)`
798
		// Minimum execution time: 106_557_000 picoseconds.
799
		Weight::from_parts(82_606_729, 26217)
800
			// Standard Error: 1_188
801
			.saturating_add(Weight::from_parts(133_542, 0).saturating_mul(x.into()))
802
			// Standard Error: 1_191
803
			.saturating_add(Weight::from_parts(7_313, 0).saturating_mul(y.into()))
804
			// Standard Error: 4_197
805
			.saturating_add(Weight::from_parts(233_519, 0).saturating_mul(z.into()))
806
			.saturating_add(T::DbWeight::get().reads(9_u64))
807
			.saturating_add(T::DbWeight::get().writes(8_u64))
808
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
809
			.saturating_add(Weight::from_parts(0, 19).saturating_mul(y.into()))
810
			.saturating_add(Weight::from_parts(0, 76).saturating_mul(z.into()))
811
	}
812
	/// Storage: `System::Account` (r:2 w:2)
813
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
814
	/// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
815
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
816
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
817
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
818
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
819
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
820
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
821
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
822
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
823
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
824
	/// Storage: `Balances::Locks` (r:2 w:2)
825
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
826
	/// Storage: `Balances::Freezes` (r:2 w:0)
827
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
828
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
829
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
830
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
831
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
832
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
833
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
834
	fn delegate_with_auto_compound_worst() -> Weight {
835
		// Proof Size summary in bytes:
836
		//  Measured:  `48170`
837
		//  Estimated: `54110`
838
		// Minimum execution time: 240_271_000 picoseconds.
839
		Weight::from_parts(243_885_000, 54110)
840
			.saturating_add(T::DbWeight::get().reads(15_u64))
841
			.saturating_add(T::DbWeight::get().writes(13_u64))
842
	}
843
	/// Storage: `System::Account` (r:1 w:1)
844
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
845
12
	fn mint_collator_reward() -> Weight {
846
12
		// Proof Size summary in bytes:
847
12
		//  Measured:  `128`
848
12
		//  Estimated: `3581`
849
12
		// Minimum execution time: 19_998_000 picoseconds.
850
12
		Weight::from_parts(20_724_000, 3581)
851
12
			.saturating_add(T::DbWeight::get().reads(1_u64))
852
12
			.saturating_add(T::DbWeight::get().writes(1_u64))
853
12
	}
854
	/// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
855
	/// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
856
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
857
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
858
	/// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
859
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
860
	/// Storage: `ParachainStaking::WasInactive` (r:1 w:0)
861
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
862
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
863
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
864
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
865
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
866
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
867
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
868
	fn notify_inactive_collator() -> Weight {
869
		// Proof Size summary in bytes:
870
		//  Measured:  `11131`
871
		//  Estimated: `14596`
872
		// Minimum execution time: 67_690_000 picoseconds.
873
		Weight::from_parts(68_987_000, 14596)
874
			.saturating_add(T::DbWeight::get().reads(7_u64))
875
			.saturating_add(T::DbWeight::get().writes(2_u64))
876
	}
877
	/// Storage: `ParachainStaking::AtStake` (r:52 w:0)
878
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
879
	/// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
880
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
881
	/// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
882
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
883
	/// The range of component `x` is `[0, 50]`.
884
4
	fn mark_collators_as_inactive(x: u32, ) -> Weight {
885
4
		// Proof Size summary in bytes:
886
4
		//  Measured:  `108 + x * (104 ±0)`
887
4
		//  Estimated: `6050 + x * (2580 ±0)`
888
4
		// Minimum execution time: 11_840_000 picoseconds.
889
4
		Weight::from_parts(19_874_222, 6050)
890
4
			// Standard Error: 13_939
891
4
			.saturating_add(Weight::from_parts(9_096_079, 0).saturating_mul(x.into()))
892
4
			.saturating_add(T::DbWeight::get().reads(3_u64))
893
4
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
894
4
			.saturating_add(T::DbWeight::get().writes(1_u64))
895
4
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
896
4
			.saturating_add(Weight::from_parts(0, 2580).saturating_mul(x.into()))
897
4
	}
898
}