1
// This file is part of Substrate.
2

            
3
// Copyright (C) Parity Technologies (UK) Ltd.
4
// SPDX-License-Identifier: Apache-2.0
5

            
6
// Licensed under the Apache License, Version 2.0 (the "License");
7
// you may not use this file except in compliance with the License.
8
// You may obtain a copy of the License at
9
//
10
// 	http://www.apache.org/licenses/LICENSE-2.0
11
//
12
// Unless required by applicable law or agreed to in writing, software
13
// distributed under the License is distributed on an "AS IS" BASIS,
14
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
// See the License for the specific language governing permissions and
16
// limitations under the License.
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: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
24
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
25

            
26
// Executed Command:
27
// ./target/production/substrate-node
28
// benchmark
29
// pallet
30
// --chain=dev
31
// --steps=50
32
// --repeat=20
33
// --pallet=pallet_identity
34
// --no-storage-info
35
// --no-median-slopes
36
// --no-min-squares
37
// --extrinsic=*
38
// --wasm-execution=compiled
39
// --heap-pages=4096
40
// --output=./substrate/frame/identity/src/weights.rs
41
// --header=./substrate/HEADER-APACHE2
42
// --template=./substrate/.maintain/frame-weight-template.hbs
43

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

            
49
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
50
use core::marker::PhantomData;
51

            
52
/// Weight functions needed for `pallet_identity`.
53
pub trait WeightInfo {
54
	fn add_registrar(r: u32, ) -> Weight;
55
	fn set_identity(r: u32, ) -> Weight;
56
	fn set_subs_new(s: u32, ) -> Weight;
57
	fn set_subs_old(p: u32, ) -> Weight;
58
	fn clear_identity(r: u32, s: u32, ) -> Weight;
59
	fn request_judgement(r: u32, ) -> Weight;
60
	fn cancel_request(r: u32, ) -> Weight;
61
	fn set_fee(r: u32, ) -> Weight;
62
	fn set_account_id(r: u32, ) -> Weight;
63
	fn set_fields(r: u32, ) -> Weight;
64
	fn provide_judgement(r: u32, ) -> Weight;
65
	fn kill_identity(r: u32, s: u32, ) -> Weight;
66
	fn add_sub(s: u32, ) -> Weight;
67
	fn rename_sub(s: u32, ) -> Weight;
68
	fn remove_sub(s: u32, ) -> Weight;
69
	fn quit_sub(s: u32, ) -> Weight;
70
	fn add_username_authority() -> Weight;
71
	fn remove_username_authority() -> Weight;
72
	fn set_username_for() -> Weight;
73
	fn accept_username() -> Weight;
74
	fn remove_expired_approval() -> Weight;
75
	fn set_primary_username() -> Weight;
76
	fn remove_dangling_username() -> Weight;
77
}
78

            
79
/// Weights for `pallet_identity` using the Substrate node and recommended hardware.
80
pub struct SubstrateWeight<T>(PhantomData<T>);
81
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
82
	/// Storage: `Identity::Registrars` (r:1 w:1)
83
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
84
	/// The range of component `r` is `[1, 19]`.
85
	fn add_registrar(r: u32, ) -> Weight {
86
		// Proof Size summary in bytes:
87
		//  Measured:  `32 + r * (57 ±0)`
88
		//  Estimated: `2626`
89
		// Minimum execution time: 8_696_000 picoseconds.
90
		Weight::from_parts(9_620_793, 2626)
91
			// Standard Error: 1_909
92
			.saturating_add(Weight::from_parts(94_977, 0).saturating_mul(r.into()))
93
			.saturating_add(T::DbWeight::get().reads(1_u64))
94
			.saturating_add(T::DbWeight::get().writes(1_u64))
95
	}
96
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
97
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
98
	/// The range of component `r` is `[1, 20]`.
99
	fn set_identity(r: u32, ) -> Weight {
100
		// Proof Size summary in bytes:
101
		//  Measured:  `6978 + r * (5 ±0)`
102
		//  Estimated: `11037`
103
		// Minimum execution time: 110_950_000 picoseconds.
104
		Weight::from_parts(112_705_139, 11037)
105
			// Standard Error: 6_475
106
			.saturating_add(Weight::from_parts(212_737, 0).saturating_mul(r.into()))
107
			.saturating_add(T::DbWeight::get().reads(1_u64))
108
			.saturating_add(T::DbWeight::get().writes(1_u64))
109
	}
110
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
111
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
112
	/// Storage: `Identity::SubsOf` (r:1 w:1)
113
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
114
	/// Storage: `Identity::SuperOf` (r:100 w:100)
115
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
116
	/// The range of component `s` is `[0, 100]`.
