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 42.0.0
20
//! DATE: 2024-10-10, 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: Some("moonbase-dev"), DB CACHE: 1024
24

            
25
// Executed Command:
26
// ./target/production/moonbeam
27
// benchmark
28
// pallet
29
// --chain=moonbase-dev
30
// --steps=50
31
// --repeat=20
32
// --pallet=pallet_parachain_staking
33
// --extrinsic=*
34
// --wasm-execution=compiled
35
// --header=./file_header.txt
36
// --template=./benchmarking/frame-weight-template.hbs
37
// --output=./runtime/common/src/weights/
38

            
39
#![cfg_attr(rustfmt, rustfmt_skip)]
40
#![allow(unused_parens)]
41
#![allow(unused_imports)]
42

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

            
46
/// Weights for `pallet_parachain_staking`.
47
pub struct WeightInfo<T>(PhantomData<T>);
48
impl<T: frame_system::Config> pallet_parachain_staking::WeightInfo for WeightInfo<T> {
49
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
50
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
51
	fn set_staking_expectations() -> Weight {
52
		// Proof Size summary in bytes:
53
		//  Measured:  `88`
54
		//  Estimated: `1573`
55
		// Minimum execution time: 7_647_000 picoseconds.
56
		Weight::from_parts(8_011_000, 1573)
57
			.saturating_add(T::DbWeight::get().reads(1_u64))
58
			.saturating_add(T::DbWeight::get().writes(1_u64))
59
	}
60
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
61
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
62
	fn set_inflation() -> Weight {
63
		// Proof Size summary in bytes:
64
		//  Measured:  `88`
65
		//  Estimated: `1573`
66
		// Minimum execution time: 35_622_000 picoseconds.
67
		Weight::from_parts(36_165_000, 1573)
68
			.saturating_add(T::DbWeight::get().reads(1_u64))
69
			.saturating_add(T::DbWeight::get().writes(1_u64))
70
	}
71
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
72
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
73
	fn set_parachain_bond_account() -> Weight {
74
		// Proof Size summary in bytes:
75
		//  Measured:  `30`
76
		//  Estimated: `1515`
77
		// Minimum execution time: 8_666_000 picoseconds.
78
		Weight::from_parts(9_092_000, 1515)
79
			.saturating_add(T::DbWeight::get().reads(1_u64))
80
			.saturating_add(T::DbWeight::get().writes(1_u64))
81
	}
82
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
83
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
84
	fn set_parachain_bond_reserve_percent() -> Weight {
85
		// Proof Size summary in bytes:
86
		//  Measured:  `30`
87
		//  Estimated: `1515`
88
		// Minimum execution time: 8_681_000 picoseconds.
89
		Weight::from_parts(8_983_000, 1515)
90
			.saturating_add(T::DbWeight::get().reads(1_u64))
91
			.saturating_add(T::DbWeight::get().writes(1_u64))
92
	}
93
	/// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
94
	/// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
95
	fn set_inflation_distribution_config() -> Weight {
96
		// Proof Size summary in bytes:
97
		//  Measured:  `30`
98
		//  Estimated: `1515`
99
		// Minimum execution time: 6_450_000 picoseconds.
100
		Weight::from_parts(6_783_000, 1515)
101
			.saturating_add(T::DbWeight::get().reads(1_u64))
102
			.saturating_add(T::DbWeight::get().writes(1_u64))
103
	}
104
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:1)
105
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
106
	fn set_total_selected() -> Weight {
107
		// Proof Size summary in bytes:
108
		//  Measured:  `28`
109
		//  Estimated: `1513`
110
		// Minimum execution time: 6_806_000 picoseconds.
111
		Weight::from_parts(7_070_000, 1513)
112
			.saturating_add(T::DbWeight::get().reads(1_u64))
113
			.saturating_add(T::DbWeight::get().writes(1_u64))
114
	}
115
	/// Storage: `ParachainStaking::CollatorCommission` (r:1 w:1)
116
	/// Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
117
	fn set_collator_commission() -> Weight {
118
		// Proof Size summary in bytes:
119
		//  Measured:  `27`
120
		//  Estimated: `1512`
121
		// Minimum execution time: 6_293_000 picoseconds.
122
		Weight::from_parts(6_669_000, 1512)
123
			.saturating_add(T::DbWeight::get().reads(1_u64))
124
			.saturating_add(T::DbWeight::get().writes(1_u64))
125
	}
