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

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

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

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

            
17

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

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

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

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

            
50
/// Weights for `pallet_parachain_staking`.
51
pub struct WeightInfo<T>(PhantomData<T>);
52
impl<T: frame_system::Config> pallet_parachain_staking::WeightInfo for WeightInfo<T> {
53
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
54
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
55
	fn set_staking_expectations() -> Weight {
56
		// Proof Size summary in bytes:
57
		//  Measured:  `88`
58
		//  Estimated: `1573`
59
		// Minimum execution time: 8_764_000 picoseconds.
60
		Weight::from_parts(9_249_000, 1573)
61
			.saturating_add(T::DbWeight::get().reads(1_u64))
62
			.saturating_add(T::DbWeight::get().writes(1_u64))
63
	}
64
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
65
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
66
	fn set_inflation() -> Weight {
67
		// Proof Size summary in bytes:
68
		//  Measured:  `88`
69
		//  Estimated: `1573`
70
		// Minimum execution time: 36_509_000 picoseconds.
71
		Weight::from_parts(37_358_000, 1573)
72
			.saturating_add(T::DbWeight::get().reads(1_u64))
73
			.saturating_add(T::DbWeight::get().writes(1_u64))
74
	}
75
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
76
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
77
	fn set_inflation_distribution_config() -> Weight {
78
		// Proof Size summary in bytes:
79
		//  Measured:  `30`
80
		//  Estimated: `1515`
81
		// Minimum execution time: 7_522_000 picoseconds.
82
		Weight::from_parts(7_737_000, 1515)
83
			.saturating_add(T::DbWeight::get().reads(1_u64))
84
			.saturating_add(T::DbWeight::get().writes(1_u64))
85
	}
86
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:1)
87
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
88
	fn set_total_selected() -> Weight {
89
		// Proof Size summary in bytes:
90
		//  Measured:  `28`
91
		//  Estimated: `1513`
92
		// Minimum execution time: 7_981_000 picoseconds.
93
		Weight::from_parts(8_273_000, 1513)
94
			.saturating_add(T::DbWeight::get().reads(1_u64))
95
			.saturating_add(T::DbWeight::get().writes(1_u64))
96
	}
97
	/// Storage: `ParachainStaking::CollatorCommission` (r:1 w:1)
98
	/// Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
99
	fn set_collator_commission() -> Weight {
100
		// Proof Size summary in bytes:
101
		//  Measured:  `27`
102
		//  Estimated: `1512`
103
		// Minimum execution time: 7_494_000 picoseconds.
104
		Weight::from_parts(7_773_000, 1512)
105
			.saturating_add(T::DbWeight::get().reads(1_u64))
106
			.saturating_add(T::DbWeight::get().writes(1_u64))
107
	}
108
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
109
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
110
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
111
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
112
	fn set_blocks_per_round() -> Weight {
113
		// Proof Size summary in bytes:
114
		//  Measured:  `116`
115
		//  Estimated: `1601`
116
		// Minimum execution time: 39_585_000 picoseconds.
117
		Weight::from_parts(40_192_000, 1601)
118
			.saturating_add(T::DbWeight::get().reads(2_u64))
119
			.saturating_add(T::DbWeight::get().writes(1_u64))
120
	}
121
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
122
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
123
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
124
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
125
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
126
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
127
	/// Storage: `System::Account` (r:1 w:1)
128
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
129
	/// Storage: `Balances::Locks` (r:1 w:1)
130
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
131
	/// Storage: `Balances::Freezes` (r:1 w:0)
132
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
133
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
134
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
135
	/// Storage: `ParachainStaking::TopDelegations` (r:0 w:1)
136
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
137
	/// Storage: `ParachainStaking::BottomDelegations` (r:0 w:1)
138
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
139
	/// The range of component `x` is `[3, 200]`.
