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-03-26, 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
// --output=./runtime/moonriver/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_522_000 picoseconds.
61
		Weight::from_parts(10_082_403, 2386)
62
			// Standard Error: 1_347
63
			.saturating_add(Weight::from_parts(115_097, 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(7560), added: 10035, 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:  `6966 + r * (5 ±0)`
73
		//  Estimated: `11025`
74
		// Minimum execution time: 113_873_000 picoseconds.
75
		Weight::from_parts(115_598_586, 11025)
76
			// Standard Error: 8_906
77
			.saturating_add(Weight::from_parts(236_731, 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(7560), added: 10035, 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: `11025 + s * (2565 ±0)`
92
		// Minimum execution time: 10_479_000 picoseconds.
93
		Weight::from_parts(25_450_538, 11025)
94
			// Standard Error: 6_979
95
			.saturating_add(Weight::from_parts(3_691_464, 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(7560), added: 10035, 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: `11025`
113
		// Minimum execution time: 10_431_000 picoseconds.
114
		Weight::from_parts(26_872_147, 11025)
115
			// Standard Error: 5_156
116
			.saturating_add(Weight::from_parts(1_358_204, 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(7560), added: 10035, 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:  `7046 + r * (5 ±0) + s * (20 ±0)`
132
		//  Estimated: `11025`
133
		// Minimum execution time: 60_438_000 picoseconds.
134
		Weight::from_parts(61_538_161, 11025)
135
			// Standard Error: 15_406
136
			.saturating_add(Weight::from_parts(345_179, 0).saturating_mul(r.into()))
137
			// Standard Error: 3_006
138
			.saturating_add(Weight::from_parts(1_384_257, 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(7560), added: 10035, 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:  `6956 + r * (45 ±0)`
151
		//  Estimated: `11025`
152
		// Minimum execution time: 86_134_000 picoseconds.
153
		Weight::from_parts(88_392_469, 11025)
154
			// Standard Error: 5_052
155
			.saturating_add(Weight::from_parts(195_103, 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(7560), added: 10035, 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:  `6987`
165
		//  Estimated: `11025`
166
		// Minimum execution time: 79_717_000 picoseconds.
167
		Weight::from_parts(81_170_370, 11025)
168
			// Standard Error: 4_209
169
			.saturating_add(Weight::from_parts(151_604, 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: 7_034_000 picoseconds.
181
		Weight::from_parts(7_414_227, 2386)
182
			// Standard Error: 1_029
183
			.saturating_add(Weight::from_parts(88_996, 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_050_000 picoseconds.
195
		Weight::from_parts(7_446_342, 2386)
196
			// Standard Error: 905
197
			.saturating_add(Weight::from_parts(92_549, 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: 7_057_000 picoseconds.
209
		Weight::from_parts(7_465_567, 2386)
210
			// Standard Error: 963
211
			.saturating_add(Weight::from_parts(91_548, 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(7560), added: 10035, 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:  `7022 + r * (45 ±0)`
223
		//  Estimated: `11025`
224
		// Minimum execution time: 105_106_000 picoseconds.
225
		Weight::from_parts(106_541_145, 11025)
226
			// Standard Error: 3_358
227
			.saturating_add(Weight::from_parts(203_447, 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(7560), added: 10035, 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:  `7241 + r * (5 ±0) + s * (20 ±0)`
244
		//  Estimated: `11025`
245
		// Minimum execution time: 74_631_000 picoseconds.
246
		Weight::from_parts(77_962_762, 11025)
247
			// Standard Error: 19_519
248
			.saturating_add(Weight::from_parts(316_644, 0).saturating_mul(r.into()))
249
			// Standard Error: 3_808
250
			.saturating_add(Weight::from_parts(1_357_880, 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(7560), added: 10035, 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: `11025`
266
		// Minimum execution time: 31_095_000 picoseconds.
267
		Weight::from_parts(40_211_638, 11025)
268
			// Standard Error: 2_184
269
			.saturating_add(Weight::from_parts(96_005, 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(7560), added: 10035, 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: `11025`
282
		// Minimum execution time: 17_977_000 picoseconds.
283
		Weight::from_parts(21_234_354, 11025)
284
			// Standard Error: 922
285
			.saturating_add(Weight::from_parts(67_315, 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(7560), added: 10035, 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: `11025`
300
		// Minimum execution time: 38_246_000 picoseconds.
301
		Weight::from_parts(42_732_013, 11025)
302
			// Standard Error: 1_432
303
			.saturating_add(Weight::from_parts(106_321, 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: 28_097_000 picoseconds.
319
		Weight::from_parts(30_677_892, 5511)
320
			// Standard Error: 766
321
			.saturating_add(Weight::from_parts(87_069, 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::UsernameAuthorities` (r:0 w:1)
326
	/// Proof: `Identity::UsernameAuthorities` (`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_696_000 picoseconds.
332
		Weight::from_parts(6_976_000, 0)
333
			.saturating_add(T::DbWeight::get().writes(1_u64))
334
	}
335
	/// Storage: `Identity::UsernameAuthorities` (r:1 w:1)
336
	/// Proof: `Identity::UsernameAuthorities` (`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:  `67`
340
		//  Estimated: `3505`
341
		// Minimum execution time: 10_597_000 picoseconds.
342
		Weight::from_parts(10_886_000, 3505)
343
			.saturating_add(T::DbWeight::get().reads(1_u64))
344
			.saturating_add(T::DbWeight::get().writes(1_u64))
345
	}
346
	/// Storage: `Identity::UsernameAuthorities` (r:1 w:1)
347
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
348
	/// Storage: `Identity::AccountOfUsername` (r:1 w:1)
349
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
350
	/// Storage: `Identity::PendingUsernames` (r:1 w:0)
351
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
352
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
353
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
354
	fn set_username_for() -> Weight {
355
		// Proof Size summary in bytes:
356
		//  Measured:  `67`
357
		//  Estimated: `11025`
358
		// Minimum execution time: 70_816_000 picoseconds.
359
		Weight::from_parts(72_198_000, 11025)
360
			.saturating_add(T::DbWeight::get().reads(4_u64))
361
			.saturating_add(T::DbWeight::get().writes(3_u64))
362
	}
363
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
364
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
365
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
366
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
367
	/// Storage: `Identity::AccountOfUsername` (r:0 w:1)
368
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
369
	fn accept_username() -> Weight {
370
		// Proof Size summary in bytes:
371
		//  Measured:  `101`
372
		//  Estimated: `11025`
373
		// Minimum execution time: 21_762_000 picoseconds.
374
		Weight::from_parts(22_584_000, 11025)
375
			.saturating_add(T::DbWeight::get().reads(2_u64))
376
			.saturating_add(T::DbWeight::get().writes(3_u64))
377
	}
378
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
379
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
380
	fn remove_expired_approval() -> Weight {
381
		// Proof Size summary in bytes:
382
		//  Measured:  `101`
383
		//  Estimated: `3538`
384
		// Minimum execution time: 14_431_000 picoseconds.
385
		Weight::from_parts(16_126_000, 3538)
386
			.saturating_add(T::DbWeight::get().reads(1_u64))
387
			.saturating_add(T::DbWeight::get().writes(1_u64))
388
	}
389
	/// Storage: `Identity::AccountOfUsername` (r:1 w:0)
390
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
391
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
392
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
393
	fn set_primary_username() -> Weight {
394
		// Proof Size summary in bytes:
395
		//  Measured:  `232`
396
		//  Estimated: `11025`
397
		// Minimum execution time: 18_875_000 picoseconds.
398
		Weight::from_parts(19_511_000, 11025)
399
			.saturating_add(T::DbWeight::get().reads(2_u64))
400
			.saturating_add(T::DbWeight::get().writes(1_u64))
401
	}
402
	/// Storage: `Identity::AccountOfUsername` (r:1 w:1)
403
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
404
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
405
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
406
	fn remove_dangling_username() -> Weight {
407
		// Proof Size summary in bytes:
408
		//  Measured:  `86`
409
		//  Estimated: `11025`
410
		// Minimum execution time: 13_272_000 picoseconds.
411
		Weight::from_parts(13_658_000, 11025)
412
			.saturating_add(T::DbWeight::get().reads(2_u64))
413
			.saturating_add(T::DbWeight::get().writes(1_u64))
414
	}
415
}