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 43.0.0
20
//! DATE: 2025-02-04, 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: None, DB CACHE: 1024
24

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

            
41
#![cfg_attr(rustfmt, rustfmt_skip)]
42
#![allow(unused_parens)]
43
#![allow(unused_imports)]
44

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

            
48
/// Weights for `pallet_identity`.
49
pub struct WeightInfo<T>(PhantomData<T>);
50
impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> {
51
	/// Storage: `Identity::Registrars` (r:1 w:1)
52
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
53
	/// The range of component `r` is `[1, 19]`.
54
	fn add_registrar(r: u32, ) -> Weight {
55
		// Proof Size summary in bytes:
56
		//  Measured:  `32 + r * (45 ±0)`
57
		//  Estimated: `2386`
58
		// Minimum execution time: 9_594_000 picoseconds.
59
		Weight::from_parts(9_965_966, 2386)
60
			// Standard Error: 1_205
61
			.saturating_add(Weight::from_parts(112_974, 0).saturating_mul(r.into()))
62
			.saturating_add(T::DbWeight::get().reads(1_u64))
63
			.saturating_add(T::DbWeight::get().writes(1_u64))
64
	}
65
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
66
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
67
	/// The range of component `r` is `[1, 20]`.
68
	fn set_identity(r: u32, ) -> Weight {
69
		// Proof Size summary in bytes:
70
		//  Measured:  `6966 + r * (5 ±0)`
71
		//  Estimated: `11025`
72
		// Minimum execution time: 106_975_000 picoseconds.
73
		Weight::from_parts(109_114_328, 11025)
74
			// Standard Error: 4_067
75
			.saturating_add(Weight::from_parts(179_535, 0).saturating_mul(r.into()))
76
			.saturating_add(T::DbWeight::get().reads(1_u64))
77
			.saturating_add(T::DbWeight::get().writes(1_u64))
78
	}
79
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
80
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
81
	/// Storage: `Identity::SubsOf` (r:1 w:1)
82
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
83
	/// Storage: `Identity::SuperOf` (r:100 w:100)
84
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
85
	/// The range of component `s` is `[0, 100]`.
86
	fn set_subs_new(s: u32, ) -> Weight {
87
		// Proof Size summary in bytes:
88
		//  Measured:  `89`
89
		//  Estimated: `11025 + s * (2565 ±0)`
90
		// Minimum execution time: 10_224_000 picoseconds.
91
		Weight::from_parts(25_999_378, 11025)
92
			// Standard Error: 5_422
93
			.saturating_add(Weight::from_parts(3_415_197, 0).saturating_mul(s.into()))
94
			.saturating_add(T::DbWeight::get().reads(2_u64))
95
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
96
			.saturating_add(T::DbWeight::get().writes(1_u64))
97
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
98
			.saturating_add(Weight::from_parts(0, 2565).saturating_mul(s.into()))
99
	}
100
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
101
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
102
	/// Storage: `Identity::SubsOf` (r:1 w:1)
103
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
104
	/// Storage: `Identity::SuperOf` (r:0 w:100)
105
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
106
	/// The range of component `p` is `[0, 100]`.
107
	fn set_subs_old(p: u32, ) -> Weight {
108
		// Proof Size summary in bytes:
109
		//  Measured:  `169 + p * (20 ±0)`
110
		//  Estimated: `11025`
111
		// Minimum execution time: 10_139_000 picoseconds.
112
		Weight::from_parts(25_776_832, 11025)
113
			// Standard Error: 3_713
114
			.saturating_add(Weight::from_parts(1_421_972, 0).saturating_mul(p.into()))
115
			.saturating_add(T::DbWeight::get().reads(2_u64))
116
			.saturating_add(T::DbWeight::get().writes(1_u64))
117
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
118
	}
119
	/// Storage: `Identity::SubsOf` (r:1 w:1)
120
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
121
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
122
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
123
	/// Storage: `Identity::SuperOf` (r:0 w:100)
124
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
125
	/// The range of component `r` is `[1, 20]`.
126
	/// The range of component `s` is `[0, 100]`.
127
	fn clear_identity(r: u32, s: u32, ) -> Weight {
128
		// Proof Size summary in bytes:
129
		//  Measured:  `7046 + r * (5 ±0) + s * (20 ±0)`
130
		//  Estimated: `11025`
131
		// Minimum execution time: 56_818_000 picoseconds.
132
		Weight::from_parts(63_193_921, 11025)
133
			// Standard Error: 15_657
134
			.saturating_add(Weight::from_parts(94_000, 0).saturating_mul(r.into()))
135
			// Standard Error: 3_055
136
			.saturating_add(Weight::from_parts(1_385_756, 0).saturating_mul(s.into()))
137
			.saturating_add(T::DbWeight::get().reads(2_u64))
138
			.saturating_add(T::DbWeight::get().writes(2_u64))
139
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
140
	}
141
	/// Storage: `Identity::Registrars` (r:1 w:0)
142
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
143
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
144
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
145
	/// The range of component `r` is `[1, 20]`.
146
	fn request_judgement(r: u32, ) -> Weight {
147
		// Proof Size summary in bytes:
148
		//  Measured:  `6956 + r * (45 ±0)`
149
		//  Estimated: `11025`
150
		// Minimum execution time: 80_997_000 picoseconds.
151
		Weight::from_parts(83_141_592, 11025)
152
			// Standard Error: 3_960
153
			.saturating_add(Weight::from_parts(179_228, 0).saturating_mul(r.into()))
154
			.saturating_add(T::DbWeight::get().reads(2_u64))
155
			.saturating_add(T::DbWeight::get().writes(1_u64))
156
	}
157
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
158
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
159
	/// The range of component `r` is `[1, 20]`.
160
	fn cancel_request(r: u32, ) -> Weight {
161
		// Proof Size summary in bytes:
162
		//  Measured:  `6987`
163
		//  Estimated: `11025`
164
		// Minimum execution time: 75_704_000 picoseconds.
165
		Weight::from_parts(77_621_066, 11025)
166
			// Standard Error: 3_584
167
			.saturating_add(Weight::from_parts(119_025, 0).saturating_mul(r.into()))
168
			.saturating_add(T::DbWeight::get().reads(1_u64))
169
			.saturating_add(T::DbWeight::get().writes(1_u64))
170
	}
171
	/// Storage: `Identity::Registrars` (r:1 w:1)
172
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
173
	/// The range of component `r` is `[1, 19]`.
174
	fn set_fee(r: u32, ) -> Weight {
175
		// Proof Size summary in bytes:
176
		//  Measured:  `77 + r * (45 ±0)`
177
		//  Estimated: `2386`
178
		// Minimum execution time: 6_758_000 picoseconds.
179
		Weight::from_parts(7_321_474, 2386)
180
			// Standard Error: 920
181
			.saturating_add(Weight::from_parts(85_074, 0).saturating_mul(r.into()))
182
			.saturating_add(T::DbWeight::get().reads(1_u64))
183
			.saturating_add(T::DbWeight::get().writes(1_u64))
184
	}
185
	/// Storage: `Identity::Registrars` (r:1 w:1)
186
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
187
	/// The range of component `r` is `[1, 19]`.
188
	fn set_account_id(r: u32, ) -> Weight {
189
		// Proof Size summary in bytes:
190
		//  Measured:  `77 + r * (45 ±0)`
191
		//  Estimated: `2386`
192
		// Minimum execution time: 7_062_000 picoseconds.
193
		Weight::from_parts(7_412_431, 2386)
194
			// Standard Error: 969
195
			.saturating_add(Weight::from_parts(87_268, 0).saturating_mul(r.into()))
196
			.saturating_add(T::DbWeight::get().reads(1_u64))
197
			.saturating_add(T::DbWeight::get().writes(1_u64))
198
	}
199
	/// Storage: `Identity::Registrars` (r:1 w:1)
200
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
201
	/// The range of component `r` is `[1, 19]`.
202
	fn set_fields(r: u32, ) -> Weight {
203
		// Proof Size summary in bytes:
204
		//  Measured:  `77 + r * (45 ±0)`
205
		//  Estimated: `2386`
206
		// Minimum execution time: 6_996_000 picoseconds.
207
		Weight::from_parts(7_380_921, 2386)
208
			// Standard Error: 955
209
			.saturating_add(Weight::from_parts(86_063, 0).saturating_mul(r.into()))
210
			.saturating_add(T::DbWeight::get().reads(1_u64))
211
			.saturating_add(T::DbWeight::get().writes(1_u64))
212
	}
213
	/// Storage: `Identity::Registrars` (r:1 w:0)
214
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(901), added: 1396, mode: `MaxEncodedLen`)
215
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
216
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
217
	/// The range of component `r` is `[1, 19]`.
