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 32.0.0
21
//! DATE: 2025-05-14, 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/moonbeam-runtime/moonbeam_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
// --output=./runtime/moonbeam/src/weights
42

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

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

            
50
/// Weights for `pallet_identity`.
51
pub struct WeightInfo<T>(PhantomData<T>);
52
impl<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(901), added: 1396, 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 * (45 ±0)`
59
		//  Estimated: `2386`
60
		// Minimum execution time: 9_657_000 picoseconds.
61
		Weight::from_parts(10_228_885, 2386)
62
			// Standard Error: 1_389
63
			.saturating_add(Weight::from_parts(112_204, 0).saturating_mul(r.into()))
64
			.saturating_add(T::DbWeight::get().reads(1_u64))
65
			.saturating_add(T::DbWeight::get().writes(1_u64))
66
	}
67
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
68
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
69
	/// The range of component `r` is `[1, 20]`.
70
	fn set_identity(r: u32, ) -> Weight {
71
		// Proof Size summary in bytes:
72
		//  Measured:  `6965 + r * (5 ±0)`
73
		//  Estimated: `10991`
74
		// Minimum execution time: 112_431_000 picoseconds.
75
		Weight::from_parts(114_826_740, 10991)
76
			// Standard Error: 10_774
77
			.saturating_add(Weight::from_parts(539_740, 0).saturating_mul(r.into()))
78
			.saturating_add(T::DbWeight::get().reads(1_u64))
79
			.saturating_add(T::DbWeight::get().writes(1_u64))
80
	}
81
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
82
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
83
	/// Storage: `Identity::SubsOf` (r:1 w:1)
84
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
85
	/// Storage: `Identity::SuperOf` (r:100 w:100)
86
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
87
	/// The range of component `s` is `[0, 100]`.
88
	fn set_subs_new(s: u32, ) -> Weight {
89
		// Proof Size summary in bytes:
90
		//  Measured:  `89`
91
		//  Estimated: `10991 + s * (2565 ±0)`
92
		// Minimum execution time: 13_422_000 picoseconds.
93
		Weight::from_parts(26_855_583, 10991)
94
			// Standard Error: 7_522
95
			.saturating_add(Weight::from_parts(3_579_491, 0).saturating_mul(s.into()))
96
			.saturating_add(T::DbWeight::get().reads(2_u64))
97
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
98
			.saturating_add(T::DbWeight::get().writes(1_u64))
99
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
100
			.saturating_add(Weight::from_parts(0, 2565).saturating_mul(s.into()))
101
	}
102
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
103
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
104
	/// Storage: `Identity::SubsOf` (r:1 w:1)
105
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
106
	/// Storage: `Identity::SuperOf` (r:0 w:100)
107
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
108
	/// The range of component `p` is `[0, 100]`.
109
	fn set_subs_old(p: u32, ) -> Weight {
110
		// Proof Size summary in bytes:
111
		//  Measured:  `169 + p * (20 ±0)`
112
		//  Estimated: `10991`
113
		// Minimum execution time: 13_493_000 picoseconds.
114
		Weight::from_parts(28_304_052, 10991)
115
			// Standard Error: 4_420
116
			.saturating_add(Weight::from_parts(1_367_011, 0).saturating_mul(p.into()))
117
			.saturating_add(T::DbWeight::get().reads(2_u64))
118
			.saturating_add(T::DbWeight::get().writes(1_u64))
119
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
120
	}
121
	/// Storage: `Identity::SubsOf` (r:1 w:1)
122
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
123
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
124
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
125
	/// Storage: `Identity::SuperOf` (r:0 w:100)
126
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
127
	/// The range of component `r` is `[1, 20]`.
128
	/// The range of component `s` is `[0, 100]`.
129
	fn clear_identity(r: u32, s: u32, ) -> Weight {
130
		// Proof Size summary in bytes:
131
		//  Measured:  `7045 + r * (5 ±0) + s * (20 ±0)`
132
		//  Estimated: `10991`
133
		// Minimum execution time: 60_602_000 picoseconds.
134
		Weight::from_parts(61_252_093, 10991)
135
			// Standard Error: 26_076
136
			.saturating_add(Weight::from_parts(609_597, 0).saturating_mul(r.into()))
137
			// Standard Error: 5_087
138
			.saturating_add(Weight::from_parts(1_417_127, 0).saturating_mul(s.into()))
139
			.saturating_add(T::DbWeight::get().reads(2_u64))
140
			.saturating_add(T::DbWeight::get().writes(2_u64))
141
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
142
	}
143
	/// Storage: `Identity::Registrars` (r:1 w:0)
144
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
145
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
146
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
147
	/// The range of component `r` is `[1, 20]`.
148
	fn request_judgement(r: u32, ) -> Weight {
149
		// Proof Size summary in bytes:
150
		//  Measured:  `6955 + r * (45 ±0)`
151
		//  Estimated: `10991`
152
		// Minimum execution time: 84_744_000 picoseconds.
153
		Weight::from_parts(86_724_623, 10991)
154
			// Standard Error: 4_916
155
			.saturating_add(Weight::from_parts(171_693, 0).saturating_mul(r.into()))
156
			.saturating_add(T::DbWeight::get().reads(2_u64))
157
			.saturating_add(T::DbWeight::get().writes(1_u64))
158
	}
159
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
160
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
161
	/// The range of component `r` is `[1, 20]`.
162
	fn cancel_request(r: u32, ) -> Weight {
163
		// Proof Size summary in bytes:
164
		//  Measured:  `6986`
165
		//  Estimated: `10991`
166
		// Minimum execution time: 78_540_000 picoseconds.
167
		Weight::from_parts(80_058_493, 10991)
168
			// Standard Error: 11_662
169
			.saturating_add(Weight::from_parts(165_572, 0).saturating_mul(r.into()))
170
			.saturating_add(T::DbWeight::get().reads(1_u64))
171
			.saturating_add(T::DbWeight::get().writes(1_u64))
172
	}
173
	/// Storage: `Identity::Registrars` (r:1 w:1)
174
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
175
	/// The range of component `r` is `[1, 19]`.
176
	fn set_fee(r: u32, ) -> Weight {
177
		// Proof Size summary in bytes:
178
		//  Measured:  `77 + r * (45 ±0)`
179
		//  Estimated: `2386`
180
		// Minimum execution time: 6_934_000 picoseconds.
181
		Weight::from_parts(7_296_075, 2386)
182
			// Standard Error: 1_008
183
			.saturating_add(Weight::from_parts(84_495, 0).saturating_mul(r.into()))
184
			.saturating_add(T::DbWeight::get().reads(1_u64))
185
			.saturating_add(T::DbWeight::get().writes(1_u64))
186
	}
187
	/// Storage: `Identity::Registrars` (r:1 w:1)
188
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
189
	/// The range of component `r` is `[1, 19]`.
190
	fn set_account_id(r: u32, ) -> Weight {
191
		// Proof Size summary in bytes:
192
		//  Measured:  `77 + r * (45 ±0)`
193
		//  Estimated: `2386`
194
		// Minimum execution time: 7_011_000 picoseconds.
195
		Weight::from_parts(7_368_347, 2386)
196
			// Standard Error: 951
197
			.saturating_add(Weight::from_parts(81_599, 0).saturating_mul(r.into()))
198
			.saturating_add(T::DbWeight::get().reads(1_u64))
199
			.saturating_add(T::DbWeight::get().writes(1_u64))
200
	}
201
	/// Storage: `Identity::Registrars` (r:1 w:1)
202
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
203
	/// The range of component `r` is `[1, 19]`.
204
	fn set_fields(r: u32, ) -> Weight {
205
		// Proof Size summary in bytes:
206
		//  Measured:  `77 + r * (45 ±0)`
207
		//  Estimated: `2386`
208
		// Minimum execution time: 6_917_000 picoseconds.
209
		Weight::from_parts(7_352_448, 2386)
210
			// Standard Error: 992
211
			.saturating_add(Weight::from_parts(81_436, 0).saturating_mul(r.into()))
212
			.saturating_add(T::DbWeight::get().reads(1_u64))
213
			.saturating_add(T::DbWeight::get().writes(1_u64))
214
	}
215
	/// Storage: `Identity::Registrars` (r:1 w:0)
216
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
217
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
218
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
219
	/// The range of component `r` is `[1, 19]`.
220
	fn provide_judgement(r: u32, ) -> Weight {
221
		// Proof Size summary in bytes:
222
		//  Measured:  `7021 + r * (45 ±0)`
223
		//  Estimated: `10991`
224
		// Minimum execution time: 102_896_000 picoseconds.
225
		Weight::from_parts(104_571_218, 10991)
226
			// Standard Error: 5_242
227
			.saturating_add(Weight::from_parts(188_803, 0).saturating_mul(r.into()))
228
			.saturating_add(T::DbWeight::get().reads(2_u64))
229
			.saturating_add(T::DbWeight::get().writes(1_u64))
230
	}
231
	/// Storage: `Identity::SubsOf` (r:1 w:1)
232
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
233
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
234
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
235
	/// Storage: `System::Account` (r:1 w:1)
236
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
237
	/// Storage: `Identity::SuperOf` (r:0 w:100)
238
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
239
	/// The range of component `r` is `[1, 20]`.
240
	/// The range of component `s` is `[0, 100]`.
241
	fn kill_identity(r: u32, s: u32, ) -> Weight {
242
		// Proof Size summary in bytes:
243
		//  Measured:  `7273 + r * (5 ±0) + s * (20 ±0)`
244
		//  Estimated: `10991`
245
		// Minimum execution time: 78_077_000 picoseconds.
246
		Weight::from_parts(76_212_968, 10991)
247
			// Standard Error: 23_032
248
			.saturating_add(Weight::from_parts(680_789, 0).saturating_mul(r.into()))
249
			// Standard Error: 4_494
250
			.saturating_add(Weight::from_parts(1_419_916, 0).saturating_mul(s.into()))
251
			.saturating_add(T::DbWeight::get().reads(3_u64))
252
			.saturating_add(T::DbWeight::get().writes(3_u64))
253
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
254
	}
255
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
256
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
257
	/// Storage: `Identity::SuperOf` (r:1 w:1)
258
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
259
	/// Storage: `Identity::SubsOf` (r:1 w:1)
260
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
261
	/// The range of component `s` is `[0, 99]`.
262
	fn add_sub(s: u32, ) -> Weight {
263
		// Proof Size summary in bytes:
264
		//  Measured:  `536 + s * (23 ±0)`
265
		//  Estimated: `10991`
266
		// Minimum execution time: 29_940_000 picoseconds.
267
		Weight::from_parts(39_300_617, 10991)
268
			// Standard Error: 2_124
269
			.saturating_add(Weight::from_parts(105_275, 0).saturating_mul(s.into()))
270
			.saturating_add(T::DbWeight::get().reads(3_u64))
271
			.saturating_add(T::DbWeight::get().writes(2_u64))
272
	}
273
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
274
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
275
	/// Storage: `Identity::SuperOf` (r:1 w:1)
276
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
277
	/// The range of component `s` is `[1, 100]`.
278
	fn rename_sub(s: u32, ) -> Weight {
279
		// Proof Size summary in bytes:
280
		//  Measured:  `615 + s * (4 ±0)`
281
		//  Estimated: `10991`
282
		// Minimum execution time: 20_824_000 picoseconds.
283
		Weight::from_parts(24_153_656, 10991)
284
			// Standard Error: 899
285
			.saturating_add(Weight::from_parts(77_749, 0).saturating_mul(s.into()))
286
			.saturating_add(T::DbWeight::get().reads(2_u64))
287
			.saturating_add(T::DbWeight::get().writes(1_u64))
288
	}
289
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
290
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
291
	/// Storage: `Identity::SuperOf` (r:1 w:1)
292
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
293
	/// Storage: `Identity::SubsOf` (r:1 w:1)
294
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
295
	/// The range of component `s` is `[1, 100]`.
296
	fn remove_sub(s: u32, ) -> Weight {
297
		// Proof Size summary in bytes:
298
		//  Measured:  `647 + s * (24 ±0)`
299
		//  Estimated: `10991`
300
		// Minimum execution time: 37_753_000 picoseconds.
301
		Weight::from_parts(41_813_132, 10991)
302
			// Standard Error: 1_621
303
			.saturating_add(Weight::from_parts(112_145, 0).saturating_mul(s.into()))
304
			.saturating_add(T::DbWeight::get().reads(3_u64))
305
			.saturating_add(T::DbWeight::get().writes(2_u64))
306
	}
307
	/// Storage: `Identity::SuperOf` (r:1 w:1)
308
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
309
	/// Storage: `Identity::SubsOf` (r:1 w:1)
310
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
311
	/// Storage: `System::Account` (r:1 w:0)
312
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
313
	/// The range of component `s` is `[0, 99]`.
314
	fn quit_sub(s: u32, ) -> Weight {
315
		// Proof Size summary in bytes:
316
		//  Measured:  `620 + s * (24 ±0)`
317
		//  Estimated: `5511`
318
		// Minimum execution time: 27_457_000 picoseconds.
319
		Weight::from_parts(29_729_259, 5511)
320
			// Standard Error: 749
321
			.saturating_add(Weight::from_parts(98_263, 0).saturating_mul(s.into()))
322
			.saturating_add(T::DbWeight::get().reads(3_u64))
323
			.saturating_add(T::DbWeight::get().writes(2_u64))
324
	}
325
	/// Storage: `Identity::AuthorityOf` (r:0 w:1)
326
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
327
	fn add_username_authority() -> Weight {
328
		// Proof Size summary in bytes:
329
		//  Measured:  `0`
330
		//  Estimated: `0`
331
		// Minimum execution time: 6_789_000 picoseconds.
332
		Weight::from_parts(7_139_000, 0)
333
			.saturating_add(T::DbWeight::get().writes(1_u64))
334
	}
335
	/// Storage: `Identity::AuthorityOf` (r:1 w:1)
336
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
337
	fn remove_username_authority() -> Weight {
338
		// Proof Size summary in bytes:
339
		//  Measured:  `65`
340
		//  Estimated: `3505`
341
		// Minimum execution time: 10_145_000 picoseconds.
342
		Weight::from_parts(10_396_000, 3505)
343
			.saturating_add(T::DbWeight::get().reads(1_u64))
344
			.saturating_add(T::DbWeight::get().writes(1_u64))
345
	}
346
	/// Storage: `Identity::AuthorityOf` (r:1 w:1)
347
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
348
	/// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
349
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
350
	/// Storage: `Identity::PendingUsernames` (r:1 w:0)
351
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
352
	/// Storage: `Identity::UsernameOf` (r:1 w:1)
353
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
354
	/// Storage: `System::Account` (r:1 w:1)
355
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
356
	/// The range of component `p` is `[0, 1]`.
357
	fn set_username_for(_p: u32, ) -> Weight {
358
		// Proof Size summary in bytes:
359
		//  Measured:  `331`
360
		//  Estimated: `3581`
361
		// Minimum execution time: 71_491_000 picoseconds.
362
		Weight::from_parts(92_587_248, 3581)
363
			.saturating_add(T::DbWeight::get().reads(5_u64))
364
			.saturating_add(T::DbWeight::get().writes(4_u64))
365
	}
366
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
367
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
368
	/// Storage: `Identity::UsernameOf` (r:1 w:1)
369
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
370
	/// Storage: `Identity::UsernameInfoOf` (r:0 w:1)
371
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
372
	fn accept_username() -> Weight {
373
		// Proof Size summary in bytes:
374
		//  Measured:  `102`
375
		//  Estimated: `3555`
376
		// Minimum execution time: 20_646_000 picoseconds.
377
		Weight::from_parts(21_195_000, 3555)
378
			.saturating_add(T::DbWeight::get().reads(2_u64))
379
			.saturating_add(T::DbWeight::get().writes(3_u64))
380
	}
381
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
382
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
383
	/// Storage: `Identity::AuthorityOf` (r:1 w:0)
384
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
385
	/// Storage: `System::Account` (r:1 w:1)
386
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
387
	/// The range of component `p` is `[0, 1]`.
388
	fn remove_expired_approval(_p: u32, ) -> Weight {
389
		// Proof Size summary in bytes:
390
		//  Measured:  `447`
391
		//  Estimated: `3581`
392
		// Minimum execution time: 15_836_000 picoseconds.
393
		Weight::from_parts(48_473_236, 3581)
394
			.saturating_add(T::DbWeight::get().reads(3_u64))
395
			.saturating_add(T::DbWeight::get().writes(2_u64))
396
	}
397
	/// Storage: `Identity::UsernameInfoOf` (r:1 w:0)
398
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
399
	/// Storage: `Identity::UsernameOf` (r:0 w:1)
400
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
401
	fn set_primary_username() -> Weight {
402
		// Proof Size summary in bytes:
403
		//  Measured:  `158`
404
		//  Estimated: `3551`
405
		// Minimum execution time: 13_273_000 picoseconds.
406
		Weight::from_parts(13_862_000, 3551)
407
			.saturating_add(T::DbWeight::get().reads(1_u64))
408
			.saturating_add(T::DbWeight::get().writes(1_u64))
409
	}
410
	/// Storage: `Identity::UsernameInfoOf` (r:1 w:0)
411
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
412
	/// Storage: `Identity::AuthorityOf` (r:1 w:0)
413
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
414
	/// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
415
	/// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
416
	fn unbind_username() -> Weight {
417
		// Proof Size summary in bytes:
418
		//  Measured:  `210`
419
		//  Estimated: `3551`
420
		// Minimum execution time: 18_928_000 picoseconds.
421
		Weight::from_parts(19_484_000, 3551)
422
			.saturating_add(T::DbWeight::get().reads(3_u64))
423
			.saturating_add(T::DbWeight::get().writes(1_u64))
424
	}
425
	/// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
426
	/// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
427
	/// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
428
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
429
	/// Storage: `Identity::UsernameOf` (r:1 w:1)
430
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
431
	/// Storage: `Identity::AuthorityOf` (r:1 w:0)
432
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
433
	fn remove_username() -> Weight {
434
		// Proof Size summary in bytes:
435
		//  Measured:  `273`
436
		//  Estimated: `3551`
437
		// Minimum execution time: 23_570_000 picoseconds.
438
		Weight::from_parts(24_395_000, 3551)
439
			.saturating_add(T::DbWeight::get().reads(4_u64))
440
			.saturating_add(T::DbWeight::get().writes(3_u64))
441
	}
442
	/// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
443
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
444
	/// Storage: `Identity::UsernameOf` (r:1 w:1)
445
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
446
	/// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
447
	/// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
448
	/// Storage: `Identity::AuthorityOf` (r:1 w:0)
449
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
450
	/// Storage: `System::Account` (r:1 w:1)
451
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
452
	/// The range of component `p` is `[0, 1]`.
453
	fn kill_username(_p: u32, ) -> Weight {
454
		// Proof Size summary in bytes:
455
		//  Measured:  `596`
456
		//  Estimated: `3581`
457
		// Minimum execution time: 20_470_000 picoseconds.
458
		Weight::from_parts(58_459_677, 3581)
459
			.saturating_add(T::DbWeight::get().reads(5_u64))
460
			.saturating_add(T::DbWeight::get().writes(4_u64))
461
	}
462
	/// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:2 w:0)
463
	/// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:2 w:0)
464
	/// Storage: `Identity::AuthorityOf` (r:0 w:1)
465
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
466
	fn migration_v2_authority_step() -> Weight {
467
		// Proof Size summary in bytes:
468
		//  Measured:  `134`
469
		//  Estimated: `6074`
470
		// Minimum execution time: 8_903_000 picoseconds.
471
		Weight::from_parts(9_220_000, 6074)
472
			.saturating_add(T::DbWeight::get().reads(2_u64))
473
			.saturating_add(T::DbWeight::get().writes(1_u64))
474
	}
475
	/// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:2 w:0)
476
	/// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:2 w:0)
477
	/// Storage: `Identity::UsernameInfoOf` (r:0 w:1)
478
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
479
	fn migration_v2_username_step() -> Weight {
480
		// Proof Size summary in bytes:
481
		//  Measured:  `147`
482
		//  Estimated: `6087`
483
		// Minimum execution time: 8_864_000 picoseconds.
484
		Weight::from_parts(9_166_000, 6087)
485
			.saturating_add(T::DbWeight::get().reads(2_u64))
486
			.saturating_add(T::DbWeight::get().writes(1_u64))
487
	}
488
	/// Storage: `Identity::IdentityOf` (r:2 w:1)
489
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7526), added: 10001, mode: `MaxEncodedLen`)
490
	/// Storage: `Identity::UsernameOf` (r:0 w:1)
491
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
492
	fn migration_v2_identity_step() -> Weight {
493
		// Proof Size summary in bytes:
494
		//  Measured:  `7050`
495
		//  Estimated: `20992`
496
		// Minimum execution time: 63_269_000 picoseconds.
497
		Weight::from_parts(64_288_000, 20992)
498
			.saturating_add(T::DbWeight::get().reads(2_u64))
499
			.saturating_add(T::DbWeight::get().writes(2_u64))
500
	}
501
	/// Storage: `Identity::PendingUsernames` (r:2 w:1)
502
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
503
	fn migration_v2_pending_username_step() -> Weight {
504
		// Proof Size summary in bytes:
505
		//  Measured:  `188`
506
		//  Estimated: `6120`
507
		// Minimum execution time: 8_004_000 picoseconds.
508
		Weight::from_parts(8_540_000, 6120)
509
			.saturating_add(T::DbWeight::get().reads(2_u64))
510
			.saturating_add(T::DbWeight::get().writes(1_u64))
511
	}
512
	/// Storage: `Identity::AuthorityOf` (r:2 w:0)
513
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
514
	/// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:1 w:1)
515
	/// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:1 w:1)
516
	fn migration_v2_cleanup_authority_step() -> Weight {
517
		// Proof Size summary in bytes:
518
		//  Measured:  `261`
519
		//  Estimated: `6020`
520
		// Minimum execution time: 11_724_000 picoseconds.
521
		Weight::from_parts(12_174_000, 6020)
522
			.saturating_add(T::DbWeight::get().reads(3_u64))
523
			.saturating_add(T::DbWeight::get().writes(1_u64))
524
	}
525
	/// Storage: `Identity::UsernameInfoOf` (r:2 w:0)
526
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
527
	/// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:1 w:1)
528
	/// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:1 w:1)
529
	fn migration_v2_cleanup_username_step() -> Weight {
530
		// Proof Size summary in bytes:
531
		//  Measured:  `265`
532
		//  Estimated: `6112`
533
		// Minimum execution time: 10_937_000 picoseconds.
534
		Weight::from_parts(11_315_000, 6112)
535
			.saturating_add(T::DbWeight::get().reads(3_u64))
536
			.saturating_add(T::DbWeight::get().writes(1_u64))
537
	}
538
}