117
	fn set_subs_new(s: u32, ) -> Weight {
118
		// Proof Size summary in bytes:
119
		//  Measured:  `101`
120
		//  Estimated: `11037 + s * (2589 ±0)`
121
		// Minimum execution time: 9_440_000 picoseconds.
122
		Weight::from_parts(23_266_871, 11037)
123
			// Standard Error: 10_640
124
			.saturating_add(Weight::from_parts(3_663_971, 0).saturating_mul(s.into()))
125
			.saturating_add(T::DbWeight::get().reads(2_u64))
126
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
127
			.saturating_add(T::DbWeight::get().writes(1_u64))
128
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
129
			.saturating_add(Weight::from_parts(0, 2589).saturating_mul(s.into()))
130
	}
131
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
132
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
133
	/// Storage: `Identity::SubsOf` (r:1 w:1)
134
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
135
	/// Storage: `Identity::SuperOf` (r:0 w:100)
136
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
137
	/// The range of component `p` is `[0, 100]`.
138
	fn set_subs_old(p: u32, ) -> Weight {
139
		// Proof Size summary in bytes:
140
		//  Measured:  `194 + p * (32 ±0)`
141
		//  Estimated: `11037`
142
		// Minimum execution time: 9_588_000 picoseconds.
143
		Weight::from_parts(22_403_362, 11037)
144
			// Standard Error: 3_359
145
			.saturating_add(Weight::from_parts(1_557_280, 0).saturating_mul(p.into()))
146
			.saturating_add(T::DbWeight::get().reads(2_u64))
147
			.saturating_add(T::DbWeight::get().writes(1_u64))
148
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
149
	}
150
	/// Storage: `Identity::SubsOf` (r:1 w:1)
151
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
152
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
153
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
154
	/// Storage: `Identity::SuperOf` (r:0 w:100)
155
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
156
	/// The range of component `r` is `[1, 20]`.
157
	/// The range of component `s` is `[0, 100]`.
158
	fn clear_identity(r: u32, s: u32, ) -> Weight {
159
		// Proof Size summary in bytes:
160
		//  Measured:  `7070 + r * (5 ±0) + s * (32 ±0)`
161
		//  Estimated: `11037`
162
		// Minimum execution time: 55_387_000 picoseconds.
163
		Weight::from_parts(52_575_769, 11037)
164
			// Standard Error: 17_705
165
			.saturating_add(Weight::from_parts(268_160, 0).saturating_mul(r.into()))
166
			// Standard Error: 3_454
167
			.saturating_add(Weight::from_parts(1_576_194, 0).saturating_mul(s.into()))
168
			.saturating_add(T::DbWeight::get().reads(2_u64))
169
			.saturating_add(T::DbWeight::get().writes(2_u64))
170
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
171
	}
172
	/// Storage: `Identity::Registrars` (r:1 w:0)
173
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
174
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
175
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
176
	/// The range of component `r` is `[1, 20]`.
177
	fn request_judgement(r: u32, ) -> Weight {
178
		// Proof Size summary in bytes:
179
		//  Measured:  `6968 + r * (57 ±0)`
180
		//  Estimated: `11037`
181
		// Minimum execution time: 78_243_000 picoseconds.
182
		Weight::from_parts(80_404_226, 11037)
183
			// Standard Error: 5_153
184
			.saturating_add(Weight::from_parts(149_799, 0).saturating_mul(r.into()))
185
			.saturating_add(T::DbWeight::get().reads(2_u64))
186
			.saturating_add(T::DbWeight::get().writes(1_u64))
187
	}
188
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
189
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
190
	/// The range of component `r` is `[1, 20]`.
191
	fn cancel_request(r: u32, ) -> Weight {
192
		// Proof Size summary in bytes:
193
		//  Measured:  `6999`
194
		//  Estimated: `11037`
195
		// Minimum execution time: 73_360_000 picoseconds.
196
		Weight::from_parts(76_216_374, 11037)
197
			// Standard Error: 15_603
198
			.saturating_add(Weight::from_parts(189_080, 0).saturating_mul(r.into()))
199
			.saturating_add(T::DbWeight::get().reads(1_u64))
200
			.saturating_add(T::DbWeight::get().writes(1_u64))
201
	}
202
	/// Storage: `Identity::Registrars` (r:1 w:1)
203
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
204
	/// The range of component `r` is `[1, 19]`.
205
	fn set_fee(r: u32, ) -> Weight {
206
		// Proof Size summary in bytes:
207
		//  Measured:  `89 + r * (57 ±0)`
208
		//  Estimated: `2626`
209
		// Minimum execution time: 6_287_000 picoseconds.
210
		Weight::from_parts(6_721_854, 2626)
211
			// Standard Error: 1_488
212
			.saturating_add(Weight::from_parts(96_288, 0).saturating_mul(r.into()))
213
			.saturating_add(T::DbWeight::get().reads(1_u64))
214
			.saturating_add(T::DbWeight::get().writes(1_u64))
215
	}
