435 lines
21 KiB
Rust
435 lines
21 KiB
Rust
// This file is part of Ghost Network.
|
|
|
|
// Ghost Network 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.
|
|
|
|
// Ghost Network 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 Ghost Network. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//! Autogenerated weights for `pallet_identity`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
|
//! DATE: 2026-09-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `ghostown`, CPU: `Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz`
|
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("casper-dev")`, DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/release/ghost
|
|
// benchmark
|
|
// pallet
|
|
// --chain=casper-dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=pallet_identity
|
|
// --extrinsic=*
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/casper/src/weights/pallet_identity.rs
|
|
|
|
#![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(5702), added: 6197, mode: `MaxEncodedLen`)
|
|
/// The range of component `r` is `[1, 99]`.
|
|
fn add_registrar(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `32 + r * (57 ±0)`
|
|
// Estimated: `7187`
|
|
// Minimum execution time: 35_907_000 picoseconds.
|
|
Weight::from_parts(36_849_549, 0)
|
|
.saturating_add(Weight::from_parts(0, 7187))
|
|
// Standard Error: 1_622
|
|
.saturating_add(Weight::from_parts(146_409, 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(9253), added: 11728, mode: `MaxEncodedLen`)
|
|
/// The range of component `r` is `[1, 100]`.
|
|
fn set_identity(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `6978 + r * (5 ±0)`
|
|
// Estimated: `12718`
|
|
// Minimum execution time: 434_129_000 picoseconds.
|
|
Weight::from_parts(440_090_205, 0)
|
|
.saturating_add(Weight::from_parts(0, 12718))
|
|
// Standard Error: 7_808
|
|
.saturating_add(Weight::from_parts(210_555, 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(9253), added: 11728, 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: `12718 + s * (2589 ±0)`
|
|
// Minimum execution time: 36_977_000 picoseconds.
|
|
Weight::from_parts(95_282_829, 0)
|
|
.saturating_add(Weight::from_parts(0, 12718))
|
|
// Standard Error: 16_032
|
|
.saturating_add(Weight::from_parts(12_336_680, 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(9253), added: 11728, 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: `12718`
|
|
// Minimum execution time: 36_395_000 picoseconds.
|
|
Weight::from_parts(86_802_077, 0)
|
|
.saturating_add(Weight::from_parts(0, 12718))
|
|
// Standard Error: 13_128
|
|
.saturating_add(Weight::from_parts(4_973_329, 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(9253), added: 11728, 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, 100]`.
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn clear_identity(r: u32, s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `7070 + r * (5 ±0) + s * (32 ±0)`
|
|
// Estimated: `12718`
|
|
// Minimum execution time: 220_655_000 picoseconds.
|
|
Weight::from_parts(196_627_192, 0)
|
|
.saturating_add(Weight::from_parts(0, 12718))
|
|
// Standard Error: 8_341
|
|
.saturating_add(Weight::from_parts(315_744, 0).saturating_mul(r.into()))
|
|
// Standard Error: 8_242
|
|
.saturating_add(Weight::from_parts(5_202_259, 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(5702), added: 6197, mode: `MaxEncodedLen`)
|
|
/// Storage: `Identity::IdentityOf` (r:1 w:1)
|
|
/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(9253), added: 11728, mode: `MaxEncodedLen`)
|
|
/// The range of component `r` is `[1, 100]`.
|
|
fn request_judgement(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `6968 + r * (57 ±0)`
|
|
// Estimated: `12718`
|
|
// Minimum execution time: 304_082_000 picoseconds.
|
|
Weight::from_parts(308_925_020, 0)
|
|
.saturating_add(Weight::from_parts(0, 12718))
|
|
// Standard Error: 6_825
|
|
.saturating_add(Weight::from_parts(180_359, 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(9253), added: 11728, mode: `MaxEncodedLen`)
|
|
/// The range of component `r` is `[1, 100]`.
|
|
fn cancel_request(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `6999`
|
|
// Estimated: `12718`
|
|
// Minimum execution time: 295_196_000 picoseconds.
|
|
Weight::from_parts(299_453_347, 0)
|
|
.saturating_add(Weight::from_parts(0, 12718))
|
|
// Standard Error: 6_022
|
|
.saturating_add(Weight::from_parts(103_200, 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(5702), added: 6197, mode: `MaxEncodedLen`)
|
|
/// The range of component `r` is `[1, 99]`.
|
|
fn set_fee(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `89 + r * (57 ±0)`
|
|
// Estimated: `7187`
|
|
// Minimum execution time: 25_321_000 picoseconds.
|
|
Weight::from_parts(25_768_276, 0)
|
|
.saturating_add(Weight::from_parts(0, 7187))
|
|
// Standard Error: 960
|
|
.saturating_add(Weight::from_parts(134_365, 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(5702), added: 6197, mode: `MaxEncodedLen`)
|
|
/// The range of component `r` is `[1, 99]`.
|
|
fn set_account_id(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `89 + r * (57 ±0)`
|
|
// Estimated: `7187`
|
|
// Minimum execution time: 24_922_000 picoseconds.
|
|
Weight::from_parts(25_755_270, 0)
|
|
.saturating_add(Weight::from_parts(0, 7187))
|
|
// Standard Error: 1_182
|
|
.saturating_add(Weight::from_parts(139_889, 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(5702), added: 6197, mode: `MaxEncodedLen`)
|
|
/// The range of component `r` is `[1, 99]`.
|
|
fn set_fields(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `89 + r * (57 ±0)`
|
|
// Estimated: `7187`
|
|
// Minimum execution time: 24_581_000 picoseconds.
|
|
Weight::from_parts(25_331_917, 0)
|
|
.saturating_add(Weight::from_parts(0, 7187))
|
|
// Standard Error: 864
|
|
.saturating_add(Weight::from_parts(133_577, 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(5702), added: 6197, mode: `MaxEncodedLen`)
|
|
/// Storage: `Identity::IdentityOf` (r:1 w:1)
|
|
/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(9253), added: 11728, mode: `MaxEncodedLen`)
|
|
/// The range of component `r` is `[1, 99]`.
|
|
fn provide_judgement(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `7046 + r * (57 ±0)`
|
|
// Estimated: `12718`
|
|
// Minimum execution time: 372_283_000 picoseconds.
|
|
Weight::from_parts(377_456_951, 0)
|
|
.saturating_add(Weight::from_parts(0, 12718))
|
|
// Standard Error: 6_377
|
|
.saturating_add(Weight::from_parts(165_868, 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(9253), added: 11728, 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, 100]`.
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn kill_identity(r: u32, s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `7210 + r * (5 ±0) + s * (32 ±0)`
|
|
// Estimated: `12718`
|
|
// Minimum execution time: 280_147_000 picoseconds.
|
|
Weight::from_parts(245_758_457, 0)
|
|
.saturating_add(Weight::from_parts(0, 12718))
|
|
// Standard Error: 7_577
|
|
.saturating_add(Weight::from_parts(402_396, 0).saturating_mul(r.into()))
|
|
// Standard Error: 7_487
|
|
.saturating_add(Weight::from_parts(5_251_950, 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(9253), added: 11728, 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: `12718`
|
|
// Minimum execution time: 108_203_000 picoseconds.
|
|
Weight::from_parts(119_247_374, 0)
|
|
.saturating_add(Weight::from_parts(0, 12718))
|
|
// Standard Error: 4_560
|
|
.saturating_add(Weight::from_parts(187_170, 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(9253), added: 11728, 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: `12718`
|
|
// Minimum execution time: 47_854_000 picoseconds.
|
|
Weight::from_parts(53_278_488, 0)
|
|
.saturating_add(Weight::from_parts(0, 12718))
|
|
// Standard Error: 2_631
|
|
.saturating_add(Weight::from_parts(47_401, 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(9253), added: 11728, 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: `12718`
|
|
// Minimum execution time: 118_030_000 picoseconds.
|
|
Weight::from_parts(124_298_516, 0)
|
|
.saturating_add(Weight::from_parts(0, 12718))
|
|
// Standard Error: 3_694
|
|
.saturating_add(Weight::from_parts(129_275, 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: `667 + s * (37 ±0)`
|
|
// Estimated: `6723`
|
|
// Minimum execution time: 86_733_000 picoseconds.
|
|
Weight::from_parts(91_315_911, 0)
|
|
.saturating_add(Weight::from_parts(0, 6723))
|
|
// Standard Error: 3_855
|
|
.saturating_add(Weight::from_parts(147_720, 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: 27_636_000 picoseconds.
|
|
Weight::from_parts(28_290_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`)
|
|
fn remove_username_authority() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `80`
|
|
// Estimated: `3517`
|
|
// Minimum execution time: 42_154_000 picoseconds.
|
|
Weight::from_parts(42_870_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3517))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.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(81), added: 2556, mode: `MaxEncodedLen`)
|
|
/// Storage: `Identity::PendingUsernames` (r:1 w:0)
|
|
/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
|
/// Storage: `Identity::IdentityOf` (r:1 w:1)
|
|
/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(9253), added: 11728, mode: `MaxEncodedLen`)
|
|
fn set_username_for() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `80`
|
|
// Estimated: `12718`
|
|
// Minimum execution time: 236_485_000 picoseconds.
|
|
Weight::from_parts(238_990_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 12718))
|
|
.saturating_add(T::DbWeight::get().reads(4))
|
|
.saturating_add(T::DbWeight::get().writes(3))
|
|
}
|
|
/// Storage: `Identity::PendingUsernames` (r:1 w:1)
|
|
/// Proof: `Identity::PendingUsernames` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
|
/// Storage: `Identity::IdentityOf` (r:1 w:1)
|
|
/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(9253), added: 11728, mode: `MaxEncodedLen`)
|
|
/// Storage: `Identity::AccountOfUsername` (r:0 w:1)
|
|
/// Proof: `Identity::AccountOfUsername` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
|
|
fn accept_username() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `115`
|
|
// Estimated: `12718`
|
|
// Minimum execution time: 84_471_000 picoseconds.
|
|
Weight::from_parts(85_344_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 12718))
|
|
.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(85), added: 2560, mode: `MaxEncodedLen`)
|
|
fn remove_expired_approval() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `115`
|
|
// Estimated: `3550`
|
|
// Minimum execution time: 53_280_000 picoseconds.
|
|
Weight::from_parts(56_162_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3550))
|
|
.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(81), added: 2556, mode: `MaxEncodedLen`)
|
|
/// Storage: `Identity::IdentityOf` (r:1 w:1)
|
|
/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(9253), added: 11728, mode: `MaxEncodedLen`)
|
|
fn set_primary_username() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `257`
|
|
// Estimated: `12718`
|
|
// Minimum execution time: 67_152_000 picoseconds.
|
|
Weight::from_parts(68_436_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 12718))
|
|
.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(81), added: 2556, mode: `MaxEncodedLen`)
|
|
/// Storage: `Identity::IdentityOf` (r:1 w:0)
|
|
/// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(9253), added: 11728, mode: `MaxEncodedLen`)
|
|
fn remove_dangling_username() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `98`
|
|
// Estimated: `12718`
|
|
// Minimum execution time: 49_947_000 picoseconds.
|
|
Weight::from_parts(50_448_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 12718))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
}
|