pallet_dapp_staking/weights.rs
1
2// This file is part of Astar.
3
4// Copyright (C) Stake Technologies Pte.Ltd.
5// SPDX-License-Identifier: GPL-3.0-or-later
6
7// Astar is free software: you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation, either version 3 of the License, or
10// (at your option) any later version.
11
12// Astar is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16
17// You should have received a copy of the GNU General Public License
18// along with Astar. If not, see <http://www.gnu.org/licenses/>.
19
20//! Autogenerated weights for pallet_dapp_staking
21//!
22//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 42.0.1
23//! DATE: 2025-02-19, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
24//! WORST CASE MAP SIZE: `1000000`
25//! HOSTNAME: `gh-runner-01-ovh`, CPU: `Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz`
26//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("astar-dev"), DB CACHE: 1024
27
28// Executed Command:
29// ./target/release/astar-collator
30// benchmark
31// pallet
32// --chain=astar-dev
33// --steps=50
34// --repeat=20
35// --pallet=pallet_dapp_staking
36// --extrinsic=*
37// --wasm-execution=compiled
38// --heap-pages=4096
39// --output=./benchmark-results/astar-dev/dapp_staking_weights.rs
40// --template=./scripts/templates/weight-template.hbs
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45
46use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
47use core::marker::PhantomData;
48
49/// Weight functions needed for pallet_dapp_staking.
50pub trait WeightInfo {
51 fn maintenance_mode() -> Weight;
52 fn register() -> Weight;
53 fn set_dapp_reward_beneficiary() -> Weight;
54 fn set_dapp_owner() -> Weight;
55 fn unregister() -> Weight;
56 fn lock_new_account() -> Weight;
57 fn lock_existing_account() -> Weight;
58 fn unlock() -> Weight;
59 fn claim_unlocked(x: u32, ) -> Weight;
60 fn relock_unlocking() -> Weight;
61 fn stake() -> Weight;
62 fn unstake() -> Weight;
63 fn claim_staker_rewards_past_period(x: u32, ) -> Weight;
64 fn claim_staker_rewards_ongoing_period(x: u32, ) -> Weight;
65 fn claim_bonus_reward() -> Weight;
66 fn claim_dapp_reward() -> Weight;
67 fn unstake_from_unregistered() -> Weight;
68 fn cleanup_expired_entries(x: u32, ) -> Weight;
69 fn force() -> Weight;
70 fn move_stake_from_registered_source() -> Weight;
71 fn move_stake_unregistered_source() -> Weight;
72 fn on_initialize_voting_to_build_and_earn() -> Weight;
73 fn on_initialize_build_and_earn_to_voting() -> Weight;
74 fn on_initialize_build_and_earn_to_build_and_earn() -> Weight;
75 fn dapp_tier_assignment(x: u32, ) -> Weight;
76 fn on_idle_cleanup() -> Weight;
77 fn step() -> Weight;
78 fn set_static_tier_params() -> Weight;
79}
80
81/// Weights for pallet_dapp_staking using the Substrate node and recommended hardware.
82pub struct SubstrateWeight<T>(PhantomData<T>);
83impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
84 fn maintenance_mode() -> Weight {
85 // Proof Size summary in bytes:
86 // Measured: `0`
87 // Estimated: `0`
88 // Minimum execution time: 6_160_000 picoseconds.
89 Weight::from_parts(6_345_000, 0)
90 }
91 /// Storage: `DappStaking::IntegratedDApps` (r:1 w:1)
92 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
93 /// Storage: `DappStaking::CounterForIntegratedDApps` (r:1 w:1)
94 /// Proof: `DappStaking::CounterForIntegratedDApps` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
95 /// Storage: `DappStaking::NextDAppId` (r:1 w:1)
96 /// Proof: `DappStaking::NextDAppId` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
97 fn register() -> Weight {
98 // Proof Size summary in bytes:
99 // Measured: `0`
100 // Estimated: `3086`
101 // Minimum execution time: 12_235_000 picoseconds.
102 Weight::from_parts(12_512_000, 3086)
103 .saturating_add(T::DbWeight::get().reads(3_u64))
104 .saturating_add(T::DbWeight::get().writes(3_u64))
105 }
106 /// Storage: `DappStaking::IntegratedDApps` (r:1 w:1)
107 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
108 fn set_dapp_reward_beneficiary() -> Weight {
109 // Proof Size summary in bytes:
110 // Measured: `97`
111 // Estimated: `3086`
112 // Minimum execution time: 10_517_000 picoseconds.
113 Weight::from_parts(10_793_000, 3086)
114 .saturating_add(T::DbWeight::get().reads(1_u64))
115 .saturating_add(T::DbWeight::get().writes(1_u64))
116 }
117 /// Storage: `DappStaking::IntegratedDApps` (r:1 w:1)
118 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
119 fn set_dapp_owner() -> Weight {
120 // Proof Size summary in bytes:
121 // Measured: `97`
122 // Estimated: `3086`
123 // Minimum execution time: 10_363_000 picoseconds.
124 Weight::from_parts(10_656_000, 3086)
125 .saturating_add(T::DbWeight::get().reads(1_u64))
126 .saturating_add(T::DbWeight::get().writes(1_u64))
127 }
128 /// Storage: `DappStaking::IntegratedDApps` (r:1 w:1)
129 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
130 /// Storage: `DappStaking::CounterForIntegratedDApps` (r:1 w:1)
131 /// Proof: `DappStaking::CounterForIntegratedDApps` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
132 /// Storage: `DappStaking::ContractStake` (r:0 w:1)
133 /// Proof: `DappStaking::ContractStake` (`max_values`: Some(65535), `max_size`: Some(91), added: 2071, mode: `MaxEncodedLen`)
134 fn unregister() -> Weight {
135 // Proof Size summary in bytes:
136 // Measured: `97`
137 // Estimated: `3086`
138 // Minimum execution time: 14_595_000 picoseconds.
139 Weight::from_parts(14_935_000, 3086)
140 .saturating_add(T::DbWeight::get().reads(2_u64))
141 .saturating_add(T::DbWeight::get().writes(3_u64))
142 }
143 /// Storage: `DappStaking::Ledger` (r:1 w:1)
144 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
145 /// Storage: `CollatorSelection::Candidates` (r:1 w:0)
146 /// Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
147 /// Storage: `Balances::Freezes` (r:1 w:1)
148 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
149 /// Storage: `Balances::Locks` (r:1 w:0)
150 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
151 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
152 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
153 fn lock_new_account() -> Weight {
154 // Proof Size summary in bytes:
155 // Measured: `138`
156 // Estimated: `4764`
157 // Minimum execution time: 31_874_000 picoseconds.
158 Weight::from_parts(32_108_000, 4764)
159 .saturating_add(T::DbWeight::get().reads(5_u64))
160 .saturating_add(T::DbWeight::get().writes(3_u64))
161 }
162 /// Storage: `DappStaking::Ledger` (r:1 w:1)
163 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
164 /// Storage: `Balances::Freezes` (r:1 w:1)
165 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
166 /// Storage: `Balances::Locks` (r:1 w:0)
167 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
168 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
169 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
170 fn lock_existing_account() -> Weight {
171 // Proof Size summary in bytes:
172 // Measured: `158`
173 // Estimated: `4764`
174 // Minimum execution time: 32_204_000 picoseconds.
175 Weight::from_parts(32_658_000, 4764)
176 .saturating_add(T::DbWeight::get().reads(4_u64))
177 .saturating_add(T::DbWeight::get().writes(3_u64))
178 }
179 /// Storage: `DappStaking::Ledger` (r:1 w:1)
180 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
181 /// Storage: `Balances::Freezes` (r:1 w:1)
182 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
183 /// Storage: `Balances::Locks` (r:1 w:0)
184 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
185 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
186 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
187 fn unlock() -> Weight {
188 // Proof Size summary in bytes:
189 // Measured: `158`
190 // Estimated: `4764`
191 // Minimum execution time: 28_967_000 picoseconds.
192 Weight::from_parts(29_523_000, 4764)
193 .saturating_add(T::DbWeight::get().reads(4_u64))
194 .saturating_add(T::DbWeight::get().writes(3_u64))
195 }
196 /// Storage: `DappStaking::Ledger` (r:1 w:1)
197 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
198 /// Storage: `Balances::Freezes` (r:1 w:1)
199 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
200 /// Storage: `Balances::Locks` (r:1 w:0)
201 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
202 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
203 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
204 /// The range of component `x` is `[0, 16]`.
205 fn claim_unlocked(x: u32, ) -> Weight {
206 // Proof Size summary in bytes:
207 // Measured: `190`
208 // Estimated: `4764`
209 // Minimum execution time: 29_887_000 picoseconds.
210 Weight::from_parts(31_172_595, 4764)
211 // Standard Error: 2_859
212 .saturating_add(Weight::from_parts(124_029, 0).saturating_mul(x.into()))
213 .saturating_add(T::DbWeight::get().reads(4_u64))
214 .saturating_add(T::DbWeight::get().writes(3_u64))
215 }
216 /// Storage: `DappStaking::Ledger` (r:1 w:1)
217 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
218 /// Storage: `Balances::Freezes` (r:1 w:1)
219 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
220 /// Storage: `Balances::Locks` (r:1 w:0)
221 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
222 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
223 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
224 fn relock_unlocking() -> Weight {
225 // Proof Size summary in bytes:
226 // Measured: `200`
227 // Estimated: `4764`
228 // Minimum execution time: 27_384_000 picoseconds.
229 Weight::from_parts(27_620_000, 4764)
230 .saturating_add(T::DbWeight::get().reads(4_u64))
231 .saturating_add(T::DbWeight::get().writes(3_u64))
232 }
233 /// Storage: `DappStaking::IntegratedDApps` (r:1 w:0)
234 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
235 /// Storage: `DappStaking::Ledger` (r:1 w:1)
236 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
237 /// Storage: `DappStaking::StakerInfo` (r:1 w:1)
238 /// Proof: `DappStaking::StakerInfo` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
239 /// Storage: `DappStaking::ContractStake` (r:1 w:1)
240 /// Proof: `DappStaking::ContractStake` (`max_values`: Some(65535), `max_size`: Some(91), added: 2071, mode: `MaxEncodedLen`)
241 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
242 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
243 /// Storage: `Balances::Freezes` (r:1 w:1)
244 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
245 /// Storage: `Balances::Locks` (r:1 w:0)
246 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
247 fn stake() -> Weight {
248 // Proof Size summary in bytes:
249 // Measured: `274`
250 // Estimated: `4764`
251 // Minimum execution time: 40_988_000 picoseconds.
252 Weight::from_parts(41_562_000, 4764)
253 .saturating_add(T::DbWeight::get().reads(7_u64))
254 .saturating_add(T::DbWeight::get().writes(5_u64))
255 }
256 /// Storage: `DappStaking::IntegratedDApps` (r:1 w:0)
257 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
258 /// Storage: `DappStaking::Ledger` (r:1 w:1)
259 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
260 /// Storage: `DappStaking::StakerInfo` (r:1 w:1)
261 /// Proof: `DappStaking::StakerInfo` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
262 /// Storage: `DappStaking::ContractStake` (r:1 w:1)
263 /// Proof: `DappStaking::ContractStake` (`max_values`: Some(65535), `max_size`: Some(91), added: 2071, mode: `MaxEncodedLen`)
264 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
265 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
266 /// Storage: `Balances::Freezes` (r:1 w:1)
267 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
268 /// Storage: `Balances::Locks` (r:1 w:0)
269 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
270 fn unstake() -> Weight {
271 // Proof Size summary in bytes:
272 // Measured: `459`
273 // Estimated: `4764`
274 // Minimum execution time: 45_212_000 picoseconds.
275 Weight::from_parts(45_611_000, 4764)
276 .saturating_add(T::DbWeight::get().reads(7_u64))
277 .saturating_add(T::DbWeight::get().writes(5_u64))
278 }
279 /// Storage: `DappStaking::Ledger` (r:1 w:1)
280 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
281 /// Storage: `DappStaking::EraRewards` (r:1 w:0)
282 /// Proof: `DappStaking::EraRewards` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
283 /// Storage: `DappStaking::PeriodEnd` (r:1 w:0)
284 /// Proof: `DappStaking::PeriodEnd` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
285 /// Storage: `Balances::Freezes` (r:1 w:1)
286 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
287 /// Storage: `Balances::Locks` (r:1 w:0)
288 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
289 /// The range of component `x` is `[1, 16]`.
290 fn claim_staker_rewards_past_period(x: u32, ) -> Weight {
291 // Proof Size summary in bytes:
292 // Measured: `541`
293 // Estimated: `4764`
294 // Minimum execution time: 50_966_000 picoseconds.
295 Weight::from_parts(50_088_222, 4764)
296 // Standard Error: 4_812
297 .saturating_add(Weight::from_parts(1_932_998, 0).saturating_mul(x.into()))
298 .saturating_add(T::DbWeight::get().reads(5_u64))
299 .saturating_add(T::DbWeight::get().writes(2_u64))
300 }
301 /// Storage: `DappStaking::Ledger` (r:1 w:1)
302 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
303 /// Storage: `DappStaking::EraRewards` (r:1 w:0)
304 /// Proof: `DappStaking::EraRewards` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
305 /// Storage: `Balances::Freezes` (r:1 w:1)
306 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
307 /// Storage: `Balances::Locks` (r:1 w:0)
308 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
309 /// The range of component `x` is `[1, 16]`.
310 fn claim_staker_rewards_ongoing_period(x: u32, ) -> Weight {
311 // Proof Size summary in bytes:
312 // Measured: `519`
313 // Estimated: `4764`
314 // Minimum execution time: 48_396_000 picoseconds.
315 Weight::from_parts(47_718_494, 4764)
316 // Standard Error: 3_774
317 .saturating_add(Weight::from_parts(1_922_497, 0).saturating_mul(x.into()))
318 .saturating_add(T::DbWeight::get().reads(4_u64))
319 .saturating_add(T::DbWeight::get().writes(2_u64))
320 }
321 /// Storage: `DappStaking::StakerInfo` (r:1 w:1)
322 /// Proof: `DappStaking::StakerInfo` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
323 /// Storage: `DappStaking::PeriodEnd` (r:1 w:0)
324 /// Proof: `DappStaking::PeriodEnd` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
325 /// Storage: `DappStaking::Ledger` (r:1 w:1)
326 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
327 fn claim_bonus_reward() -> Weight {
328 // Proof Size summary in bytes:
329 // Measured: `275`
330 // Estimated: `3775`
331 // Minimum execution time: 37_169_000 picoseconds.
332 Weight::from_parts(37_719_000, 3775)
333 .saturating_add(T::DbWeight::get().reads(3_u64))
334 .saturating_add(T::DbWeight::get().writes(2_u64))
335 }
336 /// Storage: `DappStaking::IntegratedDApps` (r:1 w:0)
337 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
338 /// Storage: `DappStaking::DAppTiers` (r:1 w:1)
339 /// Proof: `DappStaking::DAppTiers` (`max_values`: None, `max_size`: Some(1648), added: 4123, mode: `MaxEncodedLen`)
340 fn claim_dapp_reward() -> Weight {
341 // Proof Size summary in bytes:
342 // Measured: `2672`
343 // Estimated: `5113`
344 // Minimum execution time: 54_124_000 picoseconds.
345 Weight::from_parts(54_932_000, 5113)
346 .saturating_add(T::DbWeight::get().reads(2_u64))
347 .saturating_add(T::DbWeight::get().writes(1_u64))
348 }
349 /// Storage: `DappStaking::IntegratedDApps` (r:1 w:0)
350 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
351 /// Storage: `DappStaking::StakerInfo` (r:1 w:1)
352 /// Proof: `DappStaking::StakerInfo` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
353 /// Storage: `DappStaking::Ledger` (r:1 w:1)
354 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
355 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
356 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
357 /// Storage: `Balances::Freezes` (r:1 w:1)
358 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
359 /// Storage: `Balances::Locks` (r:1 w:0)
360 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
361 fn unstake_from_unregistered() -> Weight {
362 // Proof Size summary in bytes:
363 // Measured: `322`
364 // Estimated: `4764`
365 // Minimum execution time: 37_145_000 picoseconds.
366 Weight::from_parts(37_697_000, 4764)
367 .saturating_add(T::DbWeight::get().reads(6_u64))
368 .saturating_add(T::DbWeight::get().writes(4_u64))
369 }
370 /// Storage: `DappStaking::StakerInfo` (r:17 w:16)
371 /// Proof: `DappStaking::StakerInfo` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
372 /// Storage: `DappStaking::Ledger` (r:1 w:1)
373 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
374 /// Storage: `Balances::Freezes` (r:1 w:1)
375 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
376 /// Storage: `Balances::Locks` (r:1 w:0)
377 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
378 /// The range of component `x` is `[1, 16]`.
379 fn cleanup_expired_entries(x: u32, ) -> Weight {
380 // Proof Size summary in bytes:
381 // Measured: `257 + x * (73 ±0)`
382 // Estimated: `4764 + x * (2653 ±0)`
383 // Minimum execution time: 37_160_000 picoseconds.
384 Weight::from_parts(34_175_483, 4764)
385 // Standard Error: 8_747
386 .saturating_add(Weight::from_parts(4_882_773, 0).saturating_mul(x.into()))
387 .saturating_add(T::DbWeight::get().reads(4_u64))
388 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into())))
389 .saturating_add(T::DbWeight::get().writes(2_u64))
390 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
391 .saturating_add(Weight::from_parts(0, 2653).saturating_mul(x.into()))
392 }
393 /// Storage: `DappStaking::Safeguard` (r:1 w:0)
394 /// Proof: `DappStaking::Safeguard` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
395 fn force() -> Weight {
396 // Proof Size summary in bytes:
397 // Measured: `0`
398 // Estimated: `1486`
399 // Minimum execution time: 8_714_000 picoseconds.
400 Weight::from_parts(8_924_000, 1486)
401 .saturating_add(T::DbWeight::get().reads(1_u64))
402 }
403 /// Storage: `DappStaking::IntegratedDApps` (r:2 w:0)
404 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
405 /// Storage: `DappStaking::Ledger` (r:1 w:1)
406 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
407 /// Storage: `DappStaking::StakerInfo` (r:2 w:2)
408 /// Proof: `DappStaking::StakerInfo` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
409 /// Storage: `DappStaking::ContractStake` (r:2 w:2)
410 /// Proof: `DappStaking::ContractStake` (`max_values`: Some(65535), `max_size`: Some(91), added: 2071, mode: `MaxEncodedLen`)
411 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
412 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
413 /// Storage: `Balances::Freezes` (r:1 w:1)
414 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
415 /// Storage: `Balances::Locks` (r:1 w:0)
416 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
417 fn move_stake_from_registered_source() -> Weight {
418 // Proof Size summary in bytes:
419 // Measured: `553`
420 // Estimated: `6296`
421 // Minimum execution time: 71_782_000 picoseconds.
422 Weight::from_parts(72_398_000, 6296)
423 .saturating_add(T::DbWeight::get().reads(10_u64))
424 .saturating_add(T::DbWeight::get().writes(7_u64))
425 }
426 /// Storage: `DappStaking::IntegratedDApps` (r:2 w:0)
427 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
428 /// Storage: `DappStaking::StakerInfo` (r:2 w:2)
429 /// Proof: `DappStaking::StakerInfo` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
430 /// Storage: `DappStaking::Ledger` (r:1 w:1)
431 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
432 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
433 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
434 /// Storage: `Balances::Freezes` (r:1 w:1)
435 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
436 /// Storage: `Balances::Locks` (r:1 w:0)
437 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
438 /// Storage: `DappStaking::ContractStake` (r:1 w:1)
439 /// Proof: `DappStaking::ContractStake` (`max_values`: Some(65535), `max_size`: Some(91), added: 2071, mode: `MaxEncodedLen`)
440 fn move_stake_unregistered_source() -> Weight {
441 // Proof Size summary in bytes:
442 // Measured: `419`
443 // Estimated: `6296`
444 // Minimum execution time: 63_766_000 picoseconds.
445 Weight::from_parts(64_076_000, 6296)
446 .saturating_add(T::DbWeight::get().reads(9_u64))
447 .saturating_add(T::DbWeight::get().writes(6_u64))
448 }
449 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
450 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
451 /// Storage: `DappStaking::EraRewards` (r:1 w:1)
452 /// Proof: `DappStaking::EraRewards` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
453 /// Storage: `DappStaking::StaticTierParams` (r:1 w:0)
454 /// Proof: `DappStaking::StaticTierParams` (`max_values`: Some(1), `max_size`: Some(87), added: 582, mode: `MaxEncodedLen`)
455 /// Storage: `PriceAggregator::ValuesCircularBuffer` (r:1 w:0)
456 /// Proof: `PriceAggregator::ValuesCircularBuffer` (`max_values`: Some(1), `max_size`: Some(117), added: 612, mode: `MaxEncodedLen`)
457 /// Storage: `DappStaking::TierConfig` (r:1 w:1)
458 /// Proof: `DappStaking::TierConfig` (`max_values`: Some(1), `max_size`: Some(91), added: 586, mode: `MaxEncodedLen`)
459 fn on_initialize_voting_to_build_and_earn() -> Weight {
460 // Proof Size summary in bytes:
461 // Measured: `212`
462 // Estimated: `4254`
463 // Minimum execution time: 26_591_000 picoseconds.
464 Weight::from_parts(27_310_000, 4254)
465 .saturating_add(T::DbWeight::get().reads(5_u64))
466 .saturating_add(T::DbWeight::get().writes(3_u64))
467 }
468 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
469 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
470 /// Storage: `DappStaking::PeriodEnd` (r:1 w:2)
471 /// Proof: `DappStaking::PeriodEnd` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
472 /// Storage: `DappStaking::HistoryCleanupMarker` (r:1 w:1)
473 /// Proof: `DappStaking::HistoryCleanupMarker` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
474 /// Storage: `DappStaking::EraRewards` (r:1 w:1)
475 /// Proof: `DappStaking::EraRewards` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
476 /// Storage: `DappStaking::StaticTierParams` (r:1 w:0)
477 /// Proof: `DappStaking::StaticTierParams` (`max_values`: Some(1), `max_size`: Some(87), added: 582, mode: `MaxEncodedLen`)
478 /// Storage: `PriceAggregator::ValuesCircularBuffer` (r:1 w:0)
479 /// Proof: `PriceAggregator::ValuesCircularBuffer` (`max_values`: Some(1), `max_size`: Some(117), added: 612, mode: `MaxEncodedLen`)
480 /// Storage: `DappStaking::TierConfig` (r:1 w:1)
481 /// Proof: `DappStaking::TierConfig` (`max_values`: Some(1), `max_size`: Some(91), added: 586, mode: `MaxEncodedLen`)
482 /// Storage: `DappStaking::DAppTiers` (r:0 w:1)
483 /// Proof: `DappStaking::DAppTiers` (`max_values`: None, `max_size`: Some(1648), added: 4123, mode: `MaxEncodedLen`)
484 fn on_initialize_build_and_earn_to_voting() -> Weight {
485 // Proof Size summary in bytes:
486 // Measured: `719`
487 // Estimated: `4254`
488 // Minimum execution time: 42_054_000 picoseconds.
489 Weight::from_parts(43_015_000, 4254)
490 .saturating_add(T::DbWeight::get().reads(7_u64))
491 .saturating_add(T::DbWeight::get().writes(7_u64))
492 }
493 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
494 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
495 /// Storage: `DappStaking::EraRewards` (r:1 w:1)
496 /// Proof: `DappStaking::EraRewards` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
497 /// Storage: `DappStaking::StaticTierParams` (r:1 w:0)
498 /// Proof: `DappStaking::StaticTierParams` (`max_values`: Some(1), `max_size`: Some(87), added: 582, mode: `MaxEncodedLen`)
499 /// Storage: `PriceAggregator::ValuesCircularBuffer` (r:1 w:0)
500 /// Proof: `PriceAggregator::ValuesCircularBuffer` (`max_values`: Some(1), `max_size`: Some(117), added: 612, mode: `MaxEncodedLen`)
501 /// Storage: `DappStaking::TierConfig` (r:1 w:1)
502 /// Proof: `DappStaking::TierConfig` (`max_values`: Some(1), `max_size`: Some(91), added: 586, mode: `MaxEncodedLen`)
503 /// Storage: `DappStaking::DAppTiers` (r:0 w:1)
504 /// Proof: `DappStaking::DAppTiers` (`max_values`: None, `max_size`: Some(1648), added: 4123, mode: `MaxEncodedLen`)
505 fn on_initialize_build_and_earn_to_build_and_earn() -> Weight {
506 // Proof Size summary in bytes:
507 // Measured: `264`
508 // Estimated: `4254`
509 // Minimum execution time: 29_233_000 picoseconds.
510 Weight::from_parts(30_149_000, 4254)
511 .saturating_add(T::DbWeight::get().reads(5_u64))
512 .saturating_add(T::DbWeight::get().writes(4_u64))
513 }
514 /// Storage: `DappStaking::ContractStake` (r:101 w:0)
515 /// Proof: `DappStaking::ContractStake` (`max_values`: Some(65535), `max_size`: Some(91), added: 2071, mode: `MaxEncodedLen`)
516 /// Storage: `DappStaking::TierConfig` (r:1 w:0)
517 /// Proof: `DappStaking::TierConfig` (`max_values`: Some(1), `max_size`: Some(91), added: 586, mode: `MaxEncodedLen`)
518 /// The range of component `x` is `[0, 100]`.
519 fn dapp_tier_assignment(x: u32, ) -> Weight {
520 // Proof Size summary in bytes:
521 // Measured: `98 + x * (32 ±0)`
522 // Estimated: `3061 + x * (2071 ±0)`
523 // Minimum execution time: 8_483_000 picoseconds.
524 Weight::from_parts(10_922_590, 3061)
525 // Standard Error: 2_388
526 .saturating_add(Weight::from_parts(2_420_114, 0).saturating_mul(x.into()))
527 .saturating_add(T::DbWeight::get().reads(2_u64))
528 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into())))
529 .saturating_add(Weight::from_parts(0, 2071).saturating_mul(x.into()))
530 }
531 /// Storage: `DappStaking::HistoryCleanupMarker` (r:1 w:1)
532 /// Proof: `DappStaking::HistoryCleanupMarker` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
533 /// Storage: `DappStaking::EraRewards` (r:1 w:1)
534 /// Proof: `DappStaking::EraRewards` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
535 /// Storage: `DappStaking::DAppTiers` (r:0 w:1)
536 /// Proof: `DappStaking::DAppTiers` (`max_values`: None, `max_size`: Some(1648), added: 4123, mode: `MaxEncodedLen`)
537 fn on_idle_cleanup() -> Weight {
538 // Proof Size summary in bytes:
539 // Measured: `293`
540 // Estimated: `4254`
541 // Minimum execution time: 8_164_000 picoseconds.
542 Weight::from_parts(8_352_000, 4254)
543 .saturating_add(T::DbWeight::get().reads(2_u64))
544 .saturating_add(T::DbWeight::get().writes(3_u64))
545 }
546 /// Storage: `DappStaking::Ledger` (r:2 w:1)
547 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
548 fn step() -> Weight {
549 // Proof Size summary in bytes:
550 // Measured: `76`
551 // Estimated: `6560`
552 // Minimum execution time: 13_041_000 picoseconds.
553 Weight::from_parts(13_375_000, 6560)
554 .saturating_add(T::DbWeight::get().reads(2_u64))
555 .saturating_add(T::DbWeight::get().writes(1_u64))
556 }
557 /// Storage: `DappStaking::StaticTierParams` (r:0 w:1)
558 /// Proof: `DappStaking::StaticTierParams` (`max_values`: Some(1), `max_size`: Some(87), added: 582, mode: `MaxEncodedLen`)
559 fn set_static_tier_params() -> Weight {
560 // Proof Size summary in bytes:
561 // Measured: `0`
562 // Estimated: `0`
563 // Minimum execution time: 7_279_000 picoseconds.
564 Weight::from_parts(7_452_000, 0)
565 .saturating_add(T::DbWeight::get().writes(1_u64))
566 }
567}
568
569// For backwards compatibility and tests
570impl WeightInfo for () {
571 fn maintenance_mode() -> Weight {
572 // Proof Size summary in bytes:
573 // Measured: `0`
574 // Estimated: `0`
575 // Minimum execution time: 6_160_000 picoseconds.
576 Weight::from_parts(6_345_000, 0)
577 }
578 /// Storage: `DappStaking::IntegratedDApps` (r:1 w:1)
579 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
580 /// Storage: `DappStaking::CounterForIntegratedDApps` (r:1 w:1)
581 /// Proof: `DappStaking::CounterForIntegratedDApps` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
582 /// Storage: `DappStaking::NextDAppId` (r:1 w:1)
583 /// Proof: `DappStaking::NextDAppId` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
584 fn register() -> Weight {
585 // Proof Size summary in bytes:
586 // Measured: `0`
587 // Estimated: `3086`
588 // Minimum execution time: 12_235_000 picoseconds.
589 Weight::from_parts(12_512_000, 3086)
590 .saturating_add(RocksDbWeight::get().reads(3_u64))
591 .saturating_add(RocksDbWeight::get().writes(3_u64))
592 }
593 /// Storage: `DappStaking::IntegratedDApps` (r:1 w:1)
594 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
595 fn set_dapp_reward_beneficiary() -> Weight {
596 // Proof Size summary in bytes:
597 // Measured: `97`
598 // Estimated: `3086`
599 // Minimum execution time: 10_517_000 picoseconds.
600 Weight::from_parts(10_793_000, 3086)
601 .saturating_add(RocksDbWeight::get().reads(1_u64))
602 .saturating_add(RocksDbWeight::get().writes(1_u64))
603 }
604 /// Storage: `DappStaking::IntegratedDApps` (r:1 w:1)
605 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
606 fn set_dapp_owner() -> Weight {
607 // Proof Size summary in bytes:
608 // Measured: `97`
609 // Estimated: `3086`
610 // Minimum execution time: 10_363_000 picoseconds.
611 Weight::from_parts(10_656_000, 3086)
612 .saturating_add(RocksDbWeight::get().reads(1_u64))
613 .saturating_add(RocksDbWeight::get().writes(1_u64))
614 }
615 /// Storage: `DappStaking::IntegratedDApps` (r:1 w:1)
616 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
617 /// Storage: `DappStaking::CounterForIntegratedDApps` (r:1 w:1)
618 /// Proof: `DappStaking::CounterForIntegratedDApps` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
619 /// Storage: `DappStaking::ContractStake` (r:0 w:1)
620 /// Proof: `DappStaking::ContractStake` (`max_values`: Some(65535), `max_size`: Some(91), added: 2071, mode: `MaxEncodedLen`)
621 fn unregister() -> Weight {
622 // Proof Size summary in bytes:
623 // Measured: `97`
624 // Estimated: `3086`
625 // Minimum execution time: 14_595_000 picoseconds.
626 Weight::from_parts(14_935_000, 3086)
627 .saturating_add(RocksDbWeight::get().reads(2_u64))
628 .saturating_add(RocksDbWeight::get().writes(3_u64))
629 }
630 /// Storage: `DappStaking::Ledger` (r:1 w:1)
631 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
632 /// Storage: `CollatorSelection::Candidates` (r:1 w:0)
633 /// Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
634 /// Storage: `Balances::Freezes` (r:1 w:1)
635 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
636 /// Storage: `Balances::Locks` (r:1 w:0)
637 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
638 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
639 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
640 fn lock_new_account() -> Weight {
641 // Proof Size summary in bytes:
642 // Measured: `138`
643 // Estimated: `4764`
644 // Minimum execution time: 31_874_000 picoseconds.
645 Weight::from_parts(32_108_000, 4764)
646 .saturating_add(RocksDbWeight::get().reads(5_u64))
647 .saturating_add(RocksDbWeight::get().writes(3_u64))
648 }
649 /// Storage: `DappStaking::Ledger` (r:1 w:1)
650 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
651 /// Storage: `Balances::Freezes` (r:1 w:1)
652 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
653 /// Storage: `Balances::Locks` (r:1 w:0)
654 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
655 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
656 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
657 fn lock_existing_account() -> Weight {
658 // Proof Size summary in bytes:
659 // Measured: `158`
660 // Estimated: `4764`
661 // Minimum execution time: 32_204_000 picoseconds.
662 Weight::from_parts(32_658_000, 4764)
663 .saturating_add(RocksDbWeight::get().reads(4_u64))
664 .saturating_add(RocksDbWeight::get().writes(3_u64))
665 }
666 /// Storage: `DappStaking::Ledger` (r:1 w:1)
667 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
668 /// Storage: `Balances::Freezes` (r:1 w:1)
669 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
670 /// Storage: `Balances::Locks` (r:1 w:0)
671 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
672 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
673 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
674 fn unlock() -> Weight {
675 // Proof Size summary in bytes:
676 // Measured: `158`
677 // Estimated: `4764`
678 // Minimum execution time: 28_967_000 picoseconds.
679 Weight::from_parts(29_523_000, 4764)
680 .saturating_add(RocksDbWeight::get().reads(4_u64))
681 .saturating_add(RocksDbWeight::get().writes(3_u64))
682 }
683 /// Storage: `DappStaking::Ledger` (r:1 w:1)
684 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
685 /// Storage: `Balances::Freezes` (r:1 w:1)
686 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
687 /// Storage: `Balances::Locks` (r:1 w:0)
688 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
689 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
690 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
691 /// The range of component `x` is `[0, 16]`.
692 fn claim_unlocked(x: u32, ) -> Weight {
693 // Proof Size summary in bytes:
694 // Measured: `190`
695 // Estimated: `4764`
696 // Minimum execution time: 29_887_000 picoseconds.
697 Weight::from_parts(31_172_595, 4764)
698 // Standard Error: 2_859
699 .saturating_add(Weight::from_parts(124_029, 0).saturating_mul(x.into()))
700 .saturating_add(RocksDbWeight::get().reads(4_u64))
701 .saturating_add(RocksDbWeight::get().writes(3_u64))
702 }
703 /// Storage: `DappStaking::Ledger` (r:1 w:1)
704 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
705 /// Storage: `Balances::Freezes` (r:1 w:1)
706 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
707 /// Storage: `Balances::Locks` (r:1 w:0)
708 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
709 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
710 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
711 fn relock_unlocking() -> Weight {
712 // Proof Size summary in bytes:
713 // Measured: `200`
714 // Estimated: `4764`
715 // Minimum execution time: 27_384_000 picoseconds.
716 Weight::from_parts(27_620_000, 4764)
717 .saturating_add(RocksDbWeight::get().reads(4_u64))
718 .saturating_add(RocksDbWeight::get().writes(3_u64))
719 }
720 /// Storage: `DappStaking::IntegratedDApps` (r:1 w:0)
721 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
722 /// Storage: `DappStaking::Ledger` (r:1 w:1)
723 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
724 /// Storage: `DappStaking::StakerInfo` (r:1 w:1)
725 /// Proof: `DappStaking::StakerInfo` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
726 /// Storage: `DappStaking::ContractStake` (r:1 w:1)
727 /// Proof: `DappStaking::ContractStake` (`max_values`: Some(65535), `max_size`: Some(91), added: 2071, mode: `MaxEncodedLen`)
728 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
729 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
730 /// Storage: `Balances::Freezes` (r:1 w:1)
731 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
732 /// Storage: `Balances::Locks` (r:1 w:0)
733 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
734 fn stake() -> Weight {
735 // Proof Size summary in bytes:
736 // Measured: `274`
737 // Estimated: `4764`
738 // Minimum execution time: 40_988_000 picoseconds.
739 Weight::from_parts(41_562_000, 4764)
740 .saturating_add(RocksDbWeight::get().reads(7_u64))
741 .saturating_add(RocksDbWeight::get().writes(5_u64))
742 }
743 /// Storage: `DappStaking::IntegratedDApps` (r:1 w:0)
744 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
745 /// Storage: `DappStaking::Ledger` (r:1 w:1)
746 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
747 /// Storage: `DappStaking::StakerInfo` (r:1 w:1)
748 /// Proof: `DappStaking::StakerInfo` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
749 /// Storage: `DappStaking::ContractStake` (r:1 w:1)
750 /// Proof: `DappStaking::ContractStake` (`max_values`: Some(65535), `max_size`: Some(91), added: 2071, mode: `MaxEncodedLen`)
751 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
752 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
753 /// Storage: `Balances::Freezes` (r:1 w:1)
754 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
755 /// Storage: `Balances::Locks` (r:1 w:0)
756 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
757 fn unstake() -> Weight {
758 // Proof Size summary in bytes:
759 // Measured: `459`
760 // Estimated: `4764`
761 // Minimum execution time: 45_212_000 picoseconds.
762 Weight::from_parts(45_611_000, 4764)
763 .saturating_add(RocksDbWeight::get().reads(7_u64))
764 .saturating_add(RocksDbWeight::get().writes(5_u64))
765 }
766 /// Storage: `DappStaking::Ledger` (r:1 w:1)
767 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
768 /// Storage: `DappStaking::EraRewards` (r:1 w:0)
769 /// Proof: `DappStaking::EraRewards` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
770 /// Storage: `DappStaking::PeriodEnd` (r:1 w:0)
771 /// Proof: `DappStaking::PeriodEnd` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
772 /// Storage: `Balances::Freezes` (r:1 w:1)
773 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
774 /// Storage: `Balances::Locks` (r:1 w:0)
775 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
776 /// The range of component `x` is `[1, 16]`.
777 fn claim_staker_rewards_past_period(x: u32, ) -> Weight {
778 // Proof Size summary in bytes:
779 // Measured: `541`
780 // Estimated: `4764`
781 // Minimum execution time: 50_966_000 picoseconds.
782 Weight::from_parts(50_088_222, 4764)
783 // Standard Error: 4_812
784 .saturating_add(Weight::from_parts(1_932_998, 0).saturating_mul(x.into()))
785 .saturating_add(RocksDbWeight::get().reads(5_u64))
786 .saturating_add(RocksDbWeight::get().writes(2_u64))
787 }
788 /// Storage: `DappStaking::Ledger` (r:1 w:1)
789 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
790 /// Storage: `DappStaking::EraRewards` (r:1 w:0)
791 /// Proof: `DappStaking::EraRewards` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
792 /// Storage: `Balances::Freezes` (r:1 w:1)
793 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
794 /// Storage: `Balances::Locks` (r:1 w:0)
795 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
796 /// The range of component `x` is `[1, 16]`.
797 fn claim_staker_rewards_ongoing_period(x: u32, ) -> Weight {
798 // Proof Size summary in bytes:
799 // Measured: `519`
800 // Estimated: `4764`
801 // Minimum execution time: 48_396_000 picoseconds.
802 Weight::from_parts(47_718_494, 4764)
803 // Standard Error: 3_774
804 .saturating_add(Weight::from_parts(1_922_497, 0).saturating_mul(x.into()))
805 .saturating_add(RocksDbWeight::get().reads(4_u64))
806 .saturating_add(RocksDbWeight::get().writes(2_u64))
807 }
808 /// Storage: `DappStaking::StakerInfo` (r:1 w:1)
809 /// Proof: `DappStaking::StakerInfo` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
810 /// Storage: `DappStaking::PeriodEnd` (r:1 w:0)
811 /// Proof: `DappStaking::PeriodEnd` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
812 /// Storage: `DappStaking::Ledger` (r:1 w:1)
813 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
814 fn claim_bonus_reward() -> Weight {
815 // Proof Size summary in bytes:
816 // Measured: `275`
817 // Estimated: `3775`
818 // Minimum execution time: 37_169_000 picoseconds.
819 Weight::from_parts(37_719_000, 3775)
820 .saturating_add(RocksDbWeight::get().reads(3_u64))
821 .saturating_add(RocksDbWeight::get().writes(2_u64))
822 }
823 /// Storage: `DappStaking::IntegratedDApps` (r:1 w:0)
824 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
825 /// Storage: `DappStaking::DAppTiers` (r:1 w:1)
826 /// Proof: `DappStaking::DAppTiers` (`max_values`: None, `max_size`: Some(1648), added: 4123, mode: `MaxEncodedLen`)
827 fn claim_dapp_reward() -> Weight {
828 // Proof Size summary in bytes:
829 // Measured: `2672`
830 // Estimated: `5113`
831 // Minimum execution time: 54_124_000 picoseconds.
832 Weight::from_parts(54_932_000, 5113)
833 .saturating_add(RocksDbWeight::get().reads(2_u64))
834 .saturating_add(RocksDbWeight::get().writes(1_u64))
835 }
836 /// Storage: `DappStaking::IntegratedDApps` (r:1 w:0)
837 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
838 /// Storage: `DappStaking::StakerInfo` (r:1 w:1)
839 /// Proof: `DappStaking::StakerInfo` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
840 /// Storage: `DappStaking::Ledger` (r:1 w:1)
841 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
842 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
843 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
844 /// Storage: `Balances::Freezes` (r:1 w:1)
845 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
846 /// Storage: `Balances::Locks` (r:1 w:0)
847 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
848 fn unstake_from_unregistered() -> Weight {
849 // Proof Size summary in bytes:
850 // Measured: `322`
851 // Estimated: `4764`
852 // Minimum execution time: 37_145_000 picoseconds.
853 Weight::from_parts(37_697_000, 4764)
854 .saturating_add(RocksDbWeight::get().reads(6_u64))
855 .saturating_add(RocksDbWeight::get().writes(4_u64))
856 }
857 /// Storage: `DappStaking::StakerInfo` (r:17 w:16)
858 /// Proof: `DappStaking::StakerInfo` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
859 /// Storage: `DappStaking::Ledger` (r:1 w:1)
860 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
861 /// Storage: `Balances::Freezes` (r:1 w:1)
862 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
863 /// Storage: `Balances::Locks` (r:1 w:0)
864 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
865 /// The range of component `x` is `[1, 16]`.
866 fn cleanup_expired_entries(x: u32, ) -> Weight {
867 // Proof Size summary in bytes:
868 // Measured: `257 + x * (73 ±0)`
869 // Estimated: `4764 + x * (2653 ±0)`
870 // Minimum execution time: 37_160_000 picoseconds.
871 Weight::from_parts(34_175_483, 4764)
872 // Standard Error: 8_747
873 .saturating_add(Weight::from_parts(4_882_773, 0).saturating_mul(x.into()))
874 .saturating_add(RocksDbWeight::get().reads(4_u64))
875 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(x.into())))
876 .saturating_add(RocksDbWeight::get().writes(2_u64))
877 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(x.into())))
878 .saturating_add(Weight::from_parts(0, 2653).saturating_mul(x.into()))
879 }
880 /// Storage: `DappStaking::Safeguard` (r:1 w:0)
881 /// Proof: `DappStaking::Safeguard` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
882 fn force() -> Weight {
883 // Proof Size summary in bytes:
884 // Measured: `0`
885 // Estimated: `1486`
886 // Minimum execution time: 8_714_000 picoseconds.
887 Weight::from_parts(8_924_000, 1486)
888 .saturating_add(RocksDbWeight::get().reads(1_u64))
889 }
890 /// Storage: `DappStaking::IntegratedDApps` (r:2 w:0)
891 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
892 /// Storage: `DappStaking::Ledger` (r:1 w:1)
893 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
894 /// Storage: `DappStaking::StakerInfo` (r:2 w:2)
895 /// Proof: `DappStaking::StakerInfo` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
896 /// Storage: `DappStaking::ContractStake` (r:2 w:2)
897 /// Proof: `DappStaking::ContractStake` (`max_values`: Some(65535), `max_size`: Some(91), added: 2071, mode: `MaxEncodedLen`)
898 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
899 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
900 /// Storage: `Balances::Freezes` (r:1 w:1)
901 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
902 /// Storage: `Balances::Locks` (r:1 w:0)
903 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
904 fn move_stake_from_registered_source() -> Weight {
905 // Proof Size summary in bytes:
906 // Measured: `553`
907 // Estimated: `6296`
908 // Minimum execution time: 71_782_000 picoseconds.
909 Weight::from_parts(72_398_000, 6296)
910 .saturating_add(RocksDbWeight::get().reads(10_u64))
911 .saturating_add(RocksDbWeight::get().writes(7_u64))
912 }
913 /// Storage: `DappStaking::IntegratedDApps` (r:2 w:0)
914 /// Proof: `DappStaking::IntegratedDApps` (`max_values`: Some(65535), `max_size`: Some(116), added: 2096, mode: `MaxEncodedLen`)
915 /// Storage: `DappStaking::StakerInfo` (r:2 w:2)
916 /// Proof: `DappStaking::StakerInfo` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
917 /// Storage: `DappStaking::Ledger` (r:1 w:1)
918 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
919 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
920 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
921 /// Storage: `Balances::Freezes` (r:1 w:1)
922 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
923 /// Storage: `Balances::Locks` (r:1 w:0)
924 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
925 /// Storage: `DappStaking::ContractStake` (r:1 w:1)
926 /// Proof: `DappStaking::ContractStake` (`max_values`: Some(65535), `max_size`: Some(91), added: 2071, mode: `MaxEncodedLen`)
927 fn move_stake_unregistered_source() -> Weight {
928 // Proof Size summary in bytes:
929 // Measured: `419`
930 // Estimated: `6296`
931 // Minimum execution time: 63_766_000 picoseconds.
932 Weight::from_parts(64_076_000, 6296)
933 .saturating_add(RocksDbWeight::get().reads(9_u64))
934 .saturating_add(RocksDbWeight::get().writes(6_u64))
935 }
936 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
937 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
938 /// Storage: `DappStaking::EraRewards` (r:1 w:1)
939 /// Proof: `DappStaking::EraRewards` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
940 /// Storage: `DappStaking::StaticTierParams` (r:1 w:0)
941 /// Proof: `DappStaking::StaticTierParams` (`max_values`: Some(1), `max_size`: Some(87), added: 582, mode: `MaxEncodedLen`)
942 /// Storage: `PriceAggregator::ValuesCircularBuffer` (r:1 w:0)
943 /// Proof: `PriceAggregator::ValuesCircularBuffer` (`max_values`: Some(1), `max_size`: Some(117), added: 612, mode: `MaxEncodedLen`)
944 /// Storage: `DappStaking::TierConfig` (r:1 w:1)
945 /// Proof: `DappStaking::TierConfig` (`max_values`: Some(1), `max_size`: Some(91), added: 586, mode: `MaxEncodedLen`)
946 fn on_initialize_voting_to_build_and_earn() -> Weight {
947 // Proof Size summary in bytes:
948 // Measured: `212`
949 // Estimated: `4254`
950 // Minimum execution time: 26_591_000 picoseconds.
951 Weight::from_parts(27_310_000, 4254)
952 .saturating_add(RocksDbWeight::get().reads(5_u64))
953 .saturating_add(RocksDbWeight::get().writes(3_u64))
954 }
955 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
956 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
957 /// Storage: `DappStaking::PeriodEnd` (r:1 w:2)
958 /// Proof: `DappStaking::PeriodEnd` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
959 /// Storage: `DappStaking::HistoryCleanupMarker` (r:1 w:1)
960 /// Proof: `DappStaking::HistoryCleanupMarker` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
961 /// Storage: `DappStaking::EraRewards` (r:1 w:1)
962 /// Proof: `DappStaking::EraRewards` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
963 /// Storage: `DappStaking::StaticTierParams` (r:1 w:0)
964 /// Proof: `DappStaking::StaticTierParams` (`max_values`: Some(1), `max_size`: Some(87), added: 582, mode: `MaxEncodedLen`)
965 /// Storage: `PriceAggregator::ValuesCircularBuffer` (r:1 w:0)
966 /// Proof: `PriceAggregator::ValuesCircularBuffer` (`max_values`: Some(1), `max_size`: Some(117), added: 612, mode: `MaxEncodedLen`)
967 /// Storage: `DappStaking::TierConfig` (r:1 w:1)
968 /// Proof: `DappStaking::TierConfig` (`max_values`: Some(1), `max_size`: Some(91), added: 586, mode: `MaxEncodedLen`)
969 /// Storage: `DappStaking::DAppTiers` (r:0 w:1)
970 /// Proof: `DappStaking::DAppTiers` (`max_values`: None, `max_size`: Some(1648), added: 4123, mode: `MaxEncodedLen`)
971 fn on_initialize_build_and_earn_to_voting() -> Weight {
972 // Proof Size summary in bytes:
973 // Measured: `719`
974 // Estimated: `4254`
975 // Minimum execution time: 42_054_000 picoseconds.
976 Weight::from_parts(43_015_000, 4254)
977 .saturating_add(RocksDbWeight::get().reads(7_u64))
978 .saturating_add(RocksDbWeight::get().writes(7_u64))
979 }
980 /// Storage: `DappStaking::CurrentEraInfo` (r:1 w:1)
981 /// Proof: `DappStaking::CurrentEraInfo` (`max_values`: Some(1), `max_size`: Some(112), added: 607, mode: `MaxEncodedLen`)
982 /// Storage: `DappStaking::EraRewards` (r:1 w:1)
983 /// Proof: `DappStaking::EraRewards` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
984 /// Storage: `DappStaking::StaticTierParams` (r:1 w:0)
985 /// Proof: `DappStaking::StaticTierParams` (`max_values`: Some(1), `max_size`: Some(87), added: 582, mode: `MaxEncodedLen`)
986 /// Storage: `PriceAggregator::ValuesCircularBuffer` (r:1 w:0)
987 /// Proof: `PriceAggregator::ValuesCircularBuffer` (`max_values`: Some(1), `max_size`: Some(117), added: 612, mode: `MaxEncodedLen`)
988 /// Storage: `DappStaking::TierConfig` (r:1 w:1)
989 /// Proof: `DappStaking::TierConfig` (`max_values`: Some(1), `max_size`: Some(91), added: 586, mode: `MaxEncodedLen`)
990 /// Storage: `DappStaking::DAppTiers` (r:0 w:1)
991 /// Proof: `DappStaking::DAppTiers` (`max_values`: None, `max_size`: Some(1648), added: 4123, mode: `MaxEncodedLen`)
992 fn on_initialize_build_and_earn_to_build_and_earn() -> Weight {
993 // Proof Size summary in bytes:
994 // Measured: `264`
995 // Estimated: `4254`
996 // Minimum execution time: 29_233_000 picoseconds.
997 Weight::from_parts(30_149_000, 4254)
998 .saturating_add(RocksDbWeight::get().reads(5_u64))
999 .saturating_add(RocksDbWeight::get().writes(4_u64))
1000 }
1001 /// Storage: `DappStaking::ContractStake` (r:101 w:0)
1002 /// Proof: `DappStaking::ContractStake` (`max_values`: Some(65535), `max_size`: Some(91), added: 2071, mode: `MaxEncodedLen`)
1003 /// Storage: `DappStaking::TierConfig` (r:1 w:0)
1004 /// Proof: `DappStaking::TierConfig` (`max_values`: Some(1), `max_size`: Some(91), added: 586, mode: `MaxEncodedLen`)
1005 /// The range of component `x` is `[0, 100]`.
1006 fn dapp_tier_assignment(x: u32, ) -> Weight {
1007 // Proof Size summary in bytes:
1008 // Measured: `98 + x * (32 ±0)`
1009 // Estimated: `3061 + x * (2071 ±0)`
1010 // Minimum execution time: 8_483_000 picoseconds.
1011 Weight::from_parts(10_922_590, 3061)
1012 // Standard Error: 2_388
1013 .saturating_add(Weight::from_parts(2_420_114, 0).saturating_mul(x.into()))
1014 .saturating_add(RocksDbWeight::get().reads(2_u64))
1015 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(x.into())))
1016 .saturating_add(Weight::from_parts(0, 2071).saturating_mul(x.into()))
1017 }
1018 /// Storage: `DappStaking::HistoryCleanupMarker` (r:1 w:1)
1019 /// Proof: `DappStaking::HistoryCleanupMarker` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
1020 /// Storage: `DappStaking::EraRewards` (r:1 w:1)
1021 /// Proof: `DappStaking::EraRewards` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
1022 /// Storage: `DappStaking::DAppTiers` (r:0 w:1)
1023 /// Proof: `DappStaking::DAppTiers` (`max_values`: None, `max_size`: Some(1648), added: 4123, mode: `MaxEncodedLen`)
1024 fn on_idle_cleanup() -> Weight {
1025 // Proof Size summary in bytes:
1026 // Measured: `293`
1027 // Estimated: `4254`
1028 // Minimum execution time: 8_164_000 picoseconds.
1029 Weight::from_parts(8_352_000, 4254)
1030 .saturating_add(RocksDbWeight::get().reads(2_u64))
1031 .saturating_add(RocksDbWeight::get().writes(3_u64))
1032 }
1033 /// Storage: `DappStaking::Ledger` (r:2 w:1)
1034 /// Proof: `DappStaking::Ledger` (`max_values`: None, `max_size`: Some(310), added: 2785, mode: `MaxEncodedLen`)
1035 fn step() -> Weight {
1036 // Proof Size summary in bytes:
1037 // Measured: `76`
1038 // Estimated: `6560`
1039 // Minimum execution time: 13_041_000 picoseconds.
1040 Weight::from_parts(13_375_000, 6560)
1041 .saturating_add(RocksDbWeight::get().reads(2_u64))
1042 .saturating_add(RocksDbWeight::get().writes(1_u64))
1043 }
1044 /// Storage: `DappStaking::StaticTierParams` (r:0 w:1)
1045 /// Proof: `DappStaking::StaticTierParams` (`max_values`: Some(1), `max_size`: Some(87), added: 582, mode: `MaxEncodedLen`)
1046 fn set_static_tier_params() -> Weight {
1047 // Proof Size summary in bytes:
1048 // Measured: `0`
1049 // Estimated: `0`
1050 // Minimum execution time: 7_279_000 picoseconds.
1051 Weight::from_parts(7_452_000, 0)
1052 .saturating_add(RocksDbWeight::get().writes(1_u64))
1053 }
1054}