moonbase_runtime/weights/pallet_parachain_staking.rs
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 49.0.0
21//! DATE: 2025-12-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `ip-10-0-0-198`, 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/moonbase-runtime/moonbase_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/moonbase/src/weights
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46
47use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
48use sp_std::marker::PhantomData;
49
50/// Weights for `pallet_parachain_staking`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<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_699_000 picoseconds.
60 Weight::from_parts(9_055_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_586_000 picoseconds.
71 Weight::from_parts(38_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_507_000 picoseconds.
82 Weight::from_parts(7_781_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: 8_180_000 picoseconds.
93 Weight::from_parts(8_407_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_432_000 picoseconds.
104 Weight::from_parts(7_716_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: 40_895_000 picoseconds.
117 Weight::from_parts(41_444_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::Freezes` (r:1 w:1)
130 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
131 /// Storage: `Balances::Locks` (r:1 w:0)
132 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, 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: 49_783_000 picoseconds.
145 Weight::from_parts(60_177_252, 4752)
146 // Standard Error: 1_770
147 .saturating_add(Weight::from_parts(113_931, 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: 17_199_000 picoseconds.
162 Weight::from_parts(23_546_144, 4023)
163 // Standard Error: 1_323
164 .saturating_add(Weight::from_parts(66_818, 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::Freezes` (r:350 w:350)
178 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
179 /// Storage: `System::Account` (r:350 w:350)
180 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
181 /// Storage: `Balances::Locks` (r:350 w:0)
182 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
183 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:349 w:349)
184 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
185 /// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
186 /// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
187 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
188 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
189 /// Storage: `ParachainStaking::Total` (r:1 w:1)
190 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
191 /// The range of component `x` is `[2, 350]`.
192 fn execute_leave_candidates_worst_case(x: u32, ) -> Weight {
193 // Proof Size summary in bytes:
194 // Measured: `1326 + x * (446 ±0)`
195 // Estimated: `4866 + x * (3762 ±0)`
196 // Minimum execution time: 116_920_000 picoseconds.
197 Weight::from_parts(118_763_000, 4866)
198 // Standard Error: 35_917
199 .saturating_add(Weight::from_parts(40_433_095, 0).saturating_mul(x.into()))
200 .saturating_add(T::DbWeight::get().reads(4_u64))
201 .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(x.into())))
202 .saturating_add(T::DbWeight::get().writes(4_u64))
203 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(x.into())))
204 .saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
205 }
206 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
207 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
208 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
209 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
210 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
211 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
212 /// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
213 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
214 /// Storage: `Balances::Freezes` (r:350 w:350)
215 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, 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: `Balances::Locks` (r:350 w:0)
219 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
220 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:349 w:349)
221 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
222 /// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
223 /// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
224 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
225 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
226 /// Storage: `ParachainStaking::Total` (r:1 w:1)
227 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
228 /// The range of component `x` is `[2, 350]`.
229 /// The range of component `y` is `[2, 350]`.
230 fn execute_leave_candidates_ideal(x: u32, _y: u32, ) -> Weight {
231 // Proof Size summary in bytes:
232 // Measured: `1315 + x * (446 ±0)`
233 // Estimated: `4866 + x * (3762 ±0)`
234 // Minimum execution time: 110_797_000 picoseconds.
235 Weight::from_parts(112_179_000, 4866)
236 // Standard Error: 128_006
237 .saturating_add(Weight::from_parts(43_926_814, 0).saturating_mul(x.into()))
238 .saturating_add(T::DbWeight::get().reads(4_u64))
239 .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(x.into())))
240 .saturating_add(T::DbWeight::get().writes(4_u64))
241 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(x.into())))
242 .saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
243 }
244 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
245 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
246 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
247 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
248 /// The range of component `x` is `[3, 200]`.
249 fn cancel_leave_candidates(x: u32, ) -> Weight {
250 // Proof Size summary in bytes:
251 // Measured: `633 + x * (37 ±0)`
252 // Estimated: `3991 + x * (38 ±0)`
253 // Minimum execution time: 16_397_000 picoseconds.
254 Weight::from_parts(22_424_363, 3991)
255 // Standard Error: 1_040
256 .saturating_add(Weight::from_parts(68_624, 0).saturating_mul(x.into()))
257 .saturating_add(T::DbWeight::get().reads(2_u64))
258 .saturating_add(T::DbWeight::get().writes(2_u64))
259 .saturating_add(Weight::from_parts(0, 38).saturating_mul(x.into()))
260 }
261 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
262 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
263 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
264 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
265 /// The range of component `x` is `[1, 200]`.
266 fn go_offline(x: u32, ) -> Weight {
267 // Proof Size summary in bytes:
268 // Measured: `530 + x * (38 ±0)`
269 // Estimated: `3931 + x * (39 ±0)`
270 // Minimum execution time: 15_478_000 picoseconds.
271 Weight::from_parts(21_133_831, 3931)
272 // Standard Error: 1_622
273 .saturating_add(Weight::from_parts(70_684, 0).saturating_mul(x.into()))
274 .saturating_add(T::DbWeight::get().reads(2_u64))
275 .saturating_add(T::DbWeight::get().writes(2_u64))
276 .saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
277 }
278 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
279 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
280 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
281 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
282 /// The range of component `x` is `[1, 200]`.
283 fn go_online(x: u32, ) -> Weight {
284 // Proof Size summary in bytes:
285 // Measured: `494 + x * (38 ±0)`
286 // Estimated: `3895 + x * (39 ±0)`
287 // Minimum execution time: 15_777_000 picoseconds.
288 Weight::from_parts(21_129_375, 3895)
289 // Standard Error: 1_093
290 .saturating_add(Weight::from_parts(73_004, 0).saturating_mul(x.into()))
291 .saturating_add(T::DbWeight::get().reads(2_u64))
292 .saturating_add(T::DbWeight::get().writes(2_u64))
293 .saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
294 }
295 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
296 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
297 /// Storage: `System::Account` (r:1 w:1)
298 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
299 /// Storage: `ParachainStaking::Total` (r:1 w:1)
300 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
301 /// Storage: `Balances::Freezes` (r:1 w:1)
302 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
303 /// Storage: `Balances::Locks` (r:1 w:0)
304 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
305 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
306 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
307 /// The range of component `x` is `[1, 200]`.
308 fn candidate_bond_more(x: u32, ) -> Weight {
309 // Proof Size summary in bytes:
310 // Measured: `1225 + x * (42 ±0)`
311 // Estimated: `4752 + x * (44 ±0)`
312 // Minimum execution time: 45_555_000 picoseconds.
313 Weight::from_parts(54_213_087, 4752)
314 // Standard Error: 2_234
315 .saturating_add(Weight::from_parts(129_574, 0).saturating_mul(x.into()))
316 .saturating_add(T::DbWeight::get().reads(6_u64))
317 .saturating_add(T::DbWeight::get().writes(5_u64))
318 .saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
319 }
320 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
321 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
322 fn schedule_candidate_bond_less() -> Weight {
323 // Proof Size summary in bytes:
324 // Measured: `171`
325 // Estimated: `3636`
326 // Minimum execution time: 13_833_000 picoseconds.
327 Weight::from_parts(14_287_000, 3636)
328 .saturating_add(T::DbWeight::get().reads(1_u64))
329 .saturating_add(T::DbWeight::get().writes(1_u64))
330 }
331 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
332 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
333 /// Storage: `ParachainStaking::Total` (r:1 w:1)
334 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
335 /// Storage: `Balances::Freezes` (r:1 w:1)
336 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
337 /// Storage: `System::Account` (r:1 w:1)
338 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
339 /// Storage: `Balances::Locks` (r:1 w:0)
340 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
341 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
342 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
343 /// The range of component `x` is `[1, 200]`.
344 fn execute_candidate_bond_less(x: u32, ) -> Weight {
345 // Proof Size summary in bytes:
346 // Measured: `1314 + x * (42 ±0)`
347 // Estimated: `4752 + x * (43 ±0)`
348 // Minimum execution time: 46_426_000 picoseconds.
349 Weight::from_parts(56_104_532, 4752)
350 // Standard Error: 2_654
351 .saturating_add(Weight::from_parts(100_979, 0).saturating_mul(x.into()))
352 .saturating_add(T::DbWeight::get().reads(6_u64))
353 .saturating_add(T::DbWeight::get().writes(5_u64))
354 .saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
355 }
356 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
357 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
358 fn cancel_candidate_bond_less() -> Weight {
359 // Proof Size summary in bytes:
360 // Measured: `191`
361 // Estimated: `3656`
362 // Minimum execution time: 12_687_000 picoseconds.
363 Weight::from_parts(13_215_000, 3656)
364 .saturating_add(T::DbWeight::get().reads(1_u64))
365 .saturating_add(T::DbWeight::get().writes(1_u64))
366 }
367 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
368 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
369 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
370 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
371 /// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
372 /// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
373 /// The range of component `x` is `[0, 349]`.
374 fn schedule_revoke_delegation(x: u32, ) -> Weight {
375 // Proof Size summary in bytes:
376 // Measured: `1265 + x * (2 ±0)`
377 // Estimated: `4562 + x * (3 ±0)`
378 // Minimum execution time: 23_240_000 picoseconds.
379 Weight::from_parts(32_329_230, 4562)
380 // Standard Error: 1_530
381 .saturating_add(Weight::from_parts(99_640, 0).saturating_mul(x.into()))
382 .saturating_add(T::DbWeight::get().reads(3_u64))
383 .saturating_add(T::DbWeight::get().writes(3_u64))
384 .saturating_add(Weight::from_parts(0, 3).saturating_mul(x.into()))
385 }
386 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
387 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
388 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
389 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
390 /// Storage: `System::Account` (r:1 w:1)
391 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
392 /// Storage: `Balances::Freezes` (r:1 w:1)
393 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
394 /// Storage: `Balances::Locks` (r:1 w:0)
395 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
396 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
397 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
398 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
399 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
400 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
401 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
402 /// Storage: `ParachainStaking::Total` (r:1 w:1)
403 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
404 /// The range of component `x` is `[0, 349]`.
405 fn delegator_bond_more(x: u32, ) -> Weight {
406 // Proof Size summary in bytes:
407 // Measured: `2556 + x * (39 ±0)`
408 // Estimated: `5909 + x * (39 ±0)`
409 // Minimum execution time: 65_167_000 picoseconds.
410 Weight::from_parts(82_026_481, 5909)
411 // Standard Error: 3_753
412 .saturating_add(Weight::from_parts(233_300, 0).saturating_mul(x.into()))
413 .saturating_add(T::DbWeight::get().reads(9_u64))
414 .saturating_add(T::DbWeight::get().writes(7_u64))
415 .saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
416 }
417 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
418 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
419 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
420 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
421 /// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
422 /// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
423 /// The range of component `x` is `[0, 349]`.
424 fn schedule_delegator_bond_less(x: u32, ) -> Weight {
425 // Proof Size summary in bytes:
426 // Measured: `1265 + x * (2 ±0)`
427 // Estimated: `4562 + x * (3 ±0)`
428 // Minimum execution time: 23_991_000 picoseconds.
429 Weight::from_parts(40_845_597, 4562)
430 // Standard Error: 2_934
431 .saturating_add(Weight::from_parts(66_990, 0).saturating_mul(x.into()))
432 .saturating_add(T::DbWeight::get().reads(3_u64))
433 .saturating_add(T::DbWeight::get().writes(3_u64))
434 .saturating_add(Weight::from_parts(0, 3).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 /// Storage: `Balances::Freezes` (r:1 w:1)
441 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
442 /// Storage: `System::Account` (r:1 w:1)
443 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
444 /// Storage: `Balances::Locks` (r:1 w:0)
445 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
446 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
447 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
448 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
449 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
450 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
451 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
452 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
453 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
454 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
455 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
456 /// Storage: `ParachainStaking::Total` (r:1 w:1)
457 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
458 /// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
459 /// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
460 fn execute_delegator_revoke_delegation_worst() -> Weight {
461 // Proof Size summary in bytes:
462 // Measured: `23907`
463 // Estimated: `27372`
464 // Minimum execution time: 157_533_000 picoseconds.
465 Weight::from_parts(183_054_000, 27372)
466 .saturating_add(T::DbWeight::get().reads(12_u64))
467 .saturating_add(T::DbWeight::get().writes(11_u64))
468 }
469 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
470 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
471 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
472 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
473 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
474 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
475 /// Storage: `Balances::Freezes` (r:1 w:1)
476 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
477 /// Storage: `System::Account` (r:1 w:1)
478 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
479 /// Storage: `Balances::Locks` (r:1 w:0)
480 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
481 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
482 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
483 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
484 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
485 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
486 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
487 /// Storage: `ParachainStaking::Total` (r:1 w:1)
488 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
489 /// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
490 /// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
491 fn execute_delegator_bond_less_worst() -> Weight {
492 // Proof Size summary in bytes:
493 // Measured: `16529`
494 // Estimated: `19994`
495 // Minimum execution time: 139_716_000 picoseconds.
496 Weight::from_parts(191_904_000, 19994)
497 .saturating_add(T::DbWeight::get().reads(11_u64))
498 .saturating_add(T::DbWeight::get().writes(10_u64))
499 }
500 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
501 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
502 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
503 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
504 /// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
505 /// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
506 /// The range of component `x` is `[0, 349]`.
507 fn cancel_delegation_request(x: u32, ) -> Weight {
508 // Proof Size summary in bytes:
509 // Measured: `1352 + x * (2 ±0)`
510 // Estimated: `4664 + x * (3 ±0)`
511 // Minimum execution time: 27_865_000 picoseconds.
512 Weight::from_parts(37_869_776, 4664)
513 // Standard Error: 1_899
514 .saturating_add(Weight::from_parts(99_148, 0).saturating_mul(x.into()))
515 .saturating_add(T::DbWeight::get().reads(3_u64))
516 .saturating_add(T::DbWeight::get().writes(3_u64))
517 .saturating_add(Weight::from_parts(0, 3).saturating_mul(x.into()))
518 }
519 /// Storage: `ParachainStaking::Points` (r:1 w:0)
520 /// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
521 fn prepare_staking_payouts() -> Weight {
522 // Proof Size summary in bytes:
523 // Measured: `3`
524 // Estimated: `3468`
525 // Minimum execution time: 2_994_000 picoseconds.
526 Weight::from_parts(3_153_000, 3468)
527 .saturating_add(T::DbWeight::get().reads(1_u64))
528 }
529 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
530 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
531 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
532 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
533 /// The range of component `y` is `[0, 100]`.
534 fn get_rewardable_delegators(y: u32, ) -> Weight {
535 // Proof Size summary in bytes:
536 // Measured: `98 + y * (36 ±0)`
537 // Estimated: `3562 + y * (36 ±0)`
538 // Minimum execution time: 9_927_000 picoseconds.
539 Weight::from_parts(11_352_981, 3562)
540 // Standard Error: 1_830
541 .saturating_add(Weight::from_parts(102_242, 0).saturating_mul(y.into()))
542 .saturating_add(T::DbWeight::get().reads(2_u64))
543 .saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
544 }
545 /// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
546 /// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
547 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
548 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
549 /// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
550 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
551 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:51 w:0)
552 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
553 /// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
554 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
555 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
556 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
557 /// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
558 /// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
559 /// Storage: `ParachainStaking::AtStake` (r:0 w:51)
560 /// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
561 /// The range of component `x` is `[0, 50]`.
562 /// The range of component `y` is `[0, 100]`.
563 fn select_top_candidates(x: u32, y: u32, ) -> Weight {
564 // Proof Size summary in bytes:
565 // Measured: `0 + x * (3816 ±0) + y * (1800 ±0)`
566 // Estimated: `3718 + x * (3975 ±39) + y * (639 ±19)`
567 // Minimum execution time: 26_183_000 picoseconds.
568 Weight::from_parts(26_546_000, 3718)
569 // Standard Error: 79_119
570 .saturating_add(Weight::from_parts(20_810_323, 0).saturating_mul(x.into()))
571 // Standard Error: 39_454
572 .saturating_add(Weight::from_parts(1_564_591, 0).saturating_mul(y.into()))
573 .saturating_add(T::DbWeight::get().reads(6_u64))
574 .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
575 .saturating_add(T::DbWeight::get().writes(2_u64))
576 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
577 .saturating_add(Weight::from_parts(0, 3975).saturating_mul(x.into()))
578 .saturating_add(Weight::from_parts(0, 639).saturating_mul(y.into()))
579 }
580 /// Storage: `System::Account` (r:349 w:349)
581 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
582 /// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
583 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
584 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:349 w:0)
585 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
586 /// Storage: `Balances::Freezes` (r:349 w:349)
587 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
588 /// Storage: `Balances::Locks` (r:349 w:0)
589 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
590 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
591 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
592 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
593 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
594 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
595 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
596 /// Storage: `ParachainStaking::Total` (r:1 w:1)
597 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
598 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
599 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
600 /// The range of component `x` is `[0, 349]`.
601 /// The range of component `y` is `[0, 349]`.
602 fn pay_one_collator_reward_best(x: u32, y: u32, ) -> Weight {
603 // Proof Size summary in bytes:
604 // Measured: `0 + x * (346 ±0) + y * (148 ±0)`
605 // Estimated: `110853 + x * (2591 ±43) + y * (1308 ±43)`
606 // Minimum execution time: 207_000 picoseconds.
607 Weight::from_parts(236_000, 110853)
608 // Standard Error: 556_667
609 .saturating_add(Weight::from_parts(40_853_077, 0).saturating_mul(x.into()))
610 // Standard Error: 556_667
611 .saturating_add(Weight::from_parts(16_163_703, 0).saturating_mul(y.into()))
612 .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
613 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
614 .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(x.into())))
615 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
616 .saturating_add(Weight::from_parts(0, 2591).saturating_mul(x.into()))
617 .saturating_add(Weight::from_parts(0, 1308).saturating_mul(y.into()))
618 }
619 /// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
620 /// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
621 /// Storage: `ParachainStaking::Points` (r:1 w:0)
622 /// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
623 /// Storage: `ParachainStaking::AtStake` (r:2 w:1)
624 /// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
625 /// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
626 /// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
627 /// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
628 /// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
629 /// Storage: `System::Account` (r:301 w:301)
630 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
631 /// The range of component `y` is `[0, 300]`.
632 fn pay_one_collator_reward(y: u32, ) -> Weight {
633 // Proof Size summary in bytes:
634 // Measured: `1383 + y * (160 ±0)`
635 // Estimated: `7128 + y * (2591 ±0)`
636 // Minimum execution time: 50_736_000 picoseconds.
637 Weight::from_parts(36_908_714, 7128)
638 // Standard Error: 12_349
639 .saturating_add(Weight::from_parts(22_476_311, 0).saturating_mul(y.into()))
640 .saturating_add(T::DbWeight::get().reads(7_u64))
641 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
642 .saturating_add(T::DbWeight::get().writes(3_u64))
643 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
644 .saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
645 }
646 fn base_on_initialize() -> Weight {
647 // Proof Size summary in bytes:
648 // Measured: `0`
649 // Estimated: `0`
650 // Minimum execution time: 801_000 picoseconds.
651 Weight::from_parts(918_000, 0)
652 }
653 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
654 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
655 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
656 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
657 /// The range of component `x` is `[0, 300]`.
658 /// The range of component `y` is `[0, 100]`.
659 fn set_auto_compound(x: u32, y: u32, ) -> Weight {
660 // Proof Size summary in bytes:
661 // Measured: `672 + x * (22 ±0) + y * (36 ±0)`
662 // Estimated: `4028 + x * (23 ±0) + y * (36 ±0)`
663 // Minimum execution time: 24_916_000 picoseconds.
664 Weight::from_parts(27_320_465, 4028)
665 // Standard Error: 670
666 .saturating_add(Weight::from_parts(57_621, 0).saturating_mul(x.into()))
667 // Standard Error: 2_007
668 .saturating_add(Weight::from_parts(45_702, 0).saturating_mul(y.into()))
669 .saturating_add(T::DbWeight::get().reads(2_u64))
670 .saturating_add(T::DbWeight::get().writes(1_u64))
671 .saturating_add(Weight::from_parts(0, 23).saturating_mul(x.into()))
672 .saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
673 }
674 /// Storage: `System::Account` (r:1 w:1)
675 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
676 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
677 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
678 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
679 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
680 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
681 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
682 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
683 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
684 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
685 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
686 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
687 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
688 /// Storage: `Balances::Freezes` (r:1 w:1)
689 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
690 /// Storage: `Balances::Locks` (r:1 w:0)
691 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
692 /// Storage: `ParachainStaking::Total` (r:1 w:1)
693 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
694 /// The range of component `x` is `[0, 350]`.
695 /// The range of component `y` is `[0, 349]`.
696 /// The range of component `z` is `[0, 99]`.
697 fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
698 // Proof Size summary in bytes:
699 // Measured: `0 + x * (60 ±0) + y * (21 ±0) + z * (78 ±0)`
700 // Estimated: `26242 + x * (44 ±0) + y * (19 ±0) + z * (76 ±1)`
701 // Minimum execution time: 110_414_000 picoseconds.
702 Weight::from_parts(80_743_299, 26242)
703 // Standard Error: 1_664
704 .saturating_add(Weight::from_parts(153_973, 0).saturating_mul(x.into()))
705 // Standard Error: 1_668
706 .saturating_add(Weight::from_parts(12_347, 0).saturating_mul(y.into()))
707 // Standard Error: 5_876
708 .saturating_add(Weight::from_parts(262_997, 0).saturating_mul(z.into()))
709 .saturating_add(T::DbWeight::get().reads(9_u64))
710 .saturating_add(T::DbWeight::get().writes(8_u64))
711 .saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
712 .saturating_add(Weight::from_parts(0, 19).saturating_mul(y.into()))
713 .saturating_add(Weight::from_parts(0, 76).saturating_mul(z.into()))
714 }
715 /// Storage: `System::Account` (r:2 w:2)
716 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
717 /// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
718 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
719 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
720 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
721 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
722 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
723 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
724 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
725 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
726 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
727 /// Storage: `Balances::Freezes` (r:2 w:2)
728 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
729 /// Storage: `Balances::Locks` (r:2 w:0)
730 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
731 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
732 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
733 /// Storage: `ParachainStaking::DelegationScheduledRequestsPerCollator` (r:1 w:1)
734 /// Proof: `ParachainStaking::DelegationScheduledRequestsPerCollator` (`max_values`: None, `max_size`: None, mode: `Measured`)
735 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
736 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
737 /// Storage: `ParachainStaking::Total` (r:1 w:1)
738 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
739 fn delegate_with_auto_compound_worst() -> Weight {
740 // Proof Size summary in bytes:
741 // Measured: `34862`
742 // Estimated: `40802`
743 // Minimum execution time: 245_556_000 picoseconds.
744 Weight::from_parts(262_330_000, 40802)
745 .saturating_add(T::DbWeight::get().reads(16_u64))
746 .saturating_add(T::DbWeight::get().writes(14_u64))
747 }
748 /// Storage: `System::Account` (r:1 w:1)
749 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
750 fn mint_collator_reward() -> Weight {
751 // Proof Size summary in bytes:
752 // Measured: `128`
753 // Estimated: `3581`
754 // Minimum execution time: 22_158_000 picoseconds.
755 Weight::from_parts(23_051_000, 3581)
756 .saturating_add(T::DbWeight::get().reads(1_u64))
757 .saturating_add(T::DbWeight::get().writes(1_u64))
758 }
759 /// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
760 /// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
761 /// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
762 /// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
763 /// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
764 /// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
765 /// Storage: `ParachainStaking::WasInactive` (r:2 w:0)
766 /// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
767 /// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
768 /// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
769 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
770 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
771 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
772 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
773 fn notify_inactive_collator() -> Weight {
774 // Proof Size summary in bytes:
775 // Measured: `11212`
776 // Estimated: `17152`
777 // Minimum execution time: 73_424_000 picoseconds.
778 Weight::from_parts(74_657_000, 17152)
779 .saturating_add(T::DbWeight::get().reads(8_u64))
780 .saturating_add(T::DbWeight::get().writes(2_u64))
781 }
782 /// Storage: `ParachainStaking::AtStake` (r:52 w:0)
783 /// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
784 /// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
785 /// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
786 /// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
787 /// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
788 /// The range of component `x` is `[0, 50]`.
789 fn mark_collators_as_inactive(x: u32, ) -> Weight {
790 // Proof Size summary in bytes:
791 // Measured: `108 + x * (104 ±0)`
792 // Estimated: `6050 + x * (2580 ±0)`
793 // Minimum execution time: 11_688_000 picoseconds.
794 Weight::from_parts(16_637_903, 6050)
795 // Standard Error: 16_101
796 .saturating_add(Weight::from_parts(9_142_383, 0).saturating_mul(x.into()))
797 .saturating_add(T::DbWeight::get().reads(3_u64))
798 .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
799 .saturating_add(T::DbWeight::get().writes(1_u64))
800 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
801 .saturating_add(Weight::from_parts(0, 2580).saturating_mul(x.into()))
802 }
803}