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