140
	fn join_candidates(x: u32, ) -> Weight {
141
		// Proof Size summary in bytes:
142
		//  Measured:  `1384 + x * (38 ±0)`
143
		//  Estimated: `4752 + x * (41 ±0)`
144
		// Minimum execution time: 50_653_000 picoseconds.
145
		Weight::from_parts(60_762_286, 4752)
146
			// Standard Error: 1_694
147
			.saturating_add(Weight::from_parts(90_910, 0).saturating_mul(x.into()))
148
			.saturating_add(T::DbWeight::get().reads(7_u64))
149
			.saturating_add(T::DbWeight::get().writes(7_u64))
150
			.saturating_add(Weight::from_parts(0, 41).saturating_mul(x.into()))
151
	}
152
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
153
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
154
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
155
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
156
	/// The range of component `x` is `[3, 200]`.
157
	fn schedule_leave_candidates(x: u32, ) -> Weight {
158
		// Proof Size summary in bytes:
159
		//  Measured:  `665 + x * (37 ±0)`
160
		//  Estimated: `4023 + x * (38 ±0)`
161
		// Minimum execution time: 16_719_000 picoseconds.
162
		Weight::from_parts(24_780_060, 4023)
163
			// Standard Error: 1_158
164
			.saturating_add(Weight::from_parts(60_950, 0).saturating_mul(x.into()))
165
			.saturating_add(T::DbWeight::get().reads(2_u64))
166
			.saturating_add(T::DbWeight::get().writes(2_u64))
167
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
168
	}
169
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
170
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
171
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
172
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
173
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
174
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
175
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
176
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
177
	/// Storage: `Balances::Locks` (r:350 w:350)
178
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
179
	/// Storage: `Balances::Freezes` (r:350 w:0)
180
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
181
	/// Storage: `System::Account` (r:350 w:350)
182
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
183
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
184
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
185
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
186
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
187
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
188
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
189
	/// The range of component `x` is `[2, 350]`.
190
	fn execute_leave_candidates_worst_case(x: u32, ) -> Weight {
191
		// Proof Size summary in bytes:
192
		//  Measured:  `1302 + x * (431 ±0)`
193
		//  Estimated: `4773 + x * (3762 ±0)`
194
		// Minimum execution time: 110_687_000 picoseconds.
195
		Weight::from_parts(111_636_000, 4773)
196
			// Standard Error: 52_020
197
			.saturating_add(Weight::from_parts(36_371_563, 0).saturating_mul(x.into()))
198
			.saturating_add(T::DbWeight::get().reads(5_u64))
199
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
200
			.saturating_add(T::DbWeight::get().writes(5_u64))
201
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
202
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
203
	}
204
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
205
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
206
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
207
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
208
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
209
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
210
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
211
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
212
	/// Storage: `Balances::Locks` (r:350 w:350)
213
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
214
	/// Storage: `Balances::Freezes` (r:350 w:0)
215
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
216
	/// Storage: `System::Account` (r:350 w:350)
217
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
218
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
219
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
220
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
221
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
222
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
223
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
224
	/// The range of component `x` is `[2, 350]`.
225
	/// The range of component `y` is `[2, 350]`.
226
	fn execute_leave_candidates_ideal(x: u32, _y: u32, ) -> Weight {
227
		// Proof Size summary in bytes:
228
		//  Measured:  `1295 + x * (431 ±0)`
229
		//  Estimated: `4773 + x * (3762 ±0)`
230
		// Minimum execution time: 103_873_000 picoseconds.
231
		Weight::from_parts(104_847_000, 4773)
232
			// Standard Error: 22_496
233
			.saturating_add(Weight::from_parts(37_505_720, 0).saturating_mul(x.into()))
234
			.saturating_add(T::DbWeight::get().reads(5_u64))
235
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
236
			.saturating_add(T::DbWeight::get().writes(5_u64))
237
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
238
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
239
	}
240
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
241
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
242
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
243
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
244
	/// The range of component `x` is `[3, 200]`.
