mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 19:11:02 +00:00
d1f678c0ec
This PR allows _username authorities_ to issue unique usernames that correspond with an account. It also provides two-way lookup, that is from `AccountId` to a single, "primary" `Username` (alongside `Registration`) and multiple unique `Username`s to an `AccountId`. Key features: - Username Authorities added (and removed) via privileged origin. - Authorities have a `suffix` and an `allocation`. They can grant up to `allocation` usernames. Their `suffix` will be appended to the usernames that they issue. A suffix may be up to 7 characters long. - Users can ask an authority to grant them a username. This will take the form `myusername.suffix`. The entire name (including suffix) must be less than or equal to 32 alphanumeric characters. - Users can approve a username for themselves in one of two ways (that is, authorities cannot grant them arbitrarily): - Pre-sign the entire username (including suffix) with a secret key that corresponds to their `AccountId` (for keyed accounts, obviously); or - Accept the username after it has been granted by an authority (it will be queued until accepted) (for non-keyed accounts like pure proxies or multisigs). - The system does not require any funds or deposits. Users without an identity will be given a default one (presumably all fields set to `None`). If they update this info, they will need to place the normal storage deposit. - If a user does not have any username, their first one will be set as `Primary`, and their `AccountId` will map to that one. If they get subsequent usernames, they can choose which one to be their primary via `set_primary_username`. - There are some state cleanup functions to remove expired usernames that have not been accepted and dangling usernames whose owners have called `clear_identity`. TODO: - [x] Add migration to runtimes - [x] Probably do off-chain migration into People Chain genesis - [x] Address a few TODO questions in code (please review) --------- Co-authored-by: Liam Aharon <liam.aharon@hotmail.com> Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Dónal Murray <donal.murray@parity.io>
436 lines
20 KiB
Rust
436 lines
20 KiB
Rust
// Copyright (C) Parity Technologies (UK) Ltd.
|
|
// This file is part of Polkadot.
|
|
|
|
// Polkadot is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// Polkadot is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//! Autogenerated weights for `pallet_identity`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-06-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `runner--ss9ysm1-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/production/polkadot
|
|
// benchmark
|
|
// pallet
|
|
// --chain=westend-dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --no-storage-info
|
|
// --no-median-slopes
|
|
// --no-min-squares
|
|
// --pallet=pallet_identity
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/westend/src/weights/
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
#![allow(missing_docs)]
|
|
|
|
use frame_support::{traits::Get, weights::Weight};
|
|
use core::marker::PhantomData;
|
|
|
|
/// Weight functions for `pallet_identity`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> {
|
|
/// Storage: Identity Registrars (r:1 w:1)
|
|
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 19]`.
|
|
fn add_registrar(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `32 + r * (57 ±0)`
|
|
// Estimated: `2626`
|
|
// Minimum execution time: 11_550_000 picoseconds.
|
|
Weight::from_parts(12_323_322, 0)
|
|
.saturating_add(Weight::from_parts(0, 2626))
|
|
// Standard Error: 1_709
|
|
.saturating_add(Weight::from_parts(131_132, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity IdentityOf (r:1 w:1)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 20]`.
|
|
fn set_identity(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `442 + r * (5 ±0)`
|
|
// Estimated: `11003`
|
|
// Minimum execution time: 32_882_000 picoseconds.
|
|
Weight::from_parts(30_046_973, 0)
|
|
.saturating_add(Weight::from_parts(0, 11003))
|
|
// Standard Error: 7_269
|
|
.saturating_add(Weight::from_parts(250_439, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity IdentityOf (r:1 w:0)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// Storage: Identity SubsOf (r:1 w:1)
|
|
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
|
/// Storage: Identity SuperOf (r:100 w:100)
|
|
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn set_subs_new(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `101`
|
|
// Estimated: `11003 + s * (2589 ±0)`
|
|
// Minimum execution time: 9_045_000 picoseconds.
|
|
Weight::from_parts(22_036_189, 0)
|
|
.saturating_add(Weight::from_parts(0, 11003))
|
|
// Standard Error: 4_819
|
|
.saturating_add(Weight::from_parts(3_134_467, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
|
.saturating_add(Weight::from_parts(0, 2589).saturating_mul(s.into()))
|
|
}
|
|
/// Storage: Identity IdentityOf (r:1 w:0)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// Storage: Identity SubsOf (r:1 w:1)
|
|
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
|
/// Storage: Identity SuperOf (r:0 w:100)
|
|
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
|
/// The range of component `p` is `[0, 100]`.
|
|
fn set_subs_old(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `194 + p * (32 ±0)`
|
|
// Estimated: `11003`
|
|
// Minimum execution time: 8_836_000 picoseconds.
|
|
Weight::from_parts(23_025_121, 0)
|
|
.saturating_add(Weight::from_parts(0, 11003))
|
|
// Standard Error: 4_111
|
|
.saturating_add(Weight::from_parts(1_313_487, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
|
|
}
|
|
/// Storage: Identity SubsOf (r:1 w:1)
|
|
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
|
/// Storage: Identity IdentityOf (r:1 w:1)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// Storage: Identity SuperOf (r:0 w:100)
|
|
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 20]`.
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn clear_identity(r: u32, s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `469 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
|
|
// Estimated: `11003`
|
|
// Minimum execution time: 60_177_000 picoseconds.
|
|
Weight::from_parts(26_533_717, 0)
|
|
.saturating_add(Weight::from_parts(0, 11003))
|
|
// Standard Error: 20_957
|
|
.saturating_add(Weight::from_parts(475_120, 0).saturating_mul(r.into()))
|
|
// Standard Error: 4_092
|
|
.saturating_add(Weight::from_parts(1_348_869, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
|
}
|
|
/// Storage: Identity Registrars (r:1 w:0)
|
|
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
|
/// Storage: Identity IdentityOf (r:1 w:1)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 20]`.
|
|
fn request_judgement(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `367 + r * (57 ±0) + x * (66 ±0)`
|
|
// Estimated: `11003`
|
|
// Minimum execution time: 32_818_000 picoseconds.
|
|
Weight::from_parts(32_253_281, 0)
|
|
.saturating_add(Weight::from_parts(0, 11003))
|
|
// Standard Error: 7_973
|
|
.saturating_add(Weight::from_parts(124_283, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity IdentityOf (r:1 w:1)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 20]`.
|
|
fn cancel_request(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `398 + x * (66 ±0)`
|
|
// Estimated: `11003`
|
|
// Minimum execution time: 29_931_000 picoseconds.
|
|
Weight::from_parts(28_643_196, 0)
|
|
.saturating_add(Weight::from_parts(0, 11003))
|
|
// Standard Error: 5_154
|
|
.saturating_add(Weight::from_parts(147_560, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity Registrars (r:1 w:1)
|
|
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 19]`.
|
|
fn set_fee(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `89 + r * (57 ±0)`
|
|
// Estimated: `2626`
|
|
// Minimum execution time: 7_221_000 picoseconds.
|
|
Weight::from_parts(7_620_590, 0)
|
|
.saturating_add(Weight::from_parts(0, 2626))
|
|
// Standard Error: 3_611
|
|
.saturating_add(Weight::from_parts(118_590, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity Registrars (r:1 w:1)
|
|
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 19]`.
|
|
fn set_account_id(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `89 + r * (57 ±0)`
|
|
// Estimated: `2626`
|
|
// Minimum execution time: 7_426_000 picoseconds.
|
|
Weight::from_parts(7_928_489, 0)
|
|
.saturating_add(Weight::from_parts(0, 2626))
|
|
// Standard Error: 1_447
|
|
.saturating_add(Weight::from_parts(106_416, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity Registrars (r:1 w:1)
|
|
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 19]`.
|
|
fn set_fields(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `89 + r * (57 ±0)`
|
|
// Estimated: `2626`
|
|
// Minimum execution time: 7_359_000 picoseconds.
|
|
Weight::from_parts(7_803_303, 0)
|
|
.saturating_add(Weight::from_parts(0, 2626))
|
|
// Standard Error: 1_272
|
|
.saturating_add(Weight::from_parts(102_561, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity Registrars (r:1 w:0)
|
|
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
|
/// Storage: Identity IdentityOf (r:1 w:1)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 19]`.
|
|
fn provide_judgement(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `445 + r * (57 ±0) + x * (66 ±0)`
|
|
// Estimated: `11003`
|
|
// Minimum execution time: 22_742_000 picoseconds.
|
|
Weight::from_parts(21_879_281, 0)
|
|
.saturating_add(Weight::from_parts(0, 11003))
|
|
// Standard Error: 10_027
|
|
.saturating_add(Weight::from_parts(154_816, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity SubsOf (r:1 w:1)
|
|
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
|
/// Storage: Identity IdentityOf (r:1 w:1)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// Storage: Identity SuperOf (r:0 w:100)
|
|
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 20]`.
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn kill_identity(r: u32, s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `676 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
|
|
// Estimated: `11003`
|
|
// Minimum execution time: 64_467_000 picoseconds.
|
|
Weight::from_parts(27_806_692, 0)
|
|
.saturating_add(Weight::from_parts(0, 11003))
|
|
// Standard Error: 22_702
|
|
.saturating_add(Weight::from_parts(666_376, 0).saturating_mul(r.into()))
|
|
// Standard Error: 4_433
|
|
.saturating_add(Weight::from_parts(1_396_065, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(3))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
|
}
|
|
/// Storage: Identity IdentityOf (r:1 w:0)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// Storage: Identity SuperOf (r:1 w:1)
|
|
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
|
/// Storage: Identity SubsOf (r:1 w:1)
|
|
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[0, 99]`.
|
|
fn add_sub(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `475 + s * (36 ±0)`
|
|
// Estimated: `11003`
|
|
// Minimum execution time: 29_629_000 picoseconds.
|
|
Weight::from_parts(33_761_925, 0)
|
|
.saturating_add(Weight::from_parts(0, 11003))
|
|
// Standard Error: 2_047
|
|
.saturating_add(Weight::from_parts(132_184, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: Identity IdentityOf (r:1 w:0)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// Storage: Identity SuperOf (r:1 w:1)
|
|
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[1, 100]`.
|
|
fn rename_sub(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `591 + s * (3 ±0)`
|
|
// Estimated: `11003`
|
|
// Minimum execution time: 13_204_000 picoseconds.
|
|
Weight::from_parts(14_376_165, 0)
|
|
.saturating_add(Weight::from_parts(0, 11003))
|
|
// Standard Error: 1_699
|
|
.saturating_add(Weight::from_parts(45_951, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity IdentityOf (r:1 w:0)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// Storage: Identity SuperOf (r:1 w:1)
|
|
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
|
/// Storage: Identity SubsOf (r:1 w:1)
|
|
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[1, 100]`.
|
|
fn remove_sub(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `638 + s * (35 ±0)`
|
|
// Estimated: `11003`
|
|
// Minimum execution time: 33_254_000 picoseconds.
|
|
Weight::from_parts(35_772_961, 0)
|
|
.saturating_add(Weight::from_parts(0, 11003))
|
|
// Standard Error: 1_649
|
|
.saturating_add(Weight::from_parts(116_697, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: Identity SuperOf (r:1 w:1)
|
|
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
|
/// Storage: Identity SubsOf (r:1 w:1)
|
|
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:0)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[0, 99]`.
|
|
fn quit_sub(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `704 + s * (37 ±0)`
|
|
// Estimated: `6723`
|
|
// Minimum execution time: 24_613_000 picoseconds.
|
|
Weight::from_parts(26_548_039, 0)
|
|
.saturating_add(Weight::from_parts(0, 6723))
|
|
// Standard Error: 1_602
|
|
.saturating_add(Weight::from_parts(112_354, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Identity::UsernameAuthorities` (r:0 w:1)
|
|
/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
fn add_username_authority() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 13_873_000 picoseconds.
|
|
Weight::from_parts(13_873_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Identity::UsernameAuthorities` (r:0 w:1)
|
|
/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
fn remove_username_authority() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 10_653_000 picoseconds.
|
|
Weight::from_parts(10_653_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Identity::UsernameAuthorities` (r:1 w:1)
|
|
/// Proof: `Identity::UsernameAuthorities` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
/// Storage: `Identity::AccountOfUsername` (r:1 w:1)
|
|
/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Identity::IdentityOf` (r:1 w:1)
|
|
/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
|
|
fn set_username_for() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `80`
|
|
// Estimated: `11037`
|
|
// Minimum execution time: 75_928_000 picoseconds.
|
|
Weight::from_parts(75_928_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 11037))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(3))
|
|
}
|
|
/// Storage: `Identity::PendingUsernames` (r:1 w:1)
|
|
/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(77), added: 2552, mode: `MaxEncodedLen`)
|
|
/// Storage: `Identity::IdentityOf` (r:1 w:1)
|
|
/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
|
|
/// Storage: `Identity::AccountOfUsername` (r:0 w:1)
|
|
/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
fn accept_username() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `106`
|
|
// Estimated: `11037`
|
|
// Minimum execution time: 38_157_000 picoseconds.
|
|
Weight::from_parts(38_157_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 11037))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(3))
|
|
}
|
|
/// Storage: `Identity::PendingUsernames` (r:1 w:1)
|
|
/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(77), added: 2552, mode: `MaxEncodedLen`)
|
|
fn remove_expired_approval() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `106`
|
|
// Estimated: `3542`
|
|
// Minimum execution time: 46_821_000 picoseconds.
|
|
Weight::from_parts(46_821_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3542))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Identity::AccountOfUsername` (r:1 w:0)
|
|
/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Identity::IdentityOf` (r:1 w:1)
|
|
/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
|
|
fn set_primary_username() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `247`
|
|
// Estimated: `11037`
|
|
// Minimum execution time: 22_515_000 picoseconds.
|
|
Weight::from_parts(22_515_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 11037))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Identity::AccountOfUsername` (r:1 w:1)
|
|
/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Identity::IdentityOf` (r:1 w:0)
|
|
/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7572), added: 10047, mode: `MaxEncodedLen`)
|
|
fn remove_dangling_username() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `126`
|
|
// Estimated: `11037`
|
|
// Minimum execution time: 15_997_000 picoseconds.
|
|
Weight::from_parts(15_997_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 11037))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
}
|