pallet_parachain_staking/weights.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//! Autogenerated weights for `pallet_parachain_staking`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 46.1.0
20//! DATE: 2025-06-19, STEPS: `5`, REPEAT: `5`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `Michaels-MacBook-Pro-2.local`, CPU: `<UNKNOWN>`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
24
25// Executed Command:
26// ./target/release/moonbeam
27// benchmark
28// pallet
29// --runtime=./target/release/wbuild/moonbase-runtime/moonbase_runtime.wasm
30// --genesis-builder=runtime
31// --genesis-builder-preset=development
32// --steps=5
33// --repeat=5
34// --pallet=pallet-parachain-staking
35// --extrinsic=
36// --wasm-execution=compiled
37// --header=./file_header.txt
38// --template=../polkadot-sdk/substrate/.maintain/frame-weight-template.hbs
39// --output=./pallets/parachain-staking/src/weights.rs
40
41#![cfg_attr(rustfmt, rustfmt_skip)]
42#![allow(unused_parens)]
43#![allow(unused_imports)]
44#![allow(missing_docs)]
45
46use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
47use core::marker::PhantomData;
48
49/// Weight functions needed for `pallet_parachain_staking`.
50pub trait WeightInfo {
51 fn set_staking_expectations() -> Weight;
52 fn set_inflation() -> Weight;
53 fn set_inflation_distribution_config() -> Weight;
54 fn set_total_selected() -> Weight;
55 fn set_collator_commission() -> Weight;
56 fn set_blocks_per_round() -> Weight;
57 fn join_candidates(x: u32, ) -> Weight;
58 fn schedule_leave_candidates(x: u32, ) -> Weight;
59 fn execute_leave_candidates_worst_case(x: u32, ) -> Weight;
60 fn execute_leave_candidates_ideal(x: u32, y: u32, ) -> Weight;
61 fn cancel_leave_candidates(x: u32, ) -> Weight;
62 fn go_offline(x: u32, ) -> Weight;
63 fn go_online(x: u32, ) -> Weight;
64 fn candidate_bond_more(x: u32, ) -> Weight;
65 fn schedule_candidate_bond_less() -> Weight;
66 fn execute_candidate_bond_less(x: u32, ) -> Weight;
67 fn cancel_candidate_bond_less() -> Weight;
68 fn schedule_revoke_delegation(x: u32, ) -> Weight;
69 fn delegator_bond_more(x: u32, ) -> Weight;
70 fn schedule_delegator_bond_less(x: u32, ) -> Weight;
71 fn execute_delegator_revoke_delegation_worst() -> Weight;
72 fn execute_delegator_bond_less_worst() -> Weight;
73 fn cancel_delegation_request(x: u32, ) -> Weight;
74 fn prepare_staking_payouts() -> Weight;
75 fn get_rewardable_delegators(y: u32, ) -> Weight;
76 fn select_top_candidates(x: u32, y: u32, ) -> Weight;
77 fn pay_one_collator_reward_best(x: u32, y: u32, ) -> Weight;
78 fn pay_one_collator_reward(y: u32, ) -> Weight;
79 fn base_on_initialize() -> Weight;
80 fn set_auto_compound(x: u32, y: u32, ) -> Weight;
81 fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight;
82 fn delegate_with_auto_compound_worst() -> Weight;
83 fn mint_collator_reward() -> Weight;
84 fn notify_inactive_collator() -> Weight;
85 fn mark_collators_as_inactive(x: u32, ) -> Weight;
86}
87
88/// Weights for `pallet_parachain_staking` using the Substrate node and recommended hardware.
89pub struct SubstrateWeight<T>(PhantomData<T>);
90impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
91 /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
92 /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
93 fn set_staking_expectations() -> Weight {
94 // Proof Size summary in bytes:
95 // Measured: `88`
96 // Estimated: `1573`
97 // Minimum execution time: 8_000_000 picoseconds.
98 Weight::from_parts(10_000_000, 1573)
99 .saturating_add(T::DbWeight::get().reads(1_u64))
100 .saturating_add(T::DbWeight::get().writes(1_u64))
101 }
102 /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
103 /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
104 fn set_inflation() -> Weight {
105 // Proof Size summary in bytes:
106 // Measured: `88`
107 // Estimated: `1573`
108 // Minimum execution time: 25_000_000 picoseconds.
109 Weight::from_parts(27_000_000, 1573)
110 .saturating_add(T::DbWeight::get().reads(1_u64))
111 .saturating_add(T::DbWeight::get().writes(1_u64))
112 }
113 /// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
114 /// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
115 fn set_inflation_distribution_config() -> Weight {
116 // Proof Size summary in bytes:
117 // Measured: `30`
118 // Estimated: `1515`
119 // Minimum execution time: 7_000_000 picoseconds.
120 Weight::from_parts(7_000_000, 1515)
121 .saturating_add(T::DbWeight::get().reads(1_u64))
122 .saturating_add(T::DbWeight::get().writes(1_u64))
123 }
124 /// Storage: `ParachainStaking::TotalSelected` (r:1 w:1)
125 /// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
126 fn set_total_selected() -> Weight {
127 // Proof Size summary in bytes:
128 // Measured: `28`
129 // Estimated: `1513`
130 // Minimum execution time: 8_000_000 picoseconds.
131 Weight::from_parts(8_000_000, 1513)
132 .saturating_add(T::DbWeight::get().reads(1_u64))
133 .saturating_add(T::DbWeight::get().writes(1_u64))
134 }
135 /// Storage: `ParachainStaking::CollatorCommission` (r:1 w:1)
136 /// Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
137 fn set_collator_commission() -> Weight {
138 // Proof Size summary in bytes:
139 // Measured: `27`
140 // Estimated: `1512`
141 // Minimum execution time: 7_000_000 picoseconds.
142 Weight::from_parts(8_000_000, 1512)
143 .saturating_add(T::DbWeight::get().reads(1_u64))
144 .saturating_add(T::DbWeight::get().writes(1_u64))
145 }
146 /// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
147 /// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
148 /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
149 /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
150 fn set_blocks_per_round() -> Weight {
151 // Proof Size summary in bytes:
152 // Measured: `116`
153 // Estimated: `1601`
154 // Minimum execution time: 29_000_000 picoseconds.
155 Weight::from_parts(29_000_000, 1601)
156 .saturating_add(T::DbWeight::get().reads(2_u64))
157 .saturating_add(T::DbWeight::get().writes(1_u64))
158 }
159 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
160 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
161 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
162 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
163 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
164 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
165 /// Storage: `System::Account` (r:1 w:1)
166 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
167 /// Storage: `Balances::Freezes` (r:1 w:1)
168 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
169 /// Storage: `Balances::Locks` (r:1 w:0)
170 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
171 /// Storage: `ParachainStaking::Total` (r:1 w:1)
172 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
173 /// Storage: `ParachainStaking::TopDelegations` (r:0 w:1)
174 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
175 /// Storage: `ParachainStaking::BottomDelegations` (r:0 w:1)
176 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
177 /// The range of component `x` is `[3, 200]`.
178 fn join_candidates(x: u32, ) -> Weight {
179 // Proof Size summary in bytes:
180 // Measured: `1406 + x * (38 ±0)`
181 // Estimated: `4752 + x * (43 ±1)`
182 // Minimum execution time: 57_000_000 picoseconds.
183 Weight::from_parts(62_371_559, 4752)
184 // Standard Error: 37_712
185 .saturating_add(Weight::from_parts(123_469, 0).saturating_mul(x.into()))
186 .saturating_add(T::DbWeight::get().reads(8_u64))
187 .saturating_add(T::DbWeight::get().writes(7_u64))
188 .saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
189 }
190 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
191 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
192 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
193 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
194 /// The range of component `x` is `[3, 200]`.
195 fn schedule_leave_candidates(x: u32, ) -> Weight {
196 // Proof Size summary in bytes:
197 // Measured: `659 + x * (37 ±0)`
198 // Estimated: `3867 + x * (39 ±0)`
199 // Minimum execution time: 16_000_000 picoseconds.
200 Weight::from_parts(19_575_089, 3867)
201 // Standard Error: 13_668
202 .saturating_add(Weight::from_parts(105_647, 0).saturating_mul(x.into()))
203 .saturating_add(T::DbWeight::get().reads(2_u64))
204 .saturating_add(T::DbWeight::get().writes(2_u64))
205 .saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
206 }
207 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
208 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
209 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
210 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
211 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
212 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
213 /// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
214 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
215 /// Storage: `Balances::Freezes` (r:350 w:350)
216 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
217 /// Storage: `System::Account` (r:350 w:350)
218 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
219 /// Storage: `Balances::Locks` (r:350 w:1)
220 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
221 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
222 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
223 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
224 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
225 /// Storage: `ParachainStaking::Total` (r:1 w:1)
226 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
227 /// The range of component `x` is `[2, 350]`.
228 fn execute_leave_candidates_worst_case(x: u32, ) -> Weight {
229 // Proof Size summary in bytes:
230 // Measured: `1169 + x * (456 ±0)`
231 // Estimated: `4830 + x * (3762 ±3)`
232 // Minimum execution time: 137_000_000 picoseconds.
233 Weight::from_parts(137_000_000, 4830)
234 // Standard Error: 632_958
235 .saturating_add(Weight::from_parts(42_365_414, 0).saturating_mul(x.into()))
236 .saturating_add(T::DbWeight::get().reads(4_u64))
237 .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(x.into())))
238 .saturating_add(T::DbWeight::get().writes(6_u64))
239 .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
240 .saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
241 }
242 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
243 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
244 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
245 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
246 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
247 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
248 /// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
249 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
250 /// Storage: `Balances::Freezes` (r:350 w:350)
251 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
252 /// Storage: `System::Account` (r:350 w:350)
253 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
254 /// Storage: `Balances::Locks` (r:350 w:1)
255 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
256 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
257 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
258 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
259 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
260 /// Storage: `ParachainStaking::Total` (r:1 w:1)
261 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
262 /// The range of component `x` is `[2, 350]`.
263 /// The range of component `y` is `[2, 350]`.
264 fn execute_leave_candidates_ideal(x: u32, _y: u32, ) -> Weight {
265 // Proof Size summary in bytes:
266 // Measured: `1169 + x * (456 ±0)`
267 // Estimated: `4830 + x * (3762 ±0)`
268 // Minimum execution time: 111_000_000 picoseconds.
269 Weight::from_parts(149_062_452, 4830)
270 // Standard Error: 616_234
271 .saturating_add(Weight::from_parts(43_983_652, 0).saturating_mul(x.into()))
272 .saturating_add(T::DbWeight::get().reads(4_u64))
273 .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(x.into())))
274 .saturating_add(T::DbWeight::get().writes(6_u64))
275 .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
276 .saturating_add(Weight::from_parts(0, 3762).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 `[3, 200]`.
283 fn cancel_leave_candidates(x: u32, ) -> Weight {
284 // Proof Size summary in bytes:
285 // Measured: `627 + x * (37 ±0)`
286 // Estimated: `3835 + x * (39 ±0)`
287 // Minimum execution time: 15_000_000 picoseconds.
288 Weight::from_parts(17_412_225, 3835)
289 // Standard Error: 9_403
290 .saturating_add(Weight::from_parts(92_764, 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: `ParachainStaking::CandidatePool` (r:1 w:1)
298 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
299 /// The range of component `x` is `[1, 200]`.
300 fn go_offline(x: u32, ) -> Weight {
301 // Proof Size summary in bytes:
302 // Measured: `562 + x * (38 ±0)`
303 // Estimated: `3828 + x * (39 ±0)`
304 // Minimum execution time: 15_000_000 picoseconds.
305 Weight::from_parts(17_962_310, 3828)
306 // Standard Error: 10_178
307 .saturating_add(Weight::from_parts(80_881, 0).saturating_mul(x.into()))
308 .saturating_add(T::DbWeight::get().reads(2_u64))
309 .saturating_add(T::DbWeight::get().writes(2_u64))
310 .saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
311 }
312 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
313 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
314 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
315 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
316 /// The range of component `x` is `[1, 200]`.
317 fn go_online(x: u32, ) -> Weight {
318 // Proof Size summary in bytes:
319 // Measured: `526 + x * (38 ±0)`
320 // Estimated: `3791 + x * (39 ±0)`
321 // Minimum execution time: 14_000_000 picoseconds.
322 Weight::from_parts(17_749_962, 3791)
323 // Standard Error: 12_623
324 .saturating_add(Weight::from_parts(88_989, 0).saturating_mul(x.into()))
325 .saturating_add(T::DbWeight::get().reads(2_u64))
326 .saturating_add(T::DbWeight::get().writes(2_u64))
327 .saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
328 }
329 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
330 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
331 /// Storage: `System::Account` (r:1 w:1)
332 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
333 /// Storage: `Balances::Locks` (r:1 w:1)
334 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
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: `ParachainStaking::Total` (r:1 w:1)
338 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
339 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
340 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
341 /// The range of component `x` is `[1, 200]`.
342 fn candidate_bond_more(x: u32, ) -> Weight {
343 // Proof Size summary in bytes:
344 // Measured: `932 + x * (44 ±0)`
345 // Estimated: `4752 + x * (45 ±1)`
346 // Minimum execution time: 82_000_000 picoseconds.
347 Weight::from_parts(87_570_121, 4752)
348 // Standard Error: 22_771
349 .saturating_add(Weight::from_parts(80_803, 0).saturating_mul(x.into()))
350 .saturating_add(T::DbWeight::get().reads(7_u64))
351 .saturating_add(T::DbWeight::get().writes(7_u64))
352 .saturating_add(Weight::from_parts(0, 45).saturating_mul(x.into()))
353 }
354 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
355 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
356 fn schedule_candidate_bond_less() -> Weight {
357 // Proof Size summary in bytes:
358 // Measured: `171`
359 // Estimated: `3636`
360 // Minimum execution time: 12_000_000 picoseconds.
361 Weight::from_parts(13_000_000, 3636)
362 .saturating_add(T::DbWeight::get().reads(1_u64))
363 .saturating_add(T::DbWeight::get().writes(1_u64))
364 }
365 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
366 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
367 /// Storage: `ParachainStaking::Total` (r:1 w:1)
368 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
369 /// Storage: `Balances::Locks` (r:1 w:1)
370 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
371 /// Storage: `Balances::Freezes` (r:1 w:1)
372 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
373 /// Storage: `System::Account` (r:1 w:1)
374 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
375 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
376 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
377 /// The range of component `x` is `[1, 200]`.
378 fn execute_candidate_bond_less(x: u32, ) -> Weight {
379 // Proof Size summary in bytes:
380 // Measured: `1091 + x * (43 ±0)`
381 // Estimated: `4752 + x * (45 ±1)`
382 // Minimum execution time: 87_000_000 picoseconds.
383 Weight::from_parts(116_267_098, 4752)
384 .saturating_add(T::DbWeight::get().reads(7_u64))
385 .saturating_add(T::DbWeight::get().writes(7_u64))
386 .saturating_add(Weight::from_parts(0, 45).saturating_mul(x.into()))
387 }
388 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
389 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
390 fn cancel_candidate_bond_less() -> Weight {
391 // Proof Size summary in bytes:
392 // Measured: `191`
393 // Estimated: `3656`
394 // Minimum execution time: 12_000_000 picoseconds.
395 Weight::from_parts(12_000_000, 3656)
396 .saturating_add(T::DbWeight::get().reads(1_u64))
397 .saturating_add(T::DbWeight::get().writes(1_u64))
398 }
399 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
400 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
401 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
402 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
403 /// The range of component `x` is `[0, 349]`.
404 fn schedule_revoke_delegation(x: u32, ) -> Weight {
405 // Proof Size summary in bytes:
406 // Measured: `233 + x * (43 ±0)`
407 // Estimated: `3832 + x * (44 ±0)`
408 // Minimum execution time: 14_000_000 picoseconds.
409 Weight::from_parts(19_302_147, 3832)
410 // Standard Error: 13_114
411 .saturating_add(Weight::from_parts(108_100, 0).saturating_mul(x.into()))
412 .saturating_add(T::DbWeight::get().reads(2_u64))
413 .saturating_add(T::DbWeight::get().writes(2_u64))
414 .saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
415 }
416 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
417 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
418 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
419 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
420 /// Storage: `System::Account` (r:1 w:1)
421 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
422 /// Storage: `Balances::Locks` (r:1 w:1)
423 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
424 /// Storage: `Balances::Freezes` (r:1 w:1)
425 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
426 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
427 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
428 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
429 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
430 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
431 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
432 /// Storage: `ParachainStaking::Total` (r:1 w:1)
433 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
434 /// The range of component `x` is `[0, 349]`.
435 fn delegator_bond_more(x: u32, ) -> Weight {
436 // Proof Size summary in bytes:
437 // Measured: `2205 + x * (78 ±0)`
438 // Estimated: `5197 + x * (78 ±1)`
439 // Minimum execution time: 91_000_000 picoseconds.
440 Weight::from_parts(99_039_136, 5197)
441 // Standard Error: 19_700
442 .saturating_add(Weight::from_parts(165_867, 0).saturating_mul(x.into()))
443 .saturating_add(T::DbWeight::get().reads(10_u64))
444 .saturating_add(T::DbWeight::get().writes(9_u64))
445 .saturating_add(Weight::from_parts(0, 78).saturating_mul(x.into()))
446 }
447 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
448 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
449 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
450 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
451 /// The range of component `x` is `[0, 349]`.
452 fn schedule_delegator_bond_less(x: u32, ) -> Weight {
453 // Proof Size summary in bytes:
454 // Measured: `233 + x * (43 ±0)`
455 // Estimated: `3832 + x * (44 ±0)`
456 // Minimum execution time: 14_000_000 picoseconds.
457 Weight::from_parts(19_757_281, 3832)
458 // Standard Error: 9_837
459 .saturating_add(Weight::from_parts(107_019, 0).saturating_mul(x.into()))
460 .saturating_add(T::DbWeight::get().reads(2_u64))
461 .saturating_add(T::DbWeight::get().writes(2_u64))
462 .saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
463 }
464 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
465 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
466 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
467 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
468 /// Storage: `Balances::Locks` (r:1 w:1)
469 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
470 /// Storage: `Balances::Freezes` (r:1 w:1)
471 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
472 /// Storage: `System::Account` (r:1 w:1)
473 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
474 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
475 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
476 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
477 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
478 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
479 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
480 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
481 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
482 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
483 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
484 /// Storage: `ParachainStaking::Total` (r:1 w:1)
485 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
486 fn execute_delegator_revoke_delegation_worst() -> Weight {
487 // Proof Size summary in bytes:
488 // Measured: `37373`
489 // Estimated: `40838`
490 // Minimum execution time: 136_000_000 picoseconds.
491 Weight::from_parts(149_000_000, 40838)
492 .saturating_add(T::DbWeight::get().reads(11_u64))
493 .saturating_add(T::DbWeight::get().writes(11_u64))
494 }
495 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
496 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
497 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
498 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
499 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
500 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
501 /// Storage: `Balances::Locks` (r:1 w:1)
502 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
503 /// Storage: `Balances::Freezes` (r:1 w:1)
504 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
505 /// Storage: `System::Account` (r:1 w:1)
506 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
507 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
508 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
509 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
510 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
511 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
512 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
513 /// Storage: `ParachainStaking::Total` (r:1 w:1)
514 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
515 fn execute_delegator_bond_less_worst() -> Weight {
516 // Proof Size summary in bytes:
517 // Measured: `29995`
518 // Estimated: `33460`
519 // Minimum execution time: 147_000_000 picoseconds.
520 Weight::from_parts(164_000_000, 33460)
521 .saturating_add(T::DbWeight::get().reads(11_u64))
522 .saturating_add(T::DbWeight::get().writes(11_u64))
523 }
524 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
525 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
526 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
527 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
528 /// The range of component `x` is `[0, 349]`.
529 fn cancel_delegation_request(x: u32, ) -> Weight {
530 // Proof Size summary in bytes:
531 // Measured: `528 + x * (42 ±0)`
532 // Estimated: `3947 + x * (43 ±0)`
533 // Minimum execution time: 26_000_000 picoseconds.
534 Weight::from_parts(34_815_644, 3947)
535 // Standard Error: 13_381
536 .saturating_add(Weight::from_parts(57_315, 0).saturating_mul(x.into()))
537 .saturating_add(T::DbWeight::get().reads(2_u64))
538 .saturating_add(T::DbWeight::get().writes(2_u64))
539 .saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
540 }
541 /// Storage: `ParachainStaking::Points` (r:1 w:0)
542 /// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
543 fn prepare_staking_payouts() -> Weight {
544 // Proof Size summary in bytes:
545 // Measured: `3`
546 // Estimated: `3468`
547 // Minimum execution time: 2_000_000 picoseconds.
548 Weight::from_parts(3_000_000, 3468)
549 .saturating_add(T::DbWeight::get().reads(1_u64))
550 }
551 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
552 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
553 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
554 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
555 /// The range of component `y` is `[0, 100]`.
556 fn get_rewardable_delegators(y: u32, ) -> Weight {
557 // Proof Size summary in bytes:
558 // Measured: `88 + y * (36 ±0)`
559 // Estimated: `3553 + y * (36 ±0)`
560 // Minimum execution time: 6_000_000 picoseconds.
561 Weight::from_parts(7_133_333, 3553)
562 // Standard Error: 5_951
563 .saturating_add(Weight::from_parts(36_000, 0).saturating_mul(y.into()))
564 .saturating_add(T::DbWeight::get().reads(2_u64))
565 .saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
566 }
567 /// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
568 /// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
569 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
570 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
571 /// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
572 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
573 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:51 w:0)
574 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
575 /// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
576 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
577 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
578 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
579 /// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
580 /// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
581 /// Storage: `ParachainStaking::AtStake` (r:0 w:51)
582 /// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
583 /// The range of component `x` is `[0, 50]`.
584 /// The range of component `y` is `[0, 100]`.
585 fn select_top_candidates(x: u32, y: u32, ) -> Weight {
586 // Proof Size summary in bytes:
587 // Measured: `0 + x * (3818 ±0) + y * (1800 ±0)`
588 // Estimated: `3710 + x * (4038 ±272) + y * (655 ±135)`
589 // Minimum execution time: 19_000_000 picoseconds.
590 Weight::from_parts(20_000_000, 3710)
591 // Standard Error: 507_202
592 .saturating_add(Weight::from_parts(16_073_459, 0).saturating_mul(x.into()))
593 // Standard Error: 253_235
594 .saturating_add(Weight::from_parts(1_074_727, 0).saturating_mul(y.into()))
595 .saturating_add(T::DbWeight::get().reads(6_u64))
596 .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
597 .saturating_add(T::DbWeight::get().writes(2_u64))
598 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
599 .saturating_add(Weight::from_parts(0, 4038).saturating_mul(x.into()))
600 .saturating_add(Weight::from_parts(0, 655).saturating_mul(y.into()))
601 }
602 /// Storage: `System::Account` (r:349 w:349)
603 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
604 /// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
605 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
606 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
607 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
608 /// Storage: `Balances::Locks` (r:349 w:349)
609 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
610 /// Storage: `Balances::Freezes` (r:349 w:349)
611 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
612 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
613 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
614 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
615 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
616 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
617 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
618 /// Storage: `ParachainStaking::Total` (r:1 w:1)
619 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
620 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
621 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
622 /// The range of component `x` is `[0, 349]`.
623 /// The range of component `y` is `[0, 349]`.
624 fn pay_one_collator_reward_best(x: u32, y: u32, ) -> Weight {
625 // Proof Size summary in bytes:
626 // Measured: `0 + x * (389 ±0) + y * (144 ±0) + z * (41 ±0)`
627 // Estimated: `328284 + x * (2591 ±265) + y * (1733 ±265) + z * (41 ±0)`
628 // Minimum execution time: 0_000 picoseconds.
629 Weight::from_parts(0, 328284)
630 // Standard Error: 5_334_461
631 .saturating_add(Weight::from_parts(76_561_571, 0).saturating_mul(x.into()))
632 // Standard Error: 5_334_461
633 .saturating_add(Weight::from_parts(50_346_827, 0).saturating_mul(y.into()))
634 .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(x.into())))
635 .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(y.into())))
636 .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(x.into())))
637 .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(y.into())))
638 .saturating_add(Weight::from_parts(0, 2591).saturating_mul(x.into()))
639 .saturating_add(Weight::from_parts(0, 1733).saturating_mul(y.into()))
640 }
641 /// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
642 /// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
643 /// Storage: `ParachainStaking::Points` (r:1 w:0)
644 /// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
645 /// Storage: `ParachainStaking::AtStake` (r:2 w:1)
646 /// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
647 /// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
648 /// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
649 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
650 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
651 /// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
652 /// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
653 /// Storage: `System::Account` (r:301 w:301)
654 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
655 /// The range of component `y` is `[0, 300]`.
656 fn pay_one_collator_reward(y: u32, ) -> Weight {
657 // Proof Size summary in bytes:
658 // Measured: `1430 + y * (162 ±0)`
659 // Estimated: `6996 + y * (2591 ±0)`
660 // Minimum execution time: 53_000_000 picoseconds.
661 Weight::from_parts(69_200_000, 6996)
662 // Standard Error: 254_782
663 .saturating_add(Weight::from_parts(22_444_888, 0).saturating_mul(y.into()))
664 .saturating_add(T::DbWeight::get().reads(8_u64))
665 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
666 .saturating_add(T::DbWeight::get().writes(3_u64))
667 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(y.into())))
668 .saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
669 }
670 fn base_on_initialize() -> Weight {
671 // Proof Size summary in bytes:
672 // Measured: `0`
673 // Estimated: `0`
674 // Minimum execution time: 1_000_000 picoseconds.
675 Weight::from_parts(1_000_000, 0)
676 }
677 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
678 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
679 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
680 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
681 /// The range of component `x` is `[0, 300]`.
682 /// The range of component `y` is `[0, 100]`.
683 fn set_auto_compound(x: u32, y: u32, ) -> Weight {
684 // Proof Size summary in bytes:
685 // Measured: `427 + x * (23 ±0) + y * (36 ±0)`
686 // Estimated: `3802 + x * (24 ±0) + y * (36 ±0)`
687 // Minimum execution time: 16_000_000 picoseconds.
688 Weight::from_parts(19_300_000, 3802)
689 // Standard Error: 11_639
690 .saturating_add(Weight::from_parts(71_555, 0).saturating_mul(x.into()))
691 // Standard Error: 34_918
692 .saturating_add(Weight::from_parts(58_666, 0).saturating_mul(y.into()))
693 .saturating_add(T::DbWeight::get().reads(2_u64))
694 .saturating_add(T::DbWeight::get().writes(1_u64))
695 .saturating_add(Weight::from_parts(0, 24).saturating_mul(x.into()))
696 .saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
697 }
698 /// Storage: `System::Account` (r:1 w:1)
699 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
700 /// Storage: `ParachainStaking::MigratedDelegators` (r:1 w:0)
701 /// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
702 /// Storage: `Balances::Freezes` (r:1 w:1)
703 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
704 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
705 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
706 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
707 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
708 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
709 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
710 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
711 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
712 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
713 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
714 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
715 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
716 /// Storage: `Balances::Locks` (r:1 w:0)
717 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
718 /// Storage: `ParachainStaking::Total` (r:1 w:1)
719 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
720 /// The range of component `x` is `[0, 350]`.
721 /// The range of component `y` is `[0, 349]`.
722 /// The range of component `z` is `[0, 99]`.
723 fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
724 // Proof Size summary in bytes:
725 // Measured: `0 + x * (61 ±0) + y * (21 ±0) + z * (81 ±0)`
726 // Estimated: `13973 + x * (55 ±2) + y * (21 ±2) + z * (86 ±8)`
727 // Minimum execution time: 79_000_000 picoseconds.
728 Weight::from_parts(61_282_010, 13973)
729 // Standard Error: 18_907
730 .saturating_add(Weight::from_parts(161_692, 0).saturating_mul(x.into()))
731 // Standard Error: 18_960
732 .saturating_add(Weight::from_parts(24_780, 0).saturating_mul(y.into()))
733 // Standard Error: 66_606
734 .saturating_add(Weight::from_parts(222_324, 0).saturating_mul(z.into()))
735 .saturating_add(T::DbWeight::get().reads(11_u64))
736 .saturating_add(T::DbWeight::get().writes(8_u64))
737 .saturating_add(Weight::from_parts(0, 55).saturating_mul(x.into()))
738 .saturating_add(Weight::from_parts(0, 21).saturating_mul(y.into()))
739 .saturating_add(Weight::from_parts(0, 86).saturating_mul(z.into()))
740 }
741 /// Storage: `System::Account` (r:2 w:2)
742 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
743 /// Storage: `ParachainStaking::MigratedDelegators` (r:1 w:0)
744 /// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
745 /// Storage: `Balances::Freezes` (r:2 w:2)
746 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
747 /// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
748 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
749 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
750 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
751 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
752 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
753 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
754 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
755 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
756 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
757 /// Storage: `Balances::Locks` (r:2 w:1)
758 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
759 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
760 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
761 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
762 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
763 /// Storage: `ParachainStaking::Total` (r:1 w:1)
764 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
765 fn delegate_with_auto_compound_worst() -> Weight {
766 // Proof Size summary in bytes:
767 // Measured: `48168`
768 // Estimated: `54108`
769 // Minimum execution time: 205_000_000 picoseconds.
770 Weight::from_parts(212_000_000, 54108)
771 .saturating_add(T::DbWeight::get().reads(16_u64))
772 .saturating_add(T::DbWeight::get().writes(14_u64))
773 }
774 /// Storage: `System::Account` (r:1 w:1)
775 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
776 fn mint_collator_reward() -> Weight {
777 // Proof Size summary in bytes:
778 // Measured: `128`
779 // Estimated: `3581`
780 // Minimum execution time: 23_000_000 picoseconds.
781 Weight::from_parts(24_000_000, 3581)
782 .saturating_add(T::DbWeight::get().reads(1_u64))
783 .saturating_add(T::DbWeight::get().writes(1_u64))
784 }
785 /// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
786 /// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
787 /// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
788 /// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
789 /// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
790 /// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
791 /// Storage: `ParachainStaking::WasInactive` (r:2 w:0)
792 /// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
793 /// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
794 /// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
795 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
796 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
797 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
798 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
799 fn notify_inactive_collator() -> Weight {
800 // Proof Size summary in bytes:
801 // Measured: `11212`
802 // Estimated: `17152`
803 // Minimum execution time: 52_000_000 picoseconds.
804 Weight::from_parts(57_000_000, 17152)
805 .saturating_add(T::DbWeight::get().reads(8_u64))
806 .saturating_add(T::DbWeight::get().writes(2_u64))
807 }
808 /// Storage: `ParachainStaking::AtStake` (r:52 w:0)
809 /// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
810 /// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
811 /// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
812 /// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
813 /// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
814 /// The range of component `x` is `[0, 50]`.
815 fn mark_collators_as_inactive(x: u32, ) -> Weight {
816 // Proof Size summary in bytes:
817 // Measured: `102 + x * (104 ±0)`
818 // Estimated: `6051 + x * (2579 ±0)`
819 // Minimum execution time: 16_000_000 picoseconds.
820 Weight::from_parts(15_394_420, 6051)
821 // Standard Error: 171_814
822 .saturating_add(Weight::from_parts(12_954_526, 0).saturating_mul(x.into()))
823 .saturating_add(T::DbWeight::get().reads(3_u64))
824 .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(x.into())))
825 .saturating_add(T::DbWeight::get().writes(1_u64))
826 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
827 .saturating_add(Weight::from_parts(0, 2579).saturating_mul(x.into()))
828 }
829}
830
831// For backwards compatibility and tests.
832impl WeightInfo for () {
833 /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
834 /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
835 fn set_staking_expectations() -> Weight {
836 // Proof Size summary in bytes:
837 // Measured: `88`
838 // Estimated: `1573`
839 // Minimum execution time: 8_000_000 picoseconds.
840 Weight::from_parts(10_000_000, 1573)
841 .saturating_add(RocksDbWeight::get().reads(1_u64))
842 .saturating_add(RocksDbWeight::get().writes(1_u64))
843 }
844 /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
845 /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
846 fn set_inflation() -> Weight {
847 // Proof Size summary in bytes:
848 // Measured: `88`
849 // Estimated: `1573`
850 // Minimum execution time: 25_000_000 picoseconds.
851 Weight::from_parts(27_000_000, 1573)
852 .saturating_add(RocksDbWeight::get().reads(1_u64))
853 .saturating_add(RocksDbWeight::get().writes(1_u64))
854 }
855 /// Storage: `ParachainStaking::InflationDistributionInfo` (r:1 w:1)
856 /// Proof: `ParachainStaking::InflationDistributionInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
857 fn set_inflation_distribution_config() -> Weight {
858 // Proof Size summary in bytes:
859 // Measured: `30`
860 // Estimated: `1515`
861 // Minimum execution time: 7_000_000 picoseconds.
862 Weight::from_parts(7_000_000, 1515)
863 .saturating_add(RocksDbWeight::get().reads(1_u64))
864 .saturating_add(RocksDbWeight::get().writes(1_u64))
865 }
866 /// Storage: `ParachainStaking::TotalSelected` (r:1 w:1)
867 /// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
868 fn set_total_selected() -> Weight {
869 // Proof Size summary in bytes:
870 // Measured: `28`
871 // Estimated: `1513`
872 // Minimum execution time: 8_000_000 picoseconds.
873 Weight::from_parts(8_000_000, 1513)
874 .saturating_add(RocksDbWeight::get().reads(1_u64))
875 .saturating_add(RocksDbWeight::get().writes(1_u64))
876 }
877 /// Storage: `ParachainStaking::CollatorCommission` (r:1 w:1)
878 /// Proof: `ParachainStaking::CollatorCommission` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
879 fn set_collator_commission() -> Weight {
880 // Proof Size summary in bytes:
881 // Measured: `27`
882 // Estimated: `1512`
883 // Minimum execution time: 7_000_000 picoseconds.
884 Weight::from_parts(8_000_000, 1512)
885 .saturating_add(RocksDbWeight::get().reads(1_u64))
886 .saturating_add(RocksDbWeight::get().writes(1_u64))
887 }
888 /// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
889 /// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
890 /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
891 /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
892 fn set_blocks_per_round() -> Weight {
893 // Proof Size summary in bytes:
894 // Measured: `116`
895 // Estimated: `1601`
896 // Minimum execution time: 29_000_000 picoseconds.
897 Weight::from_parts(29_000_000, 1601)
898 .saturating_add(RocksDbWeight::get().reads(2_u64))
899 .saturating_add(RocksDbWeight::get().writes(1_u64))
900 }
901 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
902 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
903 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
904 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
905 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
906 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
907 /// Storage: `System::Account` (r:1 w:1)
908 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
909 /// Storage: `Balances::Freezes` (r:1 w:1)
910 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
911 /// Storage: `Balances::Locks` (r:1 w:0)
912 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
913 /// Storage: `ParachainStaking::Total` (r:1 w:1)
914 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
915 /// Storage: `ParachainStaking::TopDelegations` (r:0 w:1)
916 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
917 /// Storage: `ParachainStaking::BottomDelegations` (r:0 w:1)
918 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
919 /// The range of component `x` is `[3, 200]`.
920 fn join_candidates(x: u32, ) -> Weight {
921 // Proof Size summary in bytes:
922 // Measured: `1406 + x * (38 ±0)`
923 // Estimated: `4752 + x * (43 ±1)`
924 // Minimum execution time: 57_000_000 picoseconds.
925 Weight::from_parts(62_371_559, 4752)
926 // Standard Error: 37_712
927 .saturating_add(Weight::from_parts(123_469, 0).saturating_mul(x.into()))
928 .saturating_add(RocksDbWeight::get().reads(8_u64))
929 .saturating_add(RocksDbWeight::get().writes(7_u64))
930 .saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
931 }
932 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
933 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
934 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
935 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
936 /// The range of component `x` is `[3, 200]`.
937 fn schedule_leave_candidates(x: u32, ) -> Weight {
938 // Proof Size summary in bytes:
939 // Measured: `659 + x * (37 ±0)`
940 // Estimated: `3867 + x * (39 ±0)`
941 // Minimum execution time: 16_000_000 picoseconds.
942 Weight::from_parts(19_575_089, 3867)
943 // Standard Error: 13_668
944 .saturating_add(Weight::from_parts(105_647, 0).saturating_mul(x.into()))
945 .saturating_add(RocksDbWeight::get().reads(2_u64))
946 .saturating_add(RocksDbWeight::get().writes(2_u64))
947 .saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
948 }
949 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
950 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
951 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
952 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
953 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
954 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
955 /// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
956 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
957 /// Storage: `ParachainStaking::MigratedDelegators` (r:349 w:0)
958 /// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
959 /// Storage: `Balances::Freezes` (r:350 w:350)
960 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
961 /// Storage: `System::Account` (r:350 w:350)
962 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
963 /// Storage: `Balances::Locks` (r:350 w:1)
964 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
965 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
966 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
967 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
968 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
969 /// Storage: `ParachainStaking::Total` (r:1 w:1)
970 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
971 /// The range of component `x` is `[2, 350]`.
972 fn execute_leave_candidates_worst_case(x: u32, ) -> Weight {
973 // Proof Size summary in bytes:
974 // Measured: `1169 + x * (456 ±0)`
975 // Estimated: `4830 + x * (3762 ±3)`
976 // Minimum execution time: 137_000_000 picoseconds.
977 Weight::from_parts(137_000_000, 4830)
978 // Standard Error: 632_958
979 .saturating_add(Weight::from_parts(42_365_414, 0).saturating_mul(x.into()))
980 .saturating_add(RocksDbWeight::get().reads(4_u64))
981 .saturating_add(RocksDbWeight::get().reads((5_u64).saturating_mul(x.into())))
982 .saturating_add(RocksDbWeight::get().writes(6_u64))
983 .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(x.into())))
984 .saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
985 }
986 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
987 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
988 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
989 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
990 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
991 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
992 /// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
993 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
994 /// Storage: `ParachainStaking::MigratedDelegators` (r:349 w:0)
995 /// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
996 /// Storage: `Balances::Freezes` (r:350 w:350)
997 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
998 /// Storage: `System::Account` (r:350 w:350)
999 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
1000 /// Storage: `Balances::Locks` (r:350 w:1)
1001 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
1002 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
1003 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
1004 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
1005 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1006 /// Storage: `ParachainStaking::Total` (r:1 w:1)
1007 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1008 /// The range of component `x` is `[2, 350]`.
1009 /// The range of component `y` is `[2, 350]`.
1010 fn execute_leave_candidates_ideal(x: u32, _y: u32, ) -> Weight {
1011 // Proof Size summary in bytes:
1012 // Measured: `1169 + x * (456 ±0)`
1013 // Estimated: `4830 + x * (3762 ±0)`
1014 // Minimum execution time: 111_000_000 picoseconds.
1015 Weight::from_parts(149_062_452, 4830)
1016 // Standard Error: 616_234
1017 .saturating_add(Weight::from_parts(43_983_652, 0).saturating_mul(x.into()))
1018 .saturating_add(RocksDbWeight::get().reads(4_u64))
1019 .saturating_add(RocksDbWeight::get().reads((5_u64).saturating_mul(x.into())))
1020 .saturating_add(RocksDbWeight::get().writes(6_u64))
1021 .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(x.into())))
1022 .saturating_add(Weight::from_parts(0, 3762).saturating_mul(x.into()))
1023 }
1024 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
1025 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
1026 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
1027 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1028 /// The range of component `x` is `[3, 200]`.
1029 fn cancel_leave_candidates(x: u32, ) -> Weight {
1030 // Proof Size summary in bytes:
1031 // Measured: `627 + x * (37 ±0)`
1032 // Estimated: `3835 + x * (39 ±0)`
1033 // Minimum execution time: 15_000_000 picoseconds.
1034 Weight::from_parts(17_412_225, 3835)
1035 // Standard Error: 9_403
1036 .saturating_add(Weight::from_parts(92_764, 0).saturating_mul(x.into()))
1037 .saturating_add(RocksDbWeight::get().reads(2_u64))
1038 .saturating_add(RocksDbWeight::get().writes(2_u64))
1039 .saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
1040 }
1041 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
1042 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
1043 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
1044 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1045 /// The range of component `x` is `[1, 200]`.
1046 fn go_offline(x: u32, ) -> Weight {
1047 // Proof Size summary in bytes:
1048 // Measured: `562 + x * (38 ±0)`
1049 // Estimated: `3828 + x * (39 ±0)`
1050 // Minimum execution time: 15_000_000 picoseconds.
1051 Weight::from_parts(17_962_310, 3828)
1052 // Standard Error: 10_178
1053 .saturating_add(Weight::from_parts(80_881, 0).saturating_mul(x.into()))
1054 .saturating_add(RocksDbWeight::get().reads(2_u64))
1055 .saturating_add(RocksDbWeight::get().writes(2_u64))
1056 .saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
1057 }
1058 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
1059 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
1060 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
1061 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1062 /// The range of component `x` is `[1, 200]`.
1063 fn go_online(x: u32, ) -> Weight {
1064 // Proof Size summary in bytes:
1065 // Measured: `526 + x * (38 ±0)`
1066 // Estimated: `3791 + x * (39 ±0)`
1067 // Minimum execution time: 14_000_000 picoseconds.
1068 Weight::from_parts(17_749_962, 3791)
1069 // Standard Error: 12_623
1070 .saturating_add(Weight::from_parts(88_989, 0).saturating_mul(x.into()))
1071 .saturating_add(RocksDbWeight::get().reads(2_u64))
1072 .saturating_add(RocksDbWeight::get().writes(2_u64))
1073 .saturating_add(Weight::from_parts(0, 39).saturating_mul(x.into()))
1074 }
1075 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
1076 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
1077 /// Storage: `System::Account` (r:1 w:1)
1078 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
1079 /// Storage: `ParachainStaking::MigratedCandidates` (r:1 w:1)
1080 /// Proof: `ParachainStaking::MigratedCandidates` (`max_values`: None, `max_size`: None, mode: `Measured`)
1081 /// Storage: `Balances::Locks` (r:1 w:1)
1082 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
1083 /// Storage: `Balances::Freezes` (r:1 w:1)
1084 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1085 /// Storage: `ParachainStaking::Total` (r:1 w:1)
1086 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1087 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
1088 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1089 /// The range of component `x` is `[1, 200]`.
1090 fn candidate_bond_more(x: u32, ) -> Weight {
1091 // Proof Size summary in bytes:
1092 // Measured: `932 + x * (44 ±0)`
1093 // Estimated: `4752 + x * (45 ±1)`
1094 // Minimum execution time: 82_000_000 picoseconds.
1095 Weight::from_parts(87_570_121, 4752)
1096 // Standard Error: 22_771
1097 .saturating_add(Weight::from_parts(80_803, 0).saturating_mul(x.into()))
1098 .saturating_add(RocksDbWeight::get().reads(7_u64))
1099 .saturating_add(RocksDbWeight::get().writes(7_u64))
1100 .saturating_add(Weight::from_parts(0, 45).saturating_mul(x.into()))
1101 }
1102 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
1103 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
1104 fn schedule_candidate_bond_less() -> Weight {
1105 // Proof Size summary in bytes:
1106 // Measured: `171`
1107 // Estimated: `3636`
1108 // Minimum execution time: 12_000_000 picoseconds.
1109 Weight::from_parts(13_000_000, 3636)
1110 .saturating_add(RocksDbWeight::get().reads(1_u64))
1111 .saturating_add(RocksDbWeight::get().writes(1_u64))
1112 }
1113 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
1114 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
1115 /// Storage: `ParachainStaking::Total` (r:1 w:1)
1116 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1117 /// Storage: `ParachainStaking::MigratedCandidates` (r:1 w:1)
1118 /// Proof: `ParachainStaking::MigratedCandidates` (`max_values`: None, `max_size`: None, mode: `Measured`)
1119 /// Storage: `Balances::Locks` (r:1 w:1)
1120 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
1121 /// Storage: `Balances::Freezes` (r:1 w:1)
1122 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1123 /// Storage: `System::Account` (r:1 w:1)
1124 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
1125 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
1126 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1127 /// The range of component `x` is `[1, 200]`.
1128 fn execute_candidate_bond_less(x: u32, ) -> Weight {
1129 // Proof Size summary in bytes:
1130 // Measured: `1091 + x * (43 ±0)`
1131 // Estimated: `4752 + x * (45 ±1)`
1132 // Minimum execution time: 87_000_000 picoseconds.
1133 Weight::from_parts(116_267_098, 4752)
1134 .saturating_add(RocksDbWeight::get().reads(7_u64))
1135 .saturating_add(RocksDbWeight::get().writes(7_u64))
1136 .saturating_add(Weight::from_parts(0, 45).saturating_mul(x.into()))
1137 }
1138 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
1139 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
1140 fn cancel_candidate_bond_less() -> Weight {
1141 // Proof Size summary in bytes:
1142 // Measured: `191`
1143 // Estimated: `3656`
1144 // Minimum execution time: 12_000_000 picoseconds.
1145 Weight::from_parts(12_000_000, 3656)
1146 .saturating_add(RocksDbWeight::get().reads(1_u64))
1147 .saturating_add(RocksDbWeight::get().writes(1_u64))
1148 }
1149 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
1150 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
1151 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
1152 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
1153 /// The range of component `x` is `[0, 349]`.
1154 fn schedule_revoke_delegation(x: u32, ) -> Weight {
1155 // Proof Size summary in bytes:
1156 // Measured: `233 + x * (43 ±0)`
1157 // Estimated: `3832 + x * (44 ±0)`
1158 // Minimum execution time: 14_000_000 picoseconds.
1159 Weight::from_parts(19_302_147, 3832)
1160 // Standard Error: 13_114
1161 .saturating_add(Weight::from_parts(108_100, 0).saturating_mul(x.into()))
1162 .saturating_add(RocksDbWeight::get().reads(2_u64))
1163 .saturating_add(RocksDbWeight::get().writes(2_u64))
1164 .saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
1165 }
1166 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
1167 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
1168 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
1169 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
1170 /// Storage: `System::Account` (r:1 w:1)
1171 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
1172 /// Storage: `ParachainStaking::MigratedDelegators` (r:1 w:1)
1173 /// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
1174 /// Storage: `Balances::Locks` (r:1 w:1)
1175 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
1176 /// Storage: `Balances::Freezes` (r:1 w:1)
1177 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1178 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
1179 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
1180 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
1181 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1182 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
1183 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1184 /// Storage: `ParachainStaking::Total` (r:1 w:1)
1185 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1186 /// The range of component `x` is `[0, 349]`.
1187 fn delegator_bond_more(x: u32, ) -> Weight {
1188 // Proof Size summary in bytes:
1189 // Measured: `2205 + x * (78 ±0)`
1190 // Estimated: `5197 + x * (78 ±1)`
1191 // Minimum execution time: 91_000_000 picoseconds.
1192 Weight::from_parts(99_039_136, 5197)
1193 // Standard Error: 19_700
1194 .saturating_add(Weight::from_parts(165_867, 0).saturating_mul(x.into()))
1195 .saturating_add(RocksDbWeight::get().reads(10_u64))
1196 .saturating_add(RocksDbWeight::get().writes(9_u64))
1197 .saturating_add(Weight::from_parts(0, 78).saturating_mul(x.into()))
1198 }
1199 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
1200 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
1201 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
1202 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
1203 /// The range of component `x` is `[0, 349]`.
1204 fn schedule_delegator_bond_less(x: u32, ) -> Weight {
1205 // Proof Size summary in bytes:
1206 // Measured: `233 + x * (43 ±0)`
1207 // Estimated: `3832 + x * (44 ±0)`
1208 // Minimum execution time: 14_000_000 picoseconds.
1209 Weight::from_parts(19_757_281, 3832)
1210 // Standard Error: 9_837
1211 .saturating_add(Weight::from_parts(107_019, 0).saturating_mul(x.into()))
1212 .saturating_add(RocksDbWeight::get().reads(2_u64))
1213 .saturating_add(RocksDbWeight::get().writes(2_u64))
1214 .saturating_add(Weight::from_parts(0, 44).saturating_mul(x.into()))
1215 }
1216 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
1217 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
1218 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
1219 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
1220 /// Storage: `Balances::Locks` (r:1 w:1)
1221 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
1222 /// Storage: `Balances::Freezes` (r:1 w:1)
1223 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1224 /// Storage: `System::Account` (r:1 w:1)
1225 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
1226 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
1227 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1228 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
1229 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
1230 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
1231 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1232 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
1233 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1234 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
1235 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1236 /// Storage: `ParachainStaking::Total` (r:1 w:1)
1237 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1238 fn execute_delegator_revoke_delegation_worst() -> Weight {
1239 // Proof Size summary in bytes:
1240 // Measured: `37373`
1241 // Estimated: `40838`
1242 // Minimum execution time: 136_000_000 picoseconds.
1243 Weight::from_parts(149_000_000, 40838)
1244 .saturating_add(RocksDbWeight::get().reads(11_u64))
1245 .saturating_add(RocksDbWeight::get().writes(11_u64))
1246 }
1247 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
1248 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
1249 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
1250 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
1251 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
1252 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
1253 /// Storage: `ParachainStaking::MigratedDelegators` (r:1 w:1)
1254 /// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
1255 /// Storage: `Balances::Locks` (r:1 w:1)
1256 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
1257 /// Storage: `Balances::Freezes` (r:1 w:1)
1258 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1259 /// Storage: `System::Account` (r:1 w:1)
1260 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
1261 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
1262 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1263 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
1264 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1265 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
1266 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1267 /// Storage: `ParachainStaking::Total` (r:1 w:1)
1268 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1269 fn execute_delegator_bond_less_worst() -> Weight {
1270 // Proof Size summary in bytes:
1271 // Measured: `29995`
1272 // Estimated: `33460`
1273 // Minimum execution time: 147_000_000 picoseconds.
1274 Weight::from_parts(164_000_000, 33460)
1275 .saturating_add(RocksDbWeight::get().reads(11_u64))
1276 .saturating_add(RocksDbWeight::get().writes(11_u64))
1277 }
1278 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
1279 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
1280 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
1281 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
1282 /// The range of component `x` is `[0, 349]`.
1283 fn cancel_delegation_request(x: u32, ) -> Weight {
1284 // Proof Size summary in bytes:
1285 // Measured: `528 + x * (42 ±0)`
1286 // Estimated: `3947 + x * (43 ±0)`
1287 // Minimum execution time: 26_000_000 picoseconds.
1288 Weight::from_parts(34_815_644, 3947)
1289 // Standard Error: 13_381
1290 .saturating_add(Weight::from_parts(57_315, 0).saturating_mul(x.into()))
1291 .saturating_add(RocksDbWeight::get().reads(2_u64))
1292 .saturating_add(RocksDbWeight::get().writes(2_u64))
1293 .saturating_add(Weight::from_parts(0, 43).saturating_mul(x.into()))
1294 }
1295 /// Storage: `ParachainStaking::Points` (r:1 w:0)
1296 /// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
1297 fn prepare_staking_payouts() -> Weight {
1298 // Proof Size summary in bytes:
1299 // Measured: `3`
1300 // Estimated: `3468`
1301 // Minimum execution time: 2_000_000 picoseconds.
1302 Weight::from_parts(3_000_000, 3468)
1303 .saturating_add(RocksDbWeight::get().reads(1_u64))
1304 }
1305 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
1306 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
1307 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:0)
1308 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1309 /// The range of component `y` is `[0, 100]`.
1310 fn get_rewardable_delegators(y: u32, ) -> Weight {
1311 // Proof Size summary in bytes:
1312 // Measured: `88 + y * (36 ±0)`
1313 // Estimated: `3553 + y * (36 ±0)`
1314 // Minimum execution time: 6_000_000 picoseconds.
1315 Weight::from_parts(7_133_333, 3553)
1316 // Standard Error: 5_951
1317 .saturating_add(Weight::from_parts(36_000, 0).saturating_mul(y.into()))
1318 .saturating_add(RocksDbWeight::get().reads(2_u64))
1319 .saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
1320 }
1321 /// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
1322 /// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1323 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:0)
1324 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1325 /// Storage: `ParachainStaking::CandidateInfo` (r:51 w:0)
1326 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
1327 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:51 w:0)
1328 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
1329 /// Storage: `ParachainStaking::TopDelegations` (r:51 w:0)
1330 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1331 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:51 w:0)
1332 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1333 /// Storage: `ParachainStaking::SelectedCandidates` (r:0 w:1)
1334 /// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1335 /// Storage: `ParachainStaking::AtStake` (r:0 w:51)
1336 /// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
1337 /// The range of component `x` is `[0, 50]`.
1338 /// The range of component `y` is `[0, 100]`.
1339 fn select_top_candidates(x: u32, y: u32, ) -> Weight {
1340 // Proof Size summary in bytes:
1341 // Measured: `0 + x * (3818 ±0) + y * (1800 ±0)`
1342 // Estimated: `3710 + x * (4038 ±272) + y * (655 ±135)`
1343 // Minimum execution time: 19_000_000 picoseconds.
1344 Weight::from_parts(20_000_000, 3710)
1345 // Standard Error: 507_202
1346 .saturating_add(Weight::from_parts(16_073_459, 0).saturating_mul(x.into()))
1347 // Standard Error: 253_235
1348 .saturating_add(Weight::from_parts(1_074_727, 0).saturating_mul(y.into()))
1349 .saturating_add(RocksDbWeight::get().reads(6_u64))
1350 .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(x.into())))
1351 .saturating_add(RocksDbWeight::get().writes(2_u64))
1352 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(x.into())))
1353 .saturating_add(Weight::from_parts(0, 4038).saturating_mul(x.into()))
1354 .saturating_add(Weight::from_parts(0, 655).saturating_mul(y.into()))
1355 }
1356 /// Storage: `System::Account` (r:349 w:349)
1357 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
1358 /// Storage: `ParachainStaking::DelegatorState` (r:349 w:349)
1359 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
1360 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
1361 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
1362 /// Storage: `ParachainStaking::MigratedDelegators` (r:349 w:349)
1363 /// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
1364 /// Storage: `Balances::Locks` (r:349 w:349)
1365 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
1366 /// Storage: `Balances::Freezes` (r:349 w:349)
1367 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1368 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
1369 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
1370 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
1371 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1372 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
1373 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1374 /// Storage: `ParachainStaking::Total` (r:1 w:1)
1375 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1376 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
1377 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1378 /// The range of component `x` is `[0, 349]`.
1379 /// The range of component `y` is `[0, 349]`.
1380 fn pay_one_collator_reward_best(x: u32, y: u32, ) -> Weight {
1381 // Proof Size summary in bytes:
1382 // Measured: `0 + x * (389 ±0) + y * (144 ±0) + z * (41 ±0)`
1383 // Estimated: `328284 + x * (2591 ±265) + y * (1733 ±265) + z * (41 ±0)`
1384 // Minimum execution time: 0_000 picoseconds.
1385 Weight::from_parts(0, 328284)
1386 // Standard Error: 5_334_461
1387 .saturating_add(Weight::from_parts(76_561_571, 0).saturating_mul(x.into()))
1388 // Standard Error: 5_334_461
1389 .saturating_add(Weight::from_parts(50_346_827, 0).saturating_mul(y.into()))
1390 .saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(x.into())))
1391 .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(y.into())))
1392 .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(x.into())))
1393 .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(y.into())))
1394 .saturating_add(Weight::from_parts(0, 2591).saturating_mul(x.into()))
1395 .saturating_add(Weight::from_parts(0, 1733).saturating_mul(y.into()))
1396 }
1397 /// Storage: `ParachainStaking::DelayedPayouts` (r:1 w:0)
1398 /// Proof: `ParachainStaking::DelayedPayouts` (`max_values`: None, `max_size`: None, mode: `Measured`)
1399 /// Storage: `ParachainStaking::Points` (r:1 w:0)
1400 /// Proof: `ParachainStaking::Points` (`max_values`: None, `max_size`: None, mode: `Measured`)
1401 /// Storage: `ParachainStaking::AtStake` (r:2 w:1)
1402 /// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
1403 /// Storage: `ParachainStaking::AwardedPts` (r:1 w:1)
1404 /// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
1405 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:0)
1406 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
1407 /// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
1408 /// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
1409 /// Storage: `System::Account` (r:301 w:301)
1410 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
1411 /// The range of component `y` is `[0, 300]`.
1412 fn pay_one_collator_reward(y: u32, ) -> Weight {
1413 // Proof Size summary in bytes:
1414 // Measured: `1430 + y * (162 ±0)`
1415 // Estimated: `6996 + y * (2591 ±0)`
1416 // Minimum execution time: 53_000_000 picoseconds.
1417 Weight::from_parts(69_200_000, 6996)
1418 // Standard Error: 254_782
1419 .saturating_add(Weight::from_parts(22_444_888, 0).saturating_mul(y.into()))
1420 .saturating_add(RocksDbWeight::get().reads(8_u64))
1421 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(y.into())))
1422 .saturating_add(RocksDbWeight::get().writes(3_u64))
1423 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(y.into())))
1424 .saturating_add(Weight::from_parts(0, 2591).saturating_mul(y.into()))
1425 }
1426 fn base_on_initialize() -> Weight {
1427 // Proof Size summary in bytes:
1428 // Measured: `0`
1429 // Estimated: `0`
1430 // Minimum execution time: 1_000_000 picoseconds.
1431 Weight::from_parts(1_000_000, 0)
1432 }
1433 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:0)
1434 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
1435 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
1436 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1437 /// The range of component `x` is `[0, 300]`.
1438 /// The range of component `y` is `[0, 100]`.
1439 fn set_auto_compound(x: u32, y: u32, ) -> Weight {
1440 // Proof Size summary in bytes:
1441 // Measured: `427 + x * (23 ±0) + y * (36 ±0)`
1442 // Estimated: `3802 + x * (24 ±0) + y * (36 ±0)`
1443 // Minimum execution time: 16_000_000 picoseconds.
1444 Weight::from_parts(19_300_000, 3802)
1445 // Standard Error: 11_639
1446 .saturating_add(Weight::from_parts(71_555, 0).saturating_mul(x.into()))
1447 // Standard Error: 34_918
1448 .saturating_add(Weight::from_parts(58_666, 0).saturating_mul(y.into()))
1449 .saturating_add(RocksDbWeight::get().reads(2_u64))
1450 .saturating_add(RocksDbWeight::get().writes(1_u64))
1451 .saturating_add(Weight::from_parts(0, 24).saturating_mul(x.into()))
1452 .saturating_add(Weight::from_parts(0, 36).saturating_mul(y.into()))
1453 }
1454 /// Storage: `System::Account` (r:1 w:1)
1455 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
1456 /// Storage: `ParachainStaking::MigratedDelegators` (r:1 w:0)
1457 /// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
1458 /// Storage: `Balances::Freezes` (r:1 w:1)
1459 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1460 /// Storage: `ParachainStaking::DelegatorState` (r:1 w:1)
1461 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
1462 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
1463 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
1464 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
1465 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1466 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
1467 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1468 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
1469 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1470 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
1471 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1472 /// Storage: `Balances::Locks` (r:1 w:0)
1473 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
1474 /// Storage: `ParachainStaking::Total` (r:1 w:1)
1475 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1476 /// The range of component `x` is `[0, 350]`.
1477 /// The range of component `y` is `[0, 349]`.
1478 /// The range of component `z` is `[0, 99]`.
1479 fn delegate_with_auto_compound(x: u32, y: u32, z: u32, ) -> Weight {
1480 // Proof Size summary in bytes:
1481 // Measured: `0 + x * (61 ±0) + y * (21 ±0) + z * (81 ±0)`
1482 // Estimated: `13973 + x * (55 ±2) + y * (21 ±2) + z * (86 ±8)`
1483 // Minimum execution time: 79_000_000 picoseconds.
1484 Weight::from_parts(61_282_010, 13973)
1485 // Standard Error: 18_907
1486 .saturating_add(Weight::from_parts(161_692, 0).saturating_mul(x.into()))
1487 // Standard Error: 18_960
1488 .saturating_add(Weight::from_parts(24_780, 0).saturating_mul(y.into()))
1489 // Standard Error: 66_606
1490 .saturating_add(Weight::from_parts(222_324, 0).saturating_mul(z.into()))
1491 .saturating_add(RocksDbWeight::get().reads(11_u64))
1492 .saturating_add(RocksDbWeight::get().writes(8_u64))
1493 .saturating_add(Weight::from_parts(0, 55).saturating_mul(x.into()))
1494 .saturating_add(Weight::from_parts(0, 21).saturating_mul(y.into()))
1495 .saturating_add(Weight::from_parts(0, 86).saturating_mul(z.into()))
1496 }
1497 /// Storage: `System::Account` (r:2 w:2)
1498 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
1499 /// Storage: `ParachainStaking::MigratedDelegators` (r:1 w:0)
1500 /// Proof: `ParachainStaking::MigratedDelegators` (`max_values`: None, `max_size`: None, mode: `Measured`)
1501 /// Storage: `Balances::Freezes` (r:2 w:2)
1502 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1503 /// Storage: `ParachainStaking::DelegatorState` (r:2 w:2)
1504 /// Proof: `ParachainStaking::DelegatorState` (`max_values`: None, `max_size`: None, mode: `Measured`)
1505 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
1506 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
1507 /// Storage: `ParachainStaking::AutoCompoundingDelegations` (r:1 w:1)
1508 /// Proof: `ParachainStaking::AutoCompoundingDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1509 /// Storage: `ParachainStaking::TopDelegations` (r:1 w:1)
1510 /// Proof: `ParachainStaking::TopDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1511 /// Storage: `ParachainStaking::BottomDelegations` (r:1 w:1)
1512 /// Proof: `ParachainStaking::BottomDelegations` (`max_values`: None, `max_size`: None, mode: `Measured`)
1513 /// Storage: `Balances::Locks` (r:2 w:1)
1514 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
1515 /// Storage: `ParachainStaking::DelegationScheduledRequests` (r:1 w:1)
1516 /// Proof: `ParachainStaking::DelegationScheduledRequests` (`max_values`: None, `max_size`: None, mode: `Measured`)
1517 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
1518 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1519 /// Storage: `ParachainStaking::Total` (r:1 w:1)
1520 /// Proof: `ParachainStaking::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1521 fn delegate_with_auto_compound_worst() -> Weight {
1522 // Proof Size summary in bytes:
1523 // Measured: `48168`
1524 // Estimated: `54108`
1525 // Minimum execution time: 205_000_000 picoseconds.
1526 Weight::from_parts(212_000_000, 54108)
1527 .saturating_add(RocksDbWeight::get().reads(16_u64))
1528 .saturating_add(RocksDbWeight::get().writes(14_u64))
1529 }
1530 /// Storage: `System::Account` (r:1 w:1)
1531 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
1532 fn mint_collator_reward() -> Weight {
1533 // Proof Size summary in bytes:
1534 // Measured: `128`
1535 // Estimated: `3581`
1536 // Minimum execution time: 23_000_000 picoseconds.
1537 Weight::from_parts(24_000_000, 3581)
1538 .saturating_add(RocksDbWeight::get().reads(1_u64))
1539 .saturating_add(RocksDbWeight::get().writes(1_u64))
1540 }
1541 /// Storage: `ParachainStaking::EnableMarkingOffline` (r:1 w:0)
1542 /// Proof: `ParachainStaking::EnableMarkingOffline` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1543 /// Storage: `ParachainStaking::TotalSelected` (r:1 w:0)
1544 /// Proof: `ParachainStaking::TotalSelected` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1545 /// Storage: `ParachainStaking::SelectedCandidates` (r:1 w:0)
1546 /// Proof: `ParachainStaking::SelectedCandidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1547 /// Storage: `ParachainStaking::WasInactive` (r:2 w:0)
1548 /// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
1549 /// Storage: `MoonbeamOrbiters::OrbiterPerRound` (r:1 w:0)
1550 /// Proof: `MoonbeamOrbiters::OrbiterPerRound` (`max_values`: None, `max_size`: None, mode: `Measured`)
1551 /// Storage: `ParachainStaking::CandidateInfo` (r:1 w:1)
1552 /// Proof: `ParachainStaking::CandidateInfo` (`max_values`: None, `max_size`: None, mode: `Measured`)
1553 /// Storage: `ParachainStaking::CandidatePool` (r:1 w:1)
1554 /// Proof: `ParachainStaking::CandidatePool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1555 fn notify_inactive_collator() -> Weight {
1556 // Proof Size summary in bytes:
1557 // Measured: `11212`
1558 // Estimated: `17152`
1559 // Minimum execution time: 52_000_000 picoseconds.
1560 Weight::from_parts(57_000_000, 17152)
1561 .saturating_add(RocksDbWeight::get().reads(8_u64))
1562 .saturating_add(RocksDbWeight::get().writes(2_u64))
1563 }
1564 /// Storage: `ParachainStaking::AtStake` (r:52 w:0)
1565 /// Proof: `ParachainStaking::AtStake` (`max_values`: None, `max_size`: None, mode: `Measured`)
1566 /// Storage: `ParachainStaking::AwardedPts` (r:51 w:0)
1567 /// Proof: `ParachainStaking::AwardedPts` (`max_values`: None, `max_size`: None, mode: `Measured`)
1568 /// Storage: `ParachainStaking::WasInactive` (r:0 w:51)
1569 /// Proof: `ParachainStaking::WasInactive` (`max_values`: None, `max_size`: None, mode: `Measured`)
1570 /// The range of component `x` is `[0, 50]`.
1571 fn mark_collators_as_inactive(x: u32, ) -> Weight {
1572 // Proof Size summary in bytes:
1573 // Measured: `102 + x * (104 ±0)`
1574 // Estimated: `6051 + x * (2579 ±0)`
1575 // Minimum execution time: 16_000_000 picoseconds.
1576 Weight::from_parts(15_394_420, 6051)
1577 // Standard Error: 171_814
1578 .saturating_add(Weight::from_parts(12_954_526, 0).saturating_mul(x.into()))
1579 .saturating_add(RocksDbWeight::get().reads(3_u64))
1580 .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(x.into())))
1581 .saturating_add(RocksDbWeight::get().writes(1_u64))
1582 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(x.into())))
1583 .saturating_add(Weight::from_parts(0, 2579).saturating_mul(x.into()))
1584 }
1585}