245
	fn cancel_leave_candidates(x: u32, ) -> Weight {
246
		// Proof Size summary in bytes:
247
		//  Measured:  `633 + x * (37 ±0)`
248
		//  Estimated: `3991 + x * (38 ±0)`
249
		// Minimum execution time: 16_167_000 picoseconds.
250
		Weight::from_parts(23_992_241, 3991)
251
			// Standard Error: 1_201
252
			.saturating_add(Weight::from_parts(72_385, 0).saturating_mul(x.into()))
253
			.saturating_add(T::DbWeight::get().reads(2_u64))
254
			.saturating_add(T::DbWeight::get().writes(2_u64))
255
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
256
	}
257
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
258
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
259
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
260
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
261
	/// The range of component `x` is `[1, 200]`.
262
1
	fn go_offline(x: u32, ) -> Weight {
263
1
		// Proof Size summary in bytes:
264
1
		//  Measured:  `530 + x * (38 ±0)`
265
1
		//  Estimated: `3931 + x * (39 ±0)`
266
1
		// Minimum execution time: 15_678_000 picoseconds.
267
1
		Weight::from_parts(22_216_507, 3931)
268
1
			// Standard Error: 1_479
269
1
			.saturating_add(Weight::from_parts(74_616, 0).saturating_mul(x.into()))
270
1
			.saturating_add(T::DbWeight::get().reads(2_u64))
271
1
			.saturating_add(T::DbWeight::get().writes(2_u64))
272
1
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
273
1
	}
274
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
275
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
276
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
277
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
278
	/// The range of component `x` is `[1, 200]`.
279
	fn go_online(x: u32, ) -> Weight {
280
		// Proof Size summary in bytes:
281
		//  Measured:  `494 + x * (38 ±0)`
282
		//  Estimated: `3895 + x * (39 ±0)`
283
		// Minimum execution time: 15_644_000 picoseconds.
284
		Weight::from_parts(22_136_932, 3895)
285
			// Standard Error: 1_511
286
			.saturating_add(Weight::from_parts(80_409, 0).saturating_mul(x.into()))
287
			.saturating_add(T::DbWeight::get().reads(2_u64))
288
			.saturating_add(T::DbWeight::get().writes(2_u64))
289
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
290
	}
291
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
292
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
293
	/// Storage: `System::Account` (r:1 w:1)
294
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
295
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
296
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
297
	/// Storage: `Balances::Locks` (r:1 w:1)
298
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
299
	/// Storage: `Balances::Freezes` (r:1 w:0)
300
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
301
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
302
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
303
	/// The range of component `x` is `[1, 200]`.
304
	fn candidate_bond_more(x: u32, ) -> Weight {
305
		// Proof Size summary in bytes:
306
		//  Measured:  `1233 + x * (42 ±0)`
307
		//  Estimated: `4752 + x * (44 ±0)`
308
		// Minimum execution time: 46_110_000 picoseconds.
309
		Weight::from_parts(55_080_187, 4752)
310
			// Standard Error: 1_867
311
			.saturating_add(Weight::from_parts(99_791, 0).saturating_mul(x.into()))
312
			.saturating_add(T::DbWeight::get().reads(6_u64))
313
			.saturating_add(T::DbWeight::get().writes(5_u64))
314
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
315
	}
316
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
317
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
318
	fn schedule_candidate_bond_less() -> Weight {
319
		// Proof Size summary in bytes:
320
		//  Measured:  `171`
321
		//  Estimated: `3636`
322
		// Minimum execution time: 13_540_000 picoseconds.
323
		Weight::from_parts(14_179_000, 3636)
324
			.saturating_add(T::DbWeight::get().reads(1_u64))
325
			.saturating_add(T::DbWeight::get().writes(1_u64))
326
	}
327
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
328
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
329
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
330
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
331
	/// Storage: `Balances::Locks` (r:1 w:1)
332
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
333
	/// Storage: `Balances::Freezes` (r:1 w:0)
334
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
335
	/// Storage: `System::Account` (r:1 w:1)
336
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
337
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
338
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
339
	/// The range of component `x` is `[1, 200]`.