126
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
127
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
128
	/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
129
	/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
130
	fn set_blocks_per_round() -> Weight {
131
		// Proof Size summary in bytes:
132
		//  Measured:  `116`
133
		//  Estimated: `1601`
134
		// Minimum execution time: 37_922_000 picoseconds.
135
		Weight::from_parts(38_469_000, 1601)
136
			.saturating_add(T::DbWeight::get().reads(2_u64))
137
			.saturating_add(T::DbWeight::get().writes(1_u64))
138
	}
139
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
140
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
141
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
142
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
143
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
144
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
145
	/// Storage: `System::Account` (r:1 w:1)
146
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
147
	/// Storage: `Balances::Locks` (r:1 w:1)
148
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
149
	/// Storage: `Balances::Freezes` (r:1 w:0)
150
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
151
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
152
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
153
	/// Storage: `ParachainStaking::TopDelegations` (r:0 w:1)
154
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
155
	/// Storage: `ParachainStaking::BottomDelegations` (r:0 w:1)
156
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
157
	/// The range of component `x` is `[3, 200]`.
158
	fn join_candidates(x: u32, ) -> Weight {
159
		// Proof Size summary in bytes:
160
		//  Measured:  `1417 + x * (38 ±0)`
161
		//  Estimated: `4752 + x * (41 ±0)`
162
		// Minimum execution time: 46_685_000 picoseconds.
163
		Weight::from_parts(55_827_036, 4752)
164
			// Standard Error: 1_762
165
			.saturating_add(Weight::from_parts(91_489, 0).saturating_mul(x.into()))
166
			.saturating_add(T::DbWeight::get().reads(7_u64))
167
			.saturating_add(T::DbWeight::get().writes(7_u64))
168
			.saturating_add(Weight::from_parts(0, 41).saturating_mul(x.into()))
169
	}
170
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
171
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
172
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
173
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
174
	/// The range of component `x` is `[3, 200]`.
175
	fn schedule_leave_candidates(x: u32, ) -> Weight {
176
		// Proof Size summary in bytes:
177
		//  Measured:  `665 + x * (37 ±0)`
178
		//  Estimated: `4023 + x * (38 ±0)`
179
		// Minimum execution time: 14_652_000 picoseconds.
180
		Weight::from_parts(19_765_600, 4023)
181
			// Standard Error: 853
182
			.saturating_add(Weight::from_parts(62_538, 0).saturating_mul(x.into()))
183
			.saturating_add(T::DbWeight::get().reads(2_u64))
184
			.saturating_add(T::DbWeight::get().writes(2_u64))
185
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
186
	}
187
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
188
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
189
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
190
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
191
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
192
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
193
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
194
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
195
	/// Storage: `Balances::Locks` (r:350 w:350)
196
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
197
	/// Storage: `Balances::Freezes` (r:350 w:0)
198
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
199
	/// Storage: `System::Account` (r:350 w:350)
200
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
201
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
202
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
203
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
204
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
205
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
206
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
207
	/// The range of component `x` is `[2, 350]`.
208
	fn execute_leave_candidates_worst_case(x: u32, ) -> Weight {
209
		// Proof Size summary in bytes:
210
		//  Measured:  `1739 + x * (431 ±0)`
211
		//  Estimated: `4987 + x * (3762 ±0)`
212
		// Minimum execution time: 98_097_000 picoseconds.
213
		Weight::from_parts(100_631_000, 4987)
214
			// Standard Error: 75_420
215
			.saturating_add(Weight::from_parts(36_196_060, 0).saturating_mul(x.into()))
216
			.saturating_add(T::DbWeight::get().reads(5_u64))
217
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
218
			.saturating_add(T::DbWeight::get().writes(5_u64))
219
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
220
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
221
	}
222
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
223
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
224
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
225
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
226
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
227
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
228
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
229
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
230
	/// Storage: `Balances::Locks` (r:350 w:350)
231
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
232
	/// Storage: `Balances::Freezes` (r:350 w:0)
233
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
234
	/// Storage: `System::Account` (r:350 w:350)
235
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
236
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
237
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
238
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
239
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
240
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
241
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
242
	/// The range of component `x` is `[2, 350]`.
243
	/// The range of component `y` is `[2, 350]`.
