1
// Copyright (C) Moondance Labs Ltd.
2
// This file is part of Tanssi.
3

            
4
// Tanssi 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
// Tanssi 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 Tanssi.  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 42.0.0
21
//! DATE: 2024-09-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `benchmark-1`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("starlight-dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// target/release/tanssi-relay
28
// benchmark
29
// pallet
30
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// pallet_identity
34
// --extrinsic
35
// *
36
// --chain=starlight-dev
37
// --steps
38
// 50
39
// --repeat
40
// 20
41
// --template=benchmarking/frame-weight-runtime-template.hbs
42
// --json-file
43
// raw.json
44
// --output
45
// tmp/starlight_weights/pallet_identity.rs
46

            
47
#![cfg_attr(rustfmt, rustfmt_skip)]
48
#![allow(unused_parens)]
49
#![allow(unused_imports)]
50

            
51
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
52
use sp_std::marker::PhantomData;
53

            
54
/// Weights for pallet_identity using the Substrate node and recommended hardware.
55
pub struct SubstrateWeight<T>(PhantomData<T>);
56
impl<T: frame_system::Config> pallet_identity::WeightInfo for SubstrateWeight<T> {
57
	/// Storage: `Identity::Registrars` (r:1 w:1)
58
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
59
	/// The range of component `r` is `[1, 19]`.
60
	fn add_registrar(r: u32, ) -> Weight {
61
		// Proof Size summary in bytes:
62
		//  Measured:  `32 + r * (57 ±0)`
63
		//  Estimated: `2626`
64
		// Minimum execution time: 10_235_000 picoseconds.
65
		Weight::from_parts(10_833_236, 2626)
66
			// Standard Error: 1_383
67
			.saturating_add(Weight::from_parts(86_056, 0).saturating_mul(r.into()))
68
			.saturating_add(T::DbWeight::get().reads(1_u64))
69
			.saturating_add(T::DbWeight::get().writes(1_u64))
70
	}
71
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
72
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
73
	/// The range of component `r` is `[1, 20]`.
74
	fn set_identity(r: u32, ) -> Weight {
75
		// Proof Size summary in bytes:
76
		//  Measured:  `6978 + r * (5 ±0)`
77
		//  Estimated: `11037`
78
		// Minimum execution time: 145_628_000 picoseconds.
79
		Weight::from_parts(147_680_420, 11037)
80
			// Standard Error: 5_077
81
			.saturating_add(Weight::from_parts(209_305, 0).saturating_mul(r.into()))
82
			.saturating_add(T::DbWeight::get().reads(1_u64))
83
			.saturating_add(T::DbWeight::get().writes(1_u64))
84
	}
85
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
86
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
87
	/// Storage: `Identity::SubsOf` (r:1 w:1)
88
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
89
	/// Storage: `Identity::SuperOf` (r:100 w:100)
90
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
91
	/// The range of component `s` is `[0, 100]`.
92
	fn set_subs_new(s: u32, ) -> Weight {
93
		// Proof Size summary in bytes:
94
		//  Measured:  `101`
95
		//  Estimated: `11037 + s * (2589 ±0)`
96
		// Minimum execution time: 11_873_000 picoseconds.
97
		Weight::from_parts(29_831_881, 11037)
98
			// Standard Error: 6_259
99
			.saturating_add(Weight::from_parts(4_291_382, 0).saturating_mul(s.into()))
100
			.saturating_add(T::DbWeight::get().reads(2_u64))
101
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
102
			.saturating_add(T::DbWeight::get().writes(1_u64))
103
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
104
			.saturating_add(Weight::from_parts(0, 2589).saturating_mul(s.into()))
105
	}
106
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
107
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
108
	/// Storage: `Identity::SubsOf` (r:1 w:1)
109
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
110
	/// Storage: `Identity::SuperOf` (r:0 w:100)
111
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
112
	/// The range of component `p` is `[0, 100]`.
113
	fn set_subs_old(p: u32, ) -> Weight {
114
		// Proof Size summary in bytes:
115
		//  Measured:  `194 + p * (32 ±0)`
116
		//  Estimated: `11037`
117
		// Minimum execution time: 11_819_000 picoseconds.
118
		Weight::from_parts(29_017_103, 11037)
119
			// Standard Error: 4_633
120
			.saturating_add(Weight::from_parts(1_750_498, 0).saturating_mul(p.into()))
121
			.saturating_add(T::DbWeight::get().reads(2_u64))
122
			.saturating_add(T::DbWeight::get().writes(1_u64))
123
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
124
	}
125
	/// Storage: `Identity::SubsOf` (r:1 w:1)
126
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
127
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
128
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
129
	/// Storage: `Identity::SuperOf` (r:0 w:100)
130
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
131
	/// The range of component `r` is `[1, 20]`.
132
	/// The range of component `s` is `[0, 100]`.
133
	fn clear_identity(r: u32, s: u32, ) -> Weight {
134
		// Proof Size summary in bytes:
135
		//  Measured:  `7070 + r * (5 ±0) + s * (32 ±0)`
136
		//  Estimated: `11037`
137
		// Minimum execution time: 69_615_000 picoseconds.
138
		Weight::from_parts(63_697_943, 11037)
139
			// Standard Error: 15_959
140
			.saturating_add(Weight::from_parts(507_124, 0).saturating_mul(r.into()))
141
			// Standard Error: 3_114
142
			.saturating_add(Weight::from_parts(1_851_666, 0).saturating_mul(s.into()))
143
			.saturating_add(T::DbWeight::get().reads(2_u64))
144
			.saturating_add(T::DbWeight::get().writes(2_u64))
145
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
146
	}
147
	/// Storage: `Identity::Registrars` (r:1 w:0)
148
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
149
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
150
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
151
	/// The range of component `r` is `[1, 20]`.
152
	fn request_judgement(r: u32, ) -> Weight {
153
		// Proof Size summary in bytes:
154
		//  Measured:  `6968 + r * (57 ±0)`
155
		//  Estimated: `11037`
156
		// Minimum execution time: 101_366_000 picoseconds.
157
		Weight::from_parts(103_655_524, 11037)
158
			// Standard Error: 4_666
159
			.saturating_add(Weight::from_parts(158_128, 0).saturating_mul(r.into()))
160
			.saturating_add(T::DbWeight::get().reads(2_u64))
161
			.saturating_add(T::DbWeight::get().writes(1_u64))
162
	}
163
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
164
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
165
	/// The range of component `r` is `[1, 20]`.
166
	fn cancel_request(r: u32, ) -> Weight {
167
		// Proof Size summary in bytes:
168
		//  Measured:  `6999`
169
		//  Estimated: `11037`
170
		// Minimum execution time: 100_420_000 picoseconds.
171
		Weight::from_parts(101_608_172, 11037)
172
			// Standard Error: 3_494
173
			.saturating_add(Weight::from_parts(136_333, 0).saturating_mul(r.into()))
174
			.saturating_add(T::DbWeight::get().reads(1_u64))
175
			.saturating_add(T::DbWeight::get().writes(1_u64))
176
	}
177
	/// Storage: `Identity::Registrars` (r:1 w:1)
178
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
179
	/// The range of component `r` is `[1, 19]`.
180
	fn set_fee(r: u32, ) -> Weight {
181
		// Proof Size summary in bytes:
182
		//  Measured:  `89 + r * (57 ±0)`
183
		//  Estimated: `2626`
184
		// Minimum execution time: 7_198_000 picoseconds.
185
		Weight::from_parts(7_758_993, 2626)
186
			// Standard Error: 1_039
187
			.saturating_add(Weight::from_parts(68_143, 0).saturating_mul(r.into()))
188
			.saturating_add(T::DbWeight::get().reads(1_u64))
189
			.saturating_add(T::DbWeight::get().writes(1_u64))
190
	}
191
	/// Storage: `Identity::Registrars` (r:1 w:1)
192
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
193
	/// The range of component `r` is `[1, 19]`.
194
	fn set_account_id(r: u32, ) -> Weight {
195
		// Proof Size summary in bytes:
196
		//  Measured:  `89 + r * (57 ±0)`
197
		//  Estimated: `2626`
198
		// Minimum execution time: 7_439_000 picoseconds.
199
		Weight::from_parts(7_865_213, 2626)
200
			// Standard Error: 805
201
			.saturating_add(Weight::from_parts(74_497, 0).saturating_mul(r.into()))
202
			.saturating_add(T::DbWeight::get().reads(1_u64))
203
			.saturating_add(T::DbWeight::get().writes(1_u64))
204
	}
205
	/// Storage: `Identity::Registrars` (r:1 w:1)
206
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
207
	/// The range of component `r` is `[1, 19]`.
208
	fn set_fields(r: u32, ) -> Weight {
209
		// Proof Size summary in bytes:
210
		//  Measured:  `89 + r * (57 ±0)`
211
		//  Estimated: `2626`
212
		// Minimum execution time: 7_328_000 picoseconds.
213
		Weight::from_parts(7_876_214, 2626)
214
			// Standard Error: 1_001
215
			.saturating_add(Weight::from_parts(63_765, 0).saturating_mul(r.into()))
216
			.saturating_add(T::DbWeight::get().reads(1_u64))
217
			.saturating_add(T::DbWeight::get().writes(1_u64))
218
	}
219
	/// Storage: `Identity::Registrars` (r:1 w:0)
220
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
221
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
222
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
223
	/// The range of component `r` is `[1, 19]`.
224
	fn provide_judgement(r: u32, ) -> Weight {
225
		// Proof Size summary in bytes:
226
		//  Measured:  `7046 + r * (57 ±0)`
227
		//  Estimated: `11037`
228
		// Minimum execution time: 127_829_000 picoseconds.
229
		Weight::from_parts(130_034_976, 11037)
230
			// Standard Error: 3_564
231
			.saturating_add(Weight::from_parts(125_920, 0).saturating_mul(r.into()))
232
			.saturating_add(T::DbWeight::get().reads(2_u64))
233
			.saturating_add(T::DbWeight::get().writes(1_u64))
234
	}
235
	/// Storage: `Identity::SubsOf` (r:1 w:1)
236
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
237
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
238
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
239
	/// Storage: `System::Account` (r:1 w:1)
240
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
241
	/// Storage: `Identity::SuperOf` (r:0 w:100)
242
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
243
	/// The range of component `r` is `[1, 20]`.
244
	/// The range of component `s` is `[0, 100]`.
245
	fn kill_identity(r: u32, s: u32, ) -> Weight {
246
		// Proof Size summary in bytes:
247
		//  Measured:  `7277 + r * (5 ±0) + s * (32 ±0)`
248
		//  Estimated: `11037`
249
		// Minimum execution time: 86_360_000 picoseconds.
250
		Weight::from_parts(83_277_858, 11037)
251
			// Standard Error: 18_443
252
			.saturating_add(Weight::from_parts(542_956, 0).saturating_mul(r.into()))
253
			// Standard Error: 3_598
254
			.saturating_add(Weight::from_parts(1_846_889, 0).saturating_mul(s.into()))
255
			.saturating_add(T::DbWeight::get().reads(3_u64))
256
			.saturating_add(T::DbWeight::get().writes(3_u64))
257
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
258
	}
259
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
260
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
261
	/// Storage: `Identity::SuperOf` (r:1 w:1)
262
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
263
	/// Storage: `Identity::SubsOf` (r:1 w:1)
264
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
265
	/// The range of component `s` is `[0, 99]`.
266
	fn add_sub(s: u32, ) -> Weight {
267
		// Proof Size summary in bytes:
268
		//  Measured:  `475 + s * (36 ±0)`
269
		//  Estimated: `11037`
270
		// Minimum execution time: 34_384_000 picoseconds.
271
		Weight::from_parts(39_103_156, 11037)
272
			// Standard Error: 1_831
273
			.saturating_add(Weight::from_parts(146_623, 0).saturating_mul(s.into()))
274
			.saturating_add(T::DbWeight::get().reads(3_u64))
275
			.saturating_add(T::DbWeight::get().writes(2_u64))
276
	}
277
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
278
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
279
	/// Storage: `Identity::SuperOf` (r:1 w:1)
280
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
281
	/// The range of component `s` is `[1, 100]`.
282
	fn rename_sub(s: u32, ) -> Weight {
283
		// Proof Size summary in bytes:
284
		//  Measured:  `591 + s * (3 ±0)`
285
		//  Estimated: `11037`
286
		// Minimum execution time: 15_654_000 picoseconds.
287
		Weight::from_parts(19_523_944, 11037)
288
			// Standard Error: 903
289
			.saturating_add(Weight::from_parts(57_808, 0).saturating_mul(s.into()))
290
			.saturating_add(T::DbWeight::get().reads(2_u64))
291
			.saturating_add(T::DbWeight::get().writes(1_u64))
292
	}
293
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
294
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
295
	/// Storage: `Identity::SuperOf` (r:1 w:1)
296
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
297
	/// Storage: `Identity::SubsOf` (r:1 w:1)
298
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
299
	/// The range of component `s` is `[1, 100]`.
300
	fn remove_sub(s: u32, ) -> Weight {
301
		// Proof Size summary in bytes:
302
		//  Measured:  `638 + s * (35 ±0)`
303
		//  Estimated: `11037`
304
		// Minimum execution time: 40_797_000 picoseconds.
305
		Weight::from_parts(43_203_809, 11037)
306
			// Standard Error: 834
307
			.saturating_add(Weight::from_parts(112_747, 0).saturating_mul(s.into()))
308
			.saturating_add(T::DbWeight::get().reads(3_u64))
309
			.saturating_add(T::DbWeight::get().writes(2_u64))
310
	}
311
	/// Storage: `Identity::SuperOf` (r:1 w:1)
312
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
313
	/// Storage: `Identity::SubsOf` (r:1 w:1)
314
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
315
	/// Storage: `System::Account` (r:1 w:0)
316
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
317
	/// The range of component `s` is `[0, 99]`.
318
	fn quit_sub(s: u32, ) -> Weight {
319
		// Proof Size summary in bytes:
320
		//  Measured:  `704 + s * (37 ±0)`
321
		//  Estimated: `6723`
322
		// Minimum execution time: 29_596_000 picoseconds.
323
		Weight::from_parts(31_795_517, 6723)
324
			// Standard Error: 726
325
			.saturating_add(Weight::from_parts(100_181, 0).saturating_mul(s.into()))
326
			.saturating_add(T::DbWeight::get().reads(3_u64))
327
			.saturating_add(T::DbWeight::get().writes(2_u64))
328
	}
329
	/// Storage: `Identity::UsernameAuthorities` (r:0 w:1)
330
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
331
	fn add_username_authority() -> Weight {
332
		// Proof Size summary in bytes:
333
		//  Measured:  `0`
334
		//  Estimated: `0`
335
		// Minimum execution time: 8_690_000 picoseconds.
336
		Weight::from_parts(8_915_000, 0)
337
			.saturating_add(T::DbWeight::get().writes(1_u64))
338
	}
339
	/// Storage: `Identity::UsernameAuthorities` (r:1 w:1)
340
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
341
	fn remove_username_authority() -> Weight {
342
		// Proof Size summary in bytes:
343
		//  Measured:  `80`
344
		//  Estimated: `3517`
345
		// Minimum execution time: 11_650_000 picoseconds.
346
		Weight::from_parts(11_964_000, 3517)
347
			.saturating_add(T::DbWeight::get().reads(1_u64))
348
			.saturating_add(T::DbWeight::get().writes(1_u64))
349
	}
350
	/// Storage: `Identity::UsernameAuthorities` (r:1 w:1)
351
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
352
	/// Storage: `Identity::AccountOfUsername` (r:1 w:1)
353
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
354
	/// Storage: `Identity::PendingUsernames` (r:1 w:0)
355
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
356
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
357
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
358
	fn set_username_for() -> Weight {
359
		// Proof Size summary in bytes:
360
		//  Measured:  `80`
361
		//  Estimated: `11037`
362
		// Minimum execution time: 71_575_000 picoseconds.
363
		Weight::from_parts(73_045_000, 11037)
364
			.saturating_add(T::DbWeight::get().reads(4_u64))
365
			.saturating_add(T::DbWeight::get().writes(3_u64))
366
	}
367
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
368
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
369
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
370
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
371
	/// Storage: `Identity::AccountOfUsername` (r:0 w:1)
372
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
373
	fn accept_username() -> Weight {
374
		// Proof Size summary in bytes:
375
		//  Measured:  `115`
376
		//  Estimated: `11037`
377
		// Minimum execution time: 25_906_000 picoseconds.
378
		Weight::from_parts(26_431_000, 11037)
379
			.saturating_add(T::DbWeight::get().reads(2_u64))
380
			.saturating_add(T::DbWeight::get().writes(3_u64))
381
	}
382
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
383
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
384
	fn remove_expired_approval() -> Weight {
385
		// Proof Size summary in bytes:
386
		//  Measured:  `115`
387
		//  Estimated: `3550`
388
		// Minimum execution time: 17_426_000 picoseconds.
389
		Weight::from_parts(19_360_000, 3550)
390
			.saturating_add(T::DbWeight::get().reads(1_u64))
391
			.saturating_add(T::DbWeight::get().writes(1_u64))
392
	}
393
	/// Storage: `Identity::AccountOfUsername` (r:1 w:0)
394
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
395
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
396
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
397
	fn set_primary_username() -> Weight {
398
		// Proof Size summary in bytes:
399
		//  Measured:  `257`
400
		//  Estimated: `11037`
401
		// Minimum execution time: 20_659_000 picoseconds.
402
		Weight::from_parts(21_107_000, 11037)
403
			.saturating_add(T::DbWeight::get().reads(2_u64))
404
			.saturating_add(T::DbWeight::get().writes(1_u64))
405
	}
406
	/// Storage: `Identity::AccountOfUsername` (r:1 w:1)
407
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
408
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
409
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
410
	fn remove_dangling_username() -> Weight {
411
		// Proof Size summary in bytes:
412
		//  Measured:  `98`
413
		//  Estimated: `11037`
414
		// Minimum execution time: 14_312_000 picoseconds.
415
		Weight::from_parts(14_612_000, 11037)
416
			.saturating_add(T::DbWeight::get().reads(2_u64))
417
			.saturating_add(T::DbWeight::get().writes(1_u64))
418
	}
419
}