pallet_msa/weights.rs
1
2//! Autogenerated weights for `pallet_msa`
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0
5//! DATE: 2025-11-18, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `ip-10-173-5-194`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
8//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
9
10// Executed Command:
11// ./scripts/../target/release/frequency
12// benchmark
13// pallet
14// --pallet=pallet_msa
15// --extrinsic
16// *
17// --heap-pages=4096
18// --steps=20
19// --repeat=10
20// --output=./scripts/../pallets/msa/src/weights.rs
21// --template=./scripts/../.maintain/frame-weight-template.hbs
22// --additional-trie-layers=3
23// --runtime=./scripts/../target/release/wbuild/frequency-runtime/frequency_runtime.wasm
24// --genesis-builder=runtime
25
26#![cfg_attr(rustfmt, rustfmt_skip)]
27#![allow(unused_parens)]
28#![allow(unused_imports)]
29#![allow(missing_docs)]
30
31use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
32use core::marker::PhantomData;
33
34/// Weight functions needed for `pallet_msa`.
35pub trait WeightInfo {
36 fn create() -> Weight;
37 fn create_sponsored_account_with_delegation(s: u32, ) -> Weight;
38 fn revoke_delegation_by_provider() -> Weight;
39 fn add_public_key_to_msa() -> Weight;
40 fn delete_msa_public_key() -> Weight;
41 fn retire_msa() -> Weight;
42 fn grant_delegation(s: u32, ) -> Weight;
43 fn revoke_delegation_by_delegator() -> Weight;
44 fn create_provider() -> Weight;
45 fn create_provider_via_governance_v2(n: u32, m: u32, ) -> Weight;
46 fn propose_to_be_provider_v2() -> Weight;
47 fn reindex_offchain() -> Weight;
48 fn withdraw_tokens() -> Weight;
49 fn add_recovery_commitment() -> Weight;
50 fn remove_recovery_provider() -> Weight;
51 fn approve_recovery_provider() -> Weight;
52 fn check_free_extrinsic_use_revoke_delegation_by_provider() -> Weight;
53 fn check_free_extrinsic_use_revoke_delegation_by_delegator() -> Weight;
54 fn check_free_extrinsic_use_delete_msa_public_key() -> Weight;
55 fn check_free_extrinsic_use_retire_msa() -> Weight;
56 fn check_free_extrinsic_use_withdraw_tokens() -> Weight;
57 fn recover_account() -> Weight;
58 fn propose_to_add_application(n: u32, m: u32, ) -> Weight;
59 fn create_application_via_governance(n: u32, m: u32, ) -> Weight;
60 fn upload_logo() -> Weight;
61 fn propose_to_update_provider(n: u32, m: u32, ) -> Weight;
62 fn update_application_via_governance(n: u32, m: u32, ) -> Weight;
63 fn propose_to_update_application(n: u32, m: u32, ) -> Weight;
64 fn update_provider_via_governance(n: u32, m: u32, ) -> Weight;
65}
66
67/// Weights for `pallet_msa` using the Substrate node and recommended hardware.
68pub struct SubstrateWeight<T>(PhantomData<T>);
69impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
70 /// Storage: `Msa::CurrentMsaIdentifierMaximum` (r:1 w:1)
71 /// Proof: `Msa::CurrentMsaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
72 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:1)
73 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
74 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
75 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
76 fn create() -> Weight {
77 // Proof Size summary in bytes:
78 // Measured: `0`
79 // Estimated: `4008`
80 // Minimum execution time: 14_646_000 picoseconds.
81 Weight::from_parts(15_060_000, 4008)
82 .saturating_add(T::DbWeight::get().reads(3_u64))
83 .saturating_add(T::DbWeight::get().writes(3_u64))
84 }
85 /// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
86 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
87 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
88 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
89 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
90 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
91 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
92 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
93 /// Storage: `Msa::CurrentMsaIdentifierMaximum` (r:1 w:1)
94 /// Proof: `Msa::CurrentMsaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
95 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
96 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
97 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
98 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
99 /// Storage: `Schemas::CurrentIntentIdentifierMaximum` (r:1 w:0)
100 /// Proof: `Schemas::CurrentIntentIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
101 /// The range of component `s` is `[0, 30]`.
102 fn create_sponsored_account_with_delegation(s: u32, ) -> Weight {
103 // Proof Size summary in bytes:
104 // Measured: `1281`
105 // Estimated: `7722`
106 // Minimum execution time: 149_780_000 picoseconds.
107 Weight::from_parts(155_652_301, 7722)
108 // Standard Error: 45_219
109 .saturating_add(Weight::from_parts(206_483, 0).saturating_mul(s.into()))
110 .saturating_add(T::DbWeight::get().reads(10_u64))
111 .saturating_add(T::DbWeight::get().writes(7_u64))
112 }
113 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
114 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
115 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
116 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
117 fn revoke_delegation_by_provider() -> Weight {
118 // Proof Size summary in bytes:
119 // Measured: `161`
120 // Estimated: `4177`
121 // Minimum execution time: 18_553_000 picoseconds.
122 Weight::from_parts(20_297_000, 4177)
123 .saturating_add(T::DbWeight::get().reads(2_u64))
124 .saturating_add(T::DbWeight::get().writes(1_u64))
125 }
126 /// Storage: `Msa::PayloadSignatureRegistryList` (r:4 w:4)
127 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
128 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
129 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
130 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
131 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
132 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
133 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
134 fn add_public_key_to_msa() -> Weight {
135 // Proof Size summary in bytes:
136 // Measured: `1579`
137 // Estimated: `9981`
138 // Minimum execution time: 231_997_000 picoseconds.
139 Weight::from_parts(246_206_000, 9981)
140 .saturating_add(T::DbWeight::get().reads(8_u64))
141 .saturating_add(T::DbWeight::get().writes(7_u64))
142 }
143 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
144 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
145 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
146 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
147 fn delete_msa_public_key() -> Weight {
148 // Proof Size summary in bytes:
149 // Measured: `254`
150 // Estimated: `6531`
151 // Minimum execution time: 31_722_000 picoseconds.
152 Weight::from_parts(33_346_000, 6531)
153 .saturating_add(T::DbWeight::get().reads(3_u64))
154 .saturating_add(T::DbWeight::get().writes(2_u64))
155 }
156 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:1)
157 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
158 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
159 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
160 fn retire_msa() -> Weight {
161 // Proof Size summary in bytes:
162 // Measured: `71`
163 // Estimated: `4008`
164 // Minimum execution time: 21_609_000 picoseconds.
165 Weight::from_parts(22_886_000, 4008)
166 .saturating_add(T::DbWeight::get().reads(2_u64))
167 .saturating_add(T::DbWeight::get().writes(2_u64))
168 }
169 /// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
170 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
171 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
172 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
173 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:0)
174 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
175 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
176 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
177 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
178 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
179 /// Storage: `Schemas::CurrentIntentIdentifierMaximum` (r:1 w:0)
180 /// Proof: `Schemas::CurrentIntentIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
181 /// The range of component `s` is `[0, 30]`.
182 fn grant_delegation(s: u32, ) -> Weight {
183 // Proof Size summary in bytes:
184 // Measured: `1331`
185 // Estimated: `7722`
186 // Minimum execution time: 138_067_000 picoseconds.
187 Weight::from_parts(145_746_183, 7722)
188 // Standard Error: 41_269
189 .saturating_add(Weight::from_parts(87_122, 0).saturating_mul(s.into()))
190 .saturating_add(T::DbWeight::get().reads(8_u64))
191 .saturating_add(T::DbWeight::get().writes(4_u64))
192 }
193 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
194 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
195 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
196 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
197 fn revoke_delegation_by_delegator() -> Weight {
198 // Proof Size summary in bytes:
199 // Measured: `161`
200 // Estimated: `4177`
201 // Minimum execution time: 18_805_000 picoseconds.
202 Weight::from_parts(19_472_000, 4177)
203 .saturating_add(T::DbWeight::get().reads(2_u64))
204 .saturating_add(T::DbWeight::get().writes(1_u64))
205 }
206 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
207 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
208 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:1)
209 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
210 fn create_provider() -> Weight {
211 // Proof Size summary in bytes:
212 // Measured: `67`
213 // Estimated: `7722`
214 // Minimum execution time: 12_994_000 picoseconds.
215 Weight::from_parts(13_159_000, 7722)
216 .saturating_add(T::DbWeight::get().reads(2_u64))
217 .saturating_add(T::DbWeight::get().writes(1_u64))
218 }
219 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
220 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
221 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:1)
222 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
223 /// Storage: `Msa::ApprovedLogos` (r:0 w:1)
224 /// Proof: `Msa::ApprovedLogos` (`max_values`: None, `max_size`: Some(131150), added: 133625, mode: `MaxEncodedLen`)
225 /// The range of component `n` is `[0, 10]`.
226 /// The range of component `m` is `[0, 10]`.
227 fn create_provider_via_governance_v2(n: u32, m: u32, ) -> Weight {
228 // Proof Size summary in bytes:
229 // Measured: `67`
230 // Estimated: `7722`
231 // Minimum execution time: 20_665_000 picoseconds.
232 Weight::from_parts(19_316_984, 7722)
233 // Standard Error: 17_616
234 .saturating_add(Weight::from_parts(293_697, 0).saturating_mul(n.into()))
235 // Standard Error: 17_616
236 .saturating_add(Weight::from_parts(2_053_869, 0).saturating_mul(m.into()))
237 .saturating_add(T::DbWeight::get().reads(2_u64))
238 .saturating_add(T::DbWeight::get().writes(2_u64))
239 }
240 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
241 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
242 /// Storage: `Council::ProposalOf` (r:1 w:1)
243 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
244 /// Storage: `Council::Proposals` (r:1 w:1)
245 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
246 /// Storage: `Council::ProposalCount` (r:1 w:1)
247 /// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
248 /// Storage: `Council::Voting` (r:0 w:1)
249 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
250 fn propose_to_be_provider_v2() -> Weight {
251 // Proof Size summary in bytes:
252 // Measured: `147`
253 // Estimated: `4107`
254 // Minimum execution time: 35_268_000 picoseconds.
255 Weight::from_parts(37_152_000, 4107)
256 .saturating_add(T::DbWeight::get().reads(4_u64))
257 .saturating_add(T::DbWeight::get().writes(4_u64))
258 }
259 fn reindex_offchain() -> Weight {
260 // Proof Size summary in bytes:
261 // Measured: `0`
262 // Estimated: `0`
263 // Minimum execution time: 5_924_000 picoseconds.
264 Weight::from_parts(6_205_000, 0)
265 }
266 /// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
267 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
268 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
269 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
270 /// Storage: `System::Account` (r:2 w:2)
271 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
272 fn withdraw_tokens() -> Weight {
273 // Proof Size summary in bytes:
274 // Measured: `1233`
275 // Estimated: `6691`
276 // Minimum execution time: 85_807_000 picoseconds.
277 Weight::from_parts(88_342_000, 6691)
278 .saturating_add(T::DbWeight::get().reads(5_u64))
279 .saturating_add(T::DbWeight::get().writes(5_u64))
280 }
281 /// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
282 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
283 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
284 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
285 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
286 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
287 /// Storage: `Msa::MsaIdToRecoveryCommitment` (r:0 w:1)
288 /// Proof: `Msa::MsaIdToRecoveryCommitment` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
289 fn add_recovery_commitment() -> Weight {
290 // Proof Size summary in bytes:
291 // Measured: `1117`
292 // Estimated: `5733`
293 // Minimum execution time: 122_069_000 picoseconds.
294 Weight::from_parts(124_424_000, 5733)
295 .saturating_add(T::DbWeight::get().reads(4_u64))
296 .saturating_add(T::DbWeight::get().writes(4_u64))
297 }
298 /// Storage: `Msa::RecoveryProviders` (r:0 w:1)
299 /// Proof: `Msa::RecoveryProviders` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
300 fn remove_recovery_provider() -> Weight {
301 // Proof Size summary in bytes:
302 // Measured: `0`
303 // Estimated: `0`
304 // Minimum execution time: 7_188_000 picoseconds.
305 Weight::from_parts(7_379_000, 0)
306 .saturating_add(T::DbWeight::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: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
311 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
312 /// Storage: `Msa::RecoveryProviders` (r:1 w:1)
313 /// Proof: `Msa::RecoveryProviders` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
314 fn approve_recovery_provider() -> Weight {
315 // Proof Size summary in bytes:
316 // Measured: `78`
317 // Estimated: `7722`
318 // Minimum execution time: 16_361_000 picoseconds.
319 Weight::from_parts(17_242_000, 7722)
320 .saturating_add(T::DbWeight::get().reads(3_u64))
321 .saturating_add(T::DbWeight::get().writes(1_u64))
322 }
323 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
324 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
325 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
326 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
327 fn check_free_extrinsic_use_revoke_delegation_by_provider() -> Weight {
328 // Proof Size summary in bytes:
329 // Measured: `161`
330 // Estimated: `4177`
331 // Minimum execution time: 12_669_000 picoseconds.
332 Weight::from_parts(13_218_000, 4177)
333 .saturating_add(T::DbWeight::get().reads(2_u64))
334 }
335 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
336 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
337 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
338 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
339 fn check_free_extrinsic_use_revoke_delegation_by_delegator() -> Weight {
340 // Proof Size summary in bytes:
341 // Measured: `161`
342 // Estimated: `4177`
343 // Minimum execution time: 12_469_000 picoseconds.
344 Weight::from_parts(13_362_000, 4177)
345 .saturating_add(T::DbWeight::get().reads(2_u64))
346 }
347 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:0)
348 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
349 fn check_free_extrinsic_use_delete_msa_public_key() -> Weight {
350 // Proof Size summary in bytes:
351 // Measured: `124`
352 // Estimated: `6531`
353 // Minimum execution time: 11_227_000 picoseconds.
354 Weight::from_parts(11_761_000, 6531)
355 .saturating_add(T::DbWeight::get().reads(2_u64))
356 }
357 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
358 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
359 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
360 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
361 /// Storage: `Handles::MSAIdToDisplayName` (r:1 w:0)
362 /// Proof: `Handles::MSAIdToDisplayName` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
363 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:0)
364 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
365 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
366 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
367 /// Storage: `System::Account` (r:1 w:0)
368 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
369 fn check_free_extrinsic_use_retire_msa() -> Weight {
370 // Proof Size summary in bytes:
371 // Measured: `113`
372 // Estimated: `7722`
373 // Minimum execution time: 23_283_000 picoseconds.
374 Weight::from_parts(24_075_000, 7722)
375 .saturating_add(T::DbWeight::get().reads(6_u64))
376 }
377 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:0)
378 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
379 /// Storage: `Msa::PayloadSignatureRegistryList` (r:1 w:0)
380 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
381 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:0)
382 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
383 /// Storage: `System::Account` (r:1 w:0)
384 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
385 fn check_free_extrinsic_use_withdraw_tokens() -> Weight {
386 // Proof Size summary in bytes:
387 // Measured: `819`
388 // Estimated: `6531`
389 // Minimum execution time: 107_523_000 picoseconds.
390 Weight::from_parts(109_285_000, 6531)
391 .saturating_add(T::DbWeight::get().reads(5_u64))
392 }
393 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
394 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
395 /// Storage: `Msa::RecoveryProviders` (r:1 w:0)
396 /// Proof: `Msa::RecoveryProviders` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
397 /// Storage: `Msa::MsaIdToRecoveryCommitment` (r:1 w:1)
398 /// Proof: `Msa::MsaIdToRecoveryCommitment` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
399 /// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
400 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
401 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
402 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
403 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
404 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
405 fn recover_account() -> Weight {
406 // Proof Size summary in bytes:
407 // Measured: `1219`
408 // Estimated: `6531`
409 // Minimum execution time: 151_928_000 picoseconds.
410 Weight::from_parts(155_216_000, 6531)
411 .saturating_add(T::DbWeight::get().reads(8_u64))
412 .saturating_add(T::DbWeight::get().writes(6_u64))
413 }
414 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
415 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
416 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
417 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
418 /// Storage: `Council::ProposalOf` (r:1 w:1)
419 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
420 /// Storage: `Council::Proposals` (r:1 w:1)
421 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
422 /// Storage: `Council::ProposalCount` (r:1 w:1)
423 /// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
424 /// Storage: `Council::Voting` (r:0 w:1)
425 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
426 /// The range of component `n` is `[0, 10]`.
427 /// The range of component `m` is `[0, 10]`.
428 fn propose_to_add_application(n: u32, m: u32, ) -> Weight {
429 // Proof Size summary in bytes:
430 // Measured: `155`
431 // Estimated: `7722`
432 // Minimum execution time: 32_660_000 picoseconds.
433 Weight::from_parts(29_912_966, 7722)
434 // Standard Error: 19_238
435 .saturating_add(Weight::from_parts(377_060, 0).saturating_mul(n.into()))
436 // Standard Error: 19_238
437 .saturating_add(Weight::from_parts(720_548, 0).saturating_mul(m.into()))
438 .saturating_add(T::DbWeight::get().reads(5_u64))
439 .saturating_add(T::DbWeight::get().writes(4_u64))
440 }
441 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
442 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
443 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
444 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
445 /// Storage: `Msa::NextApplicationIndex` (r:1 w:1)
446 /// Proof: `Msa::NextApplicationIndex` (`max_values`: None, `max_size`: Some(18), added: 2493, mode: `MaxEncodedLen`)
447 /// Storage: `Msa::ProviderToApplicationRegistry` (r:1 w:1)
448 /// Proof: `Msa::ProviderToApplicationRegistry` (`max_values`: None, `max_size`: Some(3772), added: 6247, mode: `MaxEncodedLen`)
449 /// Storage: `Msa::ApprovedLogos` (r:0 w:1)
450 /// Proof: `Msa::ApprovedLogos` (`max_values`: None, `max_size`: Some(131150), added: 133625, mode: `MaxEncodedLen`)
451 /// The range of component `n` is `[0, 10]`.
452 /// The range of component `m` is `[0, 10]`.
453 fn create_application_via_governance(_n: u32, m: u32, ) -> Weight {
454 // Proof Size summary in bytes:
455 // Measured: `79`
456 // Estimated: `7732`
457 // Minimum execution time: 31_513_000 picoseconds.
458 Weight::from_parts(35_519_391, 7732)
459 // Standard Error: 75_471
460 .saturating_add(Weight::from_parts(1_924_815, 0).saturating_mul(m.into()))
461 .saturating_add(T::DbWeight::get().reads(4_u64))
462 .saturating_add(T::DbWeight::get().writes(3_u64))
463 }
464 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
465 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
466 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
467 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
468 /// Storage: `Msa::ApprovedLogos` (r:1 w:1)
469 /// Proof: `Msa::ApprovedLogos` (`max_values`: None, `max_size`: Some(131150), added: 133625, mode: `MaxEncodedLen`)
470 fn upload_logo() -> Weight {
471 // Proof Size summary in bytes:
472 // Measured: `123`
473 // Estimated: `135110`
474 // Minimum execution time: 303_240_000 picoseconds.
475 Weight::from_parts(309_062_000, 135110)
476 .saturating_add(T::DbWeight::get().reads(3_u64))
477 .saturating_add(T::DbWeight::get().writes(1_u64))
478 }
479 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
480 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
481 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
482 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
483 /// Storage: `Council::ProposalOf` (r:1 w:1)
484 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
485 /// Storage: `Council::Proposals` (r:1 w:1)
486 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
487 /// Storage: `Council::ProposalCount` (r:1 w:1)
488 /// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
489 /// Storage: `Council::Voting` (r:0 w:1)
490 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
491 /// The range of component `n` is `[0, 10]`.
492 /// The range of component `m` is `[0, 10]`.
493 fn propose_to_update_provider(n: u32, m: u32, ) -> Weight {
494 // Proof Size summary in bytes:
495 // Measured: `155`
496 // Estimated: `7722`
497 // Minimum execution time: 31_971_000 picoseconds.
498 Weight::from_parts(29_928_724, 7722)
499 // Standard Error: 17_223
500 .saturating_add(Weight::from_parts(384_218, 0).saturating_mul(n.into()))
501 // Standard Error: 17_223
502 .saturating_add(Weight::from_parts(691_641, 0).saturating_mul(m.into()))
503 .saturating_add(T::DbWeight::get().reads(5_u64))
504 .saturating_add(T::DbWeight::get().writes(4_u64))
505 }
506 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
507 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
508 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
509 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
510 /// Storage: `Msa::ProviderToApplicationRegistry` (r:1 w:1)
511 /// Proof: `Msa::ProviderToApplicationRegistry` (`max_values`: None, `max_size`: Some(3772), added: 6247, mode: `MaxEncodedLen`)
512 /// Storage: `Msa::ApprovedLogos` (r:0 w:1)
513 /// Proof: `Msa::ApprovedLogos` (`max_values`: None, `max_size`: Some(131150), added: 133625, mode: `MaxEncodedLen`)
514 /// The range of component `n` is `[0, 10]`.
515 /// The range of component `m` is `[0, 10]`.
516 fn update_application_via_governance(n: u32, m: u32, ) -> Weight {
517 // Proof Size summary in bytes:
518 // Measured: `892`
519 // Estimated: `7732`
520 // Minimum execution time: 51_196_000 picoseconds.
521 Weight::from_parts(49_833_578, 7732)
522 // Standard Error: 40_978
523 .saturating_add(Weight::from_parts(340_284, 0).saturating_mul(n.into()))
524 // Standard Error: 40_978
525 .saturating_add(Weight::from_parts(2_693_571, 0).saturating_mul(m.into()))
526 .saturating_add(T::DbWeight::get().reads(3_u64))
527 .saturating_add(T::DbWeight::get().writes(2_u64))
528 }
529 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
530 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
531 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
532 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
533 /// Storage: `Msa::ProviderToApplicationRegistry` (r:1 w:0)
534 /// Proof: `Msa::ProviderToApplicationRegistry` (`max_values`: None, `max_size`: Some(3772), added: 6247, mode: `MaxEncodedLen`)
535 /// Storage: `Council::ProposalOf` (r:1 w:1)
536 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
537 /// Storage: `Council::Proposals` (r:1 w:1)
538 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
539 /// Storage: `Council::ProposalCount` (r:1 w:1)
540 /// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
541 /// Storage: `Council::Voting` (r:0 w:1)
542 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
543 /// The range of component `n` is `[0, 10]`.
544 /// The range of component `m` is `[0, 10]`.
545 fn propose_to_update_application(n: u32, m: u32, ) -> Weight {
546 // Proof Size summary in bytes:
547 // Measured: `173`
548 // Estimated: `7732`
549 // Minimum execution time: 38_782_000 picoseconds.
550 Weight::from_parts(37_667_069, 7732)
551 // Standard Error: 61_448
552 .saturating_add(Weight::from_parts(291_202, 0).saturating_mul(n.into()))
553 // Standard Error: 61_448
554 .saturating_add(Weight::from_parts(1_758_016, 0).saturating_mul(m.into()))
555 .saturating_add(T::DbWeight::get().reads(6_u64))
556 .saturating_add(T::DbWeight::get().writes(4_u64))
557 }
558 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
559 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
560 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:1)
561 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
562 /// Storage: `Msa::ApprovedLogos` (r:0 w:1)
563 /// Proof: `Msa::ApprovedLogos` (`max_values`: None, `max_size`: Some(131150), added: 133625, mode: `MaxEncodedLen`)
564 /// The range of component `n` is `[0, 10]`.
565 /// The range of component `m` is `[0, 10]`.
566 fn update_provider_via_governance(n: u32, m: u32, ) -> Weight {
567 // Proof Size summary in bytes:
568 // Measured: `817`
569 // Estimated: `7722`
570 // Minimum execution time: 43_851_000 picoseconds.
571 Weight::from_parts(41_914_945, 7722)
572 // Standard Error: 19_784
573 .saturating_add(Weight::from_parts(336_622, 0).saturating_mul(n.into()))
574 // Standard Error: 19_784
575 .saturating_add(Weight::from_parts(2_723_288, 0).saturating_mul(m.into()))
576 .saturating_add(T::DbWeight::get().reads(2_u64))
577 .saturating_add(T::DbWeight::get().writes(2_u64))
578 }
579}
580
581// For backwards compatibility and tests.
582impl WeightInfo for () {
583 /// Storage: `Msa::CurrentMsaIdentifierMaximum` (r:1 w:1)
584 /// Proof: `Msa::CurrentMsaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
585 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:1)
586 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
587 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
588 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
589 fn create() -> Weight {
590 // Proof Size summary in bytes:
591 // Measured: `0`
592 // Estimated: `4008`
593 // Minimum execution time: 14_646_000 picoseconds.
594 Weight::from_parts(15_060_000, 4008)
595 .saturating_add(RocksDbWeight::get().reads(3_u64))
596 .saturating_add(RocksDbWeight::get().writes(3_u64))
597 }
598 /// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
599 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
600 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
601 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
602 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
603 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
604 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
605 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
606 /// Storage: `Msa::CurrentMsaIdentifierMaximum` (r:1 w:1)
607 /// Proof: `Msa::CurrentMsaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
608 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
609 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
610 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
611 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
612 /// Storage: `Schemas::CurrentIntentIdentifierMaximum` (r:1 w:0)
613 /// Proof: `Schemas::CurrentIntentIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
614 /// The range of component `s` is `[0, 30]`.
615 fn create_sponsored_account_with_delegation(s: u32, ) -> Weight {
616 // Proof Size summary in bytes:
617 // Measured: `1281`
618 // Estimated: `7722`
619 // Minimum execution time: 149_780_000 picoseconds.
620 Weight::from_parts(155_652_301, 7722)
621 // Standard Error: 45_219
622 .saturating_add(Weight::from_parts(206_483, 0).saturating_mul(s.into()))
623 .saturating_add(RocksDbWeight::get().reads(10_u64))
624 .saturating_add(RocksDbWeight::get().writes(7_u64))
625 }
626 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
627 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
628 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
629 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
630 fn revoke_delegation_by_provider() -> Weight {
631 // Proof Size summary in bytes:
632 // Measured: `161`
633 // Estimated: `4177`
634 // Minimum execution time: 18_553_000 picoseconds.
635 Weight::from_parts(20_297_000, 4177)
636 .saturating_add(RocksDbWeight::get().reads(2_u64))
637 .saturating_add(RocksDbWeight::get().writes(1_u64))
638 }
639 /// Storage: `Msa::PayloadSignatureRegistryList` (r:4 w:4)
640 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
641 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
642 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
643 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
644 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
645 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
646 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
647 fn add_public_key_to_msa() -> Weight {
648 // Proof Size summary in bytes:
649 // Measured: `1579`
650 // Estimated: `9981`
651 // Minimum execution time: 231_997_000 picoseconds.
652 Weight::from_parts(246_206_000, 9981)
653 .saturating_add(RocksDbWeight::get().reads(8_u64))
654 .saturating_add(RocksDbWeight::get().writes(7_u64))
655 }
656 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
657 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
658 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
659 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
660 fn delete_msa_public_key() -> Weight {
661 // Proof Size summary in bytes:
662 // Measured: `254`
663 // Estimated: `6531`
664 // Minimum execution time: 31_722_000 picoseconds.
665 Weight::from_parts(33_346_000, 6531)
666 .saturating_add(RocksDbWeight::get().reads(3_u64))
667 .saturating_add(RocksDbWeight::get().writes(2_u64))
668 }
669 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:1)
670 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
671 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
672 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
673 fn retire_msa() -> Weight {
674 // Proof Size summary in bytes:
675 // Measured: `71`
676 // Estimated: `4008`
677 // Minimum execution time: 21_609_000 picoseconds.
678 Weight::from_parts(22_886_000, 4008)
679 .saturating_add(RocksDbWeight::get().reads(2_u64))
680 .saturating_add(RocksDbWeight::get().writes(2_u64))
681 }
682 /// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
683 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
684 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
685 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
686 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:0)
687 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
688 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
689 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
690 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
691 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
692 /// Storage: `Schemas::CurrentIntentIdentifierMaximum` (r:1 w:0)
693 /// Proof: `Schemas::CurrentIntentIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
694 /// The range of component `s` is `[0, 30]`.
695 fn grant_delegation(s: u32, ) -> Weight {
696 // Proof Size summary in bytes:
697 // Measured: `1331`
698 // Estimated: `7722`
699 // Minimum execution time: 138_067_000 picoseconds.
700 Weight::from_parts(145_746_183, 7722)
701 // Standard Error: 41_269
702 .saturating_add(Weight::from_parts(87_122, 0).saturating_mul(s.into()))
703 .saturating_add(RocksDbWeight::get().reads(8_u64))
704 .saturating_add(RocksDbWeight::get().writes(4_u64))
705 }
706 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
707 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
708 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
709 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
710 fn revoke_delegation_by_delegator() -> Weight {
711 // Proof Size summary in bytes:
712 // Measured: `161`
713 // Estimated: `4177`
714 // Minimum execution time: 18_805_000 picoseconds.
715 Weight::from_parts(19_472_000, 4177)
716 .saturating_add(RocksDbWeight::get().reads(2_u64))
717 .saturating_add(RocksDbWeight::get().writes(1_u64))
718 }
719 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
720 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
721 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:1)
722 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
723 fn create_provider() -> Weight {
724 // Proof Size summary in bytes:
725 // Measured: `67`
726 // Estimated: `7722`
727 // Minimum execution time: 12_994_000 picoseconds.
728 Weight::from_parts(13_159_000, 7722)
729 .saturating_add(RocksDbWeight::get().reads(2_u64))
730 .saturating_add(RocksDbWeight::get().writes(1_u64))
731 }
732 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
733 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
734 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:1)
735 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
736 /// Storage: `Msa::ApprovedLogos` (r:0 w:1)
737 /// Proof: `Msa::ApprovedLogos` (`max_values`: None, `max_size`: Some(131150), added: 133625, mode: `MaxEncodedLen`)
738 /// The range of component `n` is `[0, 10]`.
739 /// The range of component `m` is `[0, 10]`.
740 fn create_provider_via_governance_v2(n: u32, m: u32, ) -> Weight {
741 // Proof Size summary in bytes:
742 // Measured: `67`
743 // Estimated: `7722`
744 // Minimum execution time: 20_665_000 picoseconds.
745 Weight::from_parts(19_316_984, 7722)
746 // Standard Error: 17_616
747 .saturating_add(Weight::from_parts(293_697, 0).saturating_mul(n.into()))
748 // Standard Error: 17_616
749 .saturating_add(Weight::from_parts(2_053_869, 0).saturating_mul(m.into()))
750 .saturating_add(RocksDbWeight::get().reads(2_u64))
751 .saturating_add(RocksDbWeight::get().writes(2_u64))
752 }
753 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
754 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
755 /// Storage: `Council::ProposalOf` (r:1 w:1)
756 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
757 /// Storage: `Council::Proposals` (r:1 w:1)
758 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
759 /// Storage: `Council::ProposalCount` (r:1 w:1)
760 /// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
761 /// Storage: `Council::Voting` (r:0 w:1)
762 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
763 fn propose_to_be_provider_v2() -> Weight {
764 // Proof Size summary in bytes:
765 // Measured: `147`
766 // Estimated: `4107`
767 // Minimum execution time: 35_268_000 picoseconds.
768 Weight::from_parts(37_152_000, 4107)
769 .saturating_add(RocksDbWeight::get().reads(4_u64))
770 .saturating_add(RocksDbWeight::get().writes(4_u64))
771 }
772 fn reindex_offchain() -> Weight {
773 // Proof Size summary in bytes:
774 // Measured: `0`
775 // Estimated: `0`
776 // Minimum execution time: 5_924_000 picoseconds.
777 Weight::from_parts(6_205_000, 0)
778 }
779 /// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
780 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
781 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
782 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
783 /// Storage: `System::Account` (r:2 w:2)
784 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
785 fn withdraw_tokens() -> Weight {
786 // Proof Size summary in bytes:
787 // Measured: `1233`
788 // Estimated: `6691`
789 // Minimum execution time: 85_807_000 picoseconds.
790 Weight::from_parts(88_342_000, 6691)
791 .saturating_add(RocksDbWeight::get().reads(5_u64))
792 .saturating_add(RocksDbWeight::get().writes(5_u64))
793 }
794 /// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
795 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
796 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
797 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
798 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
799 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
800 /// Storage: `Msa::MsaIdToRecoveryCommitment` (r:0 w:1)
801 /// Proof: `Msa::MsaIdToRecoveryCommitment` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
802 fn add_recovery_commitment() -> Weight {
803 // Proof Size summary in bytes:
804 // Measured: `1117`
805 // Estimated: `5733`
806 // Minimum execution time: 122_069_000 picoseconds.
807 Weight::from_parts(124_424_000, 5733)
808 .saturating_add(RocksDbWeight::get().reads(4_u64))
809 .saturating_add(RocksDbWeight::get().writes(4_u64))
810 }
811 /// Storage: `Msa::RecoveryProviders` (r:0 w:1)
812 /// Proof: `Msa::RecoveryProviders` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
813 fn remove_recovery_provider() -> Weight {
814 // Proof Size summary in bytes:
815 // Measured: `0`
816 // Estimated: `0`
817 // Minimum execution time: 7_188_000 picoseconds.
818 Weight::from_parts(7_379_000, 0)
819 .saturating_add(RocksDbWeight::get().writes(1_u64))
820 }
821 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
822 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
823 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
824 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
825 /// Storage: `Msa::RecoveryProviders` (r:1 w:1)
826 /// Proof: `Msa::RecoveryProviders` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
827 fn approve_recovery_provider() -> Weight {
828 // Proof Size summary in bytes:
829 // Measured: `78`
830 // Estimated: `7722`
831 // Minimum execution time: 16_361_000 picoseconds.
832 Weight::from_parts(17_242_000, 7722)
833 .saturating_add(RocksDbWeight::get().reads(3_u64))
834 .saturating_add(RocksDbWeight::get().writes(1_u64))
835 }
836 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
837 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
838 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
839 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
840 fn check_free_extrinsic_use_revoke_delegation_by_provider() -> Weight {
841 // Proof Size summary in bytes:
842 // Measured: `161`
843 // Estimated: `4177`
844 // Minimum execution time: 12_669_000 picoseconds.
845 Weight::from_parts(13_218_000, 4177)
846 .saturating_add(RocksDbWeight::get().reads(2_u64))
847 }
848 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
849 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
850 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
851 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
852 fn check_free_extrinsic_use_revoke_delegation_by_delegator() -> Weight {
853 // Proof Size summary in bytes:
854 // Measured: `161`
855 // Estimated: `4177`
856 // Minimum execution time: 12_469_000 picoseconds.
857 Weight::from_parts(13_362_000, 4177)
858 .saturating_add(RocksDbWeight::get().reads(2_u64))
859 }
860 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:0)
861 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
862 fn check_free_extrinsic_use_delete_msa_public_key() -> Weight {
863 // Proof Size summary in bytes:
864 // Measured: `124`
865 // Estimated: `6531`
866 // Minimum execution time: 11_227_000 picoseconds.
867 Weight::from_parts(11_761_000, 6531)
868 .saturating_add(RocksDbWeight::get().reads(2_u64))
869 }
870 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
871 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
872 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
873 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
874 /// Storage: `Handles::MSAIdToDisplayName` (r:1 w:0)
875 /// Proof: `Handles::MSAIdToDisplayName` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
876 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:0)
877 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
878 /// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
879 /// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
880 /// Storage: `System::Account` (r:1 w:0)
881 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
882 fn check_free_extrinsic_use_retire_msa() -> Weight {
883 // Proof Size summary in bytes:
884 // Measured: `113`
885 // Estimated: `7722`
886 // Minimum execution time: 23_283_000 picoseconds.
887 Weight::from_parts(24_075_000, 7722)
888 .saturating_add(RocksDbWeight::get().reads(6_u64))
889 }
890 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:0)
891 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
892 /// Storage: `Msa::PayloadSignatureRegistryList` (r:1 w:0)
893 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
894 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:0)
895 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
896 /// Storage: `System::Account` (r:1 w:0)
897 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
898 fn check_free_extrinsic_use_withdraw_tokens() -> Weight {
899 // Proof Size summary in bytes:
900 // Measured: `819`
901 // Estimated: `6531`
902 // Minimum execution time: 107_523_000 picoseconds.
903 Weight::from_parts(109_285_000, 6531)
904 .saturating_add(RocksDbWeight::get().reads(5_u64))
905 }
906 /// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
907 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
908 /// Storage: `Msa::RecoveryProviders` (r:1 w:0)
909 /// Proof: `Msa::RecoveryProviders` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
910 /// Storage: `Msa::MsaIdToRecoveryCommitment` (r:1 w:1)
911 /// Proof: `Msa::MsaIdToRecoveryCommitment` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
912 /// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
913 /// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
914 /// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
915 /// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
916 /// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
917 /// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
918 fn recover_account() -> Weight {
919 // Proof Size summary in bytes:
920 // Measured: `1219`
921 // Estimated: `6531`
922 // Minimum execution time: 151_928_000 picoseconds.
923 Weight::from_parts(155_216_000, 6531)
924 .saturating_add(RocksDbWeight::get().reads(8_u64))
925 .saturating_add(RocksDbWeight::get().writes(6_u64))
926 }
927 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
928 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
929 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
930 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
931 /// Storage: `Council::ProposalOf` (r:1 w:1)
932 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
933 /// Storage: `Council::Proposals` (r:1 w:1)
934 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
935 /// Storage: `Council::ProposalCount` (r:1 w:1)
936 /// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
937 /// Storage: `Council::Voting` (r:0 w:1)
938 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
939 /// The range of component `n` is `[0, 10]`.
940 /// The range of component `m` is `[0, 10]`.
941 fn propose_to_add_application(n: u32, m: u32, ) -> Weight {
942 // Proof Size summary in bytes:
943 // Measured: `155`
944 // Estimated: `7722`
945 // Minimum execution time: 32_660_000 picoseconds.
946 Weight::from_parts(29_912_966, 7722)
947 // Standard Error: 19_238
948 .saturating_add(Weight::from_parts(377_060, 0).saturating_mul(n.into()))
949 // Standard Error: 19_238
950 .saturating_add(Weight::from_parts(720_548, 0).saturating_mul(m.into()))
951 .saturating_add(RocksDbWeight::get().reads(5_u64))
952 .saturating_add(RocksDbWeight::get().writes(4_u64))
953 }
954 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
955 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
956 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
957 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
958 /// Storage: `Msa::NextApplicationIndex` (r:1 w:1)
959 /// Proof: `Msa::NextApplicationIndex` (`max_values`: None, `max_size`: Some(18), added: 2493, mode: `MaxEncodedLen`)
960 /// Storage: `Msa::ProviderToApplicationRegistry` (r:1 w:1)
961 /// Proof: `Msa::ProviderToApplicationRegistry` (`max_values`: None, `max_size`: Some(3772), added: 6247, mode: `MaxEncodedLen`)
962 /// Storage: `Msa::ApprovedLogos` (r:0 w:1)
963 /// Proof: `Msa::ApprovedLogos` (`max_values`: None, `max_size`: Some(131150), added: 133625, mode: `MaxEncodedLen`)
964 /// The range of component `n` is `[0, 10]`.
965 /// The range of component `m` is `[0, 10]`.
966 fn create_application_via_governance(_n: u32, m: u32, ) -> Weight {
967 // Proof Size summary in bytes:
968 // Measured: `79`
969 // Estimated: `7732`
970 // Minimum execution time: 31_513_000 picoseconds.
971 Weight::from_parts(35_519_391, 7732)
972 // Standard Error: 75_471
973 .saturating_add(Weight::from_parts(1_924_815, 0).saturating_mul(m.into()))
974 .saturating_add(RocksDbWeight::get().reads(4_u64))
975 .saturating_add(RocksDbWeight::get().writes(3_u64))
976 }
977 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
978 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
979 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
980 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
981 /// Storage: `Msa::ApprovedLogos` (r:1 w:1)
982 /// Proof: `Msa::ApprovedLogos` (`max_values`: None, `max_size`: Some(131150), added: 133625, mode: `MaxEncodedLen`)
983 fn upload_logo() -> Weight {
984 // Proof Size summary in bytes:
985 // Measured: `123`
986 // Estimated: `135110`
987 // Minimum execution time: 303_240_000 picoseconds.
988 Weight::from_parts(309_062_000, 135110)
989 .saturating_add(RocksDbWeight::get().reads(3_u64))
990 .saturating_add(RocksDbWeight::get().writes(1_u64))
991 }
992 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
993 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
994 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
995 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
996 /// Storage: `Council::ProposalOf` (r:1 w:1)
997 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
998 /// Storage: `Council::Proposals` (r:1 w:1)
999 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1000 /// Storage: `Council::ProposalCount` (r:1 w:1)
1001 /// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1002 /// Storage: `Council::Voting` (r:0 w:1)
1003 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
1004 /// The range of component `n` is `[0, 10]`.
1005 /// The range of component `m` is `[0, 10]`.
1006 fn propose_to_update_provider(n: u32, m: u32, ) -> Weight {
1007 // Proof Size summary in bytes:
1008 // Measured: `155`
1009 // Estimated: `7722`
1010 // Minimum execution time: 31_971_000 picoseconds.
1011 Weight::from_parts(29_928_724, 7722)
1012 // Standard Error: 17_223
1013 .saturating_add(Weight::from_parts(384_218, 0).saturating_mul(n.into()))
1014 // Standard Error: 17_223
1015 .saturating_add(Weight::from_parts(691_641, 0).saturating_mul(m.into()))
1016 .saturating_add(RocksDbWeight::get().reads(5_u64))
1017 .saturating_add(RocksDbWeight::get().writes(4_u64))
1018 }
1019 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
1020 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
1021 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
1022 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
1023 /// Storage: `Msa::ProviderToApplicationRegistry` (r:1 w:1)
1024 /// Proof: `Msa::ProviderToApplicationRegistry` (`max_values`: None, `max_size`: Some(3772), added: 6247, mode: `MaxEncodedLen`)
1025 /// Storage: `Msa::ApprovedLogos` (r:0 w:1)
1026 /// Proof: `Msa::ApprovedLogos` (`max_values`: None, `max_size`: Some(131150), added: 133625, mode: `MaxEncodedLen`)
1027 /// The range of component `n` is `[0, 10]`.
1028 /// The range of component `m` is `[0, 10]`.
1029 fn update_application_via_governance(n: u32, m: u32, ) -> Weight {
1030 // Proof Size summary in bytes:
1031 // Measured: `892`
1032 // Estimated: `7732`
1033 // Minimum execution time: 51_196_000 picoseconds.
1034 Weight::from_parts(49_833_578, 7732)
1035 // Standard Error: 40_978
1036 .saturating_add(Weight::from_parts(340_284, 0).saturating_mul(n.into()))
1037 // Standard Error: 40_978
1038 .saturating_add(Weight::from_parts(2_693_571, 0).saturating_mul(m.into()))
1039 .saturating_add(RocksDbWeight::get().reads(3_u64))
1040 .saturating_add(RocksDbWeight::get().writes(2_u64))
1041 }
1042 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
1043 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
1044 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:0)
1045 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
1046 /// Storage: `Msa::ProviderToApplicationRegistry` (r:1 w:0)
1047 /// Proof: `Msa::ProviderToApplicationRegistry` (`max_values`: None, `max_size`: Some(3772), added: 6247, mode: `MaxEncodedLen`)
1048 /// Storage: `Council::ProposalOf` (r:1 w:1)
1049 /// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
1050 /// Storage: `Council::Proposals` (r:1 w:1)
1051 /// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1052 /// Storage: `Council::ProposalCount` (r:1 w:1)
1053 /// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
1054 /// Storage: `Council::Voting` (r:0 w:1)
1055 /// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
1056 /// The range of component `n` is `[0, 10]`.
1057 /// The range of component `m` is `[0, 10]`.
1058 fn propose_to_update_application(n: u32, m: u32, ) -> Weight {
1059 // Proof Size summary in bytes:
1060 // Measured: `173`
1061 // Estimated: `7732`
1062 // Minimum execution time: 38_782_000 picoseconds.
1063 Weight::from_parts(37_667_069, 7732)
1064 // Standard Error: 61_448
1065 .saturating_add(Weight::from_parts(291_202, 0).saturating_mul(n.into()))
1066 // Standard Error: 61_448
1067 .saturating_add(Weight::from_parts(1_758_016, 0).saturating_mul(m.into()))
1068 .saturating_add(RocksDbWeight::get().reads(6_u64))
1069 .saturating_add(RocksDbWeight::get().writes(4_u64))
1070 }
1071 /// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
1072 /// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
1073 /// Storage: `Msa::ProviderToRegistryEntryV2` (r:1 w:1)
1074 /// Proof: `Msa::ProviderToRegistryEntryV2` (`max_values`: None, `max_size`: Some(3762), added: 6237, mode: `MaxEncodedLen`)
1075 /// Storage: `Msa::ApprovedLogos` (r:0 w:1)
1076 /// Proof: `Msa::ApprovedLogos` (`max_values`: None, `max_size`: Some(131150), added: 133625, mode: `MaxEncodedLen`)
1077 /// The range of component `n` is `[0, 10]`.
1078 /// The range of component `m` is `[0, 10]`.
1079 fn update_provider_via_governance(n: u32, m: u32, ) -> Weight {
1080 // Proof Size summary in bytes:
1081 // Measured: `817`
1082 // Estimated: `7722`
1083 // Minimum execution time: 43_851_000 picoseconds.
1084 Weight::from_parts(41_914_945, 7722)
1085 // Standard Error: 19_784
1086 .saturating_add(Weight::from_parts(336_622, 0).saturating_mul(n.into()))
1087 // Standard Error: 19_784
1088 .saturating_add(Weight::from_parts(2_723_288, 0).saturating_mul(m.into()))
1089 .saturating_add(RocksDbWeight::get().reads(2_u64))
1090 .saturating_add(RocksDbWeight::get().writes(2_u64))
1091 }
1092}
1093
1094
1095#[cfg(test)]
1096mod tests {
1097 use frame_support::{traits::Get, weights::Weight, dispatch::DispatchClass};
1098 use common_runtime::constants::{MAXIMUM_BLOCK_WEIGHT, NORMAL_DISPATCH_RATIO};
1099 use common_runtime::weights::extrinsic_weights::ExtrinsicBaseWeight;
1100
1101 #[allow(dead_code)]
1102 struct BlockWeights;
1103 impl Get<frame_system::limits::BlockWeights> for BlockWeights {
1104 fn get() -> frame_system::limits::BlockWeights {
1105 frame_system::limits::BlockWeights::builder()
1106 .base_block(Weight::zero())
1107 .for_class(DispatchClass::all(), |weights| {
1108 weights.base_extrinsic = ExtrinsicBaseWeight::get();
1109 })
1110 .for_class(DispatchClass::non_mandatory(), |weights| {
1111 weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);
1112 })
1113 .build_or_panic()
1114 }
1115 }
1116
1117 #[test]
1118 fn test_create() {
1119 assert!(
1120 BlockWeights::get()
1121 .per_class
1122 .get(frame_support::dispatch::DispatchClass::Normal)
1123 .max_extrinsic
1124 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1125 .proof_size()
1126 > 4008
1127 );
1128 }
1129 #[test]
1130 fn test_create_sponsored_account_with_delegation() {
1131 assert!(
1132 BlockWeights::get()
1133 .per_class
1134 .get(frame_support::dispatch::DispatchClass::Normal)
1135 .max_extrinsic
1136 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1137 .proof_size()
1138 > 7722
1139 );
1140 }
1141 #[test]
1142 fn test_revoke_delegation_by_provider() {
1143 assert!(
1144 BlockWeights::get()
1145 .per_class
1146 .get(frame_support::dispatch::DispatchClass::Normal)
1147 .max_extrinsic
1148 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1149 .proof_size()
1150 > 4177
1151 );
1152 }
1153 #[test]
1154 fn test_add_public_key_to_msa() {
1155 assert!(
1156 BlockWeights::get()
1157 .per_class
1158 .get(frame_support::dispatch::DispatchClass::Normal)
1159 .max_extrinsic
1160 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1161 .proof_size()
1162 > 9981
1163 );
1164 }
1165 #[test]
1166 fn test_delete_msa_public_key() {
1167 assert!(
1168 BlockWeights::get()
1169 .per_class
1170 .get(frame_support::dispatch::DispatchClass::Normal)
1171 .max_extrinsic
1172 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1173 .proof_size()
1174 > 6531
1175 );
1176 }
1177 #[test]
1178 fn test_retire_msa() {
1179 assert!(
1180 BlockWeights::get()
1181 .per_class
1182 .get(frame_support::dispatch::DispatchClass::Normal)
1183 .max_extrinsic
1184 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1185 .proof_size()
1186 > 4008
1187 );
1188 }
1189 #[test]
1190 fn test_grant_delegation() {
1191 assert!(
1192 BlockWeights::get()
1193 .per_class
1194 .get(frame_support::dispatch::DispatchClass::Normal)
1195 .max_extrinsic
1196 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1197 .proof_size()
1198 > 7722
1199 );
1200 }
1201 #[test]
1202 fn test_revoke_delegation_by_delegator() {
1203 assert!(
1204 BlockWeights::get()
1205 .per_class
1206 .get(frame_support::dispatch::DispatchClass::Normal)
1207 .max_extrinsic
1208 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1209 .proof_size()
1210 > 4177
1211 );
1212 }
1213 #[test]
1214 fn test_create_provider() {
1215 assert!(
1216 BlockWeights::get()
1217 .per_class
1218 .get(frame_support::dispatch::DispatchClass::Normal)
1219 .max_extrinsic
1220 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1221 .proof_size()
1222 > 7722
1223 );
1224 }
1225 #[test]
1226 fn test_create_provider_via_governance_v2() {
1227 assert!(
1228 BlockWeights::get()
1229 .per_class
1230 .get(frame_support::dispatch::DispatchClass::Normal)
1231 .max_extrinsic
1232 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1233 .proof_size()
1234 > 7722
1235 );
1236 }
1237 #[test]
1238 fn test_propose_to_be_provider_v2() {
1239 assert!(
1240 BlockWeights::get()
1241 .per_class
1242 .get(frame_support::dispatch::DispatchClass::Normal)
1243 .max_extrinsic
1244 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1245 .proof_size()
1246 > 4107
1247 );
1248 }
1249 #[test]
1250 fn test_withdraw_tokens() {
1251 assert!(
1252 BlockWeights::get()
1253 .per_class
1254 .get(frame_support::dispatch::DispatchClass::Normal)
1255 .max_extrinsic
1256 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1257 .proof_size()
1258 > 6691
1259 );
1260 }
1261 #[test]
1262 fn test_add_recovery_commitment() {
1263 assert!(
1264 BlockWeights::get()
1265 .per_class
1266 .get(frame_support::dispatch::DispatchClass::Normal)
1267 .max_extrinsic
1268 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1269 .proof_size()
1270 > 5733
1271 );
1272 }
1273 #[test]
1274 fn test_approve_recovery_provider() {
1275 assert!(
1276 BlockWeights::get()
1277 .per_class
1278 .get(frame_support::dispatch::DispatchClass::Normal)
1279 .max_extrinsic
1280 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1281 .proof_size()
1282 > 7722
1283 );
1284 }
1285 #[test]
1286 fn test_check_free_extrinsic_use_revoke_delegation_by_provider() {
1287 assert!(
1288 BlockWeights::get()
1289 .per_class
1290 .get(frame_support::dispatch::DispatchClass::Normal)
1291 .max_extrinsic
1292 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1293 .proof_size()
1294 > 4177
1295 );
1296 }
1297 #[test]
1298 fn test_check_free_extrinsic_use_revoke_delegation_by_delegator() {
1299 assert!(
1300 BlockWeights::get()
1301 .per_class
1302 .get(frame_support::dispatch::DispatchClass::Normal)
1303 .max_extrinsic
1304 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1305 .proof_size()
1306 > 4177
1307 );
1308 }
1309 #[test]
1310 fn test_check_free_extrinsic_use_delete_msa_public_key() {
1311 assert!(
1312 BlockWeights::get()
1313 .per_class
1314 .get(frame_support::dispatch::DispatchClass::Normal)
1315 .max_extrinsic
1316 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1317 .proof_size()
1318 > 6531
1319 );
1320 }
1321 #[test]
1322 fn test_check_free_extrinsic_use_retire_msa() {
1323 assert!(
1324 BlockWeights::get()
1325 .per_class
1326 .get(frame_support::dispatch::DispatchClass::Normal)
1327 .max_extrinsic
1328 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1329 .proof_size()
1330 > 7722
1331 );
1332 }
1333 #[test]
1334 fn test_check_free_extrinsic_use_withdraw_tokens() {
1335 assert!(
1336 BlockWeights::get()
1337 .per_class
1338 .get(frame_support::dispatch::DispatchClass::Normal)
1339 .max_extrinsic
1340 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1341 .proof_size()
1342 > 6531
1343 );
1344 }
1345 #[test]
1346 fn test_recover_account() {
1347 assert!(
1348 BlockWeights::get()
1349 .per_class
1350 .get(frame_support::dispatch::DispatchClass::Normal)
1351 .max_extrinsic
1352 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1353 .proof_size()
1354 > 6531
1355 );
1356 }
1357 #[test]
1358 fn test_propose_to_add_application() {
1359 assert!(
1360 BlockWeights::get()
1361 .per_class
1362 .get(frame_support::dispatch::DispatchClass::Normal)
1363 .max_extrinsic
1364 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1365 .proof_size()
1366 > 7722
1367 );
1368 }
1369 #[test]
1370 fn test_create_application_via_governance() {
1371 assert!(
1372 BlockWeights::get()
1373 .per_class
1374 .get(frame_support::dispatch::DispatchClass::Normal)
1375 .max_extrinsic
1376 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1377 .proof_size()
1378 > 7732
1379 );
1380 }
1381 #[test]
1382 fn test_upload_logo() {
1383 assert!(
1384 BlockWeights::get()
1385 .per_class
1386 .get(frame_support::dispatch::DispatchClass::Normal)
1387 .max_extrinsic
1388 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1389 .proof_size()
1390 > 135110
1391 );
1392 }
1393 #[test]
1394 fn test_propose_to_update_provider() {
1395 assert!(
1396 BlockWeights::get()
1397 .per_class
1398 .get(frame_support::dispatch::DispatchClass::Normal)
1399 .max_extrinsic
1400 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1401 .proof_size()
1402 > 7722
1403 );
1404 }
1405 #[test]
1406 fn test_update_application_via_governance() {
1407 assert!(
1408 BlockWeights::get()
1409 .per_class
1410 .get(frame_support::dispatch::DispatchClass::Normal)
1411 .max_extrinsic
1412 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1413 .proof_size()
1414 > 7732
1415 );
1416 }
1417 #[test]
1418 fn test_propose_to_update_application() {
1419 assert!(
1420 BlockWeights::get()
1421 .per_class
1422 .get(frame_support::dispatch::DispatchClass::Normal)
1423 .max_extrinsic
1424 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1425 .proof_size()
1426 > 7732
1427 );
1428 }
1429 #[test]
1430 fn test_update_provider_via_governance() {
1431 assert!(
1432 BlockWeights::get()
1433 .per_class
1434 .get(frame_support::dispatch::DispatchClass::Normal)
1435 .max_extrinsic
1436 .unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1437 .proof_size()
1438 > 7722
1439 );
1440 }
1441}