244
	fn execute_leave_candidates_ideal(x: u32, _y: u32, ) -> Weight {
245
		// Proof Size summary in bytes:
246
		//  Measured:  `1734 + x * (431 ±0)`
247
		//  Estimated: `4946 + x * (3762 ±0)`
248
		// Minimum execution time: 92_552_000 picoseconds.
249
		Weight::from_parts(95_401_000, 4946)
250
			// Standard Error: 32_367
251
			.saturating_add(Weight::from_parts(37_893_086, 0).saturating_mul(x.into()))
252
			.saturating_add(T::DbWeight::get().reads(5_u64))
253
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
254
			.saturating_add(T::DbWeight::get().writes(5_u64))
255
			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
256
			.saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
257
	}
258
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
259
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
260
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
261
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
262
	/// The range of component `x` is `[3, 200]`.
263
	fn cancel_leave_candidates(x: u32, ) -> Weight {
264
		// Proof Size summary in bytes:
265
		//  Measured:  `633 + x * (37 ±0)`
266
		//  Estimated: `3991 + x * (38 ±0)`
267
		// Minimum execution time: 14_398_000 picoseconds.
268
		Weight::from_parts(19_059_639, 3991)
269
			// Standard Error: 870
270
			.saturating_add(Weight::from_parts(61_826, 0).saturating_mul(x.into()))
271
			.saturating_add(T::DbWeight::get().reads(2_u64))
272
			.saturating_add(T::DbWeight::get().writes(2_u64))
273
			.saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
274
	}
275
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
276
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
277
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
278
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
279
	/// The range of component `x` is `[1, 200]`.
280
3
	fn go_offline(x: u32, ) -> Weight {
281
3
		// Proof Size summary in bytes:
282
3
		//  Measured:  `530 + x * (38 ±0)`
283
3
		//  Estimated: `3931 + x * (39 ±0)`
284
3
		// Minimum execution time: 13_890_000 picoseconds.
285
3
		Weight::from_parts(18_129_159, 3931)
286
3
			// Standard Error: 890
287
3
			.saturating_add(Weight::from_parts(66_340, 0).saturating_mul(x.into()))
288
3
			.saturating_add(T::DbWeight::get().reads(2_u64))
289
3
			.saturating_add(T::DbWeight::get().writes(2_u64))
290
3
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
291
3
	}
292
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
293
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
294
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
295
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
296
	/// The range of component `x` is `[1, 200]`.
297
	fn go_online(x: u32, ) -> Weight {
298
		// Proof Size summary in bytes:
299
		//  Measured:  `494 + x * (38 ±0)`
300
		//  Estimated: `3895 + x * (39 ±0)`
301
		// Minimum execution time: 13_411_000 picoseconds.
302
		Weight::from_parts(18_108_845, 3895)
303
			// Standard Error: 904
304
			.saturating_add(Weight::from_parts(64_530, 0).saturating_mul(x.into()))
305
			.saturating_add(T::DbWeight::get().reads(2_u64))
306
			.saturating_add(T::DbWeight::get().writes(2_u64))
307
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
308
	}
309
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
310
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
311
	/// Storage: `System::Account` (r:1 w:1)
312
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
313
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
314
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
315
	/// Storage: `Balances::Locks` (r:1 w:1)
316
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
317
	/// Storage: `Balances::Freezes` (r:1 w:0)
318
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
319
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
320
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
321
	/// The range of component `x` is `[1, 200]`.
322
	fn candidate_bond_more(x: u32, ) -> Weight {
323
		// Proof Size summary in bytes:
324
		//  Measured:  `1233 + x * (42 ±0)`
325
		//  Estimated: `4752 + x * (44 ±0)`
326
		// Minimum execution time: 43_007_000 picoseconds.
327
		Weight::from_parts(50_801_306, 4752)
328
			// Standard Error: 1_622
329
			.saturating_add(Weight::from_parts(92_969, 0).saturating_mul(x.into()))
330
			.saturating_add(T::DbWeight::get().reads(6_u64))
331
			.saturating_add(T::DbWeight::get().writes(5_u64))
332
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
333
	}