216
	/// Storage: `Identity::Registrars` (r:1 w:1)
217
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
218
	/// The range of component `r` is `[1, 19]`.
219
	fn set_account_id(r: u32, ) -> Weight {
220
		// Proof Size summary in bytes:
221
		//  Measured:  `89 + r * (57 ±0)`
222
		//  Estimated: `2626`
223
		// Minimum execution time: 6_441_000 picoseconds.
224
		Weight::from_parts(6_864_863, 2626)
225
			// Standard Error: 1_403
226
			.saturating_add(Weight::from_parts(85_123, 0).saturating_mul(r.into()))
227
			.saturating_add(T::DbWeight::get().reads(1_u64))
228
			.saturating_add(T::DbWeight::get().writes(1_u64))
229
	}
230
	/// Storage: `Identity::Registrars` (r:1 w:1)
231
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
232
	/// The range of component `r` is `[1, 19]`.
233
	fn set_fields(r: u32, ) -> Weight {
234
		// Proof Size summary in bytes:
235
		//  Measured:  `89 + r * (57 ±0)`
236
		//  Estimated: `2626`
237
		// Minimum execution time: 6_249_000 picoseconds.
238
		Weight::from_parts(6_658_251, 2626)
239
			// Standard Error: 1_443
240
			.saturating_add(Weight::from_parts(92_586, 0).saturating_mul(r.into()))
241
			.saturating_add(T::DbWeight::get().reads(1_u64))
242
			.saturating_add(T::DbWeight::get().writes(1_u64))
243
	}
244
	/// Storage: `Identity::Registrars` (r:1 w:0)
245
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
246
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
247
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
248
	/// The range of component `r` is `[1, 19]`.
249
	fn provide_judgement(r: u32, ) -> Weight {
250
		// Proof Size summary in bytes:
251
		//  Measured:  `7046 + r * (57 ±0)`
252
		//  Estimated: `11037`
253
		// Minimum execution time: 97_969_000 picoseconds.
254
		Weight::from_parts(101_366_385, 11037)
255
			// Standard Error: 19_594
256
			.saturating_add(Weight::from_parts(103_251, 0).saturating_mul(r.into()))
257
			.saturating_add(T::DbWeight::get().reads(2_u64))
258
			.saturating_add(T::DbWeight::get().writes(1_u64))
259
	}
260
	/// Storage: `Identity::SubsOf` (r:1 w:1)
261
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
262
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
263
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
264
	/// Storage: `System::Account` (r:1 w:1)
265
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
266
	/// Storage: `Identity::SuperOf` (r:0 w:100)
267
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
268
	/// The range of component `r` is `[1, 20]`.
269
	/// The range of component `s` is `[0, 100]`.
270
	fn kill_identity(r: u32, s: u32, ) -> Weight {
271
		// Proof Size summary in bytes:
272
		//  Measured:  `7277 + r * (5 ±0) + s * (32 ±0)`
273
		//  Estimated: `11037`
274
		// Minimum execution time: 73_785_000 picoseconds.
275
		Weight::from_parts(73_606_063, 11037)
276
			// Standard Error: 26_433
277
			.saturating_add(Weight::from_parts(230_018, 0).saturating_mul(r.into()))
278
			// Standard Error: 5_157
279
			.saturating_add(Weight::from_parts(1_483_326, 0).saturating_mul(s.into()))
280
			.saturating_add(T::DbWeight::get().reads(3_u64))
281
			.saturating_add(T::DbWeight::get().writes(3_u64))
282
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
283
	}
284
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
285
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
286
	/// Storage: `Identity::SuperOf` (r:1 w:1)
287
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
288
	/// Storage: `Identity::SubsOf` (r:1 w:1)
289
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
290
	/// The range of component `s` is `[0, 99]`.
291
	fn add_sub(s: u32, ) -> Weight {
292
		// Proof Size summary in bytes:
293
		//  Measured:  `475 + s * (36 ±0)`
294
		//  Estimated: `11037`
295
		// Minimum execution time: 27_304_000 picoseconds.
296
		Weight::from_parts(31_677_329, 11037)
297
			// Standard Error: 1_388
298
			.saturating_add(Weight::from_parts(102_193, 0).saturating_mul(s.into()))
299
			.saturating_add(T::DbWeight::get().reads(3_u64))
300
			.saturating_add(T::DbWeight::get().writes(2_u64))
301
	}
302
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
303
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
304
	/// Storage: `Identity::SuperOf` (r:1 w:1)
305
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
306
	/// The range of component `s` is `[1, 100]`.