340
	fn execute_candidate_bond_less(x: u32, ) -> Weight {
341
		// Proof Size summary in bytes:
342
		//  Measured:  `1322 + x * (42 ±0)`
343
		//  Estimated: `4752 + x * (43 ±0)`
344
		// Minimum execution time: 52_907_000 picoseconds.
345
		Weight::from_parts(61_713_851, 4752)
346
			// Standard Error: 2_267
347
			.saturating_add(Weight::from_parts(84_720, 0).saturating_mul(x.into()))
348
			.saturating_add(T::DbWeight::get().reads(6_u64))
349
			.saturating_add(T::DbWeight::get().writes(5_u64))
350
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
351
	}
352
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
353
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
354
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
355
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
356
	/// Storage: `Balances::Locks` (r:1 w:1)
357
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
358
	/// Storage: `Balances::Freezes` (r:1 w:0)
359
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
360
	/// Storage: `System::Account` (r:1 w:1)
361
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
362
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
363
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
364
	/// The range of component `x` is `[1, 200]`.
365
	fn set_candidate_bond_to_zero(x: u32, ) -> Weight {
366
		// Proof Size summary in bytes:
367
		//  Measured:  `1302 + x * (42 ±0)`
368
		//  Estimated: `4752 + x * (43 ±0)`
369
		// Minimum execution time: 44_478_000 picoseconds.
370
		Weight::from_parts(51_941_463, 4752)
371
			// Standard Error: 1_345
372
			.saturating_add(Weight::from_parts(81_065, 0).saturating_mul(x.into()))
373
			.saturating_add(T::DbWeight::get().reads(6_u64))
374
			.saturating_add(T::DbWeight::get().writes(5_u64))
375
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
376
	}
377
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
378
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
379
	fn cancel_candidate_bond_less() -> Weight {
380
		// Proof Size summary in bytes:
381
		//  Measured:  `191`
382
		//  Estimated: `3656`
383
		// Minimum execution time: 12_676_000 picoseconds.
384
		Weight::from_parts(13_097_000, 3656)
385
			.saturating_add(T::DbWeight::get().reads(1_u64))
386
			.saturating_add(T::DbWeight::get().writes(1_u64))
387
	}
388
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
389
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
390
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
391
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
392
	/// The range of component `x` is `[0, 349]`.
393
	fn schedule_revoke_delegation(x: u32, ) -> Weight {
394
		// Proof Size summary in bytes:
395
		//  Measured:  `606 + x * (42 ±0)`
396
		//  Estimated: `4050 + x * (43 ±0)`
397
		// Minimum execution time: 16_849_000 picoseconds.
398
		Weight::from_parts(26_848_841, 4050)
399
			// Standard Error: 1_065
400
			.saturating_add(Weight::from_parts(70_660, 0).saturating_mul(x.into()))
401
			.saturating_add(T::DbWeight::get().reads(2_u64))
402
			.saturating_add(T::DbWeight::get().writes(2_u64))
403
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
404
	}
405
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
406
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
407
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
408
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
409
	/// Storage: `System::Account` (r:1 w:1)
410
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
411
	/// Storage: `Balances::Locks` (r:1 w:1)
412
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
413
	/// Storage: `Balances::Freezes` (r:1 w:0)
414
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
415
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
416
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
417
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
418
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
419
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
420
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
421
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
422
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
423
	/// The range of component `x` is `[0, 349]`.
424
	fn delegator_bond_more(x: u32, ) -> Weight {
425
		// Proof Size summary in bytes:
426
		//  Measured:  `1990 + x * (79 ±0)`
427
		//  Estimated: `5429 + x * (79 ±0)`
428
		// Minimum execution time: 66_392_000 picoseconds.
429
		Weight::from_parts(83_106_294, 5429)
430
			// Standard Error: 1_518
431
			.saturating_add(Weight::from_parts(116_413, 0).saturating_mul(x.into()))
432
			.saturating_add(T::DbWeight::get().reads(9_u64))
433
			.saturating_add(T::DbWeight::get().writes(7_u64))
434
			.saturating_add(Weight::from_parts(0, 79).saturating_mul(x.into()))
435
	}