218
	fn provide_judgement(r: u32, ) -> Weight {
219
		// Proof Size summary in bytes:
220
		//  Measured:  `7022 + r * (45 ±0)`
221
		//  Estimated: `11025`
222
		// Minimum execution time: 98_611_000 picoseconds.
223
		Weight::from_parts(100_631_766, 11025)
224
			// Standard Error: 4_284
225
			.saturating_add(Weight::from_parts(154_459, 0).saturating_mul(r.into()))
226
			.saturating_add(T::DbWeight::get().reads(2_u64))
227
			.saturating_add(T::DbWeight::get().writes(1_u64))
228
	}
229
	/// Storage: `Identity::SubsOf` (r:1 w:1)
230
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
231
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
232
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
233
	/// Storage: `System::Account` (r:1 w:1)
234
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
235
	/// Storage: `Identity::SuperOf` (r:0 w:100)
236
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
237
	/// The range of component `r` is `[1, 20]`.
238
	/// The range of component `s` is `[0, 100]`.
239
	fn kill_identity(r: u32, s: u32, ) -> Weight {
240
		// Proof Size summary in bytes:
241
		//  Measured:  `7241 + r * (5 ±0) + s * (20 ±0)`
242
		//  Estimated: `11025`
243
		// Minimum execution time: 72_030_000 picoseconds.
244
		Weight::from_parts(76_981_161, 11025)
245
			// Standard Error: 11_306
246
			.saturating_add(Weight::from_parts(200_733, 0).saturating_mul(r.into()))
247
			// Standard Error: 2_206
248
			.saturating_add(Weight::from_parts(1_403_996, 0).saturating_mul(s.into()))
249
			.saturating_add(T::DbWeight::get().reads(3_u64))
250
			.saturating_add(T::DbWeight::get().writes(3_u64))
251
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
252
	}