334
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
335
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
336
	fn schedule_candidate_bond_less() -> Weight {
337
		// Proof Size summary in bytes:
338
		//  Measured:  `171`
339
		//  Estimated: `3636`
340
		// Minimum execution time: 12_150_000 picoseconds.
341
		Weight::from_parts(12_440_000, 3636)
342
			.saturating_add(T::DbWeight::get().reads(1_u64))
343
			.saturating_add(T::DbWeight::get().writes(1_u64))
344
	}
345
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
346
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
347
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
348
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
349
	/// Storage: `Balances::Locks` (r:1 w:1)
350
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
351
	/// Storage: `Balances::Freezes` (r:1 w:0)
352
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
353
	/// Storage: `System::Account` (r:1 w:1)
354
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
355
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
356
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
357
	/// The range of component `x` is `[1, 200]`.
358
	fn execute_candidate_bond_less(x: u32, ) -> Weight {
359
		// Proof Size summary in bytes:
360
		//  Measured:  `1322 + x * (42 ±0)`
361
		//  Estimated: `4752 + x * (43 ±0)`
362
		// Minimum execution time: 45_253_000 picoseconds.
363
		Weight::from_parts(53_063_950, 4752)
364
			// Standard Error: 1_401
365
			.saturating_add(Weight::from_parts(88_117, 0).saturating_mul(x.into()))
366
			.saturating_add(T::DbWeight::get().reads(6_u64))
367
			.saturating_add(T::DbWeight::get().writes(5_u64))
368
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
369
	}
370
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
371
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
372
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
373
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
374
	/// Storage: `Balances::Locks` (r:1 w:1)
375
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
376
	/// Storage: `Balances::Freezes` (r:1 w:0)
377
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
378
	/// Storage: `System::Account` (r:1 w:1)
379
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
380
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
381
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
382
	/// The range of component `x` is `[1, 200]`.
383
	fn set_candidate_bond_to_zero(x: u32, ) -> Weight {
384
		// Proof Size summary in bytes:
385
		//  Measured:  `1302 + x * (42 ±0)`
386
		//  Estimated: `4752 + x * (43 ±0)`
387
		// Minimum execution time: 41_190_000 picoseconds.
388
		Weight::from_parts(47_789_024, 4752)
389
			// Standard Error: 1_213
390
			.saturating_add(Weight::from_parts(75_753, 0).saturating_mul(x.into()))
391
			.saturating_add(T::DbWeight::get().reads(6_u64))
392
			.saturating_add(T::DbWeight::get().writes(5_u64))
393
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
394
	}
395
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
396
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
397
	fn cancel_candidate_bond_less() -> Weight {
398
		// Proof Size summary in bytes:
399
		//  Measured:  `191`
400
		//  Estimated: `3656`
401
		// Minimum execution time: 11_273_000 picoseconds.
402
		Weight::from_parts(11_634_000, 3656)
403
			.saturating_add(T::DbWeight::get().reads(1_u64))
404
			.saturating_add(T::DbWeight::get().writes(1_u64))
405
	}
406
	/// Storage: `System::Account` (r:1 w:1)
407
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
408
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
409
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
410
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
411
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
412
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
413
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
414
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
415
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
416
	/// Storage: `Balances::Locks` (r:1 w:1)
417
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
418
	/// Storage: `Balances::Freezes` (r:1 w:0)
419
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
420
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
421
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
422
	/// The range of component `x` is `[3, 100]`.
423
	/// The range of component `y` is `[2, 300]`.
424
	fn delegate(x: u32, y: u32, ) -> Weight {
425
		// Proof Size summary in bytes:
426
		//  Measured:  `2461 + x * (79 ±0) + y * (38 ±0)`
427
		//  Estimated: `5710 + x * (81 ±0) + y * (39 ±0)`
428
		// Minimum execution time: 87_674_000 picoseconds.
429
		Weight::from_parts(72_809_577, 5710)
430
			// Standard Error: 3_406
431
			.saturating_add(Weight::from_parts(201_414, 0).saturating_mul(x.into()))
432
			// Standard Error: 1_117
433
			.saturating_add(Weight::from_parts(74_459, 0).saturating_mul(y.into()))
434
			.saturating_add(T::DbWeight::get().reads(8_u64))
435
			.saturating_add(T::DbWeight::get().writes(7_u64))
436
			.saturating_add(Weight::from_parts(0, 81).saturating_mul(x.into()))
437
			.saturating_add(Weight::from_parts(0, 39).saturating_mul(y.into()))
438
	}
