1
// Copyright 2025 Moonbeam foundation
2
// This file is part of Moonbeam.
3

            
4
// Moonbeam is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8

            
9
// Moonbeam is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13

            
14
// You should have received a copy of the GNU General Public License
15
// along with Moonbeam.  If not, see <http://www.gnu.org/licenses/>.
16

            
17

            
18
//! Autogenerated weights for `pallet_identity`
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 51.0.0
21
//! DATE: 2026-02-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
25

            
26
// Executed Command:
27
// ./frame-omni-bencher
28
// v1
29
// benchmark
30
// pallet
31
// --runtime=./target/production/wbuild/moonriver-runtime/moonriver_runtime.wasm
32
// --genesis-builder=runtime
33
// --genesis-builder-preset=development
34
// --steps=50
35
// --repeat=20
36
// --pallet=pallet_identity
37
// --extrinsic=*
38
// --wasm-execution=compiled
39
// --header=./file_header.txt
40
// --template=./benchmarking/frame-weight-template.hbs
41
// --disable-log-color
42
// --output=./runtime/moonriver/src/weights
43

            
44
#![cfg_attr(rustfmt, rustfmt_skip)]
45
#![allow(unused_parens)]
46
#![allow(unused_imports)]
47

            
48
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
49
use sp_std::marker::PhantomData;
50

            
51
/// Weights for `pallet_identity`.
52
pub struct WeightInfo<T>(PhantomData<T>);
53
impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> {
54
	/// Storage: `Identity::Registrars` (r:1 w:1)
55
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
56
	/// The range of component `r` is `[1, 19]`.
57
	fn add_registrar(r: u32, ) -> Weight {
58
		// Proof Size summary in bytes:
59
		//  Measured:  `32 + r * (45 ±0)`
60
		//  Estimated: `2386`
61
		// Minimum execution time: 9_105_000 picoseconds.
62
		Weight::from_parts(9_937_805, 2386)
63
			// Standard Error: 1_640
64
			.saturating_add(Weight::from_parts(117_936, 0).saturating_mul(r.into()))
65
			.saturating_add(T::DbWeight::get().reads(1_u64))
66
			.saturating_add(T::DbWeight::get().writes(1_u64))
67
	}
68
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
69
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, 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:  `6965 + r * (5 ±0)`
74
		//  Estimated: `10991`
75
		// Minimum execution time: 137_490_000 picoseconds.
76
		Weight::from_parts(139_824_031, 10991)
77
			// Standard Error: 12_633
78
			.saturating_add(Weight::from_parts(210_432, 0).saturating_mul(r.into()))
79
			.saturating_add(T::DbWeight::get().reads(1_u64))
80
			.saturating_add(T::DbWeight::get().writes(1_u64))
81
	}
82
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
83
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
84
	/// Storage: `Identity::SubsOf` (r:1 w:1)
85
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
86
	/// Storage: `Identity::SuperOf` (r:100 w:100)
87
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
88
	/// The range of component `s` is `[0, 100]`.
89
	fn set_subs_new(s: u32, ) -> Weight {
90
		// Proof Size summary in bytes:
91
		//  Measured:  `89`
92
		//  Estimated: `10991 + s * (2565 ±0)`
93
		// Minimum execution time: 13_618_000 picoseconds.
94
		Weight::from_parts(28_854_030, 10991)
95
			// Standard Error: 6_902
96
			.saturating_add(Weight::from_parts(4_130_816, 0).saturating_mul(s.into()))
97
			.saturating_add(T::DbWeight::get().reads(2_u64))
98
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
99
			.saturating_add(T::DbWeight::get().writes(1_u64))
100
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
101
			.saturating_add(Weight::from_parts(0, 2565).saturating_mul(s.into()))
102
	}
103
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
104
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
105
	/// Storage: `Identity::SubsOf` (r:1 w:1)
106
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
107
	/// Storage: `Identity::SuperOf` (r:0 w:100)
108
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
109
	/// The range of component `p` is `[0, 100]`.