253
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
254
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
255
	/// Storage: `Identity::SuperOf` (r:1 w:1)
256
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
257
	/// Storage: `Identity::SubsOf` (r:1 w:1)
258
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
259
	/// The range of component `s` is `[0, 99]`.
260
	fn add_sub(s: u32, ) -> Weight {
261
		// Proof Size summary in bytes:
262
		//  Measured:  `536 + s * (23 ±0)`
263
		//  Estimated: `11025`
264
		// Minimum execution time: 29_285_000 picoseconds.
265
		Weight::from_parts(38_538_123, 11025)
266
			// Standard Error: 2_112
267
			.saturating_add(Weight::from_parts(102_879, 0).saturating_mul(s.into()))
268
			.saturating_add(T::DbWeight::get().reads(3_u64))
269
			.saturating_add(T::DbWeight::get().writes(2_u64))
270
	}
271
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
272
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
273
	/// Storage: `Identity::SuperOf` (r:1 w:1)
274
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
275
	/// The range of component `s` is `[1, 100]`.
276
	fn rename_sub(s: u32, ) -> Weight {
277
		// Proof Size summary in bytes:
278
		//  Measured:  `615 + s * (4 ±0)`
279
		//  Estimated: `11025`
280
		// Minimum execution time: 17_105_000 picoseconds.
281
		Weight::from_parts(20_359_647, 11025)
282
			// Standard Error: 894
283
			.saturating_add(Weight::from_parts(69_924, 0).saturating_mul(s.into()))
284
			.saturating_add(T::DbWeight::get().reads(2_u64))
285
			.saturating_add(T::DbWeight::get().writes(1_u64))
286
	}
287
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
288
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
289
	/// Storage: `Identity::SuperOf` (r:1 w:1)
290
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
291
	/// Storage: `Identity::SubsOf` (r:1 w:1)
292
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
293
	/// The range of component `s` is `[1, 100]`.
294
	fn remove_sub(s: u32, ) -> Weight {
295
		// Proof Size summary in bytes:
296
		//  Measured:  `647 + s * (24 ±0)`
297
		//  Estimated: `11025`
298
		// Minimum execution time: 37_194_000 picoseconds.
299
		Weight::from_parts(41_250_918, 11025)
300
			// Standard Error: 1_185
301
			.saturating_add(Weight::from_parts(107_947, 0).saturating_mul(s.into()))
302
			.saturating_add(T::DbWeight::get().reads(3_u64))
303
			.saturating_add(T::DbWeight::get().writes(2_u64))
304
	}
305
	/// Storage: `Identity::SuperOf` (r:1 w:1)
306
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
307
	/// Storage: `Identity::SubsOf` (r:1 w:1)
308
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(2046), added: 4521, mode: `MaxEncodedLen`)
309
	/// Storage: `System::Account` (r:1 w:0)
310
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
311
	/// The range of component `s` is `[0, 99]`.