307
	fn rename_sub(s: u32, ) -> Weight {
308
		// Proof Size summary in bytes:
309
		//  Measured:  `591 + s * (3 ±0)`
310
		//  Estimated: `11037`
311
		// Minimum execution time: 12_925_000 picoseconds.
312
		Weight::from_parts(14_756_477, 11037)
313
			// Standard Error: 646
314
			.saturating_add(Weight::from_parts(36_734, 0).saturating_mul(s.into()))
315
			.saturating_add(T::DbWeight::get().reads(2_u64))
316
			.saturating_add(T::DbWeight::get().writes(1_u64))
317
	}
318
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
319
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
320
	/// Storage: `Identity::SuperOf` (r:1 w:1)
321
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
322
	/// Storage: `Identity::SubsOf` (r:1 w:1)
323
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
324
	/// The range of component `s` is `[1, 100]`.
325
	fn remove_sub(s: u32, ) -> Weight {
326
		// Proof Size summary in bytes:
327
		//  Measured:  `638 + s * (35 ±0)`
328
		//  Estimated: `11037`
329
		// Minimum execution time: 30_475_000 picoseconds.
330
		Weight::from_parts(33_821_774, 11037)
331
			// Standard Error: 1_012
332
			.saturating_add(Weight::from_parts(87_704, 0).saturating_mul(s.into()))
333
			.saturating_add(T::DbWeight::get().reads(3_u64))
334
			.saturating_add(T::DbWeight::get().writes(2_u64))
335
	}
336
	/// Storage: `Identity::SuperOf` (r:1 w:1)
337
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
338
	/// Storage: `Identity::SubsOf` (r:1 w:1)
339
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
340
	/// Storage: `System::Account` (r:1 w:0)
341
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
342
	/// The range of component `s` is `[0, 99]`.
343
	fn quit_sub(s: u32, ) -> Weight {
344
		// Proof Size summary in bytes:
345
		//  Measured:  `704 + s * (37 ±0)`
346
		//  Estimated: `6723`
347
		// Minimum execution time: 22_841_000 picoseconds.
348
		Weight::from_parts(25_781_412, 6723)
349
			// Standard Error: 1_145
350
			.saturating_add(Weight::from_parts(84_692, 0).saturating_mul(s.into()))
351
			.saturating_add(T::DbWeight::get().reads(3_u64))
352
			.saturating_add(T::DbWeight::get().writes(2_u64))
353
	}
354
	/// Storage: `Identity::UsernameAuthorities` (r:0 w:1)
355
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
356
	fn add_username_authority() -> Weight {
357
		// Proof Size summary in bytes:
358
		//  Measured:  `0`
359
		//  Estimated: `0`
360
		// Minimum execution time: 6_983_000 picoseconds.
361
		Weight::from_parts(7_388_000, 0)
362
			.saturating_add(T::DbWeight::get().writes(1_u64))
363
	}
364
	/// Storage: `Identity::UsernameAuthorities` (r:1 w:1)
365
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
366
	fn remove_username_authority() -> Weight {
367
		// Proof Size summary in bytes:
368
		//  Measured:  `80`
369
		//  Estimated: `3517`
370
		// Minimum execution time: 9_717_000 picoseconds.
371
		Weight::from_parts(10_322_000, 3517)
372
			.saturating_add(T::DbWeight::get().reads(1_u64))
373
			.saturating_add(T::DbWeight::get().writes(1_u64))
374
	}
375
	/// Storage: `Identity::UsernameAuthorities` (r:1 w:1)
376
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
377
	/// Storage: `Identity::AccountOfUsername` (r:1 w:1)
378
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
379
	/// Storage: `Identity::PendingUsernames` (r:1 w:0)
380
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
381
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
382
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
383
	fn set_username_for() -> Weight {
384
		// Proof Size summary in bytes:
385
		//  Measured:  `80`
386
		//  Estimated: `11037`
387
		// Minimum execution time: 70_714_000 picoseconds.
388
		Weight::from_parts(74_990_000, 11037)
389
			.saturating_add(T::DbWeight::get().reads(4_u64))
390
			.saturating_add(T::DbWeight::get().writes(3_u64))
391
	}
392
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
393
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
394
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
395
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
396
	/// Storage: `Identity::AccountOfUsername` (r:0 w:1)
397
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
398
	fn accept_username() -> Weight {
399
		// Proof Size summary in bytes:
400
		//  Measured:  `115`
401
		//  Estimated: `11037`
402
		// Minimum execution time: 21_996_000 picoseconds.
403
		Weight::from_parts(22_611_000, 11037)
404
			.saturating_add(T::DbWeight::get().reads(2_u64))
405
			.saturating_add(T::DbWeight::get().writes(3_u64))
406
	}
407
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
408
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
409
	fn remove_expired_approval() -> Weight {
410
		// Proof Size summary in bytes:
411
		//  Measured:  `115`
412
		//  Estimated: `3550`
413
		// Minimum execution time: 16_880_000 picoseconds.
414
		Weight::from_parts(28_371_000, 3550)
415
			.saturating_add(T::DbWeight::get().reads(1_u64))
416
			.saturating_add(T::DbWeight::get().writes(1_u64))
417
	}