110
	fn set_subs_old(p: u32, ) -> Weight {
111
		// Proof Size summary in bytes:
112
		//  Measured:  `169 + p * (20 ±0)`
113
		//  Estimated: `10991`
114
		// Minimum execution time: 13_657_000 picoseconds.
115
		Weight::from_parts(29_569_183, 10991)
116
			// Standard Error: 5_358
117
			.saturating_add(Weight::from_parts(1_563_327, 0).saturating_mul(p.into()))
118
			.saturating_add(T::DbWeight::get().reads(2_u64))
119
			.saturating_add(T::DbWeight::get().writes(1_u64))
120
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
121
	}
122
	/// Storage: `Identity::SubsOf` (r:1 w:1)
123
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
124
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
125
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
126
	/// Storage: `Identity::SuperOf` (r:0 w:100)
127
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
128
	/// The range of component `r` is `[1, 20]`.
129
	/// The range of component `s` is `[0, 100]`.
130
	fn clear_identity(r: u32, s: u32, ) -> Weight {
131
		// Proof Size summary in bytes:
132
		//  Measured:  `7045 + r * (5 ±0) + s * (20 ±0)`
133
		//  Estimated: `10991`
134
		// Minimum execution time: 64_793_000 picoseconds.
135
		Weight::from_parts(68_486_018, 10991)
136
			// Standard Error: 23_523
137
			.saturating_add(Weight::from_parts(144_365, 0).saturating_mul(r.into()))
138
			// Standard Error: 4_590
139
			.saturating_add(Weight::from_parts(1_497_064, 0).saturating_mul(s.into()))
140
			.saturating_add(T::DbWeight::get().reads(2_u64))
141
			.saturating_add(T::DbWeight::get().writes(2_u64))
142
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
143
	}
144
	/// Storage: `Identity::Registrars` (r:1 w:0)
145
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
146
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
147
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
148
	/// The range of component `r` is `[1, 20]`.
149
	fn request_judgement(r: u32, ) -> Weight {
150
		// Proof Size summary in bytes:
151
		//  Measured:  `6955 + r * (45 ±0)`
152
		//  Estimated: `10991`
153
		// Minimum execution time: 95_367_000 picoseconds.
154
		Weight::from_parts(98_109_980, 10991)
155
			// Standard Error: 4_937
156
			.saturating_add(Weight::from_parts(151_079, 0).saturating_mul(r.into()))
157
			.saturating_add(T::DbWeight::get().reads(2_u64))
158
			.saturating_add(T::DbWeight::get().writes(1_u64))
159
	}
160
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
161
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
162
	/// The range of component `r` is `[1, 20]`.
163
	fn cancel_request(r: u32, ) -> Weight {
164
		// Proof Size summary in bytes:
165
		//  Measured:  `6986`
166
		//  Estimated: `10991`
167
		// Minimum execution time: 93_491_000 picoseconds.
168
		Weight::from_parts(95_346_383, 10991)
169
			// Standard Error: 4_219
170
			.saturating_add(Weight::from_parts(123_392, 0).saturating_mul(r.into()))
171
			.saturating_add(T::DbWeight::get().reads(1_u64))
172
			.saturating_add(T::DbWeight::get().writes(1_u64))
173
	}
174
	/// Storage: `Identity::Registrars` (r:1 w:1)
175
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
176
	/// The range of component `r` is `[1, 19]`.
177
	fn set_fee(r: u32, ) -> Weight {
178
		// Proof Size summary in bytes:
179
		//  Measured:  `77 + r * (45 ±0)`
180
		//  Estimated: `2386`
181
		// Minimum execution time: 6_445_000 picoseconds.
182
		Weight::from_parts(6_952_161, 2386)
183
			// Standard Error: 1_261
184
			.saturating_add(Weight::from_parts(82_412, 0).saturating_mul(r.into()))
185
			.saturating_add(T::DbWeight::get().reads(1_u64))
186
			.saturating_add(T::DbWeight::get().writes(1_u64))
187
	}
188
	/// Storage: `Identity::Registrars` (r:1 w:1)
189
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
190
	/// The range of component `r` is `[1, 19]`.
