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
447
	fn add_registrar(r: u32, ) -> Weight {
61
447
		// Proof Size summary in bytes:
62
447
		//  Measured:  `32 + r * (57 ±0)`
63
447
		//  Estimated: `2626`
64
447
		// Minimum execution time: 10_235_000 picoseconds.
65
447
		Weight::from_parts(10_833_236, 2626)
66
447
			// Standard Error: 1_383
67
447
			.saturating_add(Weight::from_parts(86_056, 0).saturating_mul(r.into()))
68
447
			.saturating_add(T::DbWeight::get().reads(1_u64))
69
447
			.saturating_add(T::DbWeight::get().writes(1_u64))
70
447
	}
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
3060
	fn set_identity(r: u32, ) -> Weight {
75
3060
		// Proof Size summary in bytes:
76
3060
		//  Measured:  `6978 + r * (5 ±0)`
77
3060
		//  Estimated: `11037`
78
3060
		// Minimum execution time: 145_628_000 picoseconds.
79
3060
		Weight::from_parts(147_680_420, 11037)
80
3060
			// Standard Error: 5_077
81
3060
			.saturating_add(Weight::from_parts(209_305, 0).saturating_mul(r.into()))
82
3060
			.saturating_add(T::DbWeight::get().reads(1_u64))
83
3060
			.saturating_add(T::DbWeight::get().writes(1_u64))
84
3060
	}
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
561
	fn set_subs_new(s: u32, ) -> Weight {
93
561
		// Proof Size summary in bytes:
94
561
		//  Measured:  `101`
95
561
		//  Estimated: `11037 + s * (2589 ±0)`
96
561
		// Minimum execution time: 11_873_000 picoseconds.
97
561
		Weight::from_parts(29_831_881, 11037)
98
561
			// Standard Error: 6_259
99
561
			.saturating_add(Weight::from_parts(4_291_382, 0).saturating_mul(s.into()))
100
561
			.saturating_add(T::DbWeight::get().reads(2_u64))
101
561
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
102
561
			.saturating_add(T::DbWeight::get().writes(1_u64))
103
561
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
104
561
			.saturating_add(Weight::from_parts(0, 2589).saturating_mul(s.into()))
105
561
	}
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
561
	fn set_subs_old(p: u32, ) -> Weight {
114
561
		// Proof Size summary in bytes:
115
561
		//  Measured:  `194 + p * (32 ±0)`
116
561
		//  Estimated: `11037`
117
561
		// Minimum execution time: 11_819_000 picoseconds.
118
561
		Weight::from_parts(29_017_103, 11037)
119
561
			// Standard Error: 4_633
120
561
			.saturating_add(Weight::from_parts(1_750_498, 0).saturating_mul(p.into()))
121
561
			.saturating_add(T::DbWeight::get().reads(2_u64))
122
561
			.saturating_add(T::DbWeight::get().writes(1_u64))
123
561
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
124
561
	}
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
147
	fn clear_identity(r: u32, s: u32, ) -> Weight {
134
147
		// Proof Size summary in bytes:
135
147
		//  Measured:  `7070 + r * (5 ±0) + s * (32 ±0)`
136
147
		//  Estimated: `11037`
137
147
		// Minimum execution time: 69_615_000 picoseconds.
138
147
		Weight::from_parts(63_697_943, 11037)
139
147
			// Standard Error: 15_959
140
147
			.saturating_add(Weight::from_parts(507_124, 0).saturating_mul(r.into()))
141
147
			// Standard Error: 3_114
142
147
			.saturating_add(Weight::from_parts(1_851_666, 0).saturating_mul(s.into()))
143
147
			.saturating_add(T::DbWeight::get().reads(2_u64))
144
147
			.saturating_add(T::DbWeight::get().writes(2_u64))
145
147
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
146
147
	}
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
570
	fn request_judgement(r: u32, ) -> Weight {
153
570
		// Proof Size summary in bytes:
154
570
		//  Measured:  `6968 + r * (57 ±0)`
155
570
		//  Estimated: `11037`
156
570
		// Minimum execution time: 101_366_000 picoseconds.
157
570
		Weight::from_parts(103_655_524, 11037)
158
570
			// Standard Error: 4_666
159
570
			.saturating_add(Weight::from_parts(158_128, 0).saturating_mul(r.into()))
160
570
			.saturating_add(T::DbWeight::get().reads(2_u64))
161
570
			.saturating_add(T::DbWeight::get().writes(1_u64))
162
570
	}
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
171
	fn cancel_request(r: u32, ) -> Weight {
167
171
		// Proof Size summary in bytes:
168
171
		//  Measured:  `6999`
169
171
		//  Estimated: `11037`
170
171
		// Minimum execution time: 100_420_000 picoseconds.
171
171
		Weight::from_parts(101_608_172, 11037)
172
171
			// Standard Error: 3_494
173
171
			.saturating_add(Weight::from_parts(136_333, 0).saturating_mul(r.into()))
174
171
			.saturating_add(T::DbWeight::get().reads(1_u64))
175
171
			.saturating_add(T::DbWeight::get().writes(1_u64))
176
171
	}
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
9252
	fn set_fee(r: u32, ) -> Weight {
181
9252
		// Proof Size summary in bytes:
182
9252
		//  Measured:  `89 + r * (57 ±0)`
183
9252
		//  Estimated: `2626`
184
9252
		// Minimum execution time: 7_198_000 picoseconds.
185
9252
		Weight::from_parts(7_758_993, 2626)
186
9252
			// Standard Error: 1_039
187
9252
			.saturating_add(Weight::from_parts(68_143, 0).saturating_mul(r.into()))
188
9252
			.saturating_add(T::DbWeight::get().reads(1_u64))
189
9252
			.saturating_add(T::DbWeight::get().writes(1_u64))
190
9252
	}
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
288
	fn set_account_id(r: u32, ) -> Weight {
195
288
		// Proof Size summary in bytes:
196
288
		//  Measured:  `89 + r * (57 ±0)`
197
288
		//  Estimated: `2626`
198
288
		// Minimum execution time: 7_439_000 picoseconds.
199
288
		Weight::from_parts(7_865_213, 2626)
200
288
			// Standard Error: 805
201
288
			.saturating_add(Weight::from_parts(74_497, 0).saturating_mul(r.into()))
202
288
			.saturating_add(T::DbWeight::get().reads(1_u64))
203
288
			.saturating_add(T::DbWeight::get().writes(1_u64))
204
288
	}
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
372
	fn set_fields(r: u32, ) -> Weight {
209
372
		// Proof Size summary in bytes:
210
372
		//  Measured:  `89 + r * (57 ±0)`
211
372
		//  Estimated: `2626`
212
372
		// Minimum execution time: 7_328_000 picoseconds.
213
372
		Weight::from_parts(7_876_214, 2626)
214
372
			// Standard Error: 1_001
215
372
			.saturating_add(Weight::from_parts(63_765, 0).saturating_mul(r.into()))
216
372
			.saturating_add(T::DbWeight::get().reads(1_u64))
217
372
			.saturating_add(T::DbWeight::get().writes(1_u64))
218
372
	}
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
579
	fn provide_judgement(r: u32, ) -> Weight {
225
579
		// Proof Size summary in bytes:
226
579
		//  Measured:  `7046 + r * (57 ±0)`
227
579
		//  Estimated: `11037`
228
579
		// Minimum execution time: 127_829_000 picoseconds.
229
579
		Weight::from_parts(130_034_976, 11037)
230
579
			// Standard Error: 3_564
231
579
			.saturating_add(Weight::from_parts(125_920, 0).saturating_mul(r.into()))
232
579
			.saturating_add(T::DbWeight::get().reads(2_u64))
233
579
			.saturating_add(T::DbWeight::get().writes(1_u64))
234
579
	}
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
180
	fn kill_identity(r: u32, s: u32, ) -> Weight {
246
180
		// Proof Size summary in bytes:
247
180
		//  Measured:  `7277 + r * (5 ±0) + s * (32 ±0)`
248
180
		//  Estimated: `11037`
249
180
		// Minimum execution time: 86_360_000 picoseconds.
250
180
		Weight::from_parts(83_277_858, 11037)
251
180
			// Standard Error: 18_443
252
180
			.saturating_add(Weight::from_parts(542_956, 0).saturating_mul(r.into()))
253
180
			// Standard Error: 3_598
254
180
			.saturating_add(Weight::from_parts(1_846_889, 0).saturating_mul(s.into()))
255
180
			.saturating_add(T::DbWeight::get().reads(3_u64))
256
180
			.saturating_add(T::DbWeight::get().writes(3_u64))
257
180
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
258
180
	}
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
1419
	fn add_sub(s: u32, ) -> Weight {
267
1419
		// Proof Size summary in bytes:
268
1419
		//  Measured:  `475 + s * (36 ±0)`
269
1419
		//  Estimated: `11037`
270
1419
		// Minimum execution time: 34_384_000 picoseconds.
271
1419
		Weight::from_parts(39_103_156, 11037)
272
1419
			// Standard Error: 1_831
273
1419
			.saturating_add(Weight::from_parts(146_623, 0).saturating_mul(s.into()))
274
1419
			.saturating_add(T::DbWeight::get().reads(3_u64))
275
1419
			.saturating_add(T::DbWeight::get().writes(2_u64))
276
1419
	}
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
585
	fn rename_sub(s: u32, ) -> Weight {
283
585
		// Proof Size summary in bytes:
284
585
		//  Measured:  `591 + s * (3 ±0)`
285
585
		//  Estimated: `11037`
286
585
		// Minimum execution time: 15_654_000 picoseconds.
287
585
		Weight::from_parts(19_523_944, 11037)
288
585
			// Standard Error: 903
289
585
			.saturating_add(Weight::from_parts(57_808, 0).saturating_mul(s.into()))
290
585
			.saturating_add(T::DbWeight::get().reads(2_u64))
291
585
			.saturating_add(T::DbWeight::get().writes(1_u64))
292
585
	}
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
132
	fn remove_sub(s: u32, ) -> Weight {
301
132
		// Proof Size summary in bytes:
302
132
		//  Measured:  `638 + s * (35 ±0)`
303
132
		//  Estimated: `11037`
304
132
		// Minimum execution time: 40_797_000 picoseconds.
305
132
		Weight::from_parts(43_203_809, 11037)
306
132
			// Standard Error: 834
307
132
			.saturating_add(Weight::from_parts(112_747, 0).saturating_mul(s.into()))
308
132
			.saturating_add(T::DbWeight::get().reads(3_u64))
309
132
			.saturating_add(T::DbWeight::get().writes(2_u64))
310
132
	}
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
63
	fn quit_sub(s: u32, ) -> Weight {
319
63
		// Proof Size summary in bytes:
320
63
		//  Measured:  `704 + s * (37 ±0)`
321
63
		//  Estimated: `6723`
322
63
		// Minimum execution time: 29_596_000 picoseconds.
323
63
		Weight::from_parts(31_795_517, 6723)
324
63
			// Standard Error: 726
325
63
			.saturating_add(Weight::from_parts(100_181, 0).saturating_mul(s.into()))
326
63
			.saturating_add(T::DbWeight::get().reads(3_u64))
327
63
			.saturating_add(T::DbWeight::get().writes(2_u64))
328
63
	}
