pallet_identity/weights.rs
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// This file is part of Substrate.
19
20// Copyright (C) Parity Technologies (UK) Ltd.
21// SPDX-License-Identifier: Apache-2.0
22
23// Licensed under the Apache License, Version 2.0 (the "License");
24// you may not use this file except in compliance with the License.
25// You may obtain a copy of the License at
26//
27// http://www.apache.org/licenses/LICENSE-2.0
28//
29// Unless required by applicable law or agreed to in writing, software
30// distributed under the License is distributed on an "AS IS" BASIS,
31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32// See the License for the specific language governing permissions and
33// limitations under the License.
34
35//! Autogenerated weights for `pallet_identity`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `4563561839a5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
41//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
42
43// Executed Command:
44// frame-omni-bencher
45// v1
46// benchmark
47// pallet
48// --extrinsic=*
49// --runtime=target/production/wbuild/kitchensink-runtime/kitchensink_runtime.wasm
50// --pallet=pallet_identity
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/identity/src/weights.rs
53// --wasm-execution=compiled
54// --steps=50
55// --repeat=20
56// --heap-pages=4096
57// --template=substrate/.maintain/frame-weight-template.hbs
58// --no-storage-info
59// --no-min-squares
60// --no-median-slopes
61// --genesis-builder-policy=none
62// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage,pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier
63
64#![cfg_attr(rustfmt, rustfmt_skip)]
65#![allow(unused_parens)]
66#![allow(unused_imports)]
67#![allow(missing_docs)]
68#![allow(dead_code)]
69
70use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
71use core::marker::PhantomData;
72
73/// Weight functions needed for `pallet_identity`.
74pub trait WeightInfo {
75 fn add_registrar(r: u32, ) -> Weight;
76 fn set_identity(r: u32, ) -> Weight;
77 fn set_subs_new(s: u32, ) -> Weight;
78 fn set_subs_old(p: u32, ) -> Weight;
79 fn clear_identity(r: u32, s: u32, ) -> Weight;
80 fn request_judgement(r: u32, ) -> Weight;
81 fn cancel_request(r: u32, ) -> Weight;
82 fn set_fee(r: u32, ) -> Weight;
83 fn set_account_id(r: u32, ) -> Weight;
84 fn set_fields(r: u32, ) -> Weight;
85 fn provide_judgement(r: u32, ) -> Weight;
86 fn kill_identity(r: u32, s: u32, ) -> Weight;
87 fn add_sub(s: u32, ) -> Weight;
88 fn rename_sub(s: u32, ) -> Weight;
89 fn remove_sub(s: u32, ) -> Weight;
90 fn quit_sub(s: u32, ) -> Weight;
91 fn add_username_authority() -> Weight;
92 fn remove_username_authority() -> Weight;
93 fn set_username_for(p: u32, ) -> Weight;
94 fn accept_username() -> Weight;
95 fn remove_expired_approval(p: u32, ) -> Weight;
96 fn set_primary_username() -> Weight;
97 fn unbind_username() -> Weight;
98 fn remove_username() -> Weight;
99 fn kill_username(p: u32, ) -> Weight;
100 fn migration_v2_authority_step() -> Weight;
101 fn migration_v2_username_step() -> Weight;
102 fn migration_v2_identity_step() -> Weight;
103 fn migration_v2_pending_username_step() -> Weight;
104 fn migration_v2_cleanup_authority_step() -> Weight;
105 fn migration_v2_cleanup_username_step() -> Weight;
106}
107
108/// Weights for `pallet_identity` using the Substrate node and recommended hardware.
109pub struct SubstrateWeight<T>(PhantomData<T>);
110impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
111 /// Storage: `Identity::Registrars` (r:1 w:1)
112 /// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
113 /// The range of component `r` is `[1, 19]`.
114 fn add_registrar(r: u32, ) -> Weight {
115 // Proof Size summary in bytes:
116 // Measured: `6 + r * (57 ±0)`
117 // Estimated: `2626`
118 // Minimum execution time: 7_086_000 picoseconds.
119 Weight::from_parts(8_205_421, 2626)
120 // Standard Error: 2_290
121 .saturating_add(Weight::from_parts(124_282, 0).saturating_mul(r.into()))
122 .saturating_add(T::DbWeight::get().reads(1_u64))
123 .saturating_add(T::DbWeight::get().writes(1_u64))
124 }
125 /// Storage: `Identity::IdentityOf` (r:1 w:1)
126 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
127 /// The range of component `r` is `[1, 20]`.
128 fn set_identity(r: u32, ) -> Weight {
129 // Proof Size summary in bytes:
130 // Measured: `6955 + r * (5 ±0)`
131 // Estimated: `11003`
132 // Minimum execution time: 114_199_000 picoseconds.
133 Weight::from_parts(115_873_094, 11003)
134 // Standard Error: 10_022
135 .saturating_add(Weight::from_parts(170_077, 0).saturating_mul(r.into()))
136 .saturating_add(T::DbWeight::get().reads(1_u64))
137 .saturating_add(T::DbWeight::get().writes(1_u64))
138 }
139 /// Storage: `Identity::IdentityOf` (r:1 w:0)
140 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
141 /// Storage: `Identity::SubsOf` (r:1 w:1)
142 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
143 /// Storage: `Identity::SuperOf` (r:100 w:100)
144 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
145 /// The range of component `s` is `[0, 100]`.
146 fn set_subs_new(s: u32, ) -> Weight {
147 // Proof Size summary in bytes:
148 // Measured: `75`
149 // Estimated: `11003 + s * (2589 ±0)`
150 // Minimum execution time: 10_852_000 picoseconds.
151 Weight::from_parts(23_044_144, 11003)
152 // Standard Error: 5_568
153 .saturating_add(Weight::from_parts(3_619_023, 0).saturating_mul(s.into()))
154 .saturating_add(T::DbWeight::get().reads(2_u64))
155 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
156 .saturating_add(T::DbWeight::get().writes(1_u64))
157 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
158 .saturating_add(Weight::from_parts(0, 2589).saturating_mul(s.into()))
159 }
160 /// Storage: `Identity::IdentityOf` (r:1 w:0)
161 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
162 /// Storage: `Identity::SubsOf` (r:1 w:1)
163 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
164 /// Storage: `Identity::SuperOf` (r:0 w:100)
165 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
166 /// The range of component `p` is `[0, 100]`.
167 fn set_subs_old(p: u32, ) -> Weight {
168 // Proof Size summary in bytes:
169 // Measured: `194 + p * (32 ±0)`
170 // Estimated: `11003`
171 // Minimum execution time: 10_817_000 picoseconds.
172 Weight::from_parts(26_312_295, 11003)
173 // Standard Error: 5_090
174 .saturating_add(Weight::from_parts(1_469_411, 0).saturating_mul(p.into()))
175 .saturating_add(T::DbWeight::get().reads(2_u64))
176 .saturating_add(T::DbWeight::get().writes(1_u64))
177 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
178 }
179 /// Storage: `Identity::SubsOf` (r:1 w:1)
180 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
181 /// Storage: `Identity::IdentityOf` (r:1 w:1)
182 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
183 /// Storage: `Identity::SuperOf` (r:0 w:100)
184 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
185 /// The range of component `r` is `[1, 20]`.
186 /// The range of component `s` is `[0, 100]`.
187 fn clear_identity(r: u32, s: u32, ) -> Weight {
188 // Proof Size summary in bytes:
189 // Measured: `7069 + r * (5 ±0) + s * (32 ±0)`
190 // Estimated: `11003`
191 // Minimum execution time: 54_514_000 picoseconds.
192 Weight::from_parts(53_735_553, 11003)
193 // Standard Error: 16_389
194 .saturating_add(Weight::from_parts(299_626, 0).saturating_mul(r.into()))
195 // Standard Error: 3_198
196 .saturating_add(Weight::from_parts(1_439_399, 0).saturating_mul(s.into()))
197 .saturating_add(T::DbWeight::get().reads(2_u64))
198 .saturating_add(T::DbWeight::get().writes(2_u64))
199 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
200 }
201 /// Storage: `Identity::Registrars` (r:1 w:0)
202 /// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
203 /// Storage: `Identity::IdentityOf` (r:1 w:1)
204 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
205 /// The range of component `r` is `[1, 20]`.
206 fn request_judgement(r: u32, ) -> Weight {
207 // Proof Size summary in bytes:
208 // Measured: `6946 + r * (57 ±0)`
209 // Estimated: `11003`
210 // Minimum execution time: 77_675_000 picoseconds.
211 Weight::from_parts(79_151_582, 11003)
212 // Standard Error: 4_971
213 .saturating_add(Weight::from_parts(144_708, 0).saturating_mul(r.into()))
214 .saturating_add(T::DbWeight::get().reads(2_u64))
215 .saturating_add(T::DbWeight::get().writes(1_u64))
216 }
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, 20]`.
220 fn cancel_request(r: u32, ) -> Weight {
221 // Proof Size summary in bytes:
222 // Measured: `6976`
223 // Estimated: `11003`
224 // Minimum execution time: 73_927_000 picoseconds.
225 Weight::from_parts(75_928_402, 11003)
226 // Standard Error: 4_193
227 .saturating_add(Weight::from_parts(74_407, 0).saturating_mul(r.into()))
228 .saturating_add(T::DbWeight::get().reads(1_u64))
229 .saturating_add(T::DbWeight::get().writes(1_u64))
230 }
231 /// Storage: `Identity::Registrars` (r:1 w:1)
232 /// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
233 /// The range of component `r` is `[1, 19]`.
234 fn set_fee(r: u32, ) -> Weight {
235 // Proof Size summary in bytes:
236 // Measured: `63 + r * (57 ±0)`
237 // Estimated: `2626`
238 // Minimum execution time: 4_602_000 picoseconds.
239 Weight::from_parts(5_502_556, 2626)
240 // Standard Error: 1_986
241 .saturating_add(Weight::from_parts(98_575, 0).saturating_mul(r.into()))
242 .saturating_add(T::DbWeight::get().reads(1_u64))
243 .saturating_add(T::DbWeight::get().writes(1_u64))
244 }
245 /// Storage: `Identity::Registrars` (r:1 w:1)
246 /// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
247 /// The range of component `r` is `[1, 19]`.
248 fn set_account_id(r: u32, ) -> Weight {
249 // Proof Size summary in bytes:
250 // Measured: `63 + r * (57 ±0)`
251 // Estimated: `2626`
252 // Minimum execution time: 4_986_000 picoseconds.
253 Weight::from_parts(5_246_840, 2626)
254 // Standard Error: 1_304
255 .saturating_add(Weight::from_parts(55_466, 0).saturating_mul(r.into()))
256 .saturating_add(T::DbWeight::get().reads(1_u64))
257 .saturating_add(T::DbWeight::get().writes(1_u64))
258 }
259 /// Storage: `Identity::Registrars` (r:1 w:1)
260 /// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
261 /// The range of component `r` is `[1, 19]`.
262 fn set_fields(r: u32, ) -> Weight {
263 // Proof Size summary in bytes:
264 // Measured: `63 + r * (57 ±0)`
265 // Estimated: `2626`
266 // Minimum execution time: 4_696_000 picoseconds.
267 Weight::from_parts(5_047_216, 2626)
268 // Standard Error: 1_236
269 .saturating_add(Weight::from_parts(60_918, 0).saturating_mul(r.into()))
270 .saturating_add(T::DbWeight::get().reads(1_u64))
271 .saturating_add(T::DbWeight::get().writes(1_u64))
272 }
273 /// Storage: `Identity::Registrars` (r:1 w:0)
274 /// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
275 /// Storage: `Identity::IdentityOf` (r:1 w:1)
276 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
277 /// The range of component `r` is `[1, 19]`.
278 fn provide_judgement(r: u32, ) -> Weight {
279 // Proof Size summary in bytes:
280 // Measured: `7024 + r * (57 ±0)`
281 // Estimated: `11003`
282 // Minimum execution time: 97_919_000 picoseconds.
283 Weight::from_parts(99_508_071, 11003)
284 // Standard Error: 4_757
285 .saturating_add(Weight::from_parts(99_527, 0).saturating_mul(r.into()))
286 .saturating_add(T::DbWeight::get().reads(2_u64))
287 .saturating_add(T::DbWeight::get().writes(1_u64))
288 }
289 /// Storage: `Identity::SubsOf` (r:1 w:1)
290 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
291 /// Storage: `Identity::IdentityOf` (r:1 w:1)
292 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
293 /// Storage: `System::Account` (r:1 w:1)
294 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
295 /// Storage: `Identity::SuperOf` (r:0 w:100)
296 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
297 /// The range of component `r` is `[1, 20]`.
298 /// The range of component `s` is `[0, 100]`.
299 fn kill_identity(r: u32, s: u32, ) -> Weight {
300 // Proof Size summary in bytes:
301 // Measured: `7209 + r * (5 ±0) + s * (32 ±0)`
302 // Estimated: `11003`
303 // Minimum execution time: 74_949_000 picoseconds.
304 Weight::from_parts(72_306_168, 11003)
305 // Standard Error: 19_097
306 .saturating_add(Weight::from_parts(462_202, 0).saturating_mul(r.into()))
307 // Standard Error: 3_726
308 .saturating_add(Weight::from_parts(1_487_085, 0).saturating_mul(s.into()))
309 .saturating_add(T::DbWeight::get().reads(3_u64))
310 .saturating_add(T::DbWeight::get().writes(3_u64))
311 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
312 }
313 /// Storage: `Identity::IdentityOf` (r:1 w:0)
314 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
315 /// Storage: `Identity::SuperOf` (r:1 w:1)
316 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
317 /// Storage: `Identity::SubsOf` (r:1 w:1)
318 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
319 /// The range of component `s` is `[0, 99]`.
320 fn add_sub(s: u32, ) -> Weight {
321 // Proof Size summary in bytes:
322 // Measured: `451 + s * (36 ±0)`
323 // Estimated: `11003`
324 // Minimum execution time: 25_754_000 picoseconds.
325 Weight::from_parts(32_010_010, 11003)
326 // Standard Error: 1_607
327 .saturating_add(Weight::from_parts(109_303, 0).saturating_mul(s.into()))
328 .saturating_add(T::DbWeight::get().reads(3_u64))
329 .saturating_add(T::DbWeight::get().writes(2_u64))
330 }
331 /// Storage: `Identity::IdentityOf` (r:1 w:0)
332 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
333 /// Storage: `Identity::SuperOf` (r:1 w:1)
334 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
335 /// The range of component `s` is `[1, 100]`.
336 fn rename_sub(s: u32, ) -> Weight {
337 // Proof Size summary in bytes:
338 // Measured: `567 + s * (3 ±0)`
339 // Estimated: `11003`
340 // Minimum execution time: 16_047_000 picoseconds.
341 Weight::from_parts(18_669_365, 11003)
342 // Standard Error: 754
343 .saturating_add(Weight::from_parts(55_626, 0).saturating_mul(s.into()))
344 .saturating_add(T::DbWeight::get().reads(2_u64))
345 .saturating_add(T::DbWeight::get().writes(1_u64))
346 }
347 /// Storage: `Identity::IdentityOf` (r:1 w:0)
348 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
349 /// Storage: `Identity::SuperOf` (r:1 w:1)
350 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
351 /// Storage: `Identity::SubsOf` (r:1 w:1)
352 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
353 /// The range of component `s` is `[1, 100]`.
354 fn remove_sub(s: u32, ) -> Weight {
355 // Proof Size summary in bytes:
356 // Measured: `614 + s * (35 ±0)`
357 // Estimated: `11003`
358 // Minimum execution time: 31_667_000 picoseconds.
359 Weight::from_parts(34_764_962, 11003)
360 // Standard Error: 961
361 .saturating_add(Weight::from_parts(91_275, 0).saturating_mul(s.into()))
362 .saturating_add(T::DbWeight::get().reads(3_u64))
363 .saturating_add(T::DbWeight::get().writes(2_u64))
364 }
365 /// Storage: `Identity::SuperOf` (r:1 w:1)
366 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
367 /// Storage: `Identity::SubsOf` (r:1 w:1)
368 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
369 /// Storage: `System::Account` (r:1 w:0)
370 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
371 /// The range of component `s` is `[0, 99]`.
372 fn quit_sub(s: u32, ) -> Weight {
373 // Proof Size summary in bytes:
374 // Measured: `592 + s * (37 ±0)`
375 // Estimated: `6723`
376 // Minimum execution time: 21_800_000 picoseconds.
377 Weight::from_parts(23_698_115, 6723)
378 // Standard Error: 757
379 .saturating_add(Weight::from_parts(98_569, 0).saturating_mul(s.into()))
380 .saturating_add(T::DbWeight::get().reads(3_u64))
381 .saturating_add(T::DbWeight::get().writes(2_u64))
382 }
383 /// Storage: `Identity::AuthorityOf` (r:0 w:1)
384 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
385 fn add_username_authority() -> Weight {
386 // Proof Size summary in bytes:
387 // Measured: `0`
388 // Estimated: `0`
389 // Minimum execution time: 5_661_000 picoseconds.
390 Weight::from_parts(5_942_000, 0)
391 .saturating_add(T::DbWeight::get().writes(1_u64))
392 }
393 /// Storage: `Identity::AuthorityOf` (r:1 w:1)
394 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
395 fn remove_username_authority() -> Weight {
396 // Proof Size summary in bytes:
397 // Measured: `55`
398 // Estimated: `3517`
399 // Minimum execution time: 7_913_000 picoseconds.
400 Weight::from_parts(8_170_000, 3517)
401 .saturating_add(T::DbWeight::get().reads(1_u64))
402 .saturating_add(T::DbWeight::get().writes(1_u64))
403 }
404 /// Storage: `Identity::AuthorityOf` (r:1 w:1)
405 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
406 /// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
407 /// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
408 /// Storage: `Identity::PendingUsernames` (r:1 w:0)
409 /// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)
410 /// Storage: `Identity::UsernameOf` (r:1 w:1)
411 /// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
412 /// Storage: `System::Account` (r:1 w:1)
413 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
414 /// The range of component `p` is `[0, 1]`.
415 fn set_username_for(_p: u32, ) -> Weight {
416 // Proof Size summary in bytes:
417 // Measured: `107`
418 // Estimated: `3593`
419 // Minimum execution time: 63_221_000 picoseconds.
420 Weight::from_parts(80_172_122, 3593)
421 .saturating_add(T::DbWeight::get().reads(5_u64))
422 .saturating_add(T::DbWeight::get().writes(4_u64))
423 }
424 /// Storage: `Identity::PendingUsernames` (r:1 w:1)
425 /// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)
426 /// Storage: `Identity::UsernameOf` (r:1 w:1)
427 /// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
428 /// Storage: `Identity::UsernameInfoOf` (r:0 w:1)
429 /// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
430 fn accept_username() -> Weight {
431 // Proof Size summary in bytes:
432 // Measured: `90`
433 // Estimated: `3567`
434 // Minimum execution time: 17_964_000 picoseconds.
435 Weight::from_parts(18_409_000, 3567)
436 .saturating_add(T::DbWeight::get().reads(2_u64))
437 .saturating_add(T::DbWeight::get().writes(3_u64))
438 }
439 /// Storage: `Identity::PendingUsernames` (r:1 w:1)
440 /// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)
441 /// Storage: `Identity::AuthorityOf` (r:1 w:0)
442 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
443 /// Storage: `System::Account` (r:1 w:1)
444 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
445 /// The range of component `p` is `[0, 1]`.
446 fn remove_expired_approval(_p: u32, ) -> Weight {
447 // Proof Size summary in bytes:
448 // Measured: `235`
449 // Estimated: `3593`
450 // Minimum execution time: 17_140_000 picoseconds.
451 Weight::from_parts(49_710_620, 3593)
452 .saturating_add(T::DbWeight::get().reads(3_u64))
453 .saturating_add(T::DbWeight::get().writes(2_u64))
454 }
455 /// Storage: `Identity::UsernameInfoOf` (r:1 w:0)
456 /// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
457 /// Storage: `Identity::UsernameOf` (r:0 w:1)
458 /// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
459 fn set_primary_username() -> Weight {
460 // Proof Size summary in bytes:
461 // Measured: `150`
462 // Estimated: `3563`
463 // Minimum execution time: 12_148_000 picoseconds.
464 Weight::from_parts(12_524_000, 3563)
465 .saturating_add(T::DbWeight::get().reads(1_u64))
466 .saturating_add(T::DbWeight::get().writes(1_u64))
467 }
468 /// Storage: `Identity::UsernameInfoOf` (r:1 w:0)
469 /// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
470 /// Storage: `Identity::AuthorityOf` (r:1 w:0)
471 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
472 /// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
473 /// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
474 fn unbind_username() -> Weight {
475 // Proof Size summary in bytes:
476 // Measured: `212`
477 // Estimated: `3563`
478 // Minimum execution time: 16_905_000 picoseconds.
479 Weight::from_parts(17_417_000, 3563)
480 .saturating_add(T::DbWeight::get().reads(3_u64))
481 .saturating_add(T::DbWeight::get().writes(1_u64))
482 }
483 /// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
484 /// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
485 /// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
486 /// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
487 /// Storage: `Identity::UsernameOf` (r:1 w:1)
488 /// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
489 /// Storage: `Identity::AuthorityOf` (r:1 w:0)
490 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
491 fn remove_username() -> Weight {
492 // Proof Size summary in bytes:
493 // Measured: `273`
494 // Estimated: `3563`
495 // Minimum execution time: 21_777_000 picoseconds.
496 Weight::from_parts(22_461_000, 3563)
497 .saturating_add(T::DbWeight::get().reads(4_u64))
498 .saturating_add(T::DbWeight::get().writes(3_u64))
499 }
500 /// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
501 /// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
502 /// Storage: `Identity::UsernameOf` (r:1 w:1)
503 /// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
504 /// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
505 /// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
506 /// Storage: `Identity::AuthorityOf` (r:1 w:0)
507 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
508 /// Storage: `System::Account` (r:1 w:1)
509 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
510 /// The range of component `p` is `[0, 1]`.
511 fn kill_username(_p: u32, ) -> Weight {
512 // Proof Size summary in bytes:
513 // Measured: `400`
514 // Estimated: `3593`
515 // Minimum execution time: 20_021_000 picoseconds.
516 Weight::from_parts(52_518_565, 3593)
517 .saturating_add(T::DbWeight::get().reads(5_u64))
518 .saturating_add(T::DbWeight::get().writes(4_u64))
519 }
520 /// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:2 w:0)
521 /// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:2 w:0)
522 /// Storage: `Identity::AuthorityOf` (r:0 w:1)
523 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
524 fn migration_v2_authority_step() -> Weight {
525 // Proof Size summary in bytes:
526 // Measured: `126`
527 // Estimated: `6066`
528 // Minimum execution time: 7_855_000 picoseconds.
529 Weight::from_parts(8_216_000, 6066)
530 .saturating_add(T::DbWeight::get().reads(2_u64))
531 .saturating_add(T::DbWeight::get().writes(1_u64))
532 }
533 /// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:2 w:0)
534 /// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:2 w:0)
535 /// Storage: `Identity::UsernameInfoOf` (r:0 w:1)
536 /// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
537 fn migration_v2_username_step() -> Weight {
538 // Proof Size summary in bytes:
539 // Measured: `138`
540 // Estimated: `6078`
541 // Minimum execution time: 7_467_000 picoseconds.
542 Weight::from_parts(7_987_000, 6078)
543 .saturating_add(T::DbWeight::get().reads(2_u64))
544 .saturating_add(T::DbWeight::get().writes(1_u64))
545 }
546 /// Storage: `Identity::IdentityOf` (r:2 w:1)
547 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
548 /// Storage: `Identity::UsernameOf` (r:0 w:1)
549 /// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
550 fn migration_v2_identity_step() -> Weight {
551 // Proof Size summary in bytes:
552 // Measured: `7041`
553 // Estimated: `21016`
554 // Minimum execution time: 62_502_000 picoseconds.
555 Weight::from_parts(63_160_000, 21016)
556 .saturating_add(T::DbWeight::get().reads(2_u64))
557 .saturating_add(T::DbWeight::get().writes(2_u64))
558 }
559 /// Storage: `Identity::PendingUsernames` (r:2 w:1)
560 /// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)
561 fn migration_v2_pending_username_step() -> Weight {
562 // Proof Size summary in bytes:
563 // Measured: `180`
564 // Estimated: `6144`
565 // Minimum execution time: 7_111_000 picoseconds.
566 Weight::from_parts(7_353_000, 6144)
567 .saturating_add(T::DbWeight::get().reads(2_u64))
568 .saturating_add(T::DbWeight::get().writes(1_u64))
569 }
570 /// Storage: `Identity::AuthorityOf` (r:2 w:0)
571 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
572 /// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:1 w:1)
573 /// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:1 w:1)
574 fn migration_v2_cleanup_authority_step() -> Weight {
575 // Proof Size summary in bytes:
576 // Measured: `264`
577 // Estimated: `6044`
578 // Minimum execution time: 10_104_000 picoseconds.
579 Weight::from_parts(10_560_000, 6044)
580 .saturating_add(T::DbWeight::get().reads(3_u64))
581 .saturating_add(T::DbWeight::get().writes(1_u64))
582 }
583 /// Storage: `Identity::UsernameInfoOf` (r:2 w:0)
584 /// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
585 /// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:1 w:1)
586 /// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:1 w:1)
587 fn migration_v2_cleanup_username_step() -> Weight {
588 // Proof Size summary in bytes:
589 // Measured: `290`
590 // Estimated: `6136`
591 // Minimum execution time: 9_955_000 picoseconds.
592 Weight::from_parts(10_451_000, 6136)
593 .saturating_add(T::DbWeight::get().reads(3_u64))
594 .saturating_add(T::DbWeight::get().writes(1_u64))
595 }
596}
597
598// For backwards compatibility and tests.
599impl WeightInfo for () {
600 /// Storage: `Identity::Registrars` (r:1 w:1)
601 /// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
602 /// The range of component `r` is `[1, 19]`.
603 fn add_registrar(r: u32, ) -> Weight {
604 // Proof Size summary in bytes:
605 // Measured: `6 + r * (57 ±0)`
606 // Estimated: `2626`
607 // Minimum execution time: 7_086_000 picoseconds.
608 Weight::from_parts(8_205_421, 2626)
609 // Standard Error: 2_290
610 .saturating_add(Weight::from_parts(124_282, 0).saturating_mul(r.into()))
611 .saturating_add(RocksDbWeight::get().reads(1_u64))
612 .saturating_add(RocksDbWeight::get().writes(1_u64))
613 }
614 /// Storage: `Identity::IdentityOf` (r:1 w:1)
615 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
616 /// The range of component `r` is `[1, 20]`.
617 fn set_identity(r: u32, ) -> Weight {
618 // Proof Size summary in bytes:
619 // Measured: `6955 + r * (5 ±0)`
620 // Estimated: `11003`
621 // Minimum execution time: 114_199_000 picoseconds.
622 Weight::from_parts(115_873_094, 11003)
623 // Standard Error: 10_022
624 .saturating_add(Weight::from_parts(170_077, 0).saturating_mul(r.into()))
625 .saturating_add(RocksDbWeight::get().reads(1_u64))
626 .saturating_add(RocksDbWeight::get().writes(1_u64))
627 }
628 /// Storage: `Identity::IdentityOf` (r:1 w:0)
629 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
630 /// Storage: `Identity::SubsOf` (r:1 w:1)
631 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
632 /// Storage: `Identity::SuperOf` (r:100 w:100)
633 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
634 /// The range of component `s` is `[0, 100]`.
635 fn set_subs_new(s: u32, ) -> Weight {
636 // Proof Size summary in bytes:
637 // Measured: `75`
638 // Estimated: `11003 + s * (2589 ±0)`
639 // Minimum execution time: 10_852_000 picoseconds.
640 Weight::from_parts(23_044_144, 11003)
641 // Standard Error: 5_568
642 .saturating_add(Weight::from_parts(3_619_023, 0).saturating_mul(s.into()))
643 .saturating_add(RocksDbWeight::get().reads(2_u64))
644 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(s.into())))
645 .saturating_add(RocksDbWeight::get().writes(1_u64))
646 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
647 .saturating_add(Weight::from_parts(0, 2589).saturating_mul(s.into()))
648 }
649 /// Storage: `Identity::IdentityOf` (r:1 w:0)
650 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
651 /// Storage: `Identity::SubsOf` (r:1 w:1)
652 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
653 /// Storage: `Identity::SuperOf` (r:0 w:100)
654 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
655 /// The range of component `p` is `[0, 100]`.
656 fn set_subs_old(p: u32, ) -> Weight {
657 // Proof Size summary in bytes:
658 // Measured: `194 + p * (32 ±0)`
659 // Estimated: `11003`
660 // Minimum execution time: 10_817_000 picoseconds.
661 Weight::from_parts(26_312_295, 11003)
662 // Standard Error: 5_090
663 .saturating_add(Weight::from_parts(1_469_411, 0).saturating_mul(p.into()))
664 .saturating_add(RocksDbWeight::get().reads(2_u64))
665 .saturating_add(RocksDbWeight::get().writes(1_u64))
666 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(p.into())))
667 }
668 /// Storage: `Identity::SubsOf` (r:1 w:1)
669 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
670 /// Storage: `Identity::IdentityOf` (r:1 w:1)
671 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
672 /// Storage: `Identity::SuperOf` (r:0 w:100)
673 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
674 /// The range of component `r` is `[1, 20]`.
675 /// The range of component `s` is `[0, 100]`.
676 fn clear_identity(r: u32, s: u32, ) -> Weight {
677 // Proof Size summary in bytes:
678 // Measured: `7069 + r * (5 ±0) + s * (32 ±0)`
679 // Estimated: `11003`
680 // Minimum execution time: 54_514_000 picoseconds.
681 Weight::from_parts(53_735_553, 11003)
682 // Standard Error: 16_389
683 .saturating_add(Weight::from_parts(299_626, 0).saturating_mul(r.into()))
684 // Standard Error: 3_198
685 .saturating_add(Weight::from_parts(1_439_399, 0).saturating_mul(s.into()))
686 .saturating_add(RocksDbWeight::get().reads(2_u64))
687 .saturating_add(RocksDbWeight::get().writes(2_u64))
688 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
689 }
690 /// Storage: `Identity::Registrars` (r:1 w:0)
691 /// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
692 /// Storage: `Identity::IdentityOf` (r:1 w:1)
693 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
694 /// The range of component `r` is `[1, 20]`.
695 fn request_judgement(r: u32, ) -> Weight {
696 // Proof Size summary in bytes:
697 // Measured: `6946 + r * (57 ±0)`
698 // Estimated: `11003`
699 // Minimum execution time: 77_675_000 picoseconds.
700 Weight::from_parts(79_151_582, 11003)
701 // Standard Error: 4_971
702 .saturating_add(Weight::from_parts(144_708, 0).saturating_mul(r.into()))
703 .saturating_add(RocksDbWeight::get().reads(2_u64))
704 .saturating_add(RocksDbWeight::get().writes(1_u64))
705 }
706 /// Storage: `Identity::IdentityOf` (r:1 w:1)
707 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
708 /// The range of component `r` is `[1, 20]`.
709 fn cancel_request(r: u32, ) -> Weight {
710 // Proof Size summary in bytes:
711 // Measured: `6976`
712 // Estimated: `11003`
713 // Minimum execution time: 73_927_000 picoseconds.
714 Weight::from_parts(75_928_402, 11003)
715 // Standard Error: 4_193
716 .saturating_add(Weight::from_parts(74_407, 0).saturating_mul(r.into()))
717 .saturating_add(RocksDbWeight::get().reads(1_u64))
718 .saturating_add(RocksDbWeight::get().writes(1_u64))
719 }
720 /// Storage: `Identity::Registrars` (r:1 w:1)
721 /// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
722 /// The range of component `r` is `[1, 19]`.
723 fn set_fee(r: u32, ) -> Weight {
724 // Proof Size summary in bytes:
725 // Measured: `63 + r * (57 ±0)`
726 // Estimated: `2626`
727 // Minimum execution time: 4_602_000 picoseconds.
728 Weight::from_parts(5_502_556, 2626)
729 // Standard Error: 1_986
730 .saturating_add(Weight::from_parts(98_575, 0).saturating_mul(r.into()))
731 .saturating_add(RocksDbWeight::get().reads(1_u64))
732 .saturating_add(RocksDbWeight::get().writes(1_u64))
733 }
734 /// Storage: `Identity::Registrars` (r:1 w:1)
735 /// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
736 /// The range of component `r` is `[1, 19]`.
737 fn set_account_id(r: u32, ) -> Weight {
738 // Proof Size summary in bytes:
739 // Measured: `63 + r * (57 ±0)`
740 // Estimated: `2626`
741 // Minimum execution time: 4_986_000 picoseconds.
742 Weight::from_parts(5_246_840, 2626)
743 // Standard Error: 1_304
744 .saturating_add(Weight::from_parts(55_466, 0).saturating_mul(r.into()))
745 .saturating_add(RocksDbWeight::get().reads(1_u64))
746 .saturating_add(RocksDbWeight::get().writes(1_u64))
747 }
748 /// Storage: `Identity::Registrars` (r:1 w:1)
749 /// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
750 /// The range of component `r` is `[1, 19]`.
751 fn set_fields(r: u32, ) -> Weight {
752 // Proof Size summary in bytes:
753 // Measured: `63 + r * (57 ±0)`
754 // Estimated: `2626`
755 // Minimum execution time: 4_696_000 picoseconds.
756 Weight::from_parts(5_047_216, 2626)
757 // Standard Error: 1_236
758 .saturating_add(Weight::from_parts(60_918, 0).saturating_mul(r.into()))
759 .saturating_add(RocksDbWeight::get().reads(1_u64))
760 .saturating_add(RocksDbWeight::get().writes(1_u64))
761 }
762 /// Storage: `Identity::Registrars` (r:1 w:0)
763 /// Proof: `Identity::Registrars` (`max_values`: Some(1), `max_size`: Some(1141), added: 1636, mode: `MaxEncodedLen`)
764 /// Storage: `Identity::IdentityOf` (r:1 w:1)
765 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
766 /// The range of component `r` is `[1, 19]`.
767 fn provide_judgement(r: u32, ) -> Weight {
768 // Proof Size summary in bytes:
769 // Measured: `7024 + r * (57 ±0)`
770 // Estimated: `11003`
771 // Minimum execution time: 97_919_000 picoseconds.
772 Weight::from_parts(99_508_071, 11003)
773 // Standard Error: 4_757
774 .saturating_add(Weight::from_parts(99_527, 0).saturating_mul(r.into()))
775 .saturating_add(RocksDbWeight::get().reads(2_u64))
776 .saturating_add(RocksDbWeight::get().writes(1_u64))
777 }
778 /// Storage: `Identity::SubsOf` (r:1 w:1)
779 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
780 /// Storage: `Identity::IdentityOf` (r:1 w:1)
781 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
782 /// Storage: `System::Account` (r:1 w:1)
783 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
784 /// Storage: `Identity::SuperOf` (r:0 w:100)
785 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
786 /// The range of component `r` is `[1, 20]`.
787 /// The range of component `s` is `[0, 100]`.
788 fn kill_identity(r: u32, s: u32, ) -> Weight {
789 // Proof Size summary in bytes:
790 // Measured: `7209 + r * (5 ±0) + s * (32 ±0)`
791 // Estimated: `11003`
792 // Minimum execution time: 74_949_000 picoseconds.
793 Weight::from_parts(72_306_168, 11003)
794 // Standard Error: 19_097
795 .saturating_add(Weight::from_parts(462_202, 0).saturating_mul(r.into()))
796 // Standard Error: 3_726
797 .saturating_add(Weight::from_parts(1_487_085, 0).saturating_mul(s.into()))
798 .saturating_add(RocksDbWeight::get().reads(3_u64))
799 .saturating_add(RocksDbWeight::get().writes(3_u64))
800 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
801 }
802 /// Storage: `Identity::IdentityOf` (r:1 w:0)
803 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
804 /// Storage: `Identity::SuperOf` (r:1 w:1)
805 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
806 /// Storage: `Identity::SubsOf` (r:1 w:1)
807 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
808 /// The range of component `s` is `[0, 99]`.
809 fn add_sub(s: u32, ) -> Weight {
810 // Proof Size summary in bytes:
811 // Measured: `451 + s * (36 ±0)`
812 // Estimated: `11003`
813 // Minimum execution time: 25_754_000 picoseconds.
814 Weight::from_parts(32_010_010, 11003)
815 // Standard Error: 1_607
816 .saturating_add(Weight::from_parts(109_303, 0).saturating_mul(s.into()))
817 .saturating_add(RocksDbWeight::get().reads(3_u64))
818 .saturating_add(RocksDbWeight::get().writes(2_u64))
819 }
820 /// Storage: `Identity::IdentityOf` (r:1 w:0)
821 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
822 /// Storage: `Identity::SuperOf` (r:1 w:1)
823 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
824 /// The range of component `s` is `[1, 100]`.
825 fn rename_sub(s: u32, ) -> Weight {
826 // Proof Size summary in bytes:
827 // Measured: `567 + s * (3 ±0)`
828 // Estimated: `11003`
829 // Minimum execution time: 16_047_000 picoseconds.
830 Weight::from_parts(18_669_365, 11003)
831 // Standard Error: 754
832 .saturating_add(Weight::from_parts(55_626, 0).saturating_mul(s.into()))
833 .saturating_add(RocksDbWeight::get().reads(2_u64))
834 .saturating_add(RocksDbWeight::get().writes(1_u64))
835 }
836 /// Storage: `Identity::IdentityOf` (r:1 w:0)
837 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
838 /// Storage: `Identity::SuperOf` (r:1 w:1)
839 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
840 /// Storage: `Identity::SubsOf` (r:1 w:1)
841 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
842 /// The range of component `s` is `[1, 100]`.
843 fn remove_sub(s: u32, ) -> Weight {
844 // Proof Size summary in bytes:
845 // Measured: `614 + s * (35 ±0)`
846 // Estimated: `11003`
847 // Minimum execution time: 31_667_000 picoseconds.
848 Weight::from_parts(34_764_962, 11003)
849 // Standard Error: 961
850 .saturating_add(Weight::from_parts(91_275, 0).saturating_mul(s.into()))
851 .saturating_add(RocksDbWeight::get().reads(3_u64))
852 .saturating_add(RocksDbWeight::get().writes(2_u64))
853 }
854 /// Storage: `Identity::SuperOf` (r:1 w:1)
855 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
856 /// Storage: `Identity::SubsOf` (r:1 w:1)
857 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
858 /// Storage: `System::Account` (r:1 w:0)
859 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
860 /// The range of component `s` is `[0, 99]`.
861 fn quit_sub(s: u32, ) -> Weight {
862 // Proof Size summary in bytes:
863 // Measured: `592 + s * (37 ±0)`
864 // Estimated: `6723`
865 // Minimum execution time: 21_800_000 picoseconds.
866 Weight::from_parts(23_698_115, 6723)
867 // Standard Error: 757
868 .saturating_add(Weight::from_parts(98_569, 0).saturating_mul(s.into()))
869 .saturating_add(RocksDbWeight::get().reads(3_u64))
870 .saturating_add(RocksDbWeight::get().writes(2_u64))
871 }
872 /// Storage: `Identity::AuthorityOf` (r:0 w:1)
873 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
874 fn add_username_authority() -> Weight {
875 // Proof Size summary in bytes:
876 // Measured: `0`
877 // Estimated: `0`
878 // Minimum execution time: 5_661_000 picoseconds.
879 Weight::from_parts(5_942_000, 0)
880 .saturating_add(RocksDbWeight::get().writes(1_u64))
881 }
882 /// Storage: `Identity::AuthorityOf` (r:1 w:1)
883 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
884 fn remove_username_authority() -> Weight {
885 // Proof Size summary in bytes:
886 // Measured: `55`
887 // Estimated: `3517`
888 // Minimum execution time: 7_913_000 picoseconds.
889 Weight::from_parts(8_170_000, 3517)
890 .saturating_add(RocksDbWeight::get().reads(1_u64))
891 .saturating_add(RocksDbWeight::get().writes(1_u64))
892 }
893 /// Storage: `Identity::AuthorityOf` (r:1 w:1)
894 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
895 /// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
896 /// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
897 /// Storage: `Identity::PendingUsernames` (r:1 w:0)
898 /// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)
899 /// Storage: `Identity::UsernameOf` (r:1 w:1)
900 /// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
901 /// Storage: `System::Account` (r:1 w:1)
902 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
903 /// The range of component `p` is `[0, 1]`.
904 fn set_username_for(_p: u32, ) -> Weight {
905 // Proof Size summary in bytes:
906 // Measured: `107`
907 // Estimated: `3593`
908 // Minimum execution time: 63_221_000 picoseconds.
909 Weight::from_parts(80_172_122, 3593)
910 .saturating_add(RocksDbWeight::get().reads(5_u64))
911 .saturating_add(RocksDbWeight::get().writes(4_u64))
912 }
913 /// Storage: `Identity::PendingUsernames` (r:1 w:1)
914 /// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)
915 /// Storage: `Identity::UsernameOf` (r:1 w:1)
916 /// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
917 /// Storage: `Identity::UsernameInfoOf` (r:0 w:1)
918 /// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
919 fn accept_username() -> Weight {
920 // Proof Size summary in bytes:
921 // Measured: `90`
922 // Estimated: `3567`
923 // Minimum execution time: 17_964_000 picoseconds.
924 Weight::from_parts(18_409_000, 3567)
925 .saturating_add(RocksDbWeight::get().reads(2_u64))
926 .saturating_add(RocksDbWeight::get().writes(3_u64))
927 }
928 /// Storage: `Identity::PendingUsernames` (r:1 w:1)
929 /// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)
930 /// Storage: `Identity::AuthorityOf` (r:1 w:0)
931 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
932 /// Storage: `System::Account` (r:1 w:1)
933 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
934 /// The range of component `p` is `[0, 1]`.
935 fn remove_expired_approval(_p: u32, ) -> Weight {
936 // Proof Size summary in bytes:
937 // Measured: `235`
938 // Estimated: `3593`
939 // Minimum execution time: 17_140_000 picoseconds.
940 Weight::from_parts(49_710_620, 3593)
941 .saturating_add(RocksDbWeight::get().reads(3_u64))
942 .saturating_add(RocksDbWeight::get().writes(2_u64))
943 }
944 /// Storage: `Identity::UsernameInfoOf` (r:1 w:0)
945 /// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
946 /// Storage: `Identity::UsernameOf` (r:0 w:1)
947 /// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
948 fn set_primary_username() -> Weight {
949 // Proof Size summary in bytes:
950 // Measured: `150`
951 // Estimated: `3563`
952 // Minimum execution time: 12_148_000 picoseconds.
953 Weight::from_parts(12_524_000, 3563)
954 .saturating_add(RocksDbWeight::get().reads(1_u64))
955 .saturating_add(RocksDbWeight::get().writes(1_u64))
956 }
957 /// Storage: `Identity::UsernameInfoOf` (r:1 w:0)
958 /// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
959 /// Storage: `Identity::AuthorityOf` (r:1 w:0)
960 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
961 /// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
962 /// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
963 fn unbind_username() -> Weight {
964 // Proof Size summary in bytes:
965 // Measured: `212`
966 // Estimated: `3563`
967 // Minimum execution time: 16_905_000 picoseconds.
968 Weight::from_parts(17_417_000, 3563)
969 .saturating_add(RocksDbWeight::get().reads(3_u64))
970 .saturating_add(RocksDbWeight::get().writes(1_u64))
971 }
972 /// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
973 /// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
974 /// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
975 /// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
976 /// Storage: `Identity::UsernameOf` (r:1 w:1)
977 /// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
978 /// Storage: `Identity::AuthorityOf` (r:1 w:0)
979 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
980 fn remove_username() -> Weight {
981 // Proof Size summary in bytes:
982 // Measured: `273`
983 // Estimated: `3563`
984 // Minimum execution time: 21_777_000 picoseconds.
985 Weight::from_parts(22_461_000, 3563)
986 .saturating_add(RocksDbWeight::get().reads(4_u64))
987 .saturating_add(RocksDbWeight::get().writes(3_u64))
988 }
989 /// Storage: `Identity::UsernameInfoOf` (r:1 w:1)
990 /// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
991 /// Storage: `Identity::UsernameOf` (r:1 w:1)
992 /// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
993 /// Storage: `Identity::UnbindingUsernames` (r:1 w:1)
994 /// Proof: `Identity::UnbindingUsernames` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
995 /// Storage: `Identity::AuthorityOf` (r:1 w:0)
996 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
997 /// Storage: `System::Account` (r:1 w:1)
998 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
999 /// The range of component `p` is `[0, 1]`.
1000 fn kill_username(_p: u32, ) -> Weight {
1001 // Proof Size summary in bytes:
1002 // Measured: `400`
1003 // Estimated: `3593`
1004 // Minimum execution time: 20_021_000 picoseconds.
1005 Weight::from_parts(52_518_565, 3593)
1006 .saturating_add(RocksDbWeight::get().reads(5_u64))
1007 .saturating_add(RocksDbWeight::get().writes(4_u64))
1008 }
1009 /// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:2 w:0)
1010 /// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:2 w:0)
1011 /// Storage: `Identity::AuthorityOf` (r:0 w:1)
1012 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
1013 fn migration_v2_authority_step() -> Weight {
1014 // Proof Size summary in bytes:
1015 // Measured: `126`
1016 // Estimated: `6066`
1017 // Minimum execution time: 7_855_000 picoseconds.
1018 Weight::from_parts(8_216_000, 6066)
1019 .saturating_add(RocksDbWeight::get().reads(2_u64))
1020 .saturating_add(RocksDbWeight::get().writes(1_u64))
1021 }
1022 /// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:2 w:0)
1023 /// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:2 w:0)
1024 /// Storage: `Identity::UsernameInfoOf` (r:0 w:1)
1025 /// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
1026 fn migration_v2_username_step() -> Weight {
1027 // Proof Size summary in bytes:
1028 // Measured: `138`
1029 // Estimated: `6078`
1030 // Minimum execution time: 7_467_000 picoseconds.
1031 Weight::from_parts(7_987_000, 6078)
1032 .saturating_add(RocksDbWeight::get().reads(2_u64))
1033 .saturating_add(RocksDbWeight::get().writes(1_u64))
1034 }
1035 /// Storage: `Identity::IdentityOf` (r:2 w:1)
1036 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
1037 /// Storage: `Identity::UsernameOf` (r:0 w:1)
1038 /// Proof: `Identity::UsernameOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1039 fn migration_v2_identity_step() -> Weight {
1040 // Proof Size summary in bytes:
1041 // Measured: `7041`
1042 // Estimated: `21016`
1043 // Minimum execution time: 62_502_000 picoseconds.
1044 Weight::from_parts(63_160_000, 21016)
1045 .saturating_add(RocksDbWeight::get().reads(2_u64))
1046 .saturating_add(RocksDbWeight::get().writes(2_u64))
1047 }
1048 /// Storage: `Identity::PendingUsernames` (r:2 w:1)
1049 /// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)
1050 fn migration_v2_pending_username_step() -> Weight {
1051 // Proof Size summary in bytes:
1052 // Measured: `180`
1053 // Estimated: `6144`
1054 // Minimum execution time: 7_111_000 picoseconds.
1055 Weight::from_parts(7_353_000, 6144)
1056 .saturating_add(RocksDbWeight::get().reads(2_u64))
1057 .saturating_add(RocksDbWeight::get().writes(1_u64))
1058 }
1059 /// Storage: `Identity::AuthorityOf` (r:2 w:0)
1060 /// Proof: `Identity::AuthorityOf` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
1061 /// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:1 w:1)
1062 /// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f99622d1423cdd16f5c33e2b531c34a53d` (r:1 w:1)
1063 fn migration_v2_cleanup_authority_step() -> Weight {
1064 // Proof Size summary in bytes:
1065 // Measured: `264`
1066 // Estimated: `6044`
1067 // Minimum execution time: 10_104_000 picoseconds.
1068 Weight::from_parts(10_560_000, 6044)
1069 .saturating_add(RocksDbWeight::get().reads(3_u64))
1070 .saturating_add(RocksDbWeight::get().writes(1_u64))
1071 }
1072 /// Storage: `Identity::UsernameInfoOf` (r:2 w:0)
1073 /// Proof: `Identity::UsernameInfoOf` (`max_values`: None, `max_size`: Some(98), added: 2573, mode: `MaxEncodedLen`)
1074 /// Storage: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:1 w:1)
1075 /// Proof: UNKNOWN KEY `0x2aeddc77fe58c98d50bd37f1b90840f97c182fead9255863460affdd63116be3` (r:1 w:1)
1076 fn migration_v2_cleanup_username_step() -> Weight {
1077 // Proof Size summary in bytes:
1078 // Measured: `290`
1079 // Estimated: `6136`
1080 // Minimum execution time: 9_955_000 picoseconds.
1081 Weight::from_parts(10_451_000, 6136)
1082 .saturating_add(RocksDbWeight::get().reads(3_u64))
1083 .saturating_add(RocksDbWeight::get().writes(1_u64))
1084 }
1085}