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;
15use common_runtime::weights::rocksdb_child_trie_weights::constants::RocksDbWeightChild;
16
17/// The base fee for extrinsics is calculated by running benchmarks.
18/// Capacity needs the base fee to remain stable and not change when benchmarks are run.
19/// CAPACITY_EXTRINSIC_BASE_WEIGHT is a snapshot of the ExtrinsicBaseWeight
20/// taken from: runtime/common/src/weights/extrinsic_weights.rs
21///
22/// Time to execute a NO-OP extrinsic, for example `System::remark`.
23/// Calculated by multiplying the *Average* with `1.0` and adding `0`.
24///
25/// Stats nanoseconds:
26/// Min, Max: 104_713, 111_324
27/// Average: 105_455
28/// Median: 105_091
29/// Std-Dev: 1133.64
30///
31/// Percentiles nanoseconds:
32/// 99th: 110_219
33/// 95th: 106_592
34/// 75th: 105_471
35pub const CAPACITY_EXTRINSIC_BASE_WEIGHT: Weight =
36 Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(105_455), 0);
37
38/// Weight functions needed for pallet_msa.
39pub trait WeightInfo {
40 // MSA
41 fn create_sponsored_account_with_delegation(s: u32) -> Weight;
42 fn add_public_key_to_msa() -> Weight;
43 fn grant_delegation(s: u32) -> Weight;
44 fn add_recovery_commitment() -> Weight;
45 fn recover_account() -> Weight;
46 // Messages
47 fn add_onchain_message(n: u32) -> Weight;
48 fn add_ipfs_message() -> Weight;
49 // Stateful-storage
50 fn apply_item_actions(n: u32) -> Weight;
51 fn upsert_page(s: u32) -> Weight;
52 fn delete_page() -> Weight;
53 fn apply_item_actions_with_signature(s: u32) -> Weight;
54 fn upsert_page_with_signature(s: u32) -> Weight;
55 fn delete_page_with_signature() -> Weight;
56 // Handles
57 fn claim_handle(b: u32) -> Weight;
58 fn change_handle(b: u32) -> Weight;
59}
60
61// Update test as well to ensure static weight values `tests/stable_weights_test.rs`
62
63// Updated to match v1.7.4 released weights
64
65/// Weights for pallet_msa using the Substrate node and recommended hardware.
66pub struct SubstrateWeight<T>(PhantomData<T>);
67impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
68 /// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
69 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
70 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
71 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
72 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
73 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
74 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
75 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
76 /// Storage: `Msa::CurrentMsaIdentifierMaximum` (r:1 w:1)
77 /// Proof: `Msa::CurrentMsaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
78 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
79 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
80 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
81 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
82 /// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:0)
83 /// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
84 /// The range of component `s` is `[0, 30]`.
85 fn create_sponsored_account_with_delegation(s: u32) -> Weight {
86 // Proof Size summary in bytes:
87 // Measured: `1260`
88 // Estimated: `7722`
89 // Minimum execution time: 150_945_000 picoseconds.
90 Weight::from_parts(158_199_500, 7722)
91 // Standard Error: 44_798
92 .saturating_add(Weight::from_parts(53_126, 0).saturating_mul(s.into()))
93 .saturating_add(T::DbWeight::get().reads(10_u64))
94 .saturating_add(T::DbWeight::get().writes(7_u64))
95 }
96 /// Storage: `Msa::PayloadSignatureRegistryList` (r:4 w:4)
97 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
98 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
99 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
100 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
101 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
102 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
103 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
104 fn add_public_key_to_msa() -> Weight {
105 // Proof Size summary in bytes:
106 // Measured: `1536`
107 // Estimated: `9981`
108 // Minimum execution time: 231_148_000 picoseconds.
109 Weight::from_parts(237_413_000, 9981)
110 .saturating_add(T::DbWeight::get().reads(8_u64))
111 .saturating_add(T::DbWeight::get().writes(7_u64))
112 }
113 /// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
114 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
115 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
116 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
117 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:0)
118 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
119 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
120 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
121 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
122 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
123 /// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:0)
124 /// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
125 /// The range of component `s` is `[0, 30]`.
126 fn grant_delegation(s: u32) -> Weight {
127 // Proof Size summary in bytes:
128 // Measured: `1310`
129 // Estimated: `7722`
130 // Minimum execution time: 141_265_000 picoseconds.
131 Weight::from_parts(146_783_884, 7722)
132 // Standard Error: 25_530
133 .saturating_add(Weight::from_parts(138_064, 0).saturating_mul(s.into()))
134 .saturating_add(T::DbWeight::get().reads(8_u64))
135 .saturating_add(T::DbWeight::get().writes(4_u64))
136 }
137 /// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
138 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
139 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
140 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
141 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
142 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
143 /// Storage: `Msa::MsaIdToRecoveryCommitment` (r:0 w:1)
144 /// Proof: `Msa::MsaIdToRecoveryCommitment` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
145 fn add_recovery_commitment() -> Weight {
146 // Proof Size summary in bytes:
147 // Measured: `1079`
148 // Estimated: `5733`
149 // Minimum execution time: 120_850_000 picoseconds.
150 Weight::from_parts(124_481_000, 5733)
151 .saturating_add(T::DbWeight::get().reads(4_u64))
152 .saturating_add(T::DbWeight::get().writes(4_u64))
153 }
154 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
155 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
156 /// Storage: `Msa::RecoveryProviders` (r:1 w:0)
157 /// Proof: `Msa::RecoveryProviders` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
158 /// Storage: `Msa::MsaIdToRecoveryCommitment` (r:1 w:1)
159 /// Proof: `Msa::MsaIdToRecoveryCommitment` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
160 /// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
161 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
162 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
163 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
164 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
165 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
166 fn recover_account() -> Weight {
167 // Proof Size summary in bytes:
168 // Measured: `1239`
169 // Estimated: `6531`
170 // Minimum execution time: 152_322_000 picoseconds.
171 Weight::from_parts(154_850_000, 6531)
172 .saturating_add(T::DbWeight::get().reads(8_u64))
173 .saturating_add(T::DbWeight::get().writes(6_u64))
174 }
175 /// Storage: `Schemas::SchemaInfos` (r:1 w:0)
176 /// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
177 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
178 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
179 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
180 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
181 /// Storage: `Messages::MessagesV2` (r:0 w:1)
182 /// Proof: `Messages::MessagesV2` (`max_values`: None, `max_size`: Some(3123), added: 5598, mode: `MaxEncodedLen`)
183 /// The range of component `n` is `[0, 3071]`.
184 fn add_onchain_message(n: u32, ) -> Weight {
185 // Proof Size summary in bytes:
186 // Measured: `881`
187 // Estimated: `4177`
188 // Minimum execution time: 40_860_000 picoseconds.
189 Weight::from_parts(42_194_321, 4177)
190 // Standard Error: 145
191 .saturating_add(Weight::from_parts(959, 0).saturating_mul(n.into()))
192 .saturating_add(T::DbWeight::get().reads(3_u64))
193 .saturating_add(T::DbWeight::get().writes(1_u64))
194 }
195 /// Storage: `Schemas::SchemaInfos` (r:1 w:0)
196 /// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
197 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
198 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
199 /// Storage: `Messages::MessagesV2` (r:0 w:1)
200 /// Proof: `Messages::MessagesV2` (`max_values`: None, `max_size`: Some(3123), added: 5598, mode: `MaxEncodedLen`)
201 fn add_ipfs_message() -> Weight {
202 // Proof Size summary in bytes:
203 // Measured: `814`
204 // Estimated: `4008`
205 // Minimum execution time: 31_646_000 picoseconds.
206 Weight::from_parts(32_704_000, 4008)
207 .saturating_add(T::DbWeight::get().reads(2_u64))
208 .saturating_add(T::DbWeight::get().writes(1_u64))
209 }
210 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
211 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
212 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
213 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
214 /// Storage: `Schemas::SchemaInfos` (r:1 w:0)
215 /// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
216 /// Storage: UNKNOWN KEY `0xbd1557c8db6bd8599a811a7175fbc2fc6400` (r:1 w:1)
217 /// Proof: UNKNOWN KEY `0xbd1557c8db6bd8599a811a7175fbc2fc6400` (r:1 w:1)
218 /// The range of component `s` is `[1024, 5120]`.
219 fn apply_item_actions(s: u32) -> Weight {
220 // Proof Size summary in bytes:
221 // Measured: `632`
222 // Estimated: `6077`
223 // Minimum execution time: 37_479_000 picoseconds.
224 Weight::from_parts(37_727_324, 6077)
225 // Standard Error: 123
226 .saturating_add(Weight::from_parts(1_075, 0).saturating_mul(s.into()))
227 .saturating_add(T::DbWeight::get().reads(3_u64))
228 .saturating_add(RocksDbWeightChild::get().reads(1_u64))
229 .saturating_add(RocksDbWeightChild::get().writes(1_u64))
230 }
231 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
232 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
233 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
234 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
235 /// Storage: `Schemas::SchemaInfos` (r:1 w:0)
236 /// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
237 /// Storage: UNKNOWN KEY `0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1` (r:1 w:1)
238 /// Proof: UNKNOWN KEY `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: `1685`
243 // Estimated: `7130`
244 // Minimum execution time: 38_000_000 picoseconds.
245 Weight::from_parts(39_664_500, 7130)
246 // Standard Error: 199
247 .saturating_add(Weight::from_parts(101, 0).saturating_mul(s.into()))
248 .saturating_add(T::DbWeight::get().reads(3_u64))
249 .saturating_add(RocksDbWeightChild::get().reads(1_u64))
250 .saturating_add(RocksDbWeightChild::get().writes(1_u64))
251 }
252 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
253 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
254 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
255 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
256 /// Storage: `Schemas::SchemaInfos` (r:1 w:0)
257 /// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
258 /// Storage: UNKNOWN KEY `0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1` (r:1 w:1)
259 /// Proof: UNKNOWN KEY `0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1` (r:1 w:1)
260 fn delete_page() -> Weight {
261 // Proof Size summary in bytes:
262 // Measured: `1683`
263 // Estimated: `7128`
264 // Minimum execution time: 38_000_000 picoseconds.
265 Weight::from_parts(38_000_000, 7128)
266 .saturating_add(T::DbWeight::get().reads(3_u64))
267 .saturating_add(RocksDbWeightChild::get().reads(1_u64))
268 .saturating_add(RocksDbWeightChild::get().writes(1_u64))
269 }
270 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
271 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
272 /// Storage: `Schemas::SchemaInfos` (r:1 w:0)
273 /// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
274 /// Storage: UNKNOWN KEY `0xbd1557c8db6bd8599a811a7175fbc2fc6400` (r:1 w:1)
275 /// Proof: UNKNOWN KEY `0xbd1557c8db6bd8599a811a7175fbc2fc6400` (r:1 w:1)
276 /// The range of component `s` is `[1024, 5120]`.
277 fn apply_item_actions_with_signature(s: u32) -> Weight {
278 // Proof Size summary in bytes:
279 // Measured: `639`
280 // Estimated: `6084`
281 // Minimum execution time: 135_291_000 picoseconds.
282 Weight::from_parts(123_608_913, 6084)
283 // Standard Error: 360
284 .saturating_add(Weight::from_parts(10_409, 0).saturating_mul(s.into()))
285 .saturating_add(T::DbWeight::get().reads(2_u64))
286 .saturating_add(RocksDbWeightChild::get().reads(1_u64))
287 .saturating_add(RocksDbWeightChild::get().writes(1_u64))
288 }
289 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
290 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
291 /// Storage: `Schemas::SchemaInfos` (r:1 w:0)
292 /// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
293 /// Storage: UNKNOWN KEY `0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1` (r:1 w:1)
294 /// Proof: UNKNOWN KEY `0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1` (r:1 w:1)
295 /// The range of component `s` is `[1, 1024]`.
296 fn upsert_page_with_signature(s: u32) -> Weight {
297 // Proof Size summary in bytes:
298 // Measured: `1618`
299 // Estimated: `7063`
300 // Minimum execution time: 112_000_000 picoseconds.
301 Weight::from_parts(112_299_676, 7063)
302 // Standard Error: 1_943
303 .saturating_add(Weight::from_parts(16_486, 0).saturating_mul(s.into()))
304 .saturating_add(T::DbWeight::get().reads(2_u64))
305 .saturating_add(RocksDbWeightChild::get().reads(1_u64))
306 .saturating_add(RocksDbWeightChild::get().writes(1_u64))
307 }
308 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
309 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
310 /// Storage: `Schemas::SchemaInfos` (r:1 w:0)
311 /// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
312 /// Storage: UNKNOWN KEY `0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1` (r:1 w:1)
313 /// Proof: UNKNOWN KEY `0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1` (r:1 w:1)
314 fn delete_page_with_signature() -> Weight {
315 // Proof Size summary in bytes:
316 // Measured: `1616`
317 // Estimated: `7061`
318 // Minimum execution time: 112_000_000 picoseconds.
319 Weight::from_parts(114_000_000, 7061)
320 .saturating_add(T::DbWeight::get().reads(2_u64))
321 .saturating_add(RocksDbWeightChild::get().reads(1_u64))
322 .saturating_add(RocksDbWeightChild::get().writes(1_u64))
323 }
324 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
325 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
326 /// Storage: `Handles::MSAIdToDisplayName` (r:1 w:1)
327 /// Proof: `Handles::MSAIdToDisplayName` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
328 /// Storage: `Handles::CanonicalBaseHandleToSuffixIndex` (r:1 w:1)
329 /// Proof: `Handles::CanonicalBaseHandleToSuffixIndex` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
330 /// Storage: `Handles::CanonicalBaseHandleAndSuffixToMSAId` (r:0 w:1)
331 /// Proof: `Handles::CanonicalBaseHandleAndSuffixToMSAId` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
332 /// The range of component `b` is `[3, 30]`.
333 fn claim_handle(b: u32, ) -> Weight {
334 // Proof Size summary in bytes:
335 // Measured: `116`
336 // Estimated: `4019`
337 // Minimum execution time: 108_678_000 picoseconds.
338 Weight::from_parts(110_925_526, 4019)
339 // Standard Error: 31_139
340 .saturating_add(Weight::from_parts(113_003, 0).saturating_mul(b.into()))
341 .saturating_add(T::DbWeight::get().reads(3_u64))
342 .saturating_add(T::DbWeight::get().writes(3_u64))
343 }
344 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
345 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
346 /// Storage: `Handles::MSAIdToDisplayName` (r:1 w:1)
347 /// Proof: `Handles::MSAIdToDisplayName` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
348 /// Storage: `Handles::CanonicalBaseHandleToSuffixIndex` (r:1 w:1)
349 /// Proof: `Handles::CanonicalBaseHandleToSuffixIndex` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
350 /// Storage: `Handles::CanonicalBaseHandleAndSuffixToMSAId` (r:0 w:2)
351 /// Proof: `Handles::CanonicalBaseHandleAndSuffixToMSAId` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
352 /// The range of component `b` is `[3, 30]`.
353 fn change_handle(b: u32, ) -> Weight {
354 // Proof Size summary in bytes:
355 // Measured: `222 + b * (1 ±0)`
356 // Estimated: `4019`
357 // Minimum execution time: 116_507_000 picoseconds.
358 Weight::from_parts(118_375_742, 4019)
359 // Standard Error: 34_874
360 .saturating_add(Weight::from_parts(217_518, 0).saturating_mul(b.into()))
361 .saturating_add(T::DbWeight::get().reads(3_u64))
362 .saturating_add(T::DbWeight::get().writes(4_u64))
363 }
364}