329
	/// Storage: `Identity::UsernameAuthorities` (r:0 w:1)
330
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
331
465
	fn add_username_authority() -> Weight {
332
465
		// Proof Size summary in bytes:
333
465
		//  Measured:  `0`
334
465
		//  Estimated: `0`
335
465
		// Minimum execution time: 8_690_000 picoseconds.
336
465
		Weight::from_parts(8_915_000, 0)
337
465
			.saturating_add(T::DbWeight::get().writes(1_u64))
338
465
	}
339
	/// Storage: `Identity::UsernameAuthorities` (r:1 w:1)
340
	/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
341
651
	fn remove_username_authority() -> Weight {
342
651
		// Proof Size summary in bytes:
343
651
		//  Measured:  `80`
344
651
		//  Estimated: `3517`
345
651
		// Minimum execution time: 11_650_000 picoseconds.
346
651
		Weight::from_parts(11_964_000, 3517)
347
651
			.saturating_add(T::DbWeight::get().reads(1_u64))
348
651
			.saturating_add(T::DbWeight::get().writes(1_u64))
349
651
	}
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
210
	fn set_username_for() -> Weight {
359
210
		// Proof Size summary in bytes:
360
210
		//  Measured:  `80`
361
210
		//  Estimated: `11037`
362
210
		// Minimum execution time: 71_575_000 picoseconds.
363
210
		Weight::from_parts(73_045_000, 11037)
364
210
			.saturating_add(T::DbWeight::get().reads(4_u64))
365
210
			.saturating_add(T::DbWeight::get().writes(3_u64))
366
210
	}
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
240
	fn accept_username() -> Weight {
374
240
		// Proof Size summary in bytes:
375
240
		//  Measured:  `115`
376
240
		//  Estimated: `11037`
377
240
		// Minimum execution time: 25_906_000 picoseconds.
378
240
		Weight::from_parts(26_431_000, 11037)
379
240
			.saturating_add(T::DbWeight::get().reads(2_u64))
380
240
			.saturating_add(T::DbWeight::get().writes(3_u64))
381
240
	}