191
	fn set_account_id(r: u32, ) -> Weight {
192
		// Proof Size summary in bytes:
193
		//  Measured:  `77 + r * (45 ±0)`
194
		//  Estimated: `2386`
195
		// Minimum execution time: 6_445_000 picoseconds.
196
		Weight::from_parts(7_018_889, 2386)
197
			// Standard Error: 1_137
198
			.saturating_add(Weight::from_parts(75_019, 0).saturating_mul(r.into()))
199
			.saturating_add(T::DbWeight::get().reads(1_u64))
200
			.saturating_add(T::DbWeight::get().writes(1_u64))
201
	}
202
	/// Storage: `Identity::Registrars` (r:1 w:1)
203
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
204
	/// The range of component `r` is `[1, 19]`.
205
	fn set_fields(r: u32, ) -> Weight {
206
		// Proof Size summary in bytes:
207
		//  Measured:  `77 + r * (45 ±0)`
208
		//  Estimated: `2386`
209
		// Minimum execution time: 6_383_000 picoseconds.
210
		Weight::from_parts(7_069_967, 2386)
211
			// Standard Error: 1_231
212
			.saturating_add(Weight::from_parts(66_111, 0).saturating_mul(r.into()))
213
			.saturating_add(T::DbWeight::get().reads(1_u64))
214
			.saturating_add(T::DbWeight::get().writes(1_u64))
215
	}
216
	/// Storage: `Identity::Registrars` (r:1 w:0)
217
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
218
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
219
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
220
	/// The range of component `r` is `[1, 19]`.
221
	fn provide_judgement(r: u32, ) -> Weight {
222
		// Proof Size summary in bytes:
223
		//  Measured:  `7021 + r * (45 ±0)`
224
		//  Estimated: `10991`
225
		// Minimum execution time: 124_702_000 picoseconds.
226
		Weight::from_parts(126_829_188, 10991)
227
			// Standard Error: 6_652
228
			.saturating_add(Weight::from_parts(77_511, 0).saturating_mul(r.into()))
229
			.saturating_add(T::DbWeight::get().reads(2_u64))
230
			.saturating_add(T::DbWeight::get().writes(1_u64))
231
	}
232
	/// Storage: `Identity::SubsOf` (r:1 w:1)
233
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
234
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
235
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
236
	/// Storage: `System::Account` (r:1 w:1)
237
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
238
	/// Storage: `Identity::SuperOf` (r:0 w:100)
239
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
240
	/// The range of component `r` is `[1, 20]`.
241
	/// The range of component `s` is `[0, 100]`.
242
	fn kill_identity(r: u32, s: u32, ) -> Weight {
243
		// Proof Size summary in bytes:
244
		//  Measured:  `7240 + r * (5 ±0) + s * (20 ±0)`
245
		//  Estimated: `10991`
246
		// Minimum execution time: 80_984_000 picoseconds.
247
		Weight::from_parts(85_459_510, 10991)
248
			// Standard Error: 27_234
249
			.saturating_add(Weight::from_parts(169_212, 0).saturating_mul(r.into()))
250
			// Standard Error: 5_314
251
			.saturating_add(Weight::from_parts(1_501_648, 0).saturating_mul(s.into()))
252
			.saturating_add(T::DbWeight::get().reads(3_u64))
253
			.saturating_add(T::DbWeight::get().writes(3_u64))
254
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
255
	}
256
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
257
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
258
	/// Storage: `Identity::SuperOf` (r:1 w:1)
259
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
260
	/// Storage: `Identity::SubsOf` (r:1 w:1)
261
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
262
	/// The range of component `s` is `[0, 99]`.
263
	fn add_sub(s: u32, ) -> Weight {
264
		// Proof Size summary in bytes:
265
		//  Measured:  `536 + s * (23 ±0)`
266
		//  Estimated: `10991`
267
		// Minimum execution time: 31_902_000 picoseconds.
268
		Weight::from_parts(39_795_119, 10991)
269
			// Standard Error: 1_847
270
			.saturating_add(Weight::from_parts(86_237, 0).saturating_mul(s.into()))
271
			.saturating_add(T::DbWeight::get().reads(3_u64))
272
			.saturating_add(T::DbWeight::get().writes(2_u64))
273
	}