312
	fn quit_sub(s: u32, ) -> Weight {
313
		// Proof Size summary in bytes:
314
		//  Measured:  `620 + s * (24 ±0)`
315
		//  Estimated: `5511`
316
		// Minimum execution time: 27_158_000 picoseconds.
317
		Weight::from_parts(29_641_286, 5511)
318
			// Standard Error: 800
319
			.saturating_add(Weight::from_parts(90_635, 0).saturating_mul(s.into()))
320
			.saturating_add(T::DbWeight::get().reads(3_u64))
321
			.saturating_add(T::DbWeight::get().writes(2_u64))
322
	}
323
	/// Storage: `Identity::UsernameAuthorities` (r:0 w:1)
324
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
325
	fn add_username_authority() -> Weight {
326
		// Proof Size summary in bytes:
327
		//  Measured:  `0`
328
		//  Estimated: `0`
329
		// Minimum execution time: 6_754_000 picoseconds.
330
		Weight::from_parts(7_009_000, 0)
331
			.saturating_add(T::DbWeight::get().writes(1_u64))
332
	}
333
	/// Storage: `Identity::UsernameAuthorities` (r:1 w:1)
334
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
335
	fn remove_username_authority() -> Weight {
336
		// Proof Size summary in bytes:
337
		//  Measured:  `67`
338
		//  Estimated: `3505`
339
		// Minimum execution time: 10_240_000 picoseconds.
340
		Weight::from_parts(10_769_000, 3505)
341
			.saturating_add(T::DbWeight::get().reads(1_u64))
342
			.saturating_add(T::DbWeight::get().writes(1_u64))
343
	}
344
	/// Storage: `Identity::UsernameAuthorities` (r:1 w:1)
345
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
346
	/// Storage: `Identity::AccountOfUsername` (r:1 w:1)
347
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
348
	/// Storage: `Identity::PendingUsernames` (r:1 w:0)
349
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
350
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
351
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
352
	fn set_username_for() -> Weight {
353
		// Proof Size summary in bytes:
354
		//  Measured:  `67`
355
		//  Estimated: `11025`
356
		// Minimum execution time: 68_195_000 picoseconds.
357
		Weight::from_parts(70_389_000, 11025)
358
			.saturating_add(T::DbWeight::get().reads(4_u64))
359
			.saturating_add(T::DbWeight::get().writes(3_u64))
360
	}
361
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
362
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
363
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
364
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
365
	/// Storage: `Identity::AccountOfUsername` (r:0 w:1)
366
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
367
	fn accept_username() -> Weight {
368
		// Proof Size summary in bytes:
369
		//  Measured:  `101`
370
		//  Estimated: `11025`
371
		// Minimum execution time: 21_662_000 picoseconds.
372
		Weight::from_parts(22_048_000, 11025)
373
			.saturating_add(T::DbWeight::get().reads(2_u64))
374
			.saturating_add(T::DbWeight::get().writes(3_u64))
375
	}
376
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
377
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
378
	fn remove_expired_approval() -> Weight {
379
		// Proof Size summary in bytes:
380
		//  Measured:  `101`
381
		//  Estimated: `3538`
382
		// Minimum execution time: 13_969_000 picoseconds.
383
		Weight::from_parts(14_658_000, 3538)
384
			.saturating_add(T::DbWeight::get().reads(1_u64))
385
			.saturating_add(T::DbWeight::get().writes(1_u64))
386
	}
387
	/// Storage: `Identity::AccountOfUsername` (r:1 w:0)
388
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
389
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
390
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
391
	fn set_primary_username() -> Weight {
392
		// Proof Size summary in bytes:
393
		//  Measured:  `232`
394
		//  Estimated: `11025`
395
		// Minimum execution time: 18_422_000 picoseconds.
396
		Weight::from_parts(18_899_000, 11025)
397
			.saturating_add(T::DbWeight::get().reads(2_u64))
398
			.saturating_add(T::DbWeight::get().writes(1_u64))
399
	}
400
	/// Storage: `Identity::AccountOfUsername` (r:1 w:1)
401
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
402
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
403
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7560), added: 10035, mode: `MaxEncodedLen`)
404
	fn remove_dangling_username() -> Weight {
405
		// Proof Size summary in bytes:
406
		//  Measured:  `86`
407
		//  Estimated: `11025`
408
		// Minimum execution time: 12_954_000 picoseconds.
409
		Weight::from_parts(13_276_000, 11025)
410
			.saturating_add(T::DbWeight::get().reads(2_u64))
411
			.saturating_add(T::DbWeight::get().writes(1_u64))
412
	}
413
}