382
	/// Storage: `Identity::PendingUsernames` (r:1 w:1)
383
	/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
384
78
	fn remove_expired_approval() -> Weight {
385
78
		// Proof Size summary in bytes:
386
78
		//  Measured:  `115`
387
78
		//  Estimated: `3550`
388
78
		// Minimum execution time: 17_426_000 picoseconds.
389
78
		Weight::from_parts(19_360_000, 3550)
390
78
			.saturating_add(T::DbWeight::get().reads(1_u64))
391
78
			.saturating_add(T::DbWeight::get().writes(1_u64))
392
78
	}
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
60
	fn set_primary_username() -> Weight {
398
60
		// Proof Size summary in bytes:
399
60
		//  Measured:  `257`
400
60
		//  Estimated: `11037`
401
60
		// Minimum execution time: 20_659_000 picoseconds.
402
60
		Weight::from_parts(21_107_000, 11037)
403
60
			.saturating_add(T::DbWeight::get().reads(2_u64))
404
60
			.saturating_add(T::DbWeight::get().writes(1_u64))
405
60
	}
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
153
	fn remove_dangling_username() -> Weight {
411
153
		// Proof Size summary in bytes:
412
153
		//  Measured:  `98`
413
153
		//  Estimated: `11037`
414
153
		// Minimum execution time: 14_312_000 picoseconds.
415
153
		Weight::from_parts(14_612_000, 11037)
416
153
			.saturating_add(T::DbWeight::get().reads(2_u64))
417
153
			.saturating_add(T::DbWeight::get().writes(1_u64))
418
153
	}
419
}