274
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
275
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
276
	/// Storage: `Identity::SuperOf` (r:1 w:1)
277
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
278
	/// The range of component `s` is `[1, 100]`.
279
	fn rename_sub(s: u32, ) -> Weight {
280
		// Proof Size summary in bytes:
281
		//  Measured:  `615 + s * (4 ±0)`
282
		//  Estimated: `10991`
283
		// Minimum execution time: 19_489_000 picoseconds.
284
		Weight::from_parts(23_379_514, 10991)
285
			// Standard Error: 1_058
286
			.saturating_add(Weight::from_parts(58_426, 0).saturating_mul(s.into()))
287
			.saturating_add(T::DbWeight::get().reads(2_u64))
288
			.saturating_add(T::DbWeight::get().writes(1_u64))
289
	}
290
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
291
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
292
	/// Storage: `Identity::SuperOf` (r:1 w:1)
293
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
294
	/// Storage: `Identity::SubsOf` (r:1 w:1)
295
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
296
	/// The range of component `s` is `[1, 100]`.
297
	fn remove_sub(s: u32, ) -> Weight {
298
		// Proof Size summary in bytes:
299
		//  Measured:  `647 + s * (24 ±0)`
300
		//  Estimated: `10991`
301
		// Minimum execution time: 37_750_000 picoseconds.
302
		Weight::from_parts(42_202_624, 10991)
303
			// Standard Error: 1_311
304
			.saturating_add(Weight::from_parts(88_227, 0).saturating_mul(s.into()))
305
			.saturating_add(T::DbWeight::get().reads(3_u64))
306
			.saturating_add(T::DbWeight::get().writes(2_u64))
307
	}
308
	/// Storage: `Identity::SuperOf` (r:1 w:1)
309
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
310
	/// Storage: `Identity::SubsOf` (r:1 w:1)
311
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
312
	/// Storage: `System::Account` (r:1 w:0)
313
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
314
	/// The range of component `s` is `[0, 99]`.
315
	fn quit_sub(s: u32, ) -> Weight {
316
		// Proof Size summary in bytes:
317
		//  Measured:  `620 + s * (24 ±0)`
318
		//  Estimated: `5511`
319
		// Minimum execution time: 25_907_000 picoseconds.
320
		Weight::from_parts(29_059_926, 5511)
321
			// Standard Error: 896
322
			.saturating_add(Weight::from_parts(73_790, 0).saturating_mul(s.into()))
323
			.saturating_add(T::DbWeight::get().reads(3_u64))
324
			.saturating_add(T::DbWeight::get().writes(2_u64))
325
	}
326
	/// Storage: `Identity::AuthorityOf` (r:0 w:1)
327
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
328
	fn add_username_authority() -> Weight {
329
		// Proof Size summary in bytes:
330
		//  Measured:  `0`
331
		//  Estimated: `0`
332
		// Minimum execution time: 6_906_000 picoseconds.
333
		Weight::from_parts(7_264_000, 0)
334
			.saturating_add(T::DbWeight::get().writes(1_u64))
335
	}
336
	/// Storage: `Identity::AuthorityOf` (r:1 w:1)
337
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
338
	fn remove_username_authority() -> Weight {
339
		// Proof Size summary in bytes:
340
		//  Measured:  `65`
341
		//  Estimated: `3505`
342
		// Minimum execution time: 9_940_000 picoseconds.
343
		Weight::from_parts(10_264_000, 3505)
344
			.saturating_add(T::DbWeight::get().reads(1_u64))
345
			.saturating_add(T::DbWeight::get().writes(1_u64))
346
	}
347
	/// Storage: `Identity::AuthorityOf` (r:1 w:1)
348
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
349
	/// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
350
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
351
	/// Storage: `Identity::PendingUsernames` (r:1 w:0)
352
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
353
	/// Storage: `Identity::UsernameOf` (r:1 w:1)
354
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
355
	/// Storage: `System::Account` (r:1 w:1)
356
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
357
	/// The range of component `p` is `[0, 1]`.
