1
// Copyright 2024 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
//! Autogenerated weights for `pallet_identity`
18
//!
19
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 42.0.0
20
//! DATE: 2024-10-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21
//! WORST CASE MAP SIZE: `1000000`
22
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
23
//! WASM-EXECUTION: Compiled, CHAIN: Some("moonbase-dev"), DB CACHE: 1024
24

            
25
// Executed Command:
26
// ./target/production/moonbeam
27
// benchmark
28
// pallet
29
// --chain=moonbase-dev
30
// --steps=50
31
// --repeat=20
32
// --pallet=pallet_identity
33
// --extrinsic=*
34
// --wasm-execution=compiled
35
// --header=./file_header.txt
36
// --template=./benchmarking/frame-weight-template.hbs
37
// --output=./runtime/common/src/weights/
38

            
39
#![cfg_attr(rustfmt, rustfmt_skip)]
40
#![allow(unused_parens)]
41
#![allow(unused_imports)]
42

            
43
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
44
use sp_std::marker::PhantomData;
45

            
46
/// Weights for `pallet_identity`.
47
pub struct WeightInfo<T>(PhantomData<T>);
48
impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> {
49
	/// Storage: `Identity::Registrars` (r:1 w:1)
50
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
51
	/// The range of component `r` is `[1, 19]`.
52
	fn add_registrar(r: u32, ) -> Weight {
53
		// Proof Size summary in bytes:
54
		//  Measured:  `32 + r * (45 ±0)`
55
		//  Estimated: `2386`
56
		// Minimum execution time: 7_834_000 picoseconds.
57
		Weight::from_parts(8_366_186, 2386)
58
			// Standard Error: 1_277
59
			.saturating_add(Weight::from_parts(94_853, 0).saturating_mul(r.into()))
60
			.saturating_add(T::DbWeight::get().reads(1_u64))
61
			.saturating_add(T::DbWeight::get().writes(1_u64))
62
	}
63
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
64
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
65
	/// The range of component `r` is `[1, 20]`.
66
	fn set_identity(r: u32, ) -> Weight {
67
		// Proof Size summary in bytes:
68
		//  Measured:  `6966 + r * (5 ±0)`
69
		//  Estimated: `11025`
70
		// Minimum execution time: 109_949_000 picoseconds.
71
		Weight::from_parts(111_190_667, 11025)
72
			// Standard Error: 4_659
73
			.saturating_add(Weight::from_parts(212_626, 0).saturating_mul(r.into()))
74
			.saturating_add(T::DbWeight::get().reads(1_u64))
75
			.saturating_add(T::DbWeight::get().writes(1_u64))
76
	}
77
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
78
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
79
	/// Storage: `Identity::SubsOf` (r:1 w:1)
80
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
81
	/// Storage: `Identity::SuperOf` (r:100 w:100)
82
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
83
	/// The range of component `s` is `[0, 100]`.
84
	fn set_subs_new(s: u32, ) -> Weight {
85
		// Proof Size summary in bytes:
86
		//  Measured:  `89`
87
		//  Estimated: `11025 + s * (2565 ±0)`
88
		// Minimum execution time: 8_586_000 picoseconds.
89
		Weight::from_parts(22_594_089, 11025)
90
			// Standard Error: 4_799
91
			.saturating_add(Weight::from_parts(3_433_809, 0).saturating_mul(s.into()))
92
			.saturating_add(T::DbWeight::get().reads(2_u64))
93
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
94
			.saturating_add(T::DbWeight::get().writes(1_u64))
95
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
96
			.saturating_add(Weight::from_parts(0, 2565).saturating_mul(s.into()))
97
	}
98
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
99
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
100
	/// Storage: `Identity::SubsOf` (r:1 w:1)
101
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
102
	/// Storage: `Identity::SuperOf` (r:0 w:100)
103
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
104
	/// The range of component `p` is `[0, 100]`.
105
	fn set_subs_old(p: u32, ) -> Weight {
106
		// Proof Size summary in bytes:
107
		//  Measured:  `169 + p * (20 ±0)`
108
		//  Estimated: `11025`
109
		// Minimum execution time: 8_408_000 picoseconds.
110
		Weight::from_parts(23_224_117, 11025)
111
			// Standard Error: 5_437
112
			.saturating_add(Weight::from_parts(1_430_732, 0).saturating_mul(p.into()))
113
			.saturating_add(T::DbWeight::get().reads(2_u64))
114
			.saturating_add(T::DbWeight::get().writes(1_u64))
115
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
116
	}
117
	/// Storage: `Identity::SubsOf` (r:1 w:1)
118
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
119
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
120
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
121
	/// Storage: `Identity::SuperOf` (r:0 w:100)
122
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
123
	/// The range of component `r` is `[1, 20]`.
124
	/// The range of component `s` is `[0, 100]`.
125
	fn clear_identity(r: u32, s: u32, ) -> Weight {
126
		// Proof Size summary in bytes:
127
		//  Measured:  `7046 + r * (5 ±0) + s * (20 ±0)`
128
		//  Estimated: `11025`
129
		// Minimum execution time: 55_638_000 picoseconds.
130
		Weight::from_parts(55_918_153, 11025)
131
			// Standard Error: 20_691
132
			.saturating_add(Weight::from_parts(208_194, 0).saturating_mul(r.into()))
133
			// Standard Error: 4_037
134
			.saturating_add(Weight::from_parts(1_367_558, 0).saturating_mul(s.into()))
135
			.saturating_add(T::DbWeight::get().reads(2_u64))
136
			.saturating_add(T::DbWeight::get().writes(2_u64))
137
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
138
	}
139
	/// Storage: `Identity::Registrars` (r:1 w:0)
140
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
141
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
142
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
143
	/// The range of component `r` is `[1, 20]`.
144
	fn request_judgement(r: u32, ) -> Weight {
145
		// Proof Size summary in bytes:
146
		//  Measured:  `6956 + r * (45 ±0)`
147
		//  Estimated: `11025`
148
		// Minimum execution time: 76_780_000 picoseconds.
149
		Weight::from_parts(78_381_140, 11025)
150
			// Standard Error: 3_316
151
			.saturating_add(Weight::from_parts(154_285, 0).saturating_mul(r.into()))
152
			.saturating_add(T::DbWeight::get().reads(2_u64))
153
			.saturating_add(T::DbWeight::get().writes(1_u64))
154
	}
155
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
156
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
157
	/// The range of component `r` is `[1, 20]`.
158
	fn cancel_request(r: u32, ) -> Weight {
159
		// Proof Size summary in bytes:
160
		//  Measured:  `6987`
161
		//  Estimated: `11025`
162
		// Minimum execution time: 75_352_000 picoseconds.
163
		Weight::from_parts(76_892_636, 11025)
164
			// Standard Error: 3_618
165
			.saturating_add(Weight::from_parts(79_932, 0).saturating_mul(r.into()))
166
			.saturating_add(T::DbWeight::get().reads(1_u64))
167
			.saturating_add(T::DbWeight::get().writes(1_u64))
168
	}
169
	/// Storage: `Identity::Registrars` (r:1 w:1)
170
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
171
	/// The range of component `r` is `[1, 19]`.
172
	fn set_fee(r: u32, ) -> Weight {
173
		// Proof Size summary in bytes:
174
		//  Measured:  `77 + r * (45 ±0)`
175
		//  Estimated: `2386`
176
		// Minimum execution time: 5_639_000 picoseconds.
177
		Weight::from_parts(5_986_649, 2386)
178
			// Standard Error: 963
179
			.saturating_add(Weight::from_parts(82_955, 0).saturating_mul(r.into()))
180
			.saturating_add(T::DbWeight::get().reads(1_u64))
181
			.saturating_add(T::DbWeight::get().writes(1_u64))
182
	}
183
	/// Storage: `Identity::Registrars` (r:1 w:1)
184
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
185
	/// The range of component `r` is `[1, 19]`.
186
	fn set_account_id(r: u32, ) -> Weight {
187
		// Proof Size summary in bytes:
188
		//  Measured:  `77 + r * (45 ±0)`
189
		//  Estimated: `2386`
190
		// Minimum execution time: 5_997_000 picoseconds.
191
		Weight::from_parts(6_201_588, 2386)
192
			// Standard Error: 934
193
			.saturating_add(Weight::from_parts(73_461, 0).saturating_mul(r.into()))
194
			.saturating_add(T::DbWeight::get().reads(1_u64))
195
			.saturating_add(T::DbWeight::get().writes(1_u64))
196
	}
197
	/// Storage: `Identity::Registrars` (r:1 w:1)
198
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
199
	/// The range of component `r` is `[1, 19]`.
200
	fn set_fields(r: u32, ) -> Weight {
201
		// Proof Size summary in bytes:
202
		//  Measured:  `77 + r * (45 ±0)`
203
		//  Estimated: `2386`
204
		// Minimum execution time: 5_883_000 picoseconds.
205
		Weight::from_parts(6_078_764, 2386)
206
			// Standard Error: 952
207
			.saturating_add(Weight::from_parts(74_727, 0).saturating_mul(r.into()))
208
			.saturating_add(T::DbWeight::get().reads(1_u64))
209
			.saturating_add(T::DbWeight::get().writes(1_u64))
210
	}
211
	/// Storage: `Identity::Registrars` (r:1 w:0)
212
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
213
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
214
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
215
	/// The range of component `r` is `[1, 19]`.
216
	fn provide_judgement(r: u32, ) -> Weight {
217
		// Proof Size summary in bytes:
218
		//  Measured:  `7022 + r * (45 ±0)`
219
		//  Estimated: `11025`
220
		// Minimum execution time: 95_544_000 picoseconds.
221
		Weight::from_parts(96_739_556, 11025)
222
			// Standard Error: 3_879
223
			.saturating_add(Weight::from_parts(146_981, 0).saturating_mul(r.into()))
224
			.saturating_add(T::DbWeight::get().reads(2_u64))
225
			.saturating_add(T::DbWeight::get().writes(1_u64))
226
	}
227
	/// Storage: `Identity::SubsOf` (r:1 w:1)
228
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
229
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
230
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
231
	/// Storage: `System::Account` (r:2 w:2)
232
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
233
	/// Storage: `Identity::SuperOf` (r:0 w:100)
234
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
235
	/// The range of component `r` is `[1, 20]`.
236
	/// The range of component `s` is `[0, 100]`.
237
	fn kill_identity(r: u32, s: u32, ) -> Weight {
238
		// Proof Size summary in bytes:
239
		//  Measured:  `7436 + r * (5 ±0) + s * (20 ±0)`
240
		//  Estimated: `11025`
241
		// Minimum execution time: 74_496_000 picoseconds.
242
		Weight::from_parts(76_646_504, 11025)
243
			// Standard Error: 19_280
244
			.saturating_add(Weight::from_parts(149_607, 0).saturating_mul(r.into()))
245
			// Standard Error: 3_761
246
			.saturating_add(Weight::from_parts(1_387_691, 0).saturating_mul(s.into()))
247
			.saturating_add(T::DbWeight::get().reads(4_u64))
248
			.saturating_add(T::DbWeight::get().writes(4_u64))
249
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
250
	}
251
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
252
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
253
	/// Storage: `Identity::SuperOf` (r:1 w:1)
254
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
255
	/// Storage: `Identity::SubsOf` (r:1 w:1)
256
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
257
	/// The range of component `s` is `[0, 99]`.
258
	fn add_sub(s: u32, ) -> Weight {
259
		// Proof Size summary in bytes:
260
		//  Measured:  `536 + s * (23 ±0)`
261
		//  Estimated: `11025`
262
		// Minimum execution time: 27_466_000 picoseconds.
263
		Weight::from_parts(33_300_025, 11025)
264
			// Standard Error: 1_810
265
			.saturating_add(Weight::from_parts(96_920, 0).saturating_mul(s.into()))
266
			.saturating_add(T::DbWeight::get().reads(3_u64))
267
			.saturating_add(T::DbWeight::get().writes(2_u64))
268
	}
269
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
270
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
271
	/// Storage: `Identity::SuperOf` (r:1 w:1)
272
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
273
	/// The range of component `s` is `[1, 100]`.
274
	fn rename_sub(s: u32, ) -> Weight {
275
		// Proof Size summary in bytes:
276
		//  Measured:  `615 + s * (4 ±0)`
277
		//  Estimated: `11025`
278
		// Minimum execution time: 12_278_000 picoseconds.
279
		Weight::from_parts(16_305_423, 11025)
280
			// Standard Error: 1_275
281
			.saturating_add(Weight::from_parts(56_125, 0).saturating_mul(s.into()))
282
			.saturating_add(T::DbWeight::get().reads(2_u64))
283
			.saturating_add(T::DbWeight::get().writes(1_u64))
284
	}
285
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
286
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
287
	/// Storage: `Identity::SuperOf` (r:1 w:1)
288
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
289
	/// Storage: `Identity::SubsOf` (r:1 w:1)
290
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
291
	/// The range of component `s` is `[1, 100]`.
292
	fn remove_sub(s: u32, ) -> Weight {
293
		// Proof Size summary in bytes:
294
		//  Measured:  `647 + s * (24 ±0)`
295
		//  Estimated: `11025`
296
		// Minimum execution time: 33_387_000 picoseconds.
297
		Weight::from_parts(36_628_434, 11025)
298
			// Standard Error: 883
299
			.saturating_add(Weight::from_parts(90_690, 0).saturating_mul(s.into()))
300
			.saturating_add(T::DbWeight::get().reads(3_u64))
301
			.saturating_add(T::DbWeight::get().writes(2_u64))
302
	}
303
	/// Storage: `Identity::SuperOf` (r:1 w:1)
304
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
305
	/// Storage: `Identity::SubsOf` (r:1 w:1)
306
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
307
	/// Storage: `System::Account` (r:1 w:0)
308
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
309
	/// The range of component `s` is `[0, 99]`.
310
	fn quit_sub(s: u32, ) -> Weight {
311
		// Proof Size summary in bytes:
312
		//  Measured:  `620 + s * (24 ±0)`
313
		//  Estimated: `5511`
314
		// Minimum execution time: 21_327_000 picoseconds.
315
		Weight::from_parts(24_860_749, 5511)
316
			// Standard Error: 906
317
			.saturating_add(Weight::from_parts(79_791, 0).saturating_mul(s.into()))
318
			.saturating_add(T::DbWeight::get().reads(3_u64))
319
			.saturating_add(T::DbWeight::get().writes(2_u64))
320
	}
321
	/// Storage: `Identity::UsernameAuthorities` (r:0 w:1)
322
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
323
	fn add_username_authority() -> Weight {
324
		// Proof Size summary in bytes:
325
		//  Measured:  `0`
326
		//  Estimated: `0`
327
		// Minimum execution time: 5_818_000 picoseconds.
328
		Weight::from_parts(6_174_000, 0)
329
			.saturating_add(T::DbWeight::get().writes(1_u64))
330
	}
331
	/// Storage: `Identity::UsernameAuthorities` (r:1 w:1)
332
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
333
	fn remove_username_authority() -> Weight {
334
		// Proof Size summary in bytes:
335
		//  Measured:  `67`
336
		//  Estimated: `3505`
337
		// Minimum execution time: 8_510_000 picoseconds.
338
		Weight::from_parts(8_769_000, 3505)
339
			.saturating_add(T::DbWeight::get().reads(1_u64))
340
			.saturating_add(T::DbWeight::get().writes(1_u64))
341
	}
342
	/// Storage: `Identity::UsernameAuthorities` (r:1 w:1)
343
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
344
	/// Storage: `Identity::AccountOfUsername` (r:1 w:1)
345
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
346
	/// Storage: `Identity::PendingUsernames` (r:1 w:0)
347
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
348
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
349
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
350
	fn set_username_for() -> Weight {
351
		// Proof Size summary in bytes:
352
		//  Measured:  `67`
353
		//  Estimated: `11025`
354
		// Minimum execution time: 66_329_000 picoseconds.
355
		Weight::from_parts(67_528_000, 11025)
356
			.saturating_add(T::DbWeight::get().reads(4_u64))
357
			.saturating_add(T::DbWeight::get().writes(3_u64))
358
	}
359
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
360
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
361
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
362
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
363
	/// Storage: `Identity::AccountOfUsername` (r:0 w:1)
364
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
365
	fn accept_username() -> Weight {
366
		// Proof Size summary in bytes:
367
		//  Measured:  `101`
368
		//  Estimated: `11025`
369
		// Minimum execution time: 19_477_000 picoseconds.
370
		Weight::from_parts(19_978_000, 11025)
371
			.saturating_add(T::DbWeight::get().reads(2_u64))
372
			.saturating_add(T::DbWeight::get().writes(3_u64))
373
	}
374
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
375
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
376
	fn remove_expired_approval() -> Weight {
377
		// Proof Size summary in bytes:
378
		//  Measured:  `101`
379
		//  Estimated: `3538`
380
		// Minimum execution time: 13_073_000 picoseconds.
381
		Weight::from_parts(14_237_000, 3538)
382
			.saturating_add(T::DbWeight::get().reads(1_u64))
383
			.saturating_add(T::DbWeight::get().writes(1_u64))
384
	}
385
	/// Storage: `Identity::AccountOfUsername` (r:1 w:0)
386
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
387
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
388
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
389
	fn set_primary_username() -> Weight {
390
		// Proof Size summary in bytes:
391
		//  Measured:  `232`
392
		//  Estimated: `11025`
393
		// Minimum execution time: 15_837_000 picoseconds.
394
		Weight::from_parts(16_236_000, 11025)
395
			.saturating_add(T::DbWeight::get().reads(2_u64))
396
			.saturating_add(T::DbWeight::get().writes(1_u64))
397
	}
398
	/// Storage: `Identity::AccountOfUsername` (r:1 w:1)
399
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
400
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
401
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
402
	fn remove_dangling_username() -> Weight {
403
		// Proof Size summary in bytes:
404
		//  Measured:  `86`
405
		//  Estimated: `11025`
406
		// Minimum execution time: 10_845_000 picoseconds.
407
		Weight::from_parts(11_212_000, 11025)
408
			.saturating_add(T::DbWeight::get().reads(2_u64))
409
			.saturating_add(T::DbWeight::get().writes(1_u64))
410
	}
411
}