418
	/// Storage: `Identity::AccountOfUsername` (r:1 w:0)
419
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
420
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
421
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
422
	fn set_primary_username() -> Weight {
423
		// Proof Size summary in bytes:
424
		//  Measured:  `257`
425
		//  Estimated: `11037`
426
		// Minimum execution time: 16_771_000 picoseconds.
427
		Weight::from_parts(17_333_000, 11037)
428
			.saturating_add(T::DbWeight::get().reads(2_u64))
429
			.saturating_add(T::DbWeight::get().writes(1_u64))
430
	}
431
	/// Storage: `Identity::AccountOfUsername` (r:1 w:1)
432
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
433
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
434
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
435
	fn remove_dangling_username() -> Weight {
436
		// Proof Size summary in bytes:
437
		//  Measured:  `98`
438
		//  Estimated: `11037`
439
		// Minimum execution time: 12_017_000 picoseconds.
440
		Weight::from_parts(12_389_000, 11037)
441
			.saturating_add(T::DbWeight::get().reads(2_u64))
442
			.saturating_add(T::DbWeight::get().writes(1_u64))
443
	}
444
}
445

            
446
// For backwards compatibility and tests.
447
impl WeightInfo for () {
448
	/// Storage: `Identity::Registrars` (r:1 w:1)
449
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
450
	/// The range of component `r` is `[1, 19]`.
451
	fn add_registrar(r: u32, ) -> Weight {
452
		// Proof Size summary in bytes:
453
		//  Measured:  `32 + r * (57 ±0)`
454
		//  Estimated: `2626`
455
		// Minimum execution time: 8_696_000 picoseconds.
456
		Weight::from_parts(9_620_793, 2626)
457
			// Standard Error: 1_909
458
			.saturating_add(Weight::from_parts(94_977, 0).saturating_mul(r.into()))
459
			.saturating_add(RocksDbWeight::get().reads(1_u64))
460
			.saturating_add(RocksDbWeight::get().writes(1_u64))
461
	}
462
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
463
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
464
	/// The range of component `r` is `[1, 20]`.
465
	fn set_identity(r: u32, ) -> Weight {
466
		// Proof Size summary in bytes:
467
		//  Measured:  `6978 + r * (5 ±0)`
468
		//  Estimated: `11037`
469
		// Minimum execution time: 110_950_000 picoseconds.
470
		Weight::from_parts(112_705_139, 11037)
471
			// Standard Error: 6_475
472
			.saturating_add(Weight::from_parts(212_737, 0).saturating_mul(r.into()))
473
			.saturating_add(RocksDbWeight::get().reads(1_u64))
474
			.saturating_add(RocksDbWeight::get().writes(1_u64))
475
	}
476
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
477
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
478
	/// Storage: `Identity::SubsOf` (r:1 w:1)
479
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
480
	/// Storage: `Identity::SuperOf` (r:100 w:100)
481
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
482
	/// The range of component `s` is `[0, 100]`.
483
	fn set_subs_new(s: u32, ) -> Weight {
484
		// Proof Size summary in bytes:
485
		//  Measured:  `101`
486
		//  Estimated: `11037 + s * (2589 ±0)`
487
		// Minimum execution time: 9_440_000 picoseconds.
488
		Weight::from_parts(23_266_871, 11037)
489
			// Standard Error: 10_640
490
			.saturating_add(Weight::from_parts(3_663_971, 0).saturating_mul(s.into()))
491
			.saturating_add(RocksDbWeight::get().reads(2_u64))
492
			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(s.into())))
493
			.saturating_add(RocksDbWeight::get().writes(1_u64))
494
			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
495
			.saturating_add(Weight::from_parts(0, 2589).saturating_mul(s.into()))
496
	}
497
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
498
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
499
	/// Storage: `Identity::SubsOf` (r:1 w:1)
500
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
501
	/// Storage: `Identity::SuperOf` (r:0 w:100)
502
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
503
	/// The range of component `p` is `[0, 100]`.
504
	fn set_subs_old(p: u32, ) -> Weight {
505
		// Proof Size summary in bytes:
506
		//  Measured:  `194 + p * (32 ±0)`
507
		//  Estimated: `11037`
508
		// Minimum execution time: 9_588_000 picoseconds.
509
		Weight::from_parts(22_403_362, 11037)
510
			// Standard Error: 3_359
511
			.saturating_add(Weight::from_parts(1_557_280, 0).saturating_mul(p.into()))
512
			.saturating_add(RocksDbWeight::get().reads(2_u64))
513
			.saturating_add(RocksDbWeight::get().writes(1_u64))
514
			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(p.into())))