439
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
440
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
441
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
442
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
443
	/// The range of component `x` is `[0, 349]`.
444
	fn schedule_revoke_delegation(x: u32, ) -> Weight {
445
		// Proof Size summary in bytes:
446
		//  Measured:  `606 + x * (42 ±0)`
447
		//  Estimated: `4050 + x * (43 ±0)`
448
		// Minimum execution time: 15_311_000 picoseconds.
449
		Weight::from_parts(24_384_755, 4050)
450
			// Standard Error: 1_020
451
			.saturating_add(Weight::from_parts(76_463, 0).saturating_mul(x.into()))
452
			.saturating_add(T::DbWeight::get().reads(2_u64))
453
			.saturating_add(T::DbWeight::get().writes(2_u64))
454
			.saturating_add(Weight::from_parts(0, 43).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:0)
459
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
460
	/// Storage: `System::Account` (r:1 w:1)
461
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
462
	/// Storage: `Balances::Locks` (r:1 w:1)
463
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
464
	/// Storage: `Balances::Freezes` (r:1 w:0)
465
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
466
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
467
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
468
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
469
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
470
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
471
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
472
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
473
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
474
	/// The range of component `x` is `[0, 349]`.
475
	fn delegator_bond_more(x: u32, ) -> Weight {
476
		// Proof Size summary in bytes:
477
		//  Measured:  `2053 + x * (79 ±0)`
478
		//  Estimated: `5475 + x * (79 ±0)`
479
		// Minimum execution time: 61_489_000 picoseconds.
480
		Weight::from_parts(77_010_018, 5475)
481
			// Standard Error: 1_335
482
			.saturating_add(Weight::from_parts(120_109, 0).saturating_mul(x.into()))
483
			.saturating_add(T::DbWeight::get().reads(9_u64))
484
			.saturating_add(T::DbWeight::get().writes(7_u64))
485
			.saturating_add(Weight::from_parts(0, 79).saturating_mul(x.into()))
486
	}
487
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
488
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
489
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
490
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
491
	/// The range of component `x` is `[0, 349]`.
492
	fn schedule_delegator_bond_less(x: u32, ) -> Weight {
493
		// Proof Size summary in bytes:
494
		//  Measured:  `606 + x * (42 ±0)`
495
		//  Estimated: `4050 + x * (43 ±0)`
496
		// Minimum execution time: 15_862_000 picoseconds.
497
		Weight::from_parts(23_900_149, 4050)
498
			// Standard Error: 941
499
			.saturating_add(Weight::from_parts(77_807, 0).saturating_mul(x.into()))
500
			.saturating_add(T::DbWeight::get().reads(2_u64))
501
			.saturating_add(T::DbWeight::get().writes(2_u64))
502
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
503
	}
504
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
505
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
506
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
507
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
508
	/// Storage: `Balances::Locks` (r:1 w:1)
509
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
510
	/// Storage: `Balances::Freezes` (r:1 w:0)
511
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
512
	/// Storage: `System::Account` (r:1 w:1)
513
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
514
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:0)
515
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
516
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
517
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
518
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
519
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
520
	/// Storage: `ParachainStaking::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_revoke_delegation() -> Weight {
525
		// Proof Size summary in bytes:
526
		//  Measured:  `1037`
527
		//  Estimated: `4752`
528
		// Minimum execution time: 71_342_000 picoseconds.
529
		Weight::from_parts(73_839_000, 4752)
530
			.saturating_add(T::DbWeight::get().reads(10_u64))