358
	fn set_username_for(_p: u32, ) -> Weight {
359
		// Proof Size summary in bytes:
360
		//  Measured:  `364`
361
		//  Estimated: `3581`
362
		// Minimum execution time: 70_762_000 picoseconds.
363
		Weight::from_parts(93_537_497, 3581)
364
			.saturating_add(T::DbWeight::get().reads(5_u64))
365
			.saturating_add(T::DbWeight::get().writes(4_u64))
366
	}
367
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
368
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
369
	/// Storage: `Identity::UsernameOf` (r:1 w:1)
370
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
371
	/// Storage: `Identity::UsernameInfoOf` (r:0 w:1)
372
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
373
	fn accept_username() -> Weight {
374
		// Proof Size summary in bytes:
375
		//  Measured:  `102`
376
		//  Estimated: `3555`
377
		// Minimum execution time: 21_705_000 picoseconds.
378
		Weight::from_parts(22_326_000, 3555)
379
			.saturating_add(T::DbWeight::get().reads(2_u64))
380
			.saturating_add(T::DbWeight::get().writes(3_u64))
381
	}
382
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
383
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
384
	/// Storage: `Identity::AuthorityOf` (r:1 w:0)
385
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
386
	/// Storage: `System::Account` (r:1 w:1)
387
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
388
	/// The range of component `p` is `[0, 1]`.
389
	fn remove_expired_approval(_p: u32, ) -> Weight {
390
		// Proof Size summary in bytes:
391
		//  Measured:  `480`
392
		//  Estimated: `3581`
393
		// Minimum execution time: 13_476_000 picoseconds.
394
		Weight::from_parts(43_108_336, 3581)
395
			.saturating_add(T::DbWeight::get().reads(3_u64))
396
			.saturating_add(T::DbWeight::get().writes(2_u64))
397
	}
398
	/// Storage: `Identity::UsernameInfoOf` (r:1 w:0)
399
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
400
	/// Storage: `Identity::UsernameOf` (r:0 w:1)
401
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
402
	fn set_primary_username() -> Weight {
403
		// Proof Size summary in bytes:
404
		//  Measured:  `158`
405
		//  Estimated: `3551`
406
		// Minimum execution time: 13_478_000 picoseconds.
407
		Weight::from_parts(14_090_000, 3551)
408
			.saturating_add(T::DbWeight::get().reads(1_u64))
409
			.saturating_add(T::DbWeight::get().writes(1_u64))
410
	}
411
	/// Storage: `Identity::UsernameInfoOf` (r:1 w:0)
412
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
413
	/// Storage: `Identity::AuthorityOf` (r:1 w:0)
414
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
415
	/// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
416
	/// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
417
	fn unbind_username() -> Weight {
418
		// Proof Size summary in bytes:
419
		//  Measured:  `210`
420
		//  Estimated: `3551`
421
		// Minimum execution time: 18_732_000 picoseconds.
422
		Weight::from_parts(19_317_000, 3551)
423
			.saturating_add(T::DbWeight::get().reads(3_u64))
424
			.saturating_add(T::DbWeight::get().writes(1_u64))
425
	}
426
	/// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
427
	/// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
428
	/// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
429
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
430
	/// Storage: `Identity::UsernameOf` (r:1 w:1)
431
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
432
	/// Storage: `Identity::AuthorityOf` (r:1 w:0)
433
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
434
	fn remove_username() -> Weight {
435
		// Proof Size summary in bytes:
436
		//  Measured:  `273`
437
		//  Estimated: `3551`
438
		// Minimum execution time: 23_241_000 picoseconds.
439
		Weight::from_parts(24_351_000, 3551)
440
			.saturating_add(T::DbWeight::get().reads(4_u64))
441
			.saturating_add(T::DbWeight::get().writes(3_u64))
442
	}
443
	/// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
444
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
445
	/// Storage: `Identity::UsernameOf` (r:1 w:1)
446
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
447
	/// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
448
	/// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
449
	/// Storage: `Identity::AuthorityOf` (r:1 w:0)
450
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
451
	/// Storage: `System::Account` (r:1 w:1)
452
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
453
	/// The range of component `p` is `[0, 1]`.