515
	}
516
	/// Storage: `Identity::SubsOf` (r:1 w:1)
517
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
518
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
519
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
520
	/// Storage: `Identity::SuperOf` (r:0 w:100)
521
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
522
	/// The range of component `r` is `[1, 20]`.
523
	/// The range of component `s` is `[0, 100]`.
524
	fn clear_identity(r: u32, s: u32, ) -> Weight {
525
		// Proof Size summary in bytes:
526
		//  Measured:  `7070 + r * (5 ±0) + s * (32 ±0)`
527
		//  Estimated: `11037`
528
		// Minimum execution time: 55_387_000 picoseconds.
529
		Weight::from_parts(52_575_769, 11037)
530
			// Standard Error: 17_705
531
			.saturating_add(Weight::from_parts(268_160, 0).saturating_mul(r.into()))
532
			// Standard Error: 3_454
533
			.saturating_add(Weight::from_parts(1_576_194, 0).saturating_mul(s.into()))
534
			.saturating_add(RocksDbWeight::get().reads(2_u64))
535
			.saturating_add(RocksDbWeight::get().writes(2_u64))
536
			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
537
	}
538
	/// Storage: `Identity::Registrars` (r:1 w:0)
539
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
540
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
541
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
542
	/// The range of component `r` is `[1, 20]`.
543
	fn request_judgement(r: u32, ) -> Weight {
544
		// Proof Size summary in bytes:
545
		//  Measured:  `6968 + r * (57 ±0)`
546
		//  Estimated: `11037`
547
		// Minimum execution time: 78_243_000 picoseconds.
548
		Weight::from_parts(80_404_226, 11037)
549
			// Standard Error: 5_153
550
			.saturating_add(Weight::from_parts(149_799, 0).saturating_mul(r.into()))
551
			.saturating_add(RocksDbWeight::get().reads(2_u64))
552
			.saturating_add(RocksDbWeight::get().writes(1_u64))
553
	}
554
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
555
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
556
	/// The range of component `r` is `[1, 20]`.
557
	fn cancel_request(r: u32, ) -> Weight {
558
		// Proof Size summary in bytes:
559
		//  Measured:  `6999`
560
		//  Estimated: `11037`
561
		// Minimum execution time: 73_360_000 picoseconds.
562
		Weight::from_parts(76_216_374, 11037)
563
			// Standard Error: 15_603
564
			.saturating_add(Weight::from_parts(189_080, 0).saturating_mul(r.into()))
565
			.saturating_add(RocksDbWeight::get().reads(1_u64))
566
			.saturating_add(RocksDbWeight::get().writes(1_u64))
567
	}
568
	/// Storage: `Identity::Registrars` (r:1 w:1)
569
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
570
	/// The range of component `r` is `[1, 19]`.
571
	fn set_fee(r: u32, ) -> Weight {
572
		// Proof Size summary in bytes:
573
		//  Measured:  `89 + r * (57 ±0)`
574
		//  Estimated: `2626`
575
		// Minimum execution time: 6_287_000 picoseconds.
576
		Weight::from_parts(6_721_854, 2626)
577
			// Standard Error: 1_488
578
			.saturating_add(Weight::from_parts(96_288, 0).saturating_mul(r.into()))
579
			.saturating_add(RocksDbWeight::get().reads(1_u64))
580
			.saturating_add(RocksDbWeight::get().writes(1_u64))
581
	}
582
	/// Storage: `Identity::Registrars` (r:1 w:1)
583
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
584
	/// The range of component `r` is `[1, 19]`.
585
	fn set_account_id(r: u32, ) -> Weight {
586
		// Proof Size summary in bytes:
587
		//  Measured:  `89 + r * (57 ±0)`
588
		//  Estimated: `2626`
589
		// Minimum execution time: 6_441_000 picoseconds.
590
		Weight::from_parts(6_864_863, 2626)
591
			// Standard Error: 1_403
592
			.saturating_add(Weight::from_parts(85_123, 0).saturating_mul(r.into()))
593
			.saturating_add(RocksDbWeight::get().reads(1_u64))
594
			.saturating_add(RocksDbWeight::get().writes(1_u64))
595
	}
596
	/// Storage: `Identity::Registrars` (r:1 w:1)
597
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
598
	/// The range of component `r` is `[1, 19]`.
599
	fn set_fields(r: u32, ) -> Weight {
600
		// Proof Size summary in bytes:
601
		//  Measured:  `89 + r * (57 ±0)`
602
		//  Estimated: `2626`
603
		// Minimum execution time: 6_249_000 picoseconds.
604
		Weight::from_parts(6_658_251, 2626)
605
			// Standard Error: 1_443
606
			.saturating_add(Weight::from_parts(92_586, 0).saturating_mul(r.into()))
607
			.saturating_add(RocksDbWeight::get().reads(1_u64))
608
			.saturating_add(RocksDbWeight::get().writes(1_u64))
609
	}
