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/moonbase-runtime/moonbase_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/moonbase/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_468_000 picoseconds.
58
		Weight::from_parts(9_797_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_125_000 picoseconds.
69
		Weight::from_parts(37_995_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_008_000 picoseconds.
80
		Weight::from_parts(10_273_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_109_000 picoseconds.
91
		Weight::from_parts(10_387_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_863_000 picoseconds.
102
		Weight::from_parts(8_256_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_456_000 picoseconds.
113
		Weight::from_parts(8_880_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_632_000 picoseconds.
124
		Weight::from_parts(8_033_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_416_000 picoseconds.
137
		Weight::from_parts(41_402_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:  `1417 + x * (38 ±0)`
163
		//  Estimated: `4752 + x * (41 ±0)`
164
		// Minimum execution time: 52_298_000 picoseconds.
165
		Weight::from_parts(63_880_123, 4752)
166
			// Standard Error: 2_022
167
			.saturating_add(Weight::from_parts(86_906, 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_754_000 picoseconds.
182
		Weight::from_parts(24_185_336, 4023)
183
			// Standard Error: 1_059
184
			.saturating_add(Weight::from_parts(61_090, 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:  `1597 + x * (431 ±0)`
213
		//  Estimated: `4885 + x * (3762 ±0)`
214
		// Minimum execution time: 110_946_000 picoseconds.
215
		Weight::from_parts(112_015_000, 4885)
216
			// Standard Error: 63_378
217
			.saturating_add(Weight::from_parts(37_813_078, 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:  `1591 + x * (431 ±0)`
249
		//  Estimated: `4866 + x * (3762 ±0)`
250
		// Minimum execution time: 103_087_000 picoseconds.
251
		Weight::from_parts(103_712_000, 4866)
252
			// Standard Error: 92_504
253
			.saturating_add(Weight::from_parts(40_173_106, 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: 16_737_000 picoseconds.
270
		Weight::from_parts(23_496_847, 3991)
271
			// Standard Error: 1_018
272
			.saturating_add(Weight::from_parts(58_877, 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_362_000 picoseconds.
287
1
		Weight::from_parts(22_259_160, 3931)
288
1
			// Standard Error: 1_135
289
1
			.saturating_add(Weight::from_parts(65_979, 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_927_000 picoseconds.
304
		Weight::from_parts(22_094_521, 3895)
305
			// Standard Error: 1_108
306
			.saturating_add(Weight::from_parts(64_723, 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_070_000 picoseconds.
329
		Weight::from_parts(58_645_414, 4752)
330
			// Standard Error: 1_857
331
			.saturating_add(Weight::from_parts(97_361, 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_244_000 picoseconds.
343
		Weight::from_parts(14_844_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: 51_345_000 picoseconds.
365
		Weight::from_parts(60_372_856, 4752)
366
			// Standard Error: 1_435
367
			.saturating_add(Weight::from_parts(81_943, 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_079_000 picoseconds.
390
		Weight::from_parts(55_142_276, 4752)
391
			// Standard Error: 1_330
392
			.saturating_add(Weight::from_parts(80_384, 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_197_000 picoseconds.
404
		Weight::from_parts(13_844_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_886_000 picoseconds.
418
		Weight::from_parts(27_973_445, 4050)
419
			// Standard Error: 1_178
420
			.saturating_add(Weight::from_parts(74_756, 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:  `2034 + x * (79 ±0)`
447
		//  Estimated: `5460 + x * (79 ±0)`
448
		// Minimum execution time: 69_299_000 picoseconds.
449
		Weight::from_parts(88_516_421, 5460)
450
			// Standard Error: 1_583
451
			.saturating_add(Weight::from_parts(116_285, 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_719_000 picoseconds.
466
		Weight::from_parts(28_310_626, 4050)
467
			// Standard Error: 1_125
468
			.saturating_add(Weight::from_parts(74_811, 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:  `1037`
496
		//  Estimated: `4752`
497
		// Minimum execution time: 82_233_000 picoseconds.
498
		Weight::from_parts(83_651_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:  `37381`
527
		//  Estimated: `40846`
528
		// Minimum execution time: 155_654_000 picoseconds.
529
		Weight::from_parts(157_292_000, 40846)
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:  `30003`
556
		//  Estimated: `33468`
557
		// Minimum execution time: 130_447_000 picoseconds.
558
		Weight::from_parts(132_109_000, 33468)
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_246_000 picoseconds.
572
		Weight::from_parts(32_755_402, 4132)
573
			// Standard Error: 615
574
			.saturating_add(Weight::from_parts(56_370, 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_020_000 picoseconds.
586
5
		Weight::from_parts(3_189_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_647_000 picoseconds.
599
		Weight::from_parts(9_416_155, 3554)
600
			// Standard Error: 666
601
			.saturating_add(Weight::from_parts(54_873, 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
69
	fn select_top_candidates(x: u32, y: u32, ) -> Weight {
624
69
		// Proof Size summary in bytes:
625
69
		//  Measured:  `0 + x * (3816 ±0) + y * (1800 ±0)`
626
69
		//  Estimated: `3710 + x * (3975 ±39) + y * (639 ±19)`
627
69
		// Minimum execution time: 22_909_000 picoseconds.
628
69
		Weight::from_parts(23_220_000, 3710)
629
69
			// Standard Error: 80_502
630
69
			.saturating_add(Weight::from_parts(17_516_843, 0).saturating_mul(x.into()))
631
69
			// Standard Error: 40_144
632
69
			.saturating_add(Weight::from_parts(1_316_116, 0).saturating_mul(y.into()))
633
69
			.saturating_add(T::DbWeight::get().reads(6_u64))
634
69
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
635
69
			.saturating_add(T::DbWeight::get().writes(2_u64))
636
69
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
637
69
			.saturating_add(Weight::from_parts(0, 3975).saturating_mul(x.into()))
638
69
			.saturating_add(Weight::from_parts(0, 639).saturating_mul(y.into()))
639
69
	}
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: `126229 + x * (2591 ±1) + y * (2234 ±1) + z * (28 ±0)`
667
2
		// Minimum execution time: 234_000 picoseconds.
668
2
		Weight::from_parts(244_000, 126229)
669
2
			// Standard Error: 527_104
670
2
			.saturating_add(Weight::from_parts(53_464_740, 0).saturating_mul(x.into()))
671
2
			// Standard Error: 527_104
672
2
			.saturating_add(Weight::from_parts(30_438_714, 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:  `1673 + y * (161 ±0)`
699
2
		//  Estimated: `7367 + y * (2591 ±0)`
700
2
		// Minimum execution time: 54_682_000 picoseconds.
701
2
		Weight::from_parts(48_967_118, 7367)
702
2
			// Standard Error: 8_775
703
2
			.saturating_add(Weight::from_parts(17_813_592, 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: 853_000 picoseconds.
715
6624
		Weight::from_parts(921_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_421_000 picoseconds.
728
		Weight::from_parts(30_453_075, 4028)
729
			// Standard Error: 397
730
			.saturating_add(Weight::from_parts(38_754, 0).saturating_mul(x.into()))
731
			// Standard Error: 1_190
732
			.saturating_add(Weight::from_parts(33_108, 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: `26250 + x * (44 ±0) + y * (19 ±0) + z * (76 ±1)`
765
		// Minimum execution time: 107_519_000 picoseconds.
766
		Weight::from_parts(90_498_928, 26250)
767
			// Standard Error: 1_157
768
			.saturating_add(Weight::from_parts(125_662, 0).saturating_mul(x.into()))
769
			// Standard Error: 4_086
770
			.saturating_add(Weight::from_parts(219_402, 0).saturating_mul(z.into()))
771
			.saturating_add(T::DbWeight::get().reads(9_u64))
772
			.saturating_add(T::DbWeight::get().writes(8_u64))
773
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
774
			.saturating_add(Weight::from_parts(0, 19).saturating_mul(y.into()))
775
			.saturating_add(Weight::from_parts(0, 76).saturating_mul(z.into()))
776
	}
777
	/// Storage: `System::Account` (r:2 w:2)
778
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
779
	/// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
780
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
781
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
782
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
783
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
784
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
785
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
786
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
787
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
788
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
789
	/// Storage: `Balances::Locks` (r:2 w:2)
790
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
791
	/// Storage: `Balances::Freezes` (r:2 w:0)
792
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
793
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
794
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
795
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
796
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
797
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
798
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
799
	fn delegate_with_auto_compound_worst() -> Weight {
800
		// Proof Size summary in bytes:
801
		//  Measured:  `48170`
802
		//  Estimated: `54110`
803
		// Minimum execution time: 241_550_000 picoseconds.
804
		Weight::from_parts(244_414_000, 54110)
805
			.saturating_add(T::DbWeight::get().reads(15_u64))
806
			.saturating_add(T::DbWeight::get().writes(13_u64))
807
	}
808
	/// Storage: `System::Account` (r:1 w:1)
809
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
810
16
	fn mint_collator_reward() -> Weight {
811
16
		// Proof Size summary in bytes:
812
16
		//  Measured:  `128`
813
16
		//  Estimated: `3581`
814
16
		// Minimum execution time: 20_987_000 picoseconds.
815
16
		Weight::from_parts(21_465_000, 3581)
816
16
			.saturating_add(T::DbWeight::get().reads(1_u64))
817
16
			.saturating_add(T::DbWeight::get().writes(1_u64))
818
16
	}
819
	/// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
820
	/// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
821
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
822
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
823
	/// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
824
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
825
	/// Storage: `ParachainStaking::WasInactive` (r:2 w:0)
826
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
827
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
828
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
829
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
830
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
831
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
832
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
833
	fn notify_inactive_collator() -> Weight {
834
		// Proof Size summary in bytes:
835
		//  Measured:  `11212`
836
		//  Estimated: `17152`
837
		// Minimum execution time: 74_705_000 picoseconds.
838
		Weight::from_parts(75_817_000, 17152)
839
			.saturating_add(T::DbWeight::get().reads(8_u64))
840
			.saturating_add(T::DbWeight::get().writes(2_u64))
841
	}
842
	/// Storage: `ParachainStaking::AtStake` (r:52 w:0)
843
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
844
	/// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
845
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
846
	/// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
847
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
848
	/// The range of component `x` is `[0, 50]`.
849
5
	fn mark_collators_as_inactive(x: u32, ) -> Weight {
850
5
		// Proof Size summary in bytes:
851
5
		//  Measured:  `108 + x * (104 ±0)`
852
5
		//  Estimated: `6050 + x * (2580 ±0)`
853
5
		// Minimum execution time: 11_823_000 picoseconds.
854
5
		Weight::from_parts(19_370_890, 6050)
855
5
			// Standard Error: 12_384
856
5
			.saturating_add(Weight::from_parts(9_287_187, 0).saturating_mul(x.into()))
857
5
			.saturating_add(T::DbWeight::get().reads(3_u64))
858
5
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
859
5
			.saturating_add(T::DbWeight::get().writes(1_u64))
860
5
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
861
5
			.saturating_add(Weight::from_parts(0, 2580).saturating_mul(x.into()))
862
5
	}
863
}