436
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
437
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
438
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
439
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
440
	/// The range of component `x` is `[0, 349]`.
441
	fn schedule_delegator_bond_less(x: u32, ) -> Weight {
442
		// Proof Size summary in bytes:
443
		//  Measured:  `606 + x * (42 ±0)`
444
		//  Estimated: `4050 + x * (43 ±0)`
445
		// Minimum execution time: 16_818_000 picoseconds.
446
		Weight::from_parts(27_371_720, 4050)
447
			// Standard Error: 1_072
448
			.saturating_add(Weight::from_parts(71_222, 0).saturating_mul(x.into()))
449
			.saturating_add(T::DbWeight::get().reads(2_u64))
450
			.saturating_add(T::DbWeight::get().writes(2_u64))
451
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
452
	}
453
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
454
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
455
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
456
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
457
	/// Storage: `Balances::Locks` (r:1 w:1)
458
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
459
	/// Storage: `Balances::Freezes` (r:1 w:0)
460
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
461
	/// Storage: `System::Account` (r:1 w:1)
462
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
463
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:0)
464
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
465
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
466
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
467
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
468
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
469
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
470
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
471
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
472
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
473
	fn execute_revoke_delegation() -> Weight {
474
		// Proof Size summary in bytes:
475
		//  Measured:  `1004`
476
		//  Estimated: `4752`
477
		// Minimum execution time: 81_362_000 picoseconds.
478
		Weight::from_parts(83_078_000, 4752)
479
			.saturating_add(T::DbWeight::get().reads(10_u64))
480
			.saturating_add(T::DbWeight::get().writes(8_u64))
481
	}
482
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
483
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
484
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
485
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
486
	/// Storage: `Balances::Locks` (r:1 w:1)
487
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
488
	/// Storage: `Balances::Freezes` (r:1 w:0)
489
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
490
	/// Storage: `System::Account` (r:1 w:1)
491
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
492
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
493
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
494
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
495
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
496
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
497
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
498
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
499
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
500
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
501
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
502
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
503
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
504
	fn execute_delegator_revoke_delegation_worst() -> Weight {
505
		// Proof Size summary in bytes:
506
		//  Measured:  `37348`
507
		//  Estimated: `40813`
508
		// Minimum execution time: 150_276_000 picoseconds.
509
		Weight::from_parts(154_494_000, 40813)
510
			.saturating_add(T::DbWeight::get().reads(11_u64))
511
			.saturating_add(T::DbWeight::get().writes(10_u64))
512
	}
513
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
514
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
515
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
516
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
517
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
518
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
519
	/// Storage: `Balances::Locks` (r:1 w:1)
520
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
521
	/// Storage: `Balances::Freezes` (r:1 w:0)
522
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
523
	/// Storage: `System::Account` (r:1 w:1)
524
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
525
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
526
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
527
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
528
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
529
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
530
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
531
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
532
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
533
	fn execute_delegator_bond_less_worst() -> Weight {
534
		// Proof Size summary in bytes:
535
		//  Measured:  `29970`
536
		//  Estimated: `33435`
537
		// Minimum execution time: 131_369_000 picoseconds.
538
		Weight::from_parts(135_590_000, 33435)
539
			.saturating_add(T::DbWeight::get().reads(10_u64))
540
			.saturating_add(T::DbWeight::get().writes(9_u64))
541
	}
542
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
543
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
544
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
545
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
546
	/// The range of component `x` is `[0, 349]`.
547
	fn cancel_delegation_request(x: u32, ) -> Weight {
548
		// Proof Size summary in bytes:
549
		//  Measured:  `703 + x * (42 ±0)`
550
		//  Estimated: `4132 + x * (43 ±0)`
551
		// Minimum execution time: 22_749_000 picoseconds.
552
		Weight::from_parts(29_318_352, 4132)
553
			// Standard Error: 678
554
			.saturating_add(Weight::from_parts(56_915, 0).saturating_mul(x.into()))
555
			.saturating_add(T::DbWeight::get().reads(2_u64))
556
			.saturating_add(T::DbWeight::get().writes(2_u64))
557
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
558
	}
