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-08-20, 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() -> Weight;
46	fn propose_to_be_provider() -> 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}
59
60/// Weights for `pallet_msa` using the Substrate node and recommended hardware.
61pub struct SubstrateWeight<T>(PhantomData<T>);
62impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
63	/// Storage: `Msa::CurrentMsaIdentifierMaximum` (r:1 w:1)
64	/// Proof: `Msa::CurrentMsaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
65	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:1)
66	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
67	/// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
68	/// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
69	fn create() -> Weight {
70		// Proof Size summary in bytes:
71		//  Measured:  `0`
72		//  Estimated: `4008`
73		// Minimum execution time: 14_969_000 picoseconds.
74		Weight::from_parts(15_727_000, 4008)
75			.saturating_add(T::DbWeight::get().reads(3_u64))
76			.saturating_add(T::DbWeight::get().writes(3_u64))
77	}
78	/// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
79	/// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
80	/// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
81	/// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
82	/// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
83	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
84	/// Storage: `Msa::ProviderToRegistryEntry` (r:1 w:0)
85	/// Proof: `Msa::ProviderToRegistryEntry` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
86	/// Storage: `Msa::CurrentMsaIdentifierMaximum` (r:1 w:1)
87	/// Proof: `Msa::CurrentMsaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
88	/// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
89	/// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
90	/// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
91	/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
92	/// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:0)
93	/// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
94	/// The range of component `s` is `[0, 30]`.
95	fn create_sponsored_account_with_delegation(s: u32, ) -> Weight {
96		// Proof Size summary in bytes:
97		//  Measured:  `1254`
98		//  Estimated: `6531`
99		// Minimum execution time: 148_814_000 picoseconds.
100		Weight::from_parts(155_902_247, 6531)
101			// Standard Error: 37_033
102			.saturating_add(Weight::from_parts(64_894, 0).saturating_mul(s.into()))
103			.saturating_add(T::DbWeight::get().reads(10_u64))
104			.saturating_add(T::DbWeight::get().writes(7_u64))
105	}
106	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
107	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
108	/// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
109	/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
110	fn revoke_delegation_by_provider() -> Weight {
111		// Proof Size summary in bytes:
112		//  Measured:  `161`
113		//  Estimated: `4177`
114		// Minimum execution time: 18_799_000 picoseconds.
115		Weight::from_parts(19_227_000, 4177)
116			.saturating_add(T::DbWeight::get().reads(2_u64))
117			.saturating_add(T::DbWeight::get().writes(1_u64))
118	}
119	/// Storage: `Msa::PayloadSignatureRegistryList` (r:4 w:4)
120	/// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
121	/// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
122	/// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
123	/// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
124	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
125	/// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
126	/// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
127	fn add_public_key_to_msa() -> Weight {
128		// Proof Size summary in bytes:
129		//  Measured:  `1550`
130		//  Estimated: `9981`
131		// Minimum execution time: 235_645_000 picoseconds.
132		Weight::from_parts(239_778_000, 9981)
133			.saturating_add(T::DbWeight::get().reads(8_u64))
134			.saturating_add(T::DbWeight::get().writes(7_u64))
135	}
136	/// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
137	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
138	/// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
139	/// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
140	fn delete_msa_public_key() -> Weight {
141		// Proof Size summary in bytes:
142		//  Measured:  `254`
143		//  Estimated: `6531`
144		// Minimum execution time: 31_957_000 picoseconds.
145		Weight::from_parts(33_243_000, 6531)
146			.saturating_add(T::DbWeight::get().reads(3_u64))
147			.saturating_add(T::DbWeight::get().writes(2_u64))
148	}
149	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:1)
150	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
151	/// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
152	/// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
153	fn retire_msa() -> Weight {
154		// Proof Size summary in bytes:
155		//  Measured:  `71`
156		//  Estimated: `4008`
157		// Minimum execution time: 21_875_000 picoseconds.
158		Weight::from_parts(22_594_000, 4008)
159			.saturating_add(T::DbWeight::get().reads(2_u64))
160			.saturating_add(T::DbWeight::get().writes(2_u64))
161	}
162	/// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
163	/// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
164	/// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
165	/// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
166	/// Storage: `Msa::PublicKeyToMsaId` (r:2 w:0)
167	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
168	/// Storage: `Msa::ProviderToRegistryEntry` (r:1 w:0)
169	/// Proof: `Msa::ProviderToRegistryEntry` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
170	/// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
171	/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
172	/// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:0)
173	/// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
174	/// The range of component `s` is `[0, 30]`.
175	fn grant_delegation(s: u32, ) -> Weight {
176		// Proof Size summary in bytes:
177		//  Measured:  `1302`
178		//  Estimated: `6531`
179		// Minimum execution time: 138_509_000 picoseconds.
180		Weight::from_parts(141_829_074, 6531)
181			// Standard Error: 29_543
182			.saturating_add(Weight::from_parts(200_429, 0).saturating_mul(s.into()))
183			.saturating_add(T::DbWeight::get().reads(8_u64))
184			.saturating_add(T::DbWeight::get().writes(4_u64))
185	}
186	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
187	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
188	/// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
189	/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
190	fn revoke_delegation_by_delegator() -> Weight {
191		// Proof Size summary in bytes:
192		//  Measured:  `161`
193		//  Estimated: `4177`
194		// Minimum execution time: 18_666_000 picoseconds.
195		Weight::from_parts(19_838_000, 4177)
196			.saturating_add(T::DbWeight::get().reads(2_u64))
197			.saturating_add(T::DbWeight::get().writes(1_u64))
198	}
199	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
200	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
201	/// Storage: `Msa::ProviderToRegistryEntry` (r:1 w:1)
202	/// Proof: `Msa::ProviderToRegistryEntry` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
203	fn create_provider() -> Weight {
204		// Proof Size summary in bytes:
205		//  Measured:  `67`
206		//  Estimated: `4008`
207		// Minimum execution time: 13_364_000 picoseconds.
208		Weight::from_parts(14_214_000, 4008)
209			.saturating_add(T::DbWeight::get().reads(2_u64))
210			.saturating_add(T::DbWeight::get().writes(1_u64))
211	}
212	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
213	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
214	/// Storage: `Msa::ProviderToRegistryEntry` (r:1 w:1)
215	/// Proof: `Msa::ProviderToRegistryEntry` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
216	fn create_provider_via_governance() -> Weight {
217		// Proof Size summary in bytes:
218		//  Measured:  `67`
219		//  Estimated: `4008`
220		// Minimum execution time: 13_330_000 picoseconds.
221		Weight::from_parts(13_702_000, 4008)
222			.saturating_add(T::DbWeight::get().reads(2_u64))
223			.saturating_add(T::DbWeight::get().writes(1_u64))
224	}
225	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
226	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
227	/// Storage: `Council::ProposalOf` (r:1 w:1)
228	/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
229	/// Storage: `Council::Proposals` (r:1 w:1)
230	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
231	/// Storage: `Council::ProposalCount` (r:1 w:1)
232	/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
233	/// Storage: `Council::Voting` (r:0 w:1)
234	/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
235	fn propose_to_be_provider() -> Weight {
236		// Proof Size summary in bytes:
237		//  Measured:  `147`
238		//  Estimated: `4107`
239		// Minimum execution time: 24_609_000 picoseconds.
240		Weight::from_parts(25_660_000, 4107)
241			.saturating_add(T::DbWeight::get().reads(4_u64))
242			.saturating_add(T::DbWeight::get().writes(4_u64))
243	}
244	fn reindex_offchain() -> Weight {
245		// Proof Size summary in bytes:
246		//  Measured:  `0`
247		//  Estimated: `0`
248		// Minimum execution time: 5_842_000 picoseconds.
249		Weight::from_parts(5_970_000, 0)
250	}
251	/// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
252	/// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
253	/// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
254	/// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
255	/// Storage: `System::Account` (r:2 w:2)
256	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
257	fn withdraw_tokens() -> Weight {
258		// Proof Size summary in bytes:
259		//  Measured:  `1229`
260		//  Estimated: `6691`
261		// Minimum execution time: 84_871_000 picoseconds.
262		Weight::from_parts(87_615_000, 6691)
263			.saturating_add(T::DbWeight::get().reads(5_u64))
264			.saturating_add(T::DbWeight::get().writes(5_u64))
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: `Msa::PublicKeyToMsaId` (r:1 w:0)
271	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
272	/// Storage: `Msa::MsaIdToRecoveryCommitment` (r:0 w:1)
273	/// Proof: `Msa::MsaIdToRecoveryCommitment` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
274	fn add_recovery_commitment() -> Weight {
275		// Proof Size summary in bytes:
276		//  Measured:  `1112`
277		//  Estimated: `5733`
278		// Minimum execution time: 122_730_000 picoseconds.
279		Weight::from_parts(126_382_000, 5733)
280			.saturating_add(T::DbWeight::get().reads(4_u64))
281			.saturating_add(T::DbWeight::get().writes(4_u64))
282	}
283	/// Storage: `Msa::RecoveryProviders` (r:0 w:1)
284	/// Proof: `Msa::RecoveryProviders` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
285	fn remove_recovery_provider() -> Weight {
286		// Proof Size summary in bytes:
287		//  Measured:  `0`
288		//  Estimated: `0`
289		// Minimum execution time: 7_445_000 picoseconds.
290		Weight::from_parts(7_712_000, 0)
291			.saturating_add(T::DbWeight::get().writes(1_u64))
292	}
293	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
294	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
295	/// Storage: `Msa::ProviderToRegistryEntry` (r:1 w:0)
296	/// Proof: `Msa::ProviderToRegistryEntry` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
297	/// Storage: `Msa::RecoveryProviders` (r:1 w:1)
298	/// Proof: `Msa::RecoveryProviders` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
299	fn approve_recovery_provider() -> Weight {
300		// Proof Size summary in bytes:
301		//  Measured:  `67`
302		//  Estimated: `4008`
303		// Minimum execution time: 16_388_000 picoseconds.
304		Weight::from_parts(16_715_000, 4008)
305			.saturating_add(T::DbWeight::get().reads(3_u64))
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::DelegatorAndProviderToDelegation` (r:1 w:0)
311	/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
312	fn check_free_extrinsic_use_revoke_delegation_by_provider() -> Weight {
313		// Proof Size summary in bytes:
314		//  Measured:  `161`
315		//  Estimated: `4177`
316		// Minimum execution time: 12_267_000 picoseconds.
317		Weight::from_parts(12_895_000, 4177)
318			.saturating_add(T::DbWeight::get().reads(2_u64))
319	}
320	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
321	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
322	/// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
323	/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
324	fn check_free_extrinsic_use_revoke_delegation_by_delegator() -> Weight {
325		// Proof Size summary in bytes:
326		//  Measured:  `161`
327		//  Estimated: `4177`
328		// Minimum execution time: 12_502_000 picoseconds.
329		Weight::from_parts(12_968_000, 4177)
330			.saturating_add(T::DbWeight::get().reads(2_u64))
331	}
332	/// Storage: `Msa::PublicKeyToMsaId` (r:2 w:0)
333	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
334	fn check_free_extrinsic_use_delete_msa_public_key() -> Weight {
335		// Proof Size summary in bytes:
336		//  Measured:  `124`
337		//  Estimated: `6531`
338		// Minimum execution time: 11_731_000 picoseconds.
339		Weight::from_parts(12_156_000, 6531)
340			.saturating_add(T::DbWeight::get().reads(2_u64))
341	}
342	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
343	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
344	/// Storage: `Msa::ProviderToRegistryEntry` (r:1 w:0)
345	/// Proof: `Msa::ProviderToRegistryEntry` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
346	/// Storage: `Handles::MSAIdToDisplayName` (r:1 w:0)
347	/// Proof: `Handles::MSAIdToDisplayName` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
348	/// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:0)
349	/// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
350	/// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
351	/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
352	/// Storage: `System::Account` (r:1 w:0)
353	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
354	fn check_free_extrinsic_use_retire_msa() -> Weight {
355		// Proof Size summary in bytes:
356		//  Measured:  `113`
357		//  Estimated: `4177`
358		// Minimum execution time: 22_805_000 picoseconds.
359		Weight::from_parts(24_080_000, 4177)
360			.saturating_add(T::DbWeight::get().reads(6_u64))
361	}
362	/// Storage: `Msa::PublicKeyToMsaId` (r:2 w:0)
363	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
364	/// Storage: `Msa::PayloadSignatureRegistryList` (r:1 w:0)
365	/// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
366	/// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:0)
367	/// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
368	/// Storage: `System::Account` (r:1 w:0)
369	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
370	fn check_free_extrinsic_use_withdraw_tokens() -> Weight {
371		// Proof Size summary in bytes:
372		//  Measured:  `819`
373		//  Estimated: `6531`
374		// Minimum execution time: 107_349_000 picoseconds.
375		Weight::from_parts(109_234_000, 6531)
376			.saturating_add(T::DbWeight::get().reads(5_u64))
377	}
378	/// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
379	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
380	/// Storage: `Msa::RecoveryProviders` (r:1 w:0)
381	/// Proof: `Msa::RecoveryProviders` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
382	/// Storage: `Msa::MsaIdToRecoveryCommitment` (r:1 w:1)
383	/// Proof: `Msa::MsaIdToRecoveryCommitment` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
384	/// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
385	/// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
386	/// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
387	/// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
388	/// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
389	/// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
390	fn recover_account() -> Weight {
391		// Proof Size summary in bytes:
392		//  Measured:  `1223`
393		//  Estimated: `6531`
394		// Minimum execution time: 151_851_000 picoseconds.
395		Weight::from_parts(158_307_000, 6531)
396			.saturating_add(T::DbWeight::get().reads(8_u64))
397			.saturating_add(T::DbWeight::get().writes(6_u64))
398	}
399}
400
401// For backwards compatibility and tests.
402impl WeightInfo for () {
403	/// Storage: `Msa::CurrentMsaIdentifierMaximum` (r:1 w:1)
404	/// Proof: `Msa::CurrentMsaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
405	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:1)
406	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
407	/// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
408	/// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
409	fn create() -> Weight {
410		// Proof Size summary in bytes:
411		//  Measured:  `0`
412		//  Estimated: `4008`
413		// Minimum execution time: 14_969_000 picoseconds.
414		Weight::from_parts(15_727_000, 4008)
415			.saturating_add(RocksDbWeight::get().reads(3_u64))
416			.saturating_add(RocksDbWeight::get().writes(3_u64))
417	}
418	/// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
419	/// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
420	/// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
421	/// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
422	/// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
423	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
424	/// Storage: `Msa::ProviderToRegistryEntry` (r:1 w:0)
425	/// Proof: `Msa::ProviderToRegistryEntry` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
426	/// Storage: `Msa::CurrentMsaIdentifierMaximum` (r:1 w:1)
427	/// Proof: `Msa::CurrentMsaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
428	/// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
429	/// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
430	/// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
431	/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
432	/// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:0)
433	/// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
434	/// The range of component `s` is `[0, 30]`.
435	fn create_sponsored_account_with_delegation(s: u32, ) -> Weight {
436		// Proof Size summary in bytes:
437		//  Measured:  `1254`
438		//  Estimated: `6531`
439		// Minimum execution time: 148_814_000 picoseconds.
440		Weight::from_parts(155_902_247, 6531)
441			// Standard Error: 37_033
442			.saturating_add(Weight::from_parts(64_894, 0).saturating_mul(s.into()))
443			.saturating_add(RocksDbWeight::get().reads(10_u64))
444			.saturating_add(RocksDbWeight::get().writes(7_u64))
445	}
446	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
447	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
448	/// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
449	/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
450	fn revoke_delegation_by_provider() -> Weight {
451		// Proof Size summary in bytes:
452		//  Measured:  `161`
453		//  Estimated: `4177`
454		// Minimum execution time: 18_799_000 picoseconds.
455		Weight::from_parts(19_227_000, 4177)
456			.saturating_add(RocksDbWeight::get().reads(2_u64))
457			.saturating_add(RocksDbWeight::get().writes(1_u64))
458	}
459	/// Storage: `Msa::PayloadSignatureRegistryList` (r:4 w:4)
460	/// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
461	/// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
462	/// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
463	/// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
464	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
465	/// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
466	/// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
467	fn add_public_key_to_msa() -> Weight {
468		// Proof Size summary in bytes:
469		//  Measured:  `1550`
470		//  Estimated: `9981`
471		// Minimum execution time: 235_645_000 picoseconds.
472		Weight::from_parts(239_778_000, 9981)
473			.saturating_add(RocksDbWeight::get().reads(8_u64))
474			.saturating_add(RocksDbWeight::get().writes(7_u64))
475	}
476	/// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
477	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
478	/// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
479	/// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
480	fn delete_msa_public_key() -> Weight {
481		// Proof Size summary in bytes:
482		//  Measured:  `254`
483		//  Estimated: `6531`
484		// Minimum execution time: 31_957_000 picoseconds.
485		Weight::from_parts(33_243_000, 6531)
486			.saturating_add(RocksDbWeight::get().reads(3_u64))
487			.saturating_add(RocksDbWeight::get().writes(2_u64))
488	}
489	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:1)
490	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
491	/// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
492	/// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
493	fn retire_msa() -> Weight {
494		// Proof Size summary in bytes:
495		//  Measured:  `71`
496		//  Estimated: `4008`
497		// Minimum execution time: 21_875_000 picoseconds.
498		Weight::from_parts(22_594_000, 4008)
499			.saturating_add(RocksDbWeight::get().reads(2_u64))
500			.saturating_add(RocksDbWeight::get().writes(2_u64))
501	}
502	/// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
503	/// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
504	/// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
505	/// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
506	/// Storage: `Msa::PublicKeyToMsaId` (r:2 w:0)
507	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
508	/// Storage: `Msa::ProviderToRegistryEntry` (r:1 w:0)
509	/// Proof: `Msa::ProviderToRegistryEntry` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
510	/// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
511	/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
512	/// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:0)
513	/// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
514	/// The range of component `s` is `[0, 30]`.
515	fn grant_delegation(s: u32, ) -> Weight {
516		// Proof Size summary in bytes:
517		//  Measured:  `1302`
518		//  Estimated: `6531`
519		// Minimum execution time: 138_509_000 picoseconds.
520		Weight::from_parts(141_829_074, 6531)
521			// Standard Error: 29_543
522			.saturating_add(Weight::from_parts(200_429, 0).saturating_mul(s.into()))
523			.saturating_add(RocksDbWeight::get().reads(8_u64))
524			.saturating_add(RocksDbWeight::get().writes(4_u64))
525	}
526	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
527	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
528	/// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:1)
529	/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
530	fn revoke_delegation_by_delegator() -> Weight {
531		// Proof Size summary in bytes:
532		//  Measured:  `161`
533		//  Estimated: `4177`
534		// Minimum execution time: 18_666_000 picoseconds.
535		Weight::from_parts(19_838_000, 4177)
536			.saturating_add(RocksDbWeight::get().reads(2_u64))
537			.saturating_add(RocksDbWeight::get().writes(1_u64))
538	}
539	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
540	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
541	/// Storage: `Msa::ProviderToRegistryEntry` (r:1 w:1)
542	/// Proof: `Msa::ProviderToRegistryEntry` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
543	fn create_provider() -> Weight {
544		// Proof Size summary in bytes:
545		//  Measured:  `67`
546		//  Estimated: `4008`
547		// Minimum execution time: 13_364_000 picoseconds.
548		Weight::from_parts(14_214_000, 4008)
549			.saturating_add(RocksDbWeight::get().reads(2_u64))
550			.saturating_add(RocksDbWeight::get().writes(1_u64))
551	}
552	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
553	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
554	/// Storage: `Msa::ProviderToRegistryEntry` (r:1 w:1)
555	/// Proof: `Msa::ProviderToRegistryEntry` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
556	fn create_provider_via_governance() -> Weight {
557		// Proof Size summary in bytes:
558		//  Measured:  `67`
559		//  Estimated: `4008`
560		// Minimum execution time: 13_330_000 picoseconds.
561		Weight::from_parts(13_702_000, 4008)
562			.saturating_add(RocksDbWeight::get().reads(2_u64))
563			.saturating_add(RocksDbWeight::get().writes(1_u64))
564	}
565	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
566	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
567	/// Storage: `Council::ProposalOf` (r:1 w:1)
568	/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
569	/// Storage: `Council::Proposals` (r:1 w:1)
570	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
571	/// Storage: `Council::ProposalCount` (r:1 w:1)
572	/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
573	/// Storage: `Council::Voting` (r:0 w:1)
574	/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
575	fn propose_to_be_provider() -> Weight {
576		// Proof Size summary in bytes:
577		//  Measured:  `147`
578		//  Estimated: `4107`
579		// Minimum execution time: 24_609_000 picoseconds.
580		Weight::from_parts(25_660_000, 4107)
581			.saturating_add(RocksDbWeight::get().reads(4_u64))
582			.saturating_add(RocksDbWeight::get().writes(4_u64))
583	}
584	fn reindex_offchain() -> Weight {
585		// Proof Size summary in bytes:
586		//  Measured:  `0`
587		//  Estimated: `0`
588		// Minimum execution time: 5_842_000 picoseconds.
589		Weight::from_parts(5_970_000, 0)
590	}
591	/// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
592	/// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
593	/// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
594	/// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
595	/// Storage: `System::Account` (r:2 w:2)
596	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
597	fn withdraw_tokens() -> Weight {
598		// Proof Size summary in bytes:
599		//  Measured:  `1229`
600		//  Estimated: `6691`
601		// Minimum execution time: 84_871_000 picoseconds.
602		Weight::from_parts(87_615_000, 6691)
603			.saturating_add(RocksDbWeight::get().reads(5_u64))
604			.saturating_add(RocksDbWeight::get().writes(5_u64))
605	}
606	/// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
607	/// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
608	/// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
609	/// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
610	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
611	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
612	/// Storage: `Msa::MsaIdToRecoveryCommitment` (r:0 w:1)
613	/// Proof: `Msa::MsaIdToRecoveryCommitment` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
614	fn add_recovery_commitment() -> Weight {
615		// Proof Size summary in bytes:
616		//  Measured:  `1112`
617		//  Estimated: `5733`
618		// Minimum execution time: 122_730_000 picoseconds.
619		Weight::from_parts(126_382_000, 5733)
620			.saturating_add(RocksDbWeight::get().reads(4_u64))
621			.saturating_add(RocksDbWeight::get().writes(4_u64))
622	}
623	/// Storage: `Msa::RecoveryProviders` (r:0 w:1)
624	/// Proof: `Msa::RecoveryProviders` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
625	fn remove_recovery_provider() -> Weight {
626		// Proof Size summary in bytes:
627		//  Measured:  `0`
628		//  Estimated: `0`
629		// Minimum execution time: 7_445_000 picoseconds.
630		Weight::from_parts(7_712_000, 0)
631			.saturating_add(RocksDbWeight::get().writes(1_u64))
632	}
633	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
634	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
635	/// Storage: `Msa::ProviderToRegistryEntry` (r:1 w:0)
636	/// Proof: `Msa::ProviderToRegistryEntry` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
637	/// Storage: `Msa::RecoveryProviders` (r:1 w:1)
638	/// Proof: `Msa::RecoveryProviders` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
639	fn approve_recovery_provider() -> Weight {
640		// Proof Size summary in bytes:
641		//  Measured:  `67`
642		//  Estimated: `4008`
643		// Minimum execution time: 16_388_000 picoseconds.
644		Weight::from_parts(16_715_000, 4008)
645			.saturating_add(RocksDbWeight::get().reads(3_u64))
646			.saturating_add(RocksDbWeight::get().writes(1_u64))
647	}
648	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
649	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
650	/// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
651	/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
652	fn check_free_extrinsic_use_revoke_delegation_by_provider() -> Weight {
653		// Proof Size summary in bytes:
654		//  Measured:  `161`
655		//  Estimated: `4177`
656		// Minimum execution time: 12_267_000 picoseconds.
657		Weight::from_parts(12_895_000, 4177)
658			.saturating_add(RocksDbWeight::get().reads(2_u64))
659	}
660	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
661	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
662	/// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
663	/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
664	fn check_free_extrinsic_use_revoke_delegation_by_delegator() -> Weight {
665		// Proof Size summary in bytes:
666		//  Measured:  `161`
667		//  Estimated: `4177`
668		// Minimum execution time: 12_502_000 picoseconds.
669		Weight::from_parts(12_968_000, 4177)
670			.saturating_add(RocksDbWeight::get().reads(2_u64))
671	}
672	/// Storage: `Msa::PublicKeyToMsaId` (r:2 w:0)
673	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
674	fn check_free_extrinsic_use_delete_msa_public_key() -> Weight {
675		// Proof Size summary in bytes:
676		//  Measured:  `124`
677		//  Estimated: `6531`
678		// Minimum execution time: 11_731_000 picoseconds.
679		Weight::from_parts(12_156_000, 6531)
680			.saturating_add(RocksDbWeight::get().reads(2_u64))
681	}
682	/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
683	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
684	/// Storage: `Msa::ProviderToRegistryEntry` (r:1 w:0)
685	/// Proof: `Msa::ProviderToRegistryEntry` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
686	/// Storage: `Handles::MSAIdToDisplayName` (r:1 w:0)
687	/// Proof: `Handles::MSAIdToDisplayName` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
688	/// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:0)
689	/// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
690	/// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
691	/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
692	/// Storage: `System::Account` (r:1 w:0)
693	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
694	fn check_free_extrinsic_use_retire_msa() -> Weight {
695		// Proof Size summary in bytes:
696		//  Measured:  `113`
697		//  Estimated: `4177`
698		// Minimum execution time: 22_805_000 picoseconds.
699		Weight::from_parts(24_080_000, 4177)
700			.saturating_add(RocksDbWeight::get().reads(6_u64))
701	}
702	/// Storage: `Msa::PublicKeyToMsaId` (r:2 w:0)
703	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
704	/// Storage: `Msa::PayloadSignatureRegistryList` (r:1 w:0)
705	/// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
706	/// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:0)
707	/// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
708	/// Storage: `System::Account` (r:1 w:0)
709	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
710	fn check_free_extrinsic_use_withdraw_tokens() -> Weight {
711		// Proof Size summary in bytes:
712		//  Measured:  `819`
713		//  Estimated: `6531`
714		// Minimum execution time: 107_349_000 picoseconds.
715		Weight::from_parts(109_234_000, 6531)
716			.saturating_add(RocksDbWeight::get().reads(5_u64))
717	}
718	/// Storage: `Msa::PublicKeyToMsaId` (r:2 w:1)
719	/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
720	/// Storage: `Msa::RecoveryProviders` (r:1 w:0)
721	/// Proof: `Msa::RecoveryProviders` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
722	/// Storage: `Msa::MsaIdToRecoveryCommitment` (r:1 w:1)
723	/// Proof: `Msa::MsaIdToRecoveryCommitment` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
724	/// Storage: `Msa::PayloadSignatureRegistryList` (r:2 w:2)
725	/// Proof: `Msa::PayloadSignatureRegistryList` (`max_values`: Some(50000), `max_size`: Some(144), added: 2124, mode: `MaxEncodedLen`)
726	/// Storage: `Msa::PayloadSignatureRegistryPointer` (r:1 w:1)
727	/// Proof: `Msa::PayloadSignatureRegistryPointer` (`max_values`: Some(1), `max_size`: Some(140), added: 635, mode: `MaxEncodedLen`)
728	/// Storage: `Msa::PublicKeyCountForMsaId` (r:1 w:1)
729	/// Proof: `Msa::PublicKeyCountForMsaId` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
730	fn recover_account() -> Weight {
731		// Proof Size summary in bytes:
732		//  Measured:  `1223`
733		//  Estimated: `6531`
734		// Minimum execution time: 151_851_000 picoseconds.
735		Weight::from_parts(158_307_000, 6531)
736			.saturating_add(RocksDbWeight::get().reads(8_u64))
737			.saturating_add(RocksDbWeight::get().writes(6_u64))
738	}
739}
740
741
742#[cfg(test)]
743mod tests {
744  use frame_support::{traits::Get, weights::Weight, dispatch::DispatchClass};
745  use common_runtime::constants::{MAXIMUM_BLOCK_WEIGHT, NORMAL_DISPATCH_RATIO};
746  use common_runtime::weights::extrinsic_weights::ExtrinsicBaseWeight;
747
748  #[allow(dead_code)]
749  struct BlockWeights;
750  impl Get<frame_system::limits::BlockWeights> for BlockWeights {
751  	fn get() -> frame_system::limits::BlockWeights {
752  		frame_system::limits::BlockWeights::builder()
753  			.base_block(Weight::zero())
754  			.for_class(DispatchClass::all(), |weights| {
755  				weights.base_extrinsic = ExtrinsicBaseWeight::get();
756  			})
757  			.for_class(DispatchClass::non_mandatory(), |weights| {
758  				weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);
759  			})
760  			.build_or_panic()
761  	}
762  }
763
764	#[test]
765	fn test_create() {
766		assert!(
767			BlockWeights::get()
768				.per_class
769				.get(frame_support::dispatch::DispatchClass::Normal)
770				.max_extrinsic
771				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
772				.proof_size()
773				> 4008
774		);
775	}
776	#[test]
777	fn test_create_sponsored_account_with_delegation() {
778		assert!(
779			BlockWeights::get()
780				.per_class
781				.get(frame_support::dispatch::DispatchClass::Normal)
782				.max_extrinsic
783				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
784				.proof_size()
785				> 6531
786		);
787	}
788	#[test]
789	fn test_revoke_delegation_by_provider() {
790		assert!(
791			BlockWeights::get()
792				.per_class
793				.get(frame_support::dispatch::DispatchClass::Normal)
794				.max_extrinsic
795				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
796				.proof_size()
797				> 4177
798		);
799	}
800	#[test]
801	fn test_add_public_key_to_msa() {
802		assert!(
803			BlockWeights::get()
804				.per_class
805				.get(frame_support::dispatch::DispatchClass::Normal)
806				.max_extrinsic
807				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
808				.proof_size()
809				> 9981
810		);
811	}
812	#[test]
813	fn test_delete_msa_public_key() {
814		assert!(
815			BlockWeights::get()
816				.per_class
817				.get(frame_support::dispatch::DispatchClass::Normal)
818				.max_extrinsic
819				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
820				.proof_size()
821				> 6531
822		);
823	}
824	#[test]
825	fn test_retire_msa() {
826		assert!(
827			BlockWeights::get()
828				.per_class
829				.get(frame_support::dispatch::DispatchClass::Normal)
830				.max_extrinsic
831				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
832				.proof_size()
833				> 4008
834		);
835	}
836	#[test]
837	fn test_grant_delegation() {
838		assert!(
839			BlockWeights::get()
840				.per_class
841				.get(frame_support::dispatch::DispatchClass::Normal)
842				.max_extrinsic
843				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
844				.proof_size()
845				> 6531
846		);
847	}
848	#[test]
849	fn test_revoke_delegation_by_delegator() {
850		assert!(
851			BlockWeights::get()
852				.per_class
853				.get(frame_support::dispatch::DispatchClass::Normal)
854				.max_extrinsic
855				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
856				.proof_size()
857				> 4177
858		);
859	}
860	#[test]
861	fn test_create_provider() {
862		assert!(
863			BlockWeights::get()
864				.per_class
865				.get(frame_support::dispatch::DispatchClass::Normal)
866				.max_extrinsic
867				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
868				.proof_size()
869				> 4008
870		);
871	}
872	#[test]
873	fn test_create_provider_via_governance() {
874		assert!(
875			BlockWeights::get()
876				.per_class
877				.get(frame_support::dispatch::DispatchClass::Normal)
878				.max_extrinsic
879				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
880				.proof_size()
881				> 4008
882		);
883	}
884	#[test]
885	fn test_propose_to_be_provider() {
886		assert!(
887			BlockWeights::get()
888				.per_class
889				.get(frame_support::dispatch::DispatchClass::Normal)
890				.max_extrinsic
891				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
892				.proof_size()
893				> 4107
894		);
895	}
896	#[test]
897	fn test_withdraw_tokens() {
898		assert!(
899			BlockWeights::get()
900				.per_class
901				.get(frame_support::dispatch::DispatchClass::Normal)
902				.max_extrinsic
903				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
904				.proof_size()
905				> 6691
906		);
907	}
908	#[test]
909	fn test_add_recovery_commitment() {
910		assert!(
911			BlockWeights::get()
912				.per_class
913				.get(frame_support::dispatch::DispatchClass::Normal)
914				.max_extrinsic
915				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
916				.proof_size()
917				> 5733
918		);
919	}
920	#[test]
921	fn test_approve_recovery_provider() {
922		assert!(
923			BlockWeights::get()
924				.per_class
925				.get(frame_support::dispatch::DispatchClass::Normal)
926				.max_extrinsic
927				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
928				.proof_size()
929				> 4008
930		);
931	}
932	#[test]
933	fn test_check_free_extrinsic_use_revoke_delegation_by_provider() {
934		assert!(
935			BlockWeights::get()
936				.per_class
937				.get(frame_support::dispatch::DispatchClass::Normal)
938				.max_extrinsic
939				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
940				.proof_size()
941				> 4177
942		);
943	}
944	#[test]
945	fn test_check_free_extrinsic_use_revoke_delegation_by_delegator() {
946		assert!(
947			BlockWeights::get()
948				.per_class
949				.get(frame_support::dispatch::DispatchClass::Normal)
950				.max_extrinsic
951				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
952				.proof_size()
953				> 4177
954		);
955	}
956	#[test]
957	fn test_check_free_extrinsic_use_delete_msa_public_key() {
958		assert!(
959			BlockWeights::get()
960				.per_class
961				.get(frame_support::dispatch::DispatchClass::Normal)
962				.max_extrinsic
963				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
964				.proof_size()
965				> 6531
966		);
967	}
968	#[test]
969	fn test_check_free_extrinsic_use_retire_msa() {
970		assert!(
971			BlockWeights::get()
972				.per_class
973				.get(frame_support::dispatch::DispatchClass::Normal)
974				.max_extrinsic
975				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
976				.proof_size()
977				> 4177
978		);
979	}
980	#[test]
981	fn test_check_free_extrinsic_use_withdraw_tokens() {
982		assert!(
983			BlockWeights::get()
984				.per_class
985				.get(frame_support::dispatch::DispatchClass::Normal)
986				.max_extrinsic
987				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
988				.proof_size()
989				> 6531
990		);
991	}
992	#[test]
993	fn test_recover_account() {
994		assert!(
995			BlockWeights::get()
996				.per_class
997				.get(frame_support::dispatch::DispatchClass::Normal)
998				.max_extrinsic
999				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
1000				.proof_size()
1001				> 6531
1002		);
1003	}
1004}