referrerpolicy=no-referrer-when-downgrade

people_westend_runtime/weights/
pallet_identity.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// 	http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Autogenerated weights for `pallet_identity`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `b9a9df1fcddf`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
23
24// Executed Command:
25// frame-omni-bencher
26// v1
27// benchmark
28// pallet
29// --extrinsic=*
30// --runtime=target/production/wbuild/people-westend-runtime/people_westend_runtime.wasm
31// --pallet=pallet_identity
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/people/people-westend/src/weights
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --no-storage-info
39// --no-min-squares
40// --no-median-slopes
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `pallet_identity`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> {
53	/// Storage: `Identity::Registrars` (r:1 w:1)
54	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
55	/// The range of component `r` is `[1, 19]`.
56	fn add_registrar(r: u32, ) -> Weight {
57		// Proof Size summary in bytes:
58		//  Measured:  `32 + r * (57 ±0)`
59		//  Estimated: `2626`
60		// Minimum execution time: 9_815_000 picoseconds.
61		Weight::from_parts(10_309_929, 0)
62			.saturating_add(Weight::from_parts(0, 2626))
63			// Standard Error: 1_697
64			.saturating_add(Weight::from_parts(119_092, 0).saturating_mul(r.into()))
65			.saturating_add(T::DbWeight::get().reads(1))
66			.saturating_add(T::DbWeight::get().writes(1))
67	}
68	/// Storage: `Identity::IdentityOf` (r:1 w:1)
69	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(804), added: 3279, mode: `MaxEncodedLen`)
70	/// The range of component `r` is `[1, 20]`.
71	fn set_identity(r: u32, ) -> Weight {
72		// Proof Size summary in bytes:
73		//  Measured:  `441 + r * (5 ±0)`
74		//  Estimated: `4269`
75		// Minimum execution time: 19_682_000 picoseconds.
76		Weight::from_parts(20_426_317, 0)
77			.saturating_add(Weight::from_parts(0, 4269))
78			// Standard Error: 1_959
79			.saturating_add(Weight::from_parts(122_564, 0).saturating_mul(r.into()))
80			.saturating_add(T::DbWeight::get().reads(1))
81			.saturating_add(T::DbWeight::get().writes(1))
82	}
83	/// Storage: `Identity::IdentityOf` (r:1 w:0)
84	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(804), added: 3279, mode: `MaxEncodedLen`)
85	/// Storage: `Identity::SubsOf` (r:1 w:1)
86	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
87	/// Storage: `Identity::SuperOf` (r:100 w:100)
88	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
89	/// The range of component `s` is `[0, 100]`.
90	fn set_subs_new(s: u32, ) -> Weight {
91		// Proof Size summary in bytes:
92		//  Measured:  `101`
93		//  Estimated: `6723 + s * (2589 ±0)`
94		// Minimum execution time: 13_747_000 picoseconds.
95		Weight::from_parts(27_631_112, 0)
96			.saturating_add(Weight::from_parts(0, 6723))
97			// Standard Error: 5_807
98			.saturating_add(Weight::from_parts(3_650_330, 0).saturating_mul(s.into()))
99			.saturating_add(T::DbWeight::get().reads(2))
100			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
101			.saturating_add(T::DbWeight::get().writes(1))
102			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
103			.saturating_add(Weight::from_parts(0, 2589).saturating_mul(s.into()))
104	}
105	/// Storage: `Identity::IdentityOf` (r:1 w:0)
106	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(804), added: 3279, mode: `MaxEncodedLen`)
107	/// Storage: `Identity::SubsOf` (r:1 w:1)
108	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
109	/// Storage: `Identity::SuperOf` (r:0 w:100)
110	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
111	/// The range of component `p` is `[0, 100]`.
112	fn set_subs_old(p: u32, ) -> Weight {
113		// Proof Size summary in bytes:
114		//  Measured:  `194 + p * (32 ±0)`
115		//  Estimated: `6723`
116		// Minimum execution time: 13_614_000 picoseconds.
117		Weight::from_parts(27_696_631, 0)
118			.saturating_add(Weight::from_parts(0, 6723))
119			// Standard Error: 3_951
120			.saturating_add(Weight::from_parts(1_424_766, 0).saturating_mul(p.into()))
121			.saturating_add(T::DbWeight::get().reads(2))
122			.saturating_add(T::DbWeight::get().writes(1))
123			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
124	}
125	/// Storage: `Identity::SubsOf` (r:1 w:1)
126	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
127	/// Storage: `Identity::IdentityOf` (r:1 w:1)
128	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(804), added: 3279, mode: `MaxEncodedLen`)
129	/// Storage: `Identity::SuperOf` (r:0 w:100)
130	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
131	/// The range of component `r` is `[1, 20]`.
132	/// The range of component `s` is `[0, 100]`.
133	fn clear_identity(r: u32, s: u32, ) -> Weight {
134		// Proof Size summary in bytes:
135		//  Measured:  `533 + r * (5 ±0) + s * (32 ±0)`
136		//  Estimated: `6723`
137		// Minimum execution time: 31_366_000 picoseconds.
138		Weight::from_parts(31_822_941, 0)
139			.saturating_add(Weight::from_parts(0, 6723))
140			// Standard Error: 12_876
141			.saturating_add(Weight::from_parts(164_995, 0).saturating_mul(r.into()))
142			// Standard Error: 2_512
143			.saturating_add(Weight::from_parts(1_397_786, 0).saturating_mul(s.into()))
144			.saturating_add(T::DbWeight::get().reads(2))
145			.saturating_add(T::DbWeight::get().writes(2))
146			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
147	}
148	/// Storage: `Identity::Registrars` (r:1 w:0)
149	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
150	/// Storage: `Identity::IdentityOf` (r:1 w:1)
151	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(804), added: 3279, mode: `MaxEncodedLen`)
152	/// The range of component `r` is `[1, 20]`.
153	fn request_judgement(r: u32, ) -> Weight {
154		// Proof Size summary in bytes:
155		//  Measured:  `431 + r * (57 ±0)`
156		//  Estimated: `4269`
157		// Minimum execution time: 31_053_000 picoseconds.
158		Weight::from_parts(31_991_843, 0)
159			.saturating_add(Weight::from_parts(0, 4269))
160			// Standard Error: 2_283
161			.saturating_add(Weight::from_parts(144_099, 0).saturating_mul(r.into()))
162			.saturating_add(T::DbWeight::get().reads(2))
163			.saturating_add(T::DbWeight::get().writes(1))
164	}
165	/// Storage: `Identity::IdentityOf` (r:1 w:1)
166	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(804), added: 3279, mode: `MaxEncodedLen`)
167	/// The range of component `r` is `[1, 20]`.
168	fn cancel_request(r: u32, ) -> Weight {
169		// Proof Size summary in bytes:
170		//  Measured:  `462`
171		//  Estimated: `4269`
172		// Minimum execution time: 28_735_000 picoseconds.
173		Weight::from_parts(29_518_125, 0)
174			.saturating_add(Weight::from_parts(0, 4269))
175			// Standard Error: 2_102
176			.saturating_add(Weight::from_parts(107_944, 0).saturating_mul(r.into()))
177			.saturating_add(T::DbWeight::get().reads(1))
178			.saturating_add(T::DbWeight::get().writes(1))
179	}
180	/// Storage: `Identity::Registrars` (r:1 w:1)
181	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
182	/// The range of component `r` is `[1, 19]`.
183	fn set_fee(r: u32, ) -> Weight {
184		// Proof Size summary in bytes:
185		//  Measured:  `89 + r * (57 ±0)`
186		//  Estimated: `2626`
187		// Minimum execution time: 6_903_000 picoseconds.
188		Weight::from_parts(7_337_629, 0)
189			.saturating_add(Weight::from_parts(0, 2626))
190			// Standard Error: 1_331
191			.saturating_add(Weight::from_parts(82_437, 0).saturating_mul(r.into()))
192			.saturating_add(T::DbWeight::get().reads(1))
193			.saturating_add(T::DbWeight::get().writes(1))
194	}
195	/// Storage: `Identity::Registrars` (r:1 w:1)
196	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
197	/// The range of component `r` is `[1, 19]`.
198	fn set_account_id(r: u32, ) -> Weight {
199		// Proof Size summary in bytes:
200		//  Measured:  `89 + r * (57 ±0)`
201		//  Estimated: `2626`
202		// Minimum execution time: 7_019_000 picoseconds.
203		Weight::from_parts(7_505_778, 0)
204			.saturating_add(Weight::from_parts(0, 2626))
205			// Standard Error: 1_277
206			.saturating_add(Weight::from_parts(79_849, 0).saturating_mul(r.into()))
207			.saturating_add(T::DbWeight::get().reads(1))
208			.saturating_add(T::DbWeight::get().writes(1))
209	}
210	/// Storage: `Identity::Registrars` (r:1 w:1)
211	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
212	/// The range of component `r` is `[1, 19]`.
213	fn set_fields(r: u32, ) -> Weight {
214		// Proof Size summary in bytes:
215		//  Measured:  `89 + r * (57 ±0)`
216		//  Estimated: `2626`
217		// Minimum execution time: 6_851_000 picoseconds.
218		Weight::from_parts(7_342_150, 0)
219			.saturating_add(Weight::from_parts(0, 2626))
220			// Standard Error: 1_047
221			.saturating_add(Weight::from_parts(77_478, 0).saturating_mul(r.into()))
222			.saturating_add(T::DbWeight::get().reads(1))
223			.saturating_add(T::DbWeight::get().writes(1))
224	}
225	/// Storage: `Identity::Registrars` (r:1 w:0)
226	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
227	/// Storage: `Identity::IdentityOf` (r:1 w:1)
228	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(804), added: 3279, mode: `MaxEncodedLen`)
229	/// The range of component `r` is `[1, 19]`.
230	fn provide_judgement(r: u32, ) -> Weight {
231		// Proof Size summary in bytes:
232		//  Measured:  `509 + r * (57 ±0)`
233		//  Estimated: `4269`
234		// Minimum execution time: 21_462_000 picoseconds.
235		Weight::from_parts(22_392_004, 0)
236			.saturating_add(Weight::from_parts(0, 4269))
237			// Standard Error: 2_148
238			.saturating_add(Weight::from_parts(114_592, 0).saturating_mul(r.into()))
239			.saturating_add(T::DbWeight::get().reads(2))
240			.saturating_add(T::DbWeight::get().writes(1))
241	}
242	/// Storage: `Identity::SubsOf` (r:1 w:1)
243	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
244	/// Storage: `Identity::IdentityOf` (r:1 w:1)
245	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(804), added: 3279, mode: `MaxEncodedLen`)
246	/// Storage: `System::Account` (r:2 w:2)
247	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
248	/// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
249	/// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
250	/// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0)
251	/// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
252	/// Storage: `Identity::SuperOf` (r:0 w:100)
253	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
254	/// The range of component `r` is `[1, 20]`.
255	/// The range of component `s` is `[0, 100]`.
256	fn kill_identity(r: u32, s: u32, ) -> Weight {
257		// Proof Size summary in bytes:
258		//  Measured:  `742 + r * (5 ±0) + s * (32 ±0)`
259		//  Estimated: `6723 + r * (6 ±0) + s * (32 ±0)`
260		// Minimum execution time: 84_846_000 picoseconds.
261		Weight::from_parts(90_816_486, 0)
262			.saturating_add(Weight::from_parts(0, 6723))
263			// Standard Error: 24_805
264			.saturating_add(Weight::from_parts(352_526, 0).saturating_mul(r.into()))
265			// Standard Error: 4_840
266			.saturating_add(Weight::from_parts(1_490_539, 0).saturating_mul(s.into()))
267			.saturating_add(T::DbWeight::get().reads(6))
268			.saturating_add(T::DbWeight::get().writes(4))
269			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
270			.saturating_add(Weight::from_parts(0, 6).saturating_mul(r.into()))
271			.saturating_add(Weight::from_parts(0, 32).saturating_mul(s.into()))
272	}
273	/// Storage: `Identity::IdentityOf` (r:1 w:0)
274	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(804), added: 3279, mode: `MaxEncodedLen`)
275	/// Storage: `Identity::SuperOf` (r:1 w:1)
276	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
277	/// Storage: `Identity::SubsOf` (r:1 w:1)
278	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
279	/// The range of component `s` is `[0, 99]`.
280	fn add_sub(s: u32, ) -> Weight {
281		// Proof Size summary in bytes:
282		//  Measured:  `475 + s * (36 ±0)`
283		//  Estimated: `6723`
284		// Minimum execution time: 28_549_000 picoseconds.
285		Weight::from_parts(34_778_336, 0)
286			.saturating_add(Weight::from_parts(0, 6723))
287			// Standard Error: 1_552
288			.saturating_add(Weight::from_parts(111_528, 0).saturating_mul(s.into()))
289			.saturating_add(T::DbWeight::get().reads(3))
290			.saturating_add(T::DbWeight::get().writes(2))
291	}
292	/// Storage: `Identity::IdentityOf` (r:1 w:0)
293	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(804), added: 3279, mode: `MaxEncodedLen`)
294	/// Storage: `Identity::SuperOf` (r:1 w:1)
295	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
296	/// The range of component `s` is `[1, 100]`.
297	fn rename_sub(s: u32, ) -> Weight {
298		// Proof Size summary in bytes:
299		//  Measured:  `591 + s * (3 ±0)`
300		//  Estimated: `4269`
301		// Minimum execution time: 17_513_000 picoseconds.
302		Weight::from_parts(20_671_976, 0)
303			.saturating_add(Weight::from_parts(0, 4269))
304			// Standard Error: 842
305			.saturating_add(Weight::from_parts(62_189, 0).saturating_mul(s.into()))
306			.saturating_add(T::DbWeight::get().reads(2))
307			.saturating_add(T::DbWeight::get().writes(1))
308	}
309	/// Storage: `Identity::IdentityOf` (r:1 w:0)
310	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(804), added: 3279, mode: `MaxEncodedLen`)
311	/// Storage: `Identity::SuperOf` (r:1 w:1)
312	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
313	/// Storage: `Identity::SubsOf` (r:1 w:1)
314	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
315	/// The range of component `s` is `[1, 100]`.
316	fn remove_sub(s: u32, ) -> Weight {
317		// Proof Size summary in bytes:
318		//  Measured:  `638 + s * (35 ±0)`
319		//  Estimated: `6723`
320		// Minimum execution time: 33_513_000 picoseconds.
321		Weight::from_parts(40_923_505, 0)
322			.saturating_add(Weight::from_parts(0, 6723))
323			// Standard Error: 1_703
324			.saturating_add(Weight::from_parts(103_060, 0).saturating_mul(s.into()))
325			.saturating_add(T::DbWeight::get().reads(3))
326			.saturating_add(T::DbWeight::get().writes(2))
327	}
328	/// Storage: `Identity::SuperOf` (r:1 w:1)
329	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
330	/// Storage: `Identity::SubsOf` (r:1 w:1)
331	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
332	/// Storage: `System::Account` (r:1 w:0)
333	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
334	/// The range of component `s` is `[0, 99]`.
335	fn quit_sub(s: u32, ) -> Weight {
336		// Proof Size summary in bytes:
337		//  Measured:  `667 + s * (37 ±0)`
338		//  Estimated: `6723`
339		// Minimum execution time: 24_317_000 picoseconds.
340		Weight::from_parts(27_754_059, 0)
341			.saturating_add(Weight::from_parts(0, 6723))
342			// Standard Error: 2_239
343			.saturating_add(Weight::from_parts(146_017, 0).saturating_mul(s.into()))
344			.saturating_add(T::DbWeight::get().reads(3))
345			.saturating_add(T::DbWeight::get().writes(2))
346	}
347	/// Storage: `Identity::AuthorityOf` (r:0 w:1)
348	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
349	fn add_username_authority() -> Weight {
350		// Proof Size summary in bytes:
351		//  Measured:  `0`
352		//  Estimated: `0`
353		// Minimum execution time: 7_010_000 picoseconds.
354		Weight::from_parts(7_320_000, 0)
355			.saturating_add(Weight::from_parts(0, 0))
356			.saturating_add(T::DbWeight::get().writes(1))
357	}
358	/// Storage: `Identity::AuthorityOf` (r:1 w:1)
359	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
360	fn remove_username_authority() -> Weight {
361		// Proof Size summary in bytes:
362		//  Measured:  `79`
363		//  Estimated: `3517`
364		// Minimum execution time: 10_754_000 picoseconds.
365		Weight::from_parts(11_416_000, 0)
366			.saturating_add(Weight::from_parts(0, 3517))
367			.saturating_add(T::DbWeight::get().reads(1))
368			.saturating_add(T::DbWeight::get().writes(1))
369	}
370	/// Storage: `Identity::AuthorityOf` (r:1 w:1)
371	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
372	/// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
373	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
374	/// Storage: `Identity::PendingUsernames` (r:1 w:0)
375	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)
376	/// Storage: `Identity::UsernameOf` (r:1 w:1)
377	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
378	/// Storage: `System::Account` (r:1 w:1)
379	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
380	/// The range of component `p` is `[0, 1]`.
381	fn set_username_for(_p: u32, ) -> Weight {
382		// Proof Size summary in bytes:
383		//  Measured:  `182`
384		//  Estimated: `3593`
385		// Minimum execution time: 67_592_000 picoseconds.
386		Weight::from_parts(86_403_885, 0)
387			.saturating_add(Weight::from_parts(0, 3593))
388			.saturating_add(T::DbWeight::get().reads(5))
389			.saturating_add(T::DbWeight::get().writes(4))
390	}
391	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
392	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)
393	/// Storage: `Identity::UsernameOf` (r:1 w:1)
394	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
395	/// Storage: `Identity::UsernameInfoOf` (r:0 w:1)
396	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
397	fn accept_username() -> Weight {
398		// Proof Size summary in bytes:
399		//  Measured:  `116`
400		//  Estimated: `3567`
401		// Minimum execution time: 21_274_000 picoseconds.
402		Weight::from_parts(22_082_000, 0)
403			.saturating_add(Weight::from_parts(0, 3567))
404			.saturating_add(T::DbWeight::get().reads(2))
405			.saturating_add(T::DbWeight::get().writes(3))
406	}
407	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
408	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)
409	/// Storage: `Identity::AuthorityOf` (r:1 w:0)
410	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
411	/// Storage: `System::Account` (r:1 w:1)
412	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
413	/// The range of component `p` is `[0, 1]`.
414	fn remove_expired_approval(_p: u32, ) -> Weight {
415		// Proof Size summary in bytes:
416		//  Measured:  `310`
417		//  Estimated: `3593`
418		// Minimum execution time: 17_175_000 picoseconds.
419		Weight::from_parts(41_354_204, 0)
420			.saturating_add(Weight::from_parts(0, 3593))
421			.saturating_add(T::DbWeight::get().reads(3))
422			.saturating_add(T::DbWeight::get().writes(2))
423	}
424	/// Storage: `Identity::UsernameInfoOf` (r:1 w:0)
425	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
426	/// Storage: `Identity::UsernameOf` (r:0 w:1)
427	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
428	fn set_primary_username() -> Weight {
429		// Proof Size summary in bytes:
430		//  Measured:  `172`
431		//  Estimated: `3563`
432		// Minimum execution time: 14_205_000 picoseconds.
433		Weight::from_parts(14_646_000, 0)
434			.saturating_add(Weight::from_parts(0, 3563))
435			.saturating_add(T::DbWeight::get().reads(1))
436			.saturating_add(T::DbWeight::get().writes(1))
437	}
438	/// Storage: `Identity::UsernameInfoOf` (r:1 w:0)
439	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
440	/// Storage: `Identity::AuthorityOf` (r:1 w:0)
441	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
442	/// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
443	/// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
444	fn unbind_username() -> Weight {
445		// Proof Size summary in bytes:
446		//  Measured:  `236`
447		//  Estimated: `3563`
448		// Minimum execution time: 18_971_000 picoseconds.
449		Weight::from_parts(19_432_000, 0)
450			.saturating_add(Weight::from_parts(0, 3563))
451			.saturating_add(T::DbWeight::get().reads(3))
452			.saturating_add(T::DbWeight::get().writes(1))
453	}
454	/// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
455	/// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
456	/// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
457	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
458	/// Storage: `Identity::UsernameOf` (r:1 w:1)
459	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
460	/// Storage: `Identity::AuthorityOf` (r:1 w:0)
461	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
462	fn remove_username() -> Weight {
463		// Proof Size summary in bytes:
464		//  Measured:  `297`
465		//  Estimated: `3563`
466		// Minimum execution time: 23_343_000 picoseconds.
467		Weight::from_parts(24_204_000, 0)
468			.saturating_add(Weight::from_parts(0, 3563))
469			.saturating_add(T::DbWeight::get().reads(4))
470			.saturating_add(T::DbWeight::get().writes(3))
471	}
472	/// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
473	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
474	/// Storage: `Identity::UsernameOf` (r:1 w:1)
475	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
476	/// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
477	/// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
478	/// Storage: `Identity::AuthorityOf` (r:1 w:0)
479	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
480	/// Storage: `System::Account` (r:2 w:1)
481	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
482	/// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
483	/// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
484	/// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0)
485	/// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
486	/// The range of component `p` is `[0, 1]`.
487	fn kill_username(_p: u32, ) -> Weight {
488		// Proof Size summary in bytes:
489		//  Measured:  `540`
490		//  Estimated: `6196`
491		// Minimum execution time: 20_885_000 picoseconds.
492		Weight::from_parts(81_679_216, 0)
493			.saturating_add(Weight::from_parts(0, 6196))
494			.saturating_add(T::DbWeight::get().reads(8))
495			.saturating_add(T::DbWeight::get().writes(4))
496	}
497	/// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:2 w:0)
498	/// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:2 w:0)
499	/// Storage: `Identity::AuthorityOf` (r:0 w:1)
500	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
501	fn migration_v2_authority_step() -> Weight {
502		// Proof Size summary in bytes:
503		//  Measured:  `147`
504		//  Estimated: `6087`
505		// Minimum execution time: 8_939_000 picoseconds.
506		Weight::from_parts(9_413_000, 0)
507			.saturating_add(Weight::from_parts(0, 6087))
508			.saturating_add(T::DbWeight::get().reads(2))
509			.saturating_add(T::DbWeight::get().writes(1))
510	}
511	/// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:2 w:0)
512	/// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:2 w:0)
513	/// Storage: `Identity::UsernameInfoOf` (r:0 w:1)
514	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
515	fn migration_v2_username_step() -> Weight {
516		// Proof Size summary in bytes:
517		//  Measured:  `159`
518		//  Estimated: `6099`
519		// Minimum execution time: 8_720_000 picoseconds.
520		Weight::from_parts(9_160_000, 0)
521			.saturating_add(Weight::from_parts(0, 6099))
522			.saturating_add(T::DbWeight::get().reads(2))
523			.saturating_add(T::DbWeight::get().writes(1))
524	}
525	/// Storage: `Identity::IdentityOf` (r:2 w:1)
526	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(804), added: 3279, mode: `MaxEncodedLen`)
527	/// Storage: `Identity::UsernameOf` (r:0 w:1)
528	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
529	fn migration_v2_identity_step() -> Weight {
530		// Proof Size summary in bytes:
531		//  Measured:  `526`
532		//  Estimated: `7548`
533		// Minimum execution time: 13_811_000 picoseconds.
534		Weight::from_parts(14_183_000, 0)
535			.saturating_add(Weight::from_parts(0, 7548))
536			.saturating_add(T::DbWeight::get().reads(2))
537			.saturating_add(T::DbWeight::get().writes(2))
538	}
539	/// Storage: `Identity::PendingUsernames` (r:2 w:1)
540	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)
541	fn migration_v2_pending_username_step() -> Weight {
542		// Proof Size summary in bytes:
543		//  Measured:  `201`
544		//  Estimated: `6144`
545		// Minimum execution time: 8_135_000 picoseconds.
546		Weight::from_parts(8_369_000, 0)
547			.saturating_add(Weight::from_parts(0, 6144))
548			.saturating_add(T::DbWeight::get().reads(2))
549			.saturating_add(T::DbWeight::get().writes(1))
550	}
551	/// Storage: `Identity::AuthorityOf` (r:2 w:0)
552	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
553	/// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:1 w:1)
554	/// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:1 w:1)
555	fn migration_v2_cleanup_authority_step() -> Weight {
556		// Proof Size summary in bytes:
557		//  Measured:  `288`
558		//  Estimated: `6044`
559		// Minimum execution time: 11_724_000 picoseconds.
560		Weight::from_parts(12_305_000, 0)
561			.saturating_add(Weight::from_parts(0, 6044))
562			.saturating_add(T::DbWeight::get().reads(3))
563			.saturating_add(T::DbWeight::get().writes(1))
564	}
565	/// Storage: `Identity::UsernameInfoOf` (r:2 w:0)
566	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
567	/// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:1 w:1)
568	/// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:1 w:1)
569	fn migration_v2_cleanup_username_step() -> Weight {
570		// Proof Size summary in bytes:
571		//  Measured:  `290`
572		//  Estimated: `6136`
573		// Minimum execution time: 10_943_000 picoseconds.
574		Weight::from_parts(11_441_000, 0)
575			.saturating_add(Weight::from_parts(0, 6136))
576			.saturating_add(T::DbWeight::get().reads(3))
577			.saturating_add(T::DbWeight::get().writes(1))
578	}
579}