559
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
560
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
561
5
	fn prepare_staking_payouts() -> Weight {
562
5
		// Proof Size summary in bytes:
563
5
		//  Measured:  `3`
564
5
		//  Estimated: `3468`
565
5
		// Minimum execution time: 2_958_000 picoseconds.
566
5
		Weight::from_parts(3_142_000, 3468)
567
5
			.saturating_add(T::DbWeight::get().reads(1_u64))
568
5
	}
569
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
570
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
571
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
572
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
573
	/// The range of component `y` is `[0, 100]`.
574
	fn get_rewardable_delegators(y: u32, ) -> Weight {
575
		// Proof Size summary in bytes:
576
		//  Measured:  `90 + y * (36 ±0)`
577
		//  Estimated: `3554 + y * (36 ±0)`
578
		// Minimum execution time: 7_182_000 picoseconds.
579
		Weight::from_parts(8_440_830, 3554)
580
			// Standard Error: 584
581
			.saturating_add(Weight::from_parts(51_372, 0).saturating_mul(y.into()))
582
			.saturating_add(T::DbWeight::get().reads(2_u64))
583
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
584
	}
585
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
586
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
587
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
588
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
589
	/// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
590
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
591
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:51 w:0)
592
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
593
	/// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
594
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
595
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
596
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
597
	/// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
598
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
599
	/// Storage: `ParachainStaking::AtStake` (r:0 w:51)
600
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
601
	/// The range of component `x` is `[0, 50]`.
602
	/// The range of component `y` is `[0, 100]`.
603
70
	fn select_top_candidates(x: u32, y: u32, ) -> Weight {
604
70
		// Proof Size summary in bytes:
605
70
		//  Measured:  `0 + x * (3816 ±0) + y * (1800 ±0)`
606
70
		//  Estimated: `3710 + x * (3975 ±39) + y * (639 ±19)`
607
70
		// Minimum execution time: 24_487_000 picoseconds.
608
70
		Weight::from_parts(24_851_000, 3710)
609
70
			// Standard Error: 80_923
610
70
			.saturating_add(Weight::from_parts(17_271_393, 0).saturating_mul(x.into()))
611
70
			// Standard Error: 40_354
612
70
			.saturating_add(Weight::from_parts(1_281_925, 0).saturating_mul(y.into()))
613
70
			.saturating_add(T::DbWeight::get().reads(6_u64))
614
70
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
615
70
			.saturating_add(T::DbWeight::get().writes(2_u64))
616
70
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
617
70
			.saturating_add(Weight::from_parts(0, 3975).saturating_mul(x.into()))
618
70
			.saturating_add(Weight::from_parts(0, 639).saturating_mul(y.into()))
619
70
	}
620
	/// Storage: `System::Account` (r:349 w:349)
621
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
622
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
623
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
624
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
625
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
626
	/// Storage: `Balances::Locks` (r:349 w:349)
627
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
628
	/// Storage: `Balances::Freezes` (r:349 w:0)
629
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
630
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
631
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
632
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
633
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
634
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
635
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
636
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
637
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
638
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
639
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
640
	/// The range of component `x` is `[0, 349]`.
641
	/// The range of component `y` is `[0, 349]`.
642
	/// The range of component `z` is `[0, 349]`.
643
2
	fn pay_one_collator_reward_best(x: u32, y: u32, z: u32, ) -> Weight {
644
2
		// Proof Size summary in bytes:
645
2
		//  Measured:  `0 + x * (395 ±0) + y * (156 ±0) + z * (41 ±0)`
646
2
		//  Estimated: `125900 + x * (2591 ±0) + y * (2234 ±1) + z * (28 ±0)`
647
2
		// Minimum execution time: 205_000 picoseconds.
648
2
		Weight::from_parts(216_000, 125900)
649
2
			// Standard Error: 479_039
650
2
			.saturating_add(Weight::from_parts(50_510_898, 0).saturating_mul(x.into()))
651
2
			// Standard Error: 479_039
652
2
			.saturating_add(Weight::from_parts(28_182_239, 0).saturating_mul(y.into()))
653
2
			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(x.into())))
