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 32.0.0
21
//! DATE: 2025-02-21, STEPS: `16`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `tomasz-XPS-15-9520`, CPU: `12th Gen Intel(R) Core(TM) i7-12700H`
24
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("flashbox_dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// ./target/release/tanssi-node
28
// benchmark
29
// pallet
30
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// pallet_identity
34
// --extrinsic
35
// *
36
// --chain=flashbox_dev
37
// --steps
38
// 16
39
// --repeat
40
// 1
41
// --template=benchmarking/frame-weight-runtime-template.hbs
42
// --json-file
43
// raw.json
44
// --output
45
// tmp/flashbox_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:  `31 + r * (57 ±0)`
63
		//  Estimated: `2626`
64
		// Minimum execution time: 9_433_000 picoseconds.
65
		Weight::from_parts(7_992_627, 2626)
66
			// Standard Error: 165_702
67
			.saturating_add(Weight::from_parts(415_947, 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(7538), added: 10013, 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:  `6976 + r * (5 ±0)`
77
		//  Estimated: `11003`
78
		// Minimum execution time: 102_197_000 picoseconds.
79
		Weight::from_parts(117_469_685, 11003)
80
			// Standard Error: 1_354_671
81
			.saturating_add(Weight::from_parts(172_018, 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(7538), added: 10013, 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:  `100`
95
		//  Estimated: `11003 + s * (2589 ±0)`
96
		// Minimum execution time: 11_961_000 picoseconds.
97
		Weight::from_parts(21_245_068, 11003)
98
			// Standard Error: 328_456
99
			.saturating_add(Weight::from_parts(3_136_295, 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(7538), added: 10013, 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:  `192 + p * (32 ±0)`
116
		//  Estimated: `11003`
117
		// Minimum execution time: 11_637_000 picoseconds.
118
		Weight::from_parts(22_541_476, 11003)
119
			// Standard Error: 75_118
120
			.saturating_add(Weight::from_parts(1_194_441, 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(7538), added: 10013, 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:  `7068 + r * (5 ±0) + s * (32 ±0)`
136
		//  Estimated: `11003`
137
		// Minimum execution time: 59_346_000 picoseconds.
138
		Weight::from_parts(99_074_182, 11003)
139
			// Standard Error: 166_958
140
			.saturating_add(Weight::from_parts(927_491, 0).saturating_mul(s.into()))
141
			.saturating_add(T::DbWeight::get().reads(2_u64))
142
			.saturating_add(T::DbWeight::get().writes(2_u64))
143
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
144
	}
145
	/// Storage: `Identity::Registrars` (r:1 w:0)
146
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
147
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
148
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
149
	/// The range of component `r` is `[1, 20]`.
150
	fn request_judgement(r: u32, ) -> Weight {
151
		// Proof Size summary in bytes:
152
		//  Measured:  `6966 + r * (57 ±0)`
153
		//  Estimated: `11003`
154
		// Minimum execution time: 69_025_000 picoseconds.
155
		Weight::from_parts(64_808_171, 11003)
156
			// Standard Error: 1_013_673
157
			.saturating_add(Weight::from_parts(1_611_107, 0).saturating_mul(r.into()))
158
			.saturating_add(T::DbWeight::get().reads(2_u64))
159
			.saturating_add(T::DbWeight::get().writes(1_u64))
160
	}
161
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
162
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
163
	/// The range of component `r` is `[1, 20]`.
164
	fn cancel_request(r: u32, ) -> Weight {
165
		// Proof Size summary in bytes:
166
		//  Measured:  `6997`
167
		//  Estimated: `11003`
168
		// Minimum execution time: 64_648_000 picoseconds.
169
		Weight::from_parts(68_420_695, 11003)
170
			// Standard Error: 215_628
171
			.saturating_add(Weight::from_parts(101_328, 0).saturating_mul(r.into()))
172
			.saturating_add(T::DbWeight::get().reads(1_u64))
173
			.saturating_add(T::DbWeight::get().writes(1_u64))
174
	}
175
	/// Storage: `Identity::Registrars` (r:1 w:1)
176
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
177
	/// The range of component `r` is `[1, 19]`.
178
	fn set_fee(r: u32, ) -> Weight {
179
		// Proof Size summary in bytes:
180
		//  Measured:  `88 + r * (57 ±0)`
181
		//  Estimated: `2626`
182
		// Minimum execution time: 6_862_000 picoseconds.
183
		Weight::from_parts(12_134_226, 2626)
184
			// Standard Error: 279_262
185
			.saturating_add(Weight::from_parts(147_521, 0).saturating_mul(r.into()))
186
			.saturating_add(T::DbWeight::get().reads(1_u64))
187
			.saturating_add(T::DbWeight::get().writes(1_u64))
188
	}
189
	/// Storage: `Identity::Registrars` (r:1 w:1)
190
	/// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
191
	/// The range of component `r` is `[1, 19]`.
192
	fn set_account_id(_r: u32, ) -> Weight {
193
		// Proof Size summary in bytes:
194
		//  Measured:  `88 + r * (57 ±0)`
195
		//  Estimated: `2626`
196
		// Minimum execution time: 6_129_000 picoseconds.
197
		Weight::from_parts(7_951_243, 2626)
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(1141), added: 1636, 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:  `88 + r * (57 ±0)`
207
		//  Estimated: `2626`
208
		// Minimum execution time: 5_963_000 picoseconds.
209
		Weight::from_parts(7_639_356, 2626)
210
			// Standard Error: 121_771
211
			.saturating_add(Weight::from_parts(98_436, 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(1141), added: 1636, mode: `MaxEncodedLen`)
217
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
218
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, 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:  `7044 + r * (57 ±0)`
223
		//  Estimated: `11003`
224
		// Minimum execution time: 83_737_000 picoseconds.
225
		Weight::from_parts(86_072_516, 11003)
226
			// Standard Error: 1_697_636
227
			.saturating_add(Weight::from_parts(1_640_725, 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(3258), added: 5733, mode: `MaxEncodedLen`)
233
	/// Storage: `Identity::IdentityOf` (r:1 w:1)
234
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
235
	/// Storage: `System::Account` (r:1 w:1)
236
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
237
	/// Storage: `Identity::SuperOf` (r:0 w:100)
238
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, 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:  `7275 + r * (5 ±0) + s * (32 ±0)`
244
		//  Estimated: `11003`
245
		// Minimum execution time: 53_834_000 picoseconds.
246
		Weight::from_parts(92_084_707, 11003)
247
			// Standard Error: 92_541
248
			.saturating_add(Weight::from_parts(976_290, 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(7538), added: 10013, mode: `MaxEncodedLen`)
255
	/// Storage: `Identity::SuperOf` (r:1 w:1)
256
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
257
	/// Storage: `Identity::SubsOf` (r:1 w:1)
258
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, 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:  `467 + s * (36 ±0)`
263
		//  Estimated: `11003`
264
		// Minimum execution time: 25_911_000 picoseconds.
265
		Weight::from_parts(22_824_604, 11003)
266
			// Standard Error: 98_274
267
			.saturating_add(Weight::from_parts(266_097, 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(7538), added: 10013, mode: `MaxEncodedLen`)
273
	/// Storage: `Identity::SuperOf` (r:1 w:1)
274
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, 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:  `558 + s * (3 ±0)`
279
		//  Estimated: `11003`
280
		// Minimum execution time: 16_494_000 picoseconds.
281
		Weight::from_parts(19_138_984, 11003)
282
			// Standard Error: 39_302
283
			.saturating_add(Weight::from_parts(21_772, 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(7538), added: 10013, mode: `MaxEncodedLen`)
289
	/// Storage: `Identity::SuperOf` (r:1 w:1)
290
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
291
	/// Storage: `Identity::SubsOf` (r:1 w:1)
292
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, 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:  `606 + s * (35 ±0)`
297
		//  Estimated: `11003`
298
		// Minimum execution time: 31_065_000 picoseconds.
299
		Weight::from_parts(51_005_170, 11003)
300
			.saturating_add(T::DbWeight::get().reads(3_u64))
301
			.saturating_add(T::DbWeight::get().writes(2_u64))
302
	}
303
	/// Storage: `Identity::SuperOf` (r:1 w:1)
304
	/// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
305
	/// Storage: `Identity::SubsOf` (r:1 w:1)
306
	/// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
307
	/// Storage: `System::Account` (r:1 w:0)
308
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
309
	/// The range of component `s` is `[0, 99]`.
310
	fn quit_sub(s: u32, ) -> Weight {
311
		// Proof Size summary in bytes:
312
		//  Measured:  `703 + s * (37 ±0)`
313
		//  Estimated: `6723`
314
		// Minimum execution time: 23_573_000 picoseconds.
315
		Weight::from_parts(27_690_739, 6723)
316
			// Standard Error: 93_901
317
			.saturating_add(Weight::from_parts(55_199, 0).saturating_mul(s.into()))
318
			.saturating_add(T::DbWeight::get().reads(3_u64))
319
			.saturating_add(T::DbWeight::get().writes(2_u64))
320
	}
321
	/// Storage: `Identity::AuthorityOf` (r:0 w:1)
322
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
323
	fn add_username_authority() -> Weight {
324
		// Proof Size summary in bytes:
325
		//  Measured:  `0`
326
		//  Estimated: `0`
327
		// Minimum execution time: 9_586_000 picoseconds.
328
		Weight::from_parts(9_586_000, 0)
329
			.saturating_add(T::DbWeight::get().writes(1_u64))
330
	}
331
	/// Storage: `Identity::AuthorityOf` (r:1 w:1)
332
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
333
	fn remove_username_authority() -> Weight {
334
		// Proof Size summary in bytes:
335
		//  Measured:  `78`
336
		//  Estimated: `3517`
337
		// Minimum execution time: 14_077_000 picoseconds.
338
		Weight::from_parts(14_077_000, 3517)
339
			.saturating_add(T::DbWeight::get().reads(1_u64))
340
			.saturating_add(T::DbWeight::get().writes(1_u64))
341
	}
342
	/// Storage: `Identity::AuthorityOf` (r:1 w:1)
343
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
344
	/// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
345
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
346
	/// Storage: `Identity::PendingUsernames` (r:1 w:0)
347
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)
348
	/// Storage: `Identity::UsernameOf` (r:1 w:1)
349
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
350
	/// Storage: `System::Account` (r:1 w:1)
351
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
352
	/// The range of component `p` is `[0, 1]`.
353
	fn set_username_for(_p: u32, ) -> Weight {
354
		// Proof Size summary in bytes:
355
		//  Measured:  `181`
356
		//  Estimated: `3593`
357
		// Minimum execution time: 56_638_000 picoseconds.
358
		Weight::from_parts(69_787_666, 3593)
359
			.saturating_add(T::DbWeight::get().reads(5_u64))
360
			.saturating_add(T::DbWeight::get().writes(4_u64))
361
	}
362
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
363
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)
364
	/// Storage: `Identity::UsernameOf` (r:1 w:1)
365
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
366
	/// Storage: `Identity::UsernameInfoOf` (r:0 w:1)
367
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
368
	fn accept_username() -> Weight {
369
		// Proof Size summary in bytes:
370
		//  Measured:  `115`
371
		//  Estimated: `3567`
372
		// Minimum execution time: 23_532_000 picoseconds.
373
		Weight::from_parts(23_532_000, 3567)
374
			.saturating_add(T::DbWeight::get().reads(2_u64))
375
			.saturating_add(T::DbWeight::get().writes(3_u64))
376
	}
377
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
378
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)
379
	/// Storage: `Identity::AuthorityOf` (r:1 w:0)
380
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
381
	/// Storage: `System::Account` (r:1 w:1)
382
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
383
	/// The range of component `p` is `[0, 1]`.
384
	fn remove_expired_approval(_p: u32, ) -> Weight {
385
		// Proof Size summary in bytes:
386
		//  Measured:  `309`
387
		//  Estimated: `3593`
388
		// Minimum execution time: 13_443_000 picoseconds.
389
		Weight::from_parts(41_802_111, 3593)
390
			.saturating_add(T::DbWeight::get().reads(3_u64))
391
			.saturating_add(T::DbWeight::get().writes(2_u64))
392
	}
393
	/// Storage: `Identity::UsernameInfoOf` (r:1 w:0)
394
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
395
	/// Storage: `Identity::UsernameOf` (r:0 w:1)
396
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
397
	fn set_primary_username() -> Weight {
398
		// Proof Size summary in bytes:
399
		//  Measured:  `171`
400
		//  Estimated: `3563`
401
		// Minimum execution time: 16_115_000 picoseconds.
402
		Weight::from_parts(16_115_000, 3563)
403
			.saturating_add(T::DbWeight::get().reads(1_u64))
404
			.saturating_add(T::DbWeight::get().writes(1_u64))
405
	}
406
	/// Storage: `Identity::UsernameInfoOf` (r:1 w:0)
407
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
408
	/// Storage: `Identity::AuthorityOf` (r:1 w:0)
409
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
410
	/// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
411
	/// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
412
	fn unbind_username() -> Weight {
413
		// Proof Size summary in bytes:
414
		//  Measured:  `235`
415
		//  Estimated: `3563`
416
		// Minimum execution time: 18_440_000 picoseconds.
417
		Weight::from_parts(18_440_000, 3563)
418
			.saturating_add(T::DbWeight::get().reads(3_u64))
419
			.saturating_add(T::DbWeight::get().writes(1_u64))
420
	}
421
	/// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
422
	/// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
423
	/// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
424
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
425
	/// Storage: `Identity::UsernameOf` (r:1 w:1)
426
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
427
	/// Storage: `Identity::AuthorityOf` (r:1 w:0)
428
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
429
	fn remove_username() -> Weight {
430
		// Proof Size summary in bytes:
431
		//  Measured:  `296`
432
		//  Estimated: `3563`
433
		// Minimum execution time: 24_464_000 picoseconds.
434
		Weight::from_parts(24_464_000, 3563)
435
			.saturating_add(T::DbWeight::get().reads(4_u64))
436
			.saturating_add(T::DbWeight::get().writes(3_u64))
437
	}
438
	/// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
439
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
440
	/// Storage: `Identity::UsernameOf` (r:1 w:1)
441
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
442
	/// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
443
	/// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
444
	/// Storage: `Identity::AuthorityOf` (r:1 w:0)
445
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
446
	/// Storage: `System::Account` (r:1 w:1)
447
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
448
	/// The range of component `p` is `[0, 1]`.
449
	fn kill_username(_p: u32, ) -> Weight {
450
		// Proof Size summary in bytes:
451
		//  Measured:  `470`
452
		//  Estimated: `3593`
453
		// Minimum execution time: 18_117_000 picoseconds.
454
		Weight::from_parts(36_162_777, 3593)
455
			.saturating_add(T::DbWeight::get().reads(5_u64))
456
			.saturating_add(T::DbWeight::get().writes(4_u64))
457
	}
458
	/// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:2 w:0)
459
	/// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:2 w:0)
460
	/// Storage: `Identity::AuthorityOf` (r:0 w:1)
461
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
462
	fn migration_v2_authority_step() -> Weight {
463
		// Proof Size summary in bytes:
464
		//  Measured:  `146`
465
		//  Estimated: `6086`
466
		// Minimum execution time: 9_067_000 picoseconds.
467
		Weight::from_parts(9_067_000, 6086)
468
			.saturating_add(T::DbWeight::get().reads(2_u64))
469
			.saturating_add(T::DbWeight::get().writes(1_u64))
470
	}
471
	/// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:2 w:0)
472
	/// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:2 w:0)
473
	/// Storage: `Identity::UsernameInfoOf` (r:0 w:1)
474
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
475
	fn migration_v2_username_step() -> Weight {
476
		// Proof Size summary in bytes:
477
		//  Measured:  `158`
478
		//  Estimated: `6098`
479
		// Minimum execution time: 8_644_000 picoseconds.
480
		Weight::from_parts(8_644_000, 6098)
481
			.saturating_add(T::DbWeight::get().reads(2_u64))
482
			.saturating_add(T::DbWeight::get().writes(1_u64))
483
	}
484
	/// Storage: `Identity::IdentityOf` (r:2 w:1)
485
	/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
486
	/// Storage: `Identity::UsernameOf` (r:0 w:1)
487
	/// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
488
	fn migration_v2_identity_step() -> Weight {
489
		// Proof Size summary in bytes:
490
		//  Measured:  `7061`
491
		//  Estimated: `21016`
492
		// Minimum execution time: 65_618_000 picoseconds.
493
		Weight::from_parts(65_618_000, 21016)
494
			.saturating_add(T::DbWeight::get().reads(2_u64))
495
			.saturating_add(T::DbWeight::get().writes(2_u64))
496
	}
497
	/// Storage: `Identity::PendingUsernames` (r:2 w:1)
498
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)
499
	fn migration_v2_pending_username_step() -> Weight {
500
		// Proof Size summary in bytes:
501
		//  Measured:  `200`
502
		//  Estimated: `6144`
503
		// Minimum execution time: 7_902_000 picoseconds.
504
		Weight::from_parts(7_902_000, 6144)
505
			.saturating_add(T::DbWeight::get().reads(2_u64))
506
			.saturating_add(T::DbWeight::get().writes(1_u64))
507
	}
508
	/// Storage: `Identity::AuthorityOf` (r:2 w:0)
509
	/// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
510
	/// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:1 w:1)
511
	/// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:1 w:1)
512
	fn migration_v2_cleanup_authority_step() -> Weight {
513
		// Proof Size summary in bytes:
514
		//  Measured:  `287`
515
		//  Estimated: `6044`
516
		// Minimum execution time: 14_126_000 picoseconds.
517
		Weight::from_parts(14_126_000, 6044)
518
			.saturating_add(T::DbWeight::get().reads(3_u64))
519
			.saturating_add(T::DbWeight::get().writes(1_u64))
520
	}
521
	/// Storage: `Identity::UsernameInfoOf` (r:2 w:0)
522
	/// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
523
	/// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:1 w:1)
524
	/// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:1 w:1)
525
	fn migration_v2_cleanup_username_step() -> Weight {
526
		// Proof Size summary in bytes:
527
		//  Measured:  `289`
528
		//  Estimated: `6136`
529
		// Minimum execution time: 10_207_000 picoseconds.
530
		Weight::from_parts(10_207_000, 6136)
531
			.saturating_add(T::DbWeight::get().reads(3_u64))
532
			.saturating_add(T::DbWeight::get().writes(1_u64))
533
	}
534
}