454
	fn kill_username(_p: u32, ) -> Weight {
455
		// Proof Size summary in bytes:
456
		//  Measured:  `629`
457
		//  Estimated: `3581`
458
		// Minimum execution time: 20_420_000 picoseconds.
459
		Weight::from_parts(59_536_355, 3581)
460
			.saturating_add(T::DbWeight::get().reads(5_u64))
461
			.saturating_add(T::DbWeight::get().writes(4_u64))
462
	}
463
	/// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:2 w:0)
464
	/// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:2 w:0)
465
	/// Storage: `Identity::AuthorityOf` (r:0 w:1)
466
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
467
	fn migration_v2_authority_step() -> Weight {
468
		// Proof Size summary in bytes:
469
		//  Measured:  `134`
470
		//  Estimated: `6074`
471
		// Minimum execution time: 8_862_000 picoseconds.
472
		Weight::from_parts(9_200_000, 6074)
473
			.saturating_add(T::DbWeight::get().reads(2_u64))
474
			.saturating_add(T::DbWeight::get().writes(1_u64))
475
	}
476
	/// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:2 w:0)
477
	/// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:2 w:0)
478
	/// Storage: `Identity::UsernameInfoOf` (r:0 w:1)
479
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
480
	fn migration_v2_username_step() -> Weight {
481
		// Proof Size summary in bytes:
482
		//  Measured:  `147`
483
		//  Estimated: `6087`
484
		// Minimum execution time: 8_872_000 picoseconds.
485
		Weight::from_parts(9_283_000, 6087)
486
			.saturating_add(T::DbWeight::get().reads(2_u64))
487
			.saturating_add(T::DbWeight::get().writes(1_u64))
488
	}
489
	/// Storage: `Identity::IdentityOf` (r:2 w:1)
490
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
491
	/// Storage: `Identity::UsernameOf` (r:0 w:1)
492
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
493
	fn migration_v2_identity_step() -> Weight {
494
		// Proof Size summary in bytes:
495
		//  Measured:  `7050`
496
		//  Estimated: `20992`
497
		// Minimum execution time: 75_230_000 picoseconds.
498
		Weight::from_parts(75_645_000, 20992)
499
			.saturating_add(T::DbWeight::get().reads(2_u64))
500
			.saturating_add(T::DbWeight::get().writes(2_u64))
501
	}
502
	/// Storage: `Identity::PendingUsernames` (r:2 w:1)
503
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
504
	fn migration_v2_pending_username_step() -> Weight {
505
		// Proof Size summary in bytes:
506
		//  Measured:  `188`
507
		//  Estimated: `6120`
508
		// Minimum execution time: 7_819_000 picoseconds.
509
		Weight::from_parts(8_337_000, 6120)
510
			.saturating_add(T::DbWeight::get().reads(2_u64))
511
			.saturating_add(T::DbWeight::get().writes(1_u64))
512
	}
513
	/// Storage: `Identity::AuthorityOf` (r:2 w:0)
514
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
515
	/// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:1 w:1)
516
	/// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:1 w:1)
517
	fn migration_v2_cleanup_authority_step() -> Weight {
518
		// Proof Size summary in bytes:
519
		//  Measured:  `261`
520
		//  Estimated: `6020`
521
		// Minimum execution time: 11_726_000 picoseconds.
522
		Weight::from_parts(12_281_000, 6020)
523
			.saturating_add(T::DbWeight::get().reads(3_u64))
524
			.saturating_add(T::DbWeight::get().writes(1_u64))
525
	}
526
	/// Storage: `Identity::UsernameInfoOf` (r:2 w:0)
527
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
528
	/// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:1 w:1)
529
	/// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:1 w:1)
530
	fn migration_v2_cleanup_username_step() -> Weight {
531
		// Proof Size summary in bytes:
532
		//  Measured:  `265`
533
		//  Estimated: `6112`
534
		// Minimum execution time: 10_633_000 picoseconds.
535
		Weight::from_parts(11_190_000, 6112)
536
			.saturating_add(T::DbWeight::get().reads(3_u64))
537
			.saturating_add(T::DbWeight::get().writes(1_u64))
538
	}
539
}