654
2
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(y.into())))
655
2
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(x.into())))
656
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
657
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(x.into()))
658
2
			.saturating_add(Weight::from_parts(0, 2234).saturating_mul(y.into()))
659
2
			.saturating_add(Weight::from_parts(0, 28).saturating_mul(z.into()))
660
2
	}
661
	/// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
662
	/// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
663
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
664
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
665
	/// Storage: `ParachainStaking::AtStake` (r:2 w:1)
666
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
667
	/// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
668
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
669
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
670
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
671
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
672
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
673
	/// Storage: `System::Account` (r:301 w:301)
674
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
675
	/// The range of component `y` is `[0, 300]`.
676
2
	fn pay_one_collator_reward(y: u32, ) -> Weight {
677
2
		// Proof Size summary in bytes:
678
2
		//  Measured:  `1351 + y * (160 ±0)`
679
2
		//  Estimated: `7093 + y * (2591 ±0)`
680
2
		// Minimum execution time: 50_188_000 picoseconds.
681
2
		Weight::from_parts(42_604_936, 7093)
682
2
			// Standard Error: 6_960
683
2
			.saturating_add(Weight::from_parts(17_574_270, 0).saturating_mul(y.into()))
684
2
			.saturating_add(T::DbWeight::get().reads(8_u64))
685
2
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
686
2
			.saturating_add(T::DbWeight::get().writes(3_u64))
687
2
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
688
2
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
689
2
	}
690
6621
	fn base_on_initialize() -> Weight {
691
6621
		// Proof Size summary in bytes:
692
6621
		//  Measured:  `0`
693
6621
		//  Estimated: `0`
694
6621
		// Minimum execution time: 823_000 picoseconds.
695
6621
		Weight::from_parts(889_000, 0)
696
6621
	}
697
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
698
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
699
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
700
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
701
	/// The range of component `x` is `[0, 300]`.
702
	/// The range of component `y` is `[0, 100]`.
703
	fn set_auto_compound(x: u32, y: u32, ) -> Weight {
704
		// Proof Size summary in bytes:
705
		//  Measured:  `672 + x * (22 ±0) + y * (36 ±0)`
706
		//  Estimated: `4028 + x * (23 ±0) + y * (36 ±0)`
707
		// Minimum execution time: 24_535_000 picoseconds.
708
		Weight::from_parts(28_271_345, 4028)
709
			// Standard Error: 445
710
			.saturating_add(Weight::from_parts(39_754, 0).saturating_mul(x.into()))
711
			// Standard Error: 1_334
712
			.saturating_add(Weight::from_parts(34_479, 0).saturating_mul(y.into()))
713
			.saturating_add(T::DbWeight::get().reads(2_u64))
714
			.saturating_add(T::DbWeight::get().writes(1_u64))
715
			.saturating_add(Weight::from_parts(0, 23).saturating_mul(x.into()))
716
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
717
	}
718
	/// Storage: `System::Account` (r:1 w:1)
719
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
720
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
721
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
722
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
723
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
724
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
725
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
726
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
727
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
728
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
729
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
730
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
731
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
732
	/// Storage: `Balances::Locks` (r:1 w:1)
733
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
734
	/// Storage: `Balances::Freezes` (r:1 w:0)
735
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
736
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
737
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
738
	/// The range of component `x` is `[0, 350]`.
739
	/// The range of component `y` is `[0, 349]`.
740
	/// The range of component `z` is `[0, 99]`.
741
	fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
742
		// Proof Size summary in bytes:
743
		//  Measured:  `0 + x * (60 ±0) + y * (21 ±0) + z * (78 ±0)`
744
		//  Estimated: `26217 + x * (44 ±0) + y * (19 ±0) + z * (76 ±1)`
745
		// Minimum execution time: 104_408_000 picoseconds.