610
	/// Storage: `Identity::Registrars` (r:1 w:0)
611
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
612
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
613
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
614
	/// The range of component `r` is `[1, 19]`.
615
	fn provide_judgement(r: u32, ) -> Weight {
616
		// Proof Size summary in bytes:
617
		//  Measured:  `7046 + r * (57 ±0)`
618
		//  Estimated: `11037`
619
		// Minimum execution time: 97_969_000 picoseconds.
620
		Weight::from_parts(101_366_385, 11037)
621
			// Standard Error: 19_594
622
			.saturating_add(Weight::from_parts(103_251, 0).saturating_mul(r.into()))
623
			.saturating_add(RocksDbWeight::get().reads(2_u64))
624
			.saturating_add(RocksDbWeight::get().writes(1_u64))
625
	}
626
	/// Storage: `Identity::SubsOf` (r:1 w:1)
627
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
628
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
629
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
630
	/// Storage: `System::Account` (r:1 w:1)
631
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
632
	/// Storage: `Identity::SuperOf` (r:0 w:100)
633
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
634
	/// The range of component `r` is `[1, 20]`.
635
	/// The range of component `s` is `[0, 100]`.
636
	fn kill_identity(r: u32, s: u32, ) -> Weight {
637
		// Proof Size summary in bytes:
638
		//  Measured:  `7277 + r * (5 ±0) + s * (32 ±0)`
639
		//  Estimated: `11037`
640
		// Minimum execution time: 73_785_000 picoseconds.
641
		Weight::from_parts(73_606_063, 11037)
642
			// Standard Error: 26_433
643
			.saturating_add(Weight::from_parts(230_018, 0).saturating_mul(r.into()))
644
			// Standard Error: 5_157
645
			.saturating_add(Weight::from_parts(1_483_326, 0).saturating_mul(s.into()))
646
			.saturating_add(RocksDbWeight::get().reads(3_u64))
647
			.saturating_add(RocksDbWeight::get().writes(3_u64))
648
			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
649
	}
650
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
651
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
652
	/// Storage: `Identity::SuperOf` (r:1 w:1)
653
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
654
	/// Storage: `Identity::SubsOf` (r:1 w:1)
655
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
656
	/// The range of component `s` is `[0, 99]`.
657
	fn add_sub(s: u32, ) -> Weight {
658
		// Proof Size summary in bytes:
659
		//  Measured:  `475 + s * (36 ±0)`
660
		//  Estimated: `11037`
661
		// Minimum execution time: 27_304_000 picoseconds.
662
		Weight::from_parts(31_677_329, 11037)
663
			// Standard Error: 1_388
664
			.saturating_add(Weight::from_parts(102_193, 0).saturating_mul(s.into()))
665
			.saturating_add(RocksDbWeight::get().reads(3_u64))
666
			.saturating_add(RocksDbWeight::get().writes(2_u64))
667
	}
668
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
669
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
670
	/// Storage: `Identity::SuperOf` (r:1 w:1)
671
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
672
	/// The range of component `s` is `[1, 100]`.
673
	fn rename_sub(s: u32, ) -> Weight {
674
		// Proof Size summary in bytes:
675
		//  Measured:  `591 + s * (3 ±0)`
676
		//  Estimated: `11037`
677
		// Minimum execution time: 12_925_000 picoseconds.
678
		Weight::from_parts(14_756_477, 11037)
679
			// Standard Error: 646
680
			.saturating_add(Weight::from_parts(36_734, 0).saturating_mul(s.into()))
681
			.saturating_add(RocksDbWeight::get().reads(2_u64))
682
			.saturating_add(RocksDbWeight::get().writes(1_u64))
683
	}
684
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
685
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
686
	/// Storage: `Identity::SuperOf` (r:1 w:1)
687
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
688
	/// Storage: `Identity::SubsOf` (r:1 w:1)
689
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
690
	/// The range of component `s` is `[1, 100]`.
691
	fn remove_sub(s: u32, ) -> Weight {
692
		// Proof Size summary in bytes:
693
		//  Measured:  `638 + s * (35 ±0)`
694
		//  Estimated: `11037`
695
		// Minimum execution time: 30_475_000 picoseconds.
696
		Weight::from_parts(33_821_774, 11037)
697
			// Standard Error: 1_012
698
			.saturating_add(Weight::from_parts(87_704, 0).saturating_mul(s.into()))
699
			.saturating_add(RocksDbWeight::get().reads(3_u64))
700
			.saturating_add(RocksDbWeight::get().writes(2_u64))
701
	}
702
	/// Storage: `Identity::SuperOf` (r:1 w:1)
703
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
704
	/// Storage: `Identity::SubsOf` (r:1 w:1)