531
			.saturating_add(T::DbWeight::get().writes(8_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: `Balances::Locks` (r:1 w:1)
538
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
539
	/// Storage: `Balances::Freezes` (r:1 w:0)
540
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
541
	/// Storage: `System::Account` (r:1 w:1)
542
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
543
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
544
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
545
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
546
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
547
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
548
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
549
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
550
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
551
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
552
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
553
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
554
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
555
	fn execute_delegator_revoke_delegation_worst() -> Weight {
556
		// Proof Size summary in bytes:
557
		//  Measured:  `37381`
558
		//  Estimated: `40846`
559
		// Minimum execution time: 140_910_000 picoseconds.
560
		Weight::from_parts(146_625_000, 40846)
561
			.saturating_add(T::DbWeight::get().reads(11_u64))
562
			.saturating_add(T::DbWeight::get().writes(10_u64))
563
	}
564
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
565
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
566
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
567
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
568
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
569
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
570
	/// Storage: `Balances::Locks` (r:1 w:1)
571
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
572
	/// Storage: `Balances::Freezes` (r:1 w:0)
573
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
574
	/// Storage: `System::Account` (r:1 w:1)
575
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
576
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
577
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
578
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
579
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
580
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
581
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
582
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
583
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
584
	fn execute_delegator_bond_less_worst() -> Weight {
585
		// Proof Size summary in bytes:
586
		//  Measured:  `30003`
587
		//  Estimated: `33468`
588
		// Minimum execution time: 117_749_000 picoseconds.
589
		Weight::from_parts(122_882_000, 33468)
590
			.saturating_add(T::DbWeight::get().reads(10_u64))
591
			.saturating_add(T::DbWeight::get().writes(9_u64))
592
	}
593
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
594
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
595
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
596
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
597
	/// The range of component `x` is `[0, 349]`.
598
	fn cancel_delegation_request(x: u32, ) -> Weight {
599
		// Proof Size summary in bytes:
600
		//  Measured:  `703 + x * (42 ±0)`
601
		//  Estimated: `4132 + x * (43 ±0)`
602
		// Minimum execution time: 22_845_000 picoseconds.
603
		Weight::from_parts(28_473_898, 4132)
604
			// Standard Error: 640
605
			.saturating_add(Weight::from_parts(64_623, 0).saturating_mul(x.into()))
606
			.saturating_add(T::DbWeight::get().reads(2_u64))
607
			.saturating_add(T::DbWeight::get().writes(2_u64))
608
			.saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
609
	}
610
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
611
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
612
14
	fn prepare_staking_payouts() -> Weight {
613
14
		// Proof Size summary in bytes:
614
14
		//  Measured:  `3`
615
14
		//  Estimated: `3468`
616
14
		// Minimum execution time: 2_451_000 picoseconds.
617
14
		Weight::from_parts(2_620_000, 3468)
618
14
			.saturating_add(T::DbWeight::get().reads(1_u64))
619
14
	}
620
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
621
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
622
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
623
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
624
	/// The range of component `y` is `[0, 100]`.
625
	fn get_rewardable_delegators(y: u32, ) -> Weight {
626
		// Proof Size summary in bytes:
627
		//  Measured:  `90 + y * (36 ±0)`
628
		//  Estimated: `3554 + y * (36 ±0)`
629
		// Minimum execution time: 6_158_000 picoseconds.
630
		Weight::from_parts(7_691_579, 3554)
631
			// Standard Error: 564
632
			.saturating_add(Weight::from_parts(46_304, 0).saturating_mul(y.into()))
633
			.saturating_add(T::DbWeight::get().reads(2_u64))
634
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
635
	}
636
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
637
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
638
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
639
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
640
	/// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
641
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
642
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:51 w:0)
643
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
644
	/// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
645
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
646
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
647
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
648
	/// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
649
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
650
	/// Storage: `ParachainStaking::AtStake` (r:0 w:51)
651
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
652
	/// The range of component `x` is `[0, 50]`.
653
	/// The range of component `y` is `[0, 100]`.
654
197
	fn select_top_candidates(x: u32, y: u32, ) -> Weight {
655
197
		// Proof Size summary in bytes:
656
197
		//  Measured:  `0 + x * (3816 ±0) + y * (1800 ±0)`
657
197
		//  Estimated: `3710 + x * (3975 ±39) + y * (639 ±19)`
658
197
		// Minimum execution time: 19_220_000 picoseconds.
659
197
		Weight::from_parts(19_820_000, 3710)
660
197
			// Standard Error: 91_077
661
197
			.saturating_add(Weight::from_parts(16_463_778, 0).saturating_mul(x.into()))
662
197
			// Standard Error: 45_417
663
197
			.saturating_add(Weight::from_parts(1_544_255, 0).saturating_mul(y.into()))
664
197
			.saturating_add(T::DbWeight::get().reads(6_u64))
665
197
			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
666
197
			.saturating_add(T::DbWeight::get().writes(2_u64))
667
197
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
668
197
			.saturating_add(Weight::from_parts(0, 3975).saturating_mul(x.into()))
669
197
			.saturating_add(Weight::from_parts(0, 639).saturating_mul(y.into()))
670
197
	}
671
	/// Storage: `System::Account` (r:349 w:349)
672
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
673
	/// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
674
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
675
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
676
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
677
	/// Storage: `Balances::Locks` (r:349 w:349)
678
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
679
	/// Storage: `Balances::Freezes` (r:349 w:0)
680
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
681
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
682
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
683
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
684
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
685
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
686
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
687
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
688
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
689
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
690
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
691
	/// The range of component `x` is `[0, 349]`.
692
	/// The range of component `y` is `[0, 349]`.
693
	/// The range of component `z` is `[0, 349]`.
694
6
	fn pay_one_collator_reward_best(x: u32, y: u32, z: u32, ) -> Weight {
695
6
		// Proof Size summary in bytes:
696
6
		//  Measured:  `0 + x * (396 ±0) + y * (156 ±0) + z * (41 ±0)`
697
6
		//  Estimated: `126506 + x * (2591 ±20) + y * (2234 ±20) + z * (28 ±0)`
698
6
		// Minimum execution time: 210_000 picoseconds.
699
6
		Weight::from_parts(223_000, 126506)
700
6
			// Standard Error: 528_086
701
6
			.saturating_add(Weight::from_parts(50_791_528, 0).saturating_mul(x.into()))
702
6
			// Standard Error: 528_086
703
6
			.saturating_add(Weight::from_parts(30_714_396, 0).saturating_mul(y.into()))
704
6
			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(x.into())))