746
		Weight::from_parts(85_696_833, 26217)
747
			// Standard Error: 1_262
748
			.saturating_add(Weight::from_parts(122_371, 0).saturating_mul(x.into()))
749
			// Standard Error: 1_266
750
			.saturating_add(Weight::from_parts(3_718, 0).saturating_mul(y.into()))
751
			// Standard Error: 4_459
752
			.saturating_add(Weight::from_parts(213_242, 0).saturating_mul(z.into()))
753
			.saturating_add(T::DbWeight::get().reads(9_u64))
754
			.saturating_add(T::DbWeight::get().writes(8_u64))
755
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
756
			.saturating_add(Weight::from_parts(0, 19).saturating_mul(y.into()))
757
			.saturating_add(Weight::from_parts(0, 76).saturating_mul(z.into()))
758
	}
759
	/// Storage: `System::Account` (r:2 w:2)
760
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
761
	/// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
762
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
763
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
764
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
765
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
766
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
767
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
768
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
769
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
770
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
771
	/// Storage: `Balances::Locks` (r:2 w:2)
772
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
773
	/// Storage: `Balances::Freezes` (r:2 w:0)
774
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
775
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
776
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
777
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
778
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
779
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
780
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
781
	fn delegate_with_auto_compound_worst() -> Weight {
782
		// Proof Size summary in bytes:
783
		//  Measured:  `48170`
784
		//  Estimated: `54110`
785
		// Minimum execution time: 233_007_000 picoseconds.
786
		Weight::from_parts(237_821_000, 54110)
787
			.saturating_add(T::DbWeight::get().reads(15_u64))
788
			.saturating_add(T::DbWeight::get().writes(13_u64))
789
	}
790
	/// Storage: `System::Account` (r:1 w:1)
791
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
792
14
	fn mint_collator_reward() -> Weight {
793
14
		// Proof Size summary in bytes:
794
14
		//  Measured:  `128`
795
14
		//  Estimated: `3581`
796
14
		// Minimum execution time: 19_355_000 picoseconds.
797
14
		Weight::from_parts(20_098_000, 3581)
798
14
			.saturating_add(T::DbWeight::get().reads(1_u64))
799
14
			.saturating_add(T::DbWeight::get().writes(1_u64))
800
14
	}
801
	/// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
802
	/// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
803
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
804
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
805
	/// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
806
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
807
	/// Storage: `ParachainStaking::WasInactive` (r:2 w:0)
808
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
809
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
810
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
811
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
812
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
813
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
814
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
815
	fn notify_inactive_collator() -> Weight {
816
		// Proof Size summary in bytes:
817
		//  Measured:  `11178`
818
		//  Estimated: `17118`
819
		// Minimum execution time: 69_467_000 picoseconds.
820
		Weight::from_parts(71_224_000, 17118)
821
			.saturating_add(T::DbWeight::get().reads(8_u64))
822
			.saturating_add(T::DbWeight::get().writes(2_u64))
823
	}
824
	/// Storage: `ParachainStaking::AtStake` (r:52 w:0)
825
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
826
	/// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
827
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
828
	/// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
829
	/// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
830
	/// The range of component `x` is `[0, 50]`.
831
5
	fn mark_collators_as_inactive(x: u32, ) -> Weight {
832
5
		// Proof Size summary in bytes:
833
5
		//  Measured:  `108 + x * (104 ±0)`
834
5
		//  Estimated: `6050 + x * (2580 ±0)`
835
5
		// Minimum execution time: 11_566_000 picoseconds.
836
5
		Weight::from_parts(17_335_980, 6050)
837
5
			// Standard Error: 17_104
838
5
			.saturating_add(Weight::from_parts(9_153_096, 0).saturating_mul(x.into()))
839
5
			.saturating_add(T::DbWeight::get().reads(3_u64))
840
5
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
841
5
			.saturating_add(T::DbWeight::get().writes(1_u64))
842
5
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
843
5
			.saturating_add(Weight::from_parts(0, 2580).saturating_mul(x.into()))
844
5
	}
845
}