705
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
706
	/// Storage: `System::Account` (r:1 w:0)
707
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
708
	/// The range of component `s` is `[0, 99]`.
709
	fn quit_sub(s: u32, ) -> Weight {
710
		// Proof Size summary in bytes:
711
		//  Measured:  `704 + s * (37 ±0)`
712
		//  Estimated: `6723`
713
		// Minimum execution time: 22_841_000 picoseconds.
714
		Weight::from_parts(25_781_412, 6723)
715
			// Standard Error: 1_145
716
			.saturating_add(Weight::from_parts(84_692, 0).saturating_mul(s.into()))
717
			.saturating_add(RocksDbWeight::get().reads(3_u64))
718
			.saturating_add(RocksDbWeight::get().writes(2_u64))
719
	}
720
	/// Storage: `Identity::UsernameAuthorities` (r:0 w:1)
721
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
722
	fn add_username_authority() -> Weight {
723
		// Proof Size summary in bytes:
724
		//  Measured:  `0`
725
		//  Estimated: `0`
726
		// Minimum execution time: 6_983_000 picoseconds.
727
		Weight::from_parts(7_388_000, 0)
728
			.saturating_add(RocksDbWeight::get().writes(1_u64))
729
	}
730
	/// Storage: `Identity::UsernameAuthorities` (r:1 w:1)
731
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
732
	fn remove_username_authority() -> Weight {
733
		// Proof Size summary in bytes:
734
		//  Measured:  `80`
735
		//  Estimated: `3517`
736
		// Minimum execution time: 9_717_000 picoseconds.
737
		Weight::from_parts(10_322_000, 3517)
738
			.saturating_add(RocksDbWeight::get().reads(1_u64))
739
			.saturating_add(RocksDbWeight::get().writes(1_u64))
740
	}
741
	/// Storage: `Identity::UsernameAuthorities` (r:1 w:1)
742
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
743
	/// Storage: `Identity::AccountOfUsername` (r:1 w:1)
744
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
745
	/// Storage: `Identity::PendingUsernames` (r:1 w:0)
746
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
747
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
748
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
749
	fn set_username_for() -> Weight {
750
		// Proof Size summary in bytes:
751
		//  Measured:  `80`
752
		//  Estimated: `11037`
753
		// Minimum execution time: 70_714_000 picoseconds.
754
		Weight::from_parts(74_990_000, 11037)
755
			.saturating_add(RocksDbWeight::get().reads(4_u64))
756
			.saturating_add(RocksDbWeight::get().writes(3_u64))
757
	}
758
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
759
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
760
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
761
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
762
	/// Storage: `Identity::AccountOfUsername` (r:0 w:1)
763
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
764
	fn accept_username() -> Weight {
765
		// Proof Size summary in bytes:
766
		//  Measured:  `115`
767
		//  Estimated: `11037`
768
		// Minimum execution time: 21_996_000 picoseconds.
769
		Weight::from_parts(22_611_000, 11037)
770
			.saturating_add(RocksDbWeight::get().reads(2_u64))
771
			.saturating_add(RocksDbWeight::get().writes(3_u64))
772
	}
773
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
774
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
775
	fn remove_expired_approval() -> Weight {
776
		// Proof Size summary in bytes:
777
		//  Measured:  `115`
778
		//  Estimated: `3550`
779
		// Minimum execution time: 16_880_000 picoseconds.
780
		Weight::from_parts(28_371_000, 3550)
781
			.saturating_add(RocksDbWeight::get().reads(1_u64))
782
			.saturating_add(RocksDbWeight::get().writes(1_u64))
783
	}
784
	/// Storage: `Identity::AccountOfUsername` (r:1 w:0)
785
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
786
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
787
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
788
	fn set_primary_username() -> Weight {
789
		// Proof Size summary in bytes:
790
		//  Measured:  `257`
791
		//  Estimated: `11037`
792
		// Minimum execution time: 16_771_000 picoseconds.
793
		Weight::from_parts(17_333_000, 11037)
794
			.saturating_add(RocksDbWeight::get().reads(2_u64))
795
			.saturating_add(RocksDbWeight::get().writes(1_u64))
796
	}
797
	/// Storage: `Identity::AccountOfUsername` (r:1 w:1)
798
	/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
799
	/// Storage: `Identity::IdentityOf` (r:1 w:0)
800
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
801
	fn remove_dangling_username() -> Weight {
802
		// Proof Size summary in bytes:
803
		//  Measured:  `98`
804
		//  Estimated: `11037`
805
		// Minimum execution time: 12_017_000 picoseconds.
806
		Weight::from_parts(12_389_000, 11037)
807
			.saturating_add(RocksDbWeight::get().reads(2_u64))
808
			.saturating_add(RocksDbWeight::get().writes(1_u64))
809
	}
810
}