705
6
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(y.into())))
706
6
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(x.into())))
707
6
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
708
6
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(x.into()))
709
6
			.saturating_add(Weight::from_parts(0, 2234).saturating_mul(y.into()))
710
6
			.saturating_add(Weight::from_parts(0, 28).saturating_mul(z.into()))
711
6
	}
712
	/// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
713
	/// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
714
	/// Storage: `ParachainStaking::Points` (r:1 w:0)
715
	/// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
716
	/// Storage: `ParachainStaking::AtStake` (r:2 w:1)
717
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
718
	/// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
719
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
720
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
721
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
722
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
723
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
724
	/// Storage: `System::Account` (r:301 w:301)
725
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
726
	/// The range of component `y` is `[0, 300]`.
727
6
	fn pay_one_collator_reward(y: u32, ) -> Weight {
728
6
		// Proof Size summary in bytes:
729
6
		//  Measured:  `1781 + y * (161 ±0)`
730
6
		//  Estimated: `7454 + y * (2591 ±0)`
731
6
		// Minimum execution time: 48_653_000 picoseconds.
732
6
		Weight::from_parts(43_641_623, 7454)
733
6
			// Standard Error: 6_528
734
6
			.saturating_add(Weight::from_parts(15_231_398, 0).saturating_mul(y.into()))
735
6
			.saturating_add(T::DbWeight::get().reads(8_u64))
736
6
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
737
6
			.saturating_add(T::DbWeight::get().writes(3_u64))
738
6
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
739
6
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
740
6
	}
741
29466
	fn base_on_initialize() -> Weight {
742
29466
		// Proof Size summary in bytes:
743
29466
		//  Measured:  `0`
744
29466
		//  Estimated: `0`
745
29466
		// Minimum execution time: 664_000 picoseconds.
746
29466
		Weight::from_parts(757_000, 0)
747
29466
	}
748
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
749
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
750
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
751
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
752
	/// The range of component `x` is `[0, 300]`.
753
	/// The range of component `y` is `[0, 100]`.
754
	fn set_auto_compound(x: u32, y: u32, ) -> Weight {
755
		// Proof Size summary in bytes:
756
		//  Measured:  `672 + x * (22 ±0) + y * (36 ±0)`
757
		//  Estimated: `4028 + x * (23 ±0) + y * (36 ±0)`
758
		// Minimum execution time: 23_554_000 picoseconds.
759
		Weight::from_parts(22_032_839, 4028)
760
			// Standard Error: 697
761
			.saturating_add(Weight::from_parts(51_005, 0).saturating_mul(x.into()))
762
			// Standard Error: 2_087
763
			.saturating_add(Weight::from_parts(76_602, 0).saturating_mul(y.into()))
764
			.saturating_add(T::DbWeight::get().reads(2_u64))
765
			.saturating_add(T::DbWeight::get().writes(1_u64))
766
			.saturating_add(Weight::from_parts(0, 23).saturating_mul(x.into()))
767
			.saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
768
	}
