pallet_frequency_tx_payment/capacity_stable_weights.rs
1//! Fixes the Weight values for Capacity transactions as static values
2//! Any change in actual weight does not adjust the cost, but will still adjust the block space
3//!
4
5#![cfg_attr(rustfmt, rustfmt_skip)]
6#![allow(
7 rustdoc::all,
8 missing_docs,
9 unused_parens,
10 unused_imports
11)]
12
13use frame_support::{traits::Get, weights::{Weight, constants::WEIGHT_REF_TIME_PER_NANOS}};
14use core::marker::PhantomData;
15
16/// The base fee for extrinsics is calculated by running benchmarks.
17/// Capacity needs the base fee to remain stable and not change when benchmarks are run.
18/// CAPACITY_EXTRINSIC_BASE_WEIGHT is a snapshot of the ExtrinsicBaseWeight
19/// taken from: runtime/common/src/weights/extrinsic_weights.rs
20///
21/// Time to execute a NO-OP extrinsic, for example `System::remark`.
22/// Calculated by multiplying the *Average* with `1.0` and adding `0`.
23///
24/// Stats nanoseconds:
25/// Min, Max: 104_713, 111_324
26/// Average: 105_455
27/// Median: 105_091
28/// Std-Dev: 1133.64
29///
30/// Percentiles nanoseconds:
31/// 99th: 110_219
32/// 95th: 106_592
33/// 75th: 105_471
34pub const CAPACITY_EXTRINSIC_BASE_WEIGHT: Weight =
35 Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(105_455), 0);
36
37/// Weight functions needed for pallet_msa.
38pub trait WeightInfo {
39 // MSA
40 fn create_sponsored_account_with_delegation(s: u32) -> Weight;
41 fn add_public_key_to_msa() -> Weight;
42 fn grant_delegation(s: u32) -> Weight;
43 fn add_recovery_commitment() -> Weight;
44 fn recover_account() -> Weight;
45 // Messages
46 fn add_onchain_message(n: u32) -> Weight;
47 fn add_ipfs_message() -> Weight;
48 // Stateful-storage
49 fn apply_item_actions(n: u32) -> Weight;
50 fn upsert_page(s: u32) -> Weight;
51 fn delete_page() -> Weight;
52 fn apply_item_actions_with_signature(s: u32) -> Weight;
53 fn upsert_page_with_signature(s: u32) -> Weight;
54 fn delete_page_with_signature() -> Weight;
55 // Handles
56 fn claim_handle(b: u32) -> Weight;
57 fn change_handle(b: u32) -> Weight;
58}
59
60// Update test as well to ensure static weight values `tests/stable_weights_test.rs`
61
62// Updated to match v1.7.4 released weights
63
64/// Weights for pallet_msa using the Substrate node and recommended hardware.
65pub struct SubstrateWeight<T>(PhantomData<T>);
66impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
67 /// Storage: Msa PayloadSignatureRegistryList (r:2 w:2)
68 /// Proof: Msa PayloadSignatureRegistryList (max_values: Some(50000), max_size: Some(144), added: 2124, mode: MaxEncodedLen)
69 /// Storage: Msa PayloadSignatureRegistryPointer (r:1 w:1)
70 /// Proof: Msa PayloadSignatureRegistryPointer (max_values: Some(1), max_size: Some(140), added: 635, mode: MaxEncodedLen)
71 /// Storage: Msa PublicKeyToMsaId (r:2 w:1)
72 /// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
73 /// Storage: Msa ProviderToRegistryEntry (r:1 w:0)
74 /// Proof: Msa ProviderToRegistryEntry (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen)
75 /// Storage: Msa CurrentMsaIdentifierMaximum (r:1 w:1)
76 /// Proof: Msa CurrentMsaIdentifierMaximum (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
77 /// Storage: Msa PublicKeyCountForMsaId (r:1 w:1)
78 /// Proof: Msa PublicKeyCountForMsaId (max_values: None, max_size: Some(17), added: 2492, mode: MaxEncodedLen)
79 /// Storage: Msa DelegatorAndProviderToDelegation (r:1 w:1)
80 /// Proof: Msa DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: MaxEncodedLen)
81 /// Storage: Schemas CurrentSchemaIdentifierMaximum (r:1 w:0)
82 /// Proof Skipped: Schemas CurrentSchemaIdentifierMaximum (max_values: Some(1), max_size: None, mode: Measured)
83 /// The range of component `s` is `[0, 30]`.
84 fn create_sponsored_account_with_delegation(s: u32) -> Weight {
85 // Proof Size summary in bytes:
86 // Measured: `1393`
87 // Estimated: `14946`
88 // Minimum execution time: 119_384_000 picoseconds.
89 Weight::from_parts(123_084_817, 14946)
90 // Standard Error: 20_681
91 .saturating_add(Weight::from_parts(138_668, 0).saturating_mul(s.into()))
92 .saturating_add(T::DbWeight::get().reads(10_u64))
93 .saturating_add(T::DbWeight::get().writes(7_u64))
94 }
95 /// Storage: Msa PayloadSignatureRegistryList (r:4 w:4)
96 /// Proof: Msa PayloadSignatureRegistryList (max_values: Some(50000), max_size: Some(144), added: 2124, mode: MaxEncodedLen)
97 /// Storage: Msa PayloadSignatureRegistryPointer (r:1 w:1)
98 /// Proof: Msa PayloadSignatureRegistryPointer (max_values: Some(1), max_size: Some(140), added: 635, mode: MaxEncodedLen)
99 /// Storage: Msa PublicKeyToMsaId (r:2 w:1)
100 /// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
101 /// Storage: Msa PublicKeyCountForMsaId (r:1 w:1)
102 /// Proof: Msa PublicKeyCountForMsaId (max_values: None, max_size: Some(17), added: 2492, mode: MaxEncodedLen)
103 fn add_public_key_to_msa() -> Weight {
104 // Proof Size summary in bytes:
105 // Measured: `1677`
106 // Estimated: `18396`
107 // Minimum execution time: 175_288_000 picoseconds.
108 Weight::from_parts(177_629_000, 18396)
109 .saturating_add(T::DbWeight::get().reads(8_u64))
110 .saturating_add(T::DbWeight::get().writes(7_u64))
111 }
112 /// Storage: Msa PayloadSignatureRegistryList (r:2 w:2)
113 /// Proof: Msa PayloadSignatureRegistryList (max_values: Some(50000), max_size: Some(144), added: 2124, mode: MaxEncodedLen)
114 /// Storage: Msa PayloadSignatureRegistryPointer (r:1 w:1)
115 /// Proof: Msa PayloadSignatureRegistryPointer (max_values: Some(1), max_size: Some(140), added: 635, mode: MaxEncodedLen)
116 /// Storage: Msa PublicKeyToMsaId (r:2 w:0)
117 /// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
118 /// Storage: Msa ProviderToRegistryEntry (r:1 w:0)
119 /// Proof: Msa ProviderToRegistryEntry (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen)
120 /// Storage: Msa DelegatorAndProviderToDelegation (r:1 w:1)
121 /// Proof: Msa DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: MaxEncodedLen)
122 /// Storage: Schemas CurrentSchemaIdentifierMaximum (r:1 w:0)
123 /// Proof Skipped: Schemas CurrentSchemaIdentifierMaximum (max_values: Some(1), max_size: None, mode: Measured)
124 /// The range of component `s` is `[0, 30]`.
125 fn grant_delegation(s: u32) -> Weight {
126 // Proof Size summary in bytes:
127 // Measured: `1443`
128 // Estimated: `14946`
129 // Minimum execution time: 111_571_000 picoseconds.
130 Weight::from_parts(115_947_313, 14946)
131 // Standard Error: 18_186
132 .saturating_add(Weight::from_parts(192_710, 0).saturating_mul(s.into()))
133 .saturating_add(T::DbWeight::get().reads(8_u64))
134 .saturating_add(T::DbWeight::get().writes(4_u64))
135 }
136 /// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
137 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
138 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
139 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
140 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
141 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
142 /// Storage: `Msa::MsaIdToRecoveryCommitment` (r:0 w:1)
143 /// Proof: `Msa::MsaIdToRecoveryCommitment` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
144 fn add_recovery_commitment() -> Weight {
145 // Proof Size summary in bytes:
146 // Measured: `1117`
147 // Estimated: `5733`
148 // Minimum execution time: 122_469_000 picoseconds.
149 Weight::from_parts(125_273_000, 5733)
150 .saturating_add(T::DbWeight::get().reads(4_u64))
151 .saturating_add(T::DbWeight::get().writes(4_u64))
152 }
153 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
154 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
155 /// Storage: `Msa::ProviderToRegistryEntry` (r:1 w:0)
156 /// Proof: `Msa::ProviderToRegistryEntry` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
157 /// Storage: `Msa::RecoveryProviders` (r:1 w:0)
158 /// Proof: `Msa::RecoveryProviders` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
159 /// Storage: `Msa::MsaIdToRecoveryCommitment` (r:1 w:1)
160 /// Proof: `Msa::MsaIdToRecoveryCommitment` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
161 /// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
162 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
163 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
164 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
165 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
166 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
167 fn recover_account() -> Weight {
168 // Proof Size summary in bytes:
169 // Measured: `1217`
170 // Estimated: `6531`
171 // Minimum execution time: 165_225_000 picoseconds.
172 Weight::from_parts(169_633_000, 6531)
173 .saturating_add(T::DbWeight::get().reads(9_u64))
174 .saturating_add(T::DbWeight::get().writes(6_u64))
175 }
176 /// Storage: Schemas Schemas (r:1 w:0)
177 /// Proof Skipped: Schemas Schemas (max_values: None, max_size: None, mode: Measured)
178 /// Storage: Msa PublicKeyToMsaId (r:1 w:0)
179 /// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
180 /// Storage: Msa DelegatorAndProviderToDelegation (r:1 w:0)
181 /// Proof: Msa DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: MaxEncodedLen)
182 /// Storage: Messages Messages (r:1 w:1)
183 /// Proof Skipped: Messages Messages (max_values: None, max_size: None, mode: Measured)
184 /// The range of component `n` is `[0, 51199]`.
185 fn add_onchain_message(n: u32) -> Weight {
186 // Proof Size summary in bytes:
187 // Measured: `46773`
188 // Estimated: `59148`
189 // Minimum execution time: 164_198_000 picoseconds.
190 Weight::from_parts(174_064_230, 59148)
191 // Standard Error: 48
192 .saturating_add(Weight::from_parts(1_527, 0).saturating_mul(n.into()))
193 .saturating_add(T::DbWeight::get().reads(4_u64))
194 .saturating_add(T::DbWeight::get().writes(1_u64))
195 }
196 /// Storage: Schemas Schemas (r:1 w:0)
197 /// Proof Skipped: Schemas Schemas (max_values: None, max_size: None, mode: Measured)
198 /// Storage: Msa PublicKeyToMsaId (r:1 w:0)
199 /// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
200 /// Storage: Messages Messages (r:1 w:1)
201 /// Proof Skipped: Messages Messages (max_values: None, max_size: None, mode: Measured)
202 fn add_ipfs_message() -> Weight {
203 // Proof Size summary in bytes:
204 // Measured: `36289`
205 // Estimated: `48664`
206 // Minimum execution time: 156_648_000 picoseconds.
207 Weight::from_parts(159_242_000, 48664)
208 .saturating_add(T::DbWeight::get().reads(3_u64))
209 .saturating_add(T::DbWeight::get().writes(1_u64))
210 }
211 /// Storage: Schemas Schemas (r:1 w:0)
212 /// Proof Skipped: Schemas Schemas (max_values: None, max_size: None, mode: Measured)
213 /// Storage: Msa PublicKeyToMsaId (r:1 w:0)
214 /// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
215 /// Storage: Msa DelegatorAndProviderToDelegation (r:1 w:0)
216 /// Proof: Msa DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: MaxEncodedLen)
217 /// Storage: unknown `0xbd1557c8db6bd8599a811a7175fbc2fc6400` (r:1 w:1)
218 /// Proof Skipped: unknown `0xbd1557c8db6bd8599a811a7175fbc2fc6400` (r:1 w:1)
219 /// The range of component `s` is `[1, 5121]`.
220 fn apply_item_actions(s: u32) -> Weight {
221 // Proof Size summary in bytes:
222 // Measured: `33370`
223 // Estimated: `45745`
224 // Minimum execution time: 105_792_000 picoseconds.
225 Weight::from_parts(104_137_090, 45745)
226 // Standard Error: 315
227 .saturating_add(Weight::from_parts(7_325, 0).saturating_mul(s.into()))
228 .saturating_add(T::DbWeight::get().reads(4_u64))
229 .saturating_add(T::DbWeight::get().writes(1_u64))
230 }
231 /// Storage: Schemas Schemas (r:1 w:0)
232 /// Proof Skipped: Schemas Schemas (max_values: None, max_size: None, mode: Measured)
233 /// Storage: Msa PublicKeyToMsaId (r:1 w:0)
234 /// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
235 /// Storage: Msa DelegatorAndProviderToDelegation (r:1 w:0)
236 /// Proof: Msa DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: MaxEncodedLen)
237 /// Storage: unknown `0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1` (r:1 w:1)
238 /// Proof Skipped: unknown `0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1` (r:1 w:1)
239 /// The range of component `s` is `[1, 1024]`.
240 fn upsert_page(s: u32) -> Weight {
241 // Proof Size summary in bytes:
242 // Measured: `416`
243 // Estimated: `12791`
244 // Minimum execution time: 30_996_000 picoseconds.
245 Weight::from_parts(32_297_181, 12791)
246 // Standard Error: 203
247 .saturating_add(Weight::from_parts(594, 0).saturating_mul(s.into()))
248 .saturating_add(T::DbWeight::get().reads(4_u64))
249 .saturating_add(T::DbWeight::get().writes(1_u64))
250 }
251 /// Storage: Schemas Schemas (r:1 w:0)
252 /// Proof Skipped: Schemas Schemas (max_values: None, max_size: None, mode: Measured)
253 /// Storage: Msa PublicKeyToMsaId (r:1 w:0)
254 /// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
255 /// Storage: Msa DelegatorAndProviderToDelegation (r:1 w:0)
256 /// Proof: Msa DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: MaxEncodedLen)
257 /// Storage: unknown `0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1` (r:1 w:1)
258 /// Proof Skipped: unknown `0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1` (r:1 w:1)
259 fn delete_page() -> Weight {
260 // Proof Size summary in bytes:
261 // Measured: `1575`
262 // Estimated: `13950`
263 // Minimum execution time: 36_810_000 picoseconds.
264 Weight::from_parts(37_792_000, 13950)
265 .saturating_add(T::DbWeight::get().reads(4_u64))
266 .saturating_add(T::DbWeight::get().writes(1_u64))
267 }
268 /// Storage: Msa PublicKeyToMsaId (r:1 w:0)
269 /// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
270 /// Storage: Schemas Schemas (r:1 w:0)
271 /// Proof Skipped: Schemas Schemas (max_values: None, max_size: None, mode: Measured)
272 /// Storage: unknown `0xbd1557c8db6bd8599a811a7175fbc2fc6400` (r:1 w:1)
273 /// Proof Skipped: unknown `0xbd1557c8db6bd8599a811a7175fbc2fc6400` (r:1 w:1)
274 /// The range of component `s` is `[1, 5121]`.
275 fn apply_item_actions_with_signature(s: u32) -> Weight {
276 // Proof Size summary in bytes:
277 // Measured: `33377`
278 // Estimated: `45752`
279 // Minimum execution time: 165_956_000 picoseconds.
280 Weight::from_parts(158_947_612, 45752)
281 // Standard Error: 426
282 .saturating_add(Weight::from_parts(13_664, 0).saturating_mul(s.into()))
283 .saturating_add(T::DbWeight::get().reads(3_u64))
284 .saturating_add(T::DbWeight::get().writes(1_u64))
285 }
286 /// Storage: Msa PublicKeyToMsaId (r:1 w:0)
287 /// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
288 /// Storage: Schemas Schemas (r:1 w:0)
289 /// Proof Skipped: Schemas Schemas (max_values: None, max_size: None, mode: Measured)
290 /// Storage: unknown `0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1` (r:1 w:1)
291 /// Proof Skipped: unknown `0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1` (r:1 w:1)
292 /// The range of component `s` is `[1, 1024]`.
293 fn upsert_page_with_signature(s: u32) -> Weight {
294 // Proof Size summary in bytes:
295 // Measured: `349`
296 // Estimated: `12724`
297 // Minimum execution time: 85_227_000 picoseconds.
298 Weight::from_parts(87_768_259, 12724)
299 // Standard Error: 543
300 .saturating_add(Weight::from_parts(6_648, 0).saturating_mul(s.into()))
301 .saturating_add(T::DbWeight::get().reads(3_u64))
302 .saturating_add(T::DbWeight::get().writes(1_u64))
303 }
304 /// Storage: Msa PublicKeyToMsaId (r:1 w:0)
305 /// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
306 /// Storage: Schemas Schemas (r:1 w:0)
307 /// Proof Skipped: Schemas Schemas (max_values: None, max_size: None, mode: Measured)
308 /// Storage: unknown `0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1` (r:1 w:1)
309 /// Proof Skipped: unknown `0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1` (r:1 w:1)
310 fn delete_page_with_signature() -> Weight {
311 // Proof Size summary in bytes:
312 // Measured: `1508`
313 // Estimated: `13883`
314 // Minimum execution time: 88_824_000 picoseconds.
315 Weight::from_parts(90_631_000, 13883)
316 .saturating_add(T::DbWeight::get().reads(3_u64))
317 .saturating_add(T::DbWeight::get().writes(1_u64))
318 }
319 /// Storage: Msa PublicKeyToMsaId (r:1 w:0)
320 /// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
321 /// Storage: Handles MSAIdToDisplayName (r:1 w:1)
322 /// Proof: Handles MSAIdToDisplayName (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
323 /// Storage: Handles CanonicalBaseHandleToSuffixIndex (r:1 w:1)
324 /// Proof: Handles CanonicalBaseHandleToSuffixIndex (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
325 /// Storage: Handles CanonicalBaseHandleAndSuffixToMSAId (r:0 w:1)
326 /// Proof: Handles CanonicalBaseHandleAndSuffixToMSAId (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen)
327 /// The range of component `b` is `[3, 30]`.
328 fn claim_handle(b: u32) -> Weight {
329 // Proof Size summary in bytes:
330 // Measured: `191`
331 // Estimated: `12434`
332 // Minimum execution time: 83_175_000 picoseconds.
333 Weight::from_parts(85_480_476, 12434)
334 // Standard Error: 25_131
335 .saturating_add(Weight::from_parts(107_272, 0).saturating_mul(b.into()))
336 .saturating_add(T::DbWeight::get().reads(3_u64))
337 .saturating_add(T::DbWeight::get().writes(3_u64))
338 }
339 /// Storage: Msa PublicKeyToMsaId (r:1 w:0)
340 /// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
341 /// Storage: Handles MSAIdToDisplayName (r:1 w:1)
342 /// Proof: Handles MSAIdToDisplayName (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
343 /// Storage: Handles CanonicalBaseHandleToSuffixIndex (r:1 w:1)
344 /// Proof: Handles CanonicalBaseHandleToSuffixIndex (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
345 /// Storage: Handles CanonicalBaseHandleAndSuffixToMSAId (r:0 w:2)
346 /// Proof: Handles CanonicalBaseHandleAndSuffixToMSAId (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen)
347 /// The range of component `b` is `[3, 30]`.
348 fn change_handle(b: u32, ) -> Weight {
349 // Proof Size summary in bytes:
350 // Measured: `297 + b * (1 ±0)`
351 // Estimated: `12434`
352 // Minimum execution time: 93_749_000 picoseconds.
353 Weight::from_parts(95_748_064, 12434)
354 // Standard Error: 9_821
355 .saturating_add(Weight::from_parts(212_118, 0).saturating_mul(b.into()))
356 .saturating_add(T::DbWeight::get().reads(3_u64))
357 .saturating_add(T::DbWeight::get().writes(4_u64))
358 }
359}