769
	/// Storage: `System::Account` (r:1 w:1)
770
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
771
	/// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
772
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
773
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
774
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
775
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
776
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
777
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
778
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
779
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
780
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
781
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
782
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
783
	/// Storage: `Balances::Locks` (r:1 w:1)
784
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
785
	/// Storage: `Balances::Freezes` (r:1 w:0)
786
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
787
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
788
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
789
	/// The range of component `x` is `[0, 350]`.
790
	/// The range of component `y` is `[0, 349]`.
791
	/// The range of component `z` is `[0, 99]`.
792
	fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
793
		// Proof Size summary in bytes:
794
		//  Measured:  `0 + x * (60 ±0) + y * (21 ±0) + z * (78 ±0)`
795
		//  Estimated: `26250 + x * (44 ±0) + y * (19 ±0) + z * (76 ±1)`
796
		// Minimum execution time: 95_423_000 picoseconds.
797
		Weight::from_parts(75_370_797, 26250)
798
			// Standard Error: 1_333
799
			.saturating_add(Weight::from_parts(138_208, 0).saturating_mul(x.into()))
800
			// Standard Error: 1_337
801
			.saturating_add(Weight::from_parts(1_693, 0).saturating_mul(y.into()))
802
			// Standard Error: 4_710
803
			.saturating_add(Weight::from_parts(228_804, 0).saturating_mul(z.into()))
804
			.saturating_add(T::DbWeight::get().reads(9_u64))
805
			.saturating_add(T::DbWeight::get().writes(8_u64))
806
			.saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
807
			.saturating_add(Weight::from_parts(0, 19).saturating_mul(y.into()))
808
			.saturating_add(Weight::from_parts(0, 76).saturating_mul(z.into()))
809
	}
810
	/// Storage: `System::Account` (r:2 w:2)
811
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
812
	/// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
813
	/// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
814
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
815
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
816
	/// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
817
	/// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
818
	/// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
819
	/// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
820
	/// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
821
	/// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
822
	/// Storage: `Balances::Locks` (r:2 w:2)
823
	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
824
	/// Storage: `Balances::Freezes` (r:2 w:0)
825
	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
826
	/// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
827
	/// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
828
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
829
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
830
	/// Storage: `ParachainStaking::Total` (r:1 w:1)
831
	/// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
832
	fn delegate_with_auto_compound_worst() -> Weight {
833
		// Proof Size summary in bytes:
834
		//  Measured:  `48170`
835
		//  Estimated: `54110`
836
		// Minimum execution time: 227_976_000 picoseconds.
837
		Weight::from_parts(244_861_000, 54110)
838
			.saturating_add(T::DbWeight::get().reads(15_u64))
839
			.saturating_add(T::DbWeight::get().writes(13_u64))
840
	}
841
	/// Storage: `System::Account` (r:1 w:1)
842
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
843
44
	fn mint_collator_reward() -> Weight {
844
44
		// Proof Size summary in bytes:
845
44
		//  Measured:  `128`
846
44
		//  Estimated: `3581`
847
44
		// Minimum execution time: 16_554_000 picoseconds.
848
44
		Weight::from_parts(16_935_000, 3581)
849
44
			.saturating_add(T::DbWeight::get().reads(1_u64))
850
44
			.saturating_add(T::DbWeight::get().writes(1_u64))
851
44
	}
852
	/// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
853
	/// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
854
	/// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
855
	/// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
856
	/// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
857
	/// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
858
	/// Storage: `ParachainStaking::AtStake` (r:2 w:0)
859
	/// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
860
	/// Storage: `ParachainStaking::AwardedPts` (r:2 w:0)
861
	/// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
862
	/// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
863
	/// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
864
	/// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
865
	/// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
866
	/// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
867
	/// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
868
	fn notify_inactive_collator() -> Weight {
869
		// Proof Size summary in bytes:
870
		//  Measured:  `11566`
871
		//  Estimated: `17506`
872
		// Minimum execution time: 71_223_000 picoseconds.
873
		Weight::from_parts(75_629_000, 17506)
874
			.saturating_add(T::DbWeight::get().reads(10_u64))
875
			.saturating_add(T::DbWeight::get().writes(2_u64))
876
	}
877
}