mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-04 01:07:23 +00:00
9e56e1acdd
* Deprecate Weight::from_{ref_time, proof_size}
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Update templates
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Use from_parts
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Use from_parts
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Dont revert comment 🤦
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_balances
* Update weight files
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* More fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Adapt to Master changes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: command-bot <>
653 lines
31 KiB
Rust
653 lines
31 KiB
Rust
// This file is part of Substrate.
|
|
|
|
// Copyright (C) Parity Technologies (UK) Ltd.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
//! Autogenerated weights for pallet_identity
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-01-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/production/substrate
|
|
// benchmark
|
|
// pallet
|
|
// --chain=dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=pallet_identity
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --output=./frame/identity/src/weights.rs
|
|
// --header=./HEADER-APACHE2
|
|
// --template=./.maintain/frame-weight-template.hbs
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
|
|
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
|
use sp_std::marker::PhantomData;
|
|
|
|
/// Weight functions needed for pallet_identity.
|
|
pub trait WeightInfo {
|
|
fn add_registrar(r: u32, ) -> Weight;
|
|
fn set_identity(r: u32, x: u32, ) -> Weight;
|
|
fn set_subs_new(s: u32, ) -> Weight;
|
|
fn set_subs_old(p: u32, ) -> Weight;
|
|
fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight;
|
|
fn request_judgement(r: u32, x: u32, ) -> Weight;
|
|
fn cancel_request(r: u32, x: u32, ) -> Weight;
|
|
fn set_fee(r: u32, ) -> Weight;
|
|
fn set_account_id(r: u32, ) -> Weight;
|
|
fn set_fields(r: u32, ) -> Weight;
|
|
fn provide_judgement(r: u32, x: u32, ) -> Weight;
|
|
fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight;
|
|
fn add_sub(s: u32, ) -> Weight;
|
|
fn rename_sub(s: u32, ) -> Weight;
|
|
fn remove_sub(s: u32, ) -> Weight;
|
|
fn quit_sub(s: u32, ) -> Weight;
|
|
}
|
|
|
|
/// Weights for pallet_identity using the Substrate node and recommended hardware.
|
|
pub struct SubstrateWeight<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<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: `64 + r * (57 ±0)`
|
|
// Estimated: `1636`
|
|
// Minimum execution time: 10_964 nanoseconds.
|
|
Weight::from_parts(11_800_935, 1636)
|
|
// Standard Error: 1_334
|
|
.saturating_add(Weight::from_parts(96_038, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn set_identity(r: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `474 + r * (5 ±0)`
|
|
// Estimated: `10013`
|
|
// Minimum execution time: 26_400 nanoseconds.
|
|
Weight::from_parts(26_060_549, 10013)
|
|
// Standard Error: 1_561
|
|
.saturating_add(Weight::from_parts(72_083, 0).saturating_mul(r.into()))
|
|
// Standard Error: 304
|
|
.saturating_add(Weight::from_parts(306_994, 0).saturating_mul(x.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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: `15746 + s * (2589 ±0)`
|
|
// Minimum execution time: 8_492 nanoseconds.
|
|
Weight::from_parts(21_645_924, 15746)
|
|
// Standard Error: 3_452
|
|
.saturating_add(Weight::from_parts(2_442_604, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
.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: `226 + p * (32 ±0)`
|
|
// Estimated: `15746`
|
|
// Minimum execution time: 8_488 nanoseconds.
|
|
Weight::from_parts(20_202_601, 15746)
|
|
// Standard Error: 2_834
|
|
.saturating_add(Weight::from_parts(1_082_941, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
.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]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `533 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
|
|
// Estimated: `15746`
|
|
// Minimum execution time: 41_319 nanoseconds.
|
|
Weight::from_parts(25_850_055, 15746)
|
|
// Standard Error: 4_144
|
|
.saturating_add(Weight::from_parts(59_619, 0).saturating_mul(r.into()))
|
|
// Standard Error: 809
|
|
.saturating_add(Weight::from_parts(1_076_550, 0).saturating_mul(s.into()))
|
|
// Standard Error: 809
|
|
.saturating_add(Weight::from_parts(163_191, 0).saturating_mul(x.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
.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]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn request_judgement(r: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `431 + r * (57 ±0) + x * (66 ±0)`
|
|
// Estimated: `11649`
|
|
// Minimum execution time: 28_118 nanoseconds.
|
|
Weight::from_parts(27_359_471, 11649)
|
|
// Standard Error: 2_707
|
|
.saturating_add(Weight::from_parts(107_279, 0).saturating_mul(r.into()))
|
|
// Standard Error: 528
|
|
.saturating_add(Weight::from_parts(325_165, 0).saturating_mul(x.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn cancel_request(r: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `430 + x * (66 ±0)`
|
|
// Estimated: `10013`
|
|
// Minimum execution time: 24_817 nanoseconds.
|
|
Weight::from_parts(24_749_808, 10013)
|
|
// Standard Error: 1_938
|
|
.saturating_add(Weight::from_parts(63_396, 0).saturating_mul(r.into()))
|
|
// Standard Error: 378
|
|
.saturating_add(Weight::from_parts(327_083, 0).saturating_mul(x.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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: `121 + r * (57 ±0)`
|
|
// Estimated: `1636`
|
|
// Minimum execution time: 6_664 nanoseconds.
|
|
Weight::from_parts(7_286_307, 1636)
|
|
// Standard Error: 1_560
|
|
.saturating_add(Weight::from_parts(96_416, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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: `121 + r * (57 ±0)`
|
|
// Estimated: `1636`
|
|
// Minimum execution time: 7_054 nanoseconds.
|
|
Weight::from_parts(7_382_954, 1636)
|
|
// Standard Error: 1_621
|
|
.saturating_add(Weight::from_parts(101_595, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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: `121 + r * (57 ±0)`
|
|
// Estimated: `1636`
|
|
// Minimum execution time: 6_659 nanoseconds.
|
|
Weight::from_parts(7_188_883, 1636)
|
|
// Standard Error: 1_377
|
|
.saturating_add(Weight::from_parts(98_965, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn provide_judgement(r: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `509 + r * (57 ±0) + x * (66 ±0)`
|
|
// Estimated: `11649`
|
|
// Minimum execution time: 21_567 nanoseconds.
|
|
Weight::from_parts(21_015_310, 11649)
|
|
// Standard Error: 2_516
|
|
.saturating_add(Weight::from_parts(123_992, 0).saturating_mul(r.into()))
|
|
// Standard Error: 465
|
|
.saturating_add(Weight::from_parts(552_116, 0).saturating_mul(x.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `772 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
|
|
// Estimated: `18349`
|
|
// Minimum execution time: 52_881 nanoseconds.
|
|
Weight::from_parts(38_504_388, 18349)
|
|
// Standard Error: 3_909
|
|
.saturating_add(Weight::from_parts(51_452, 0).saturating_mul(r.into()))
|
|
// Standard Error: 763
|
|
.saturating_add(Weight::from_parts(1_069_924, 0).saturating_mul(s.into()))
|
|
// Standard Error: 763
|
|
.saturating_add(Weight::from_parts(164_906, 0).saturating_mul(x.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
.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: `507 + s * (36 ±0)`
|
|
// Estimated: `18335`
|
|
// Minimum execution time: 24_556 nanoseconds.
|
|
Weight::from_parts(28_641_160, 18335)
|
|
// Standard Error: 1_327
|
|
.saturating_add(Weight::from_parts(66_150, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// 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: `623 + s * (3 ±0)`
|
|
// Estimated: `12602`
|
|
// Minimum execution time: 11_347 nanoseconds.
|
|
Weight::from_parts(13_299_367, 12602)
|
|
// Standard Error: 525
|
|
.saturating_add(Weight::from_parts(16_472, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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: `702 + s * (35 ±0)`
|
|
// Estimated: `18335`
|
|
// Minimum execution time: 27_810 nanoseconds.
|
|
Weight::from_parts(30_347_763, 18335)
|
|
// Standard Error: 928
|
|
.saturating_add(Weight::from_parts(55_342, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// 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 quit_sub(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `628 + s * (37 ±0)`
|
|
// Estimated: `8322`
|
|
// Minimum execution time: 17_601 nanoseconds.
|
|
Weight::from_parts(19_794_971, 8322)
|
|
// Standard Error: 934
|
|
.saturating_add(Weight::from_parts(59_289, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
}
|
|
|
|
// For backwards compatibility and tests
|
|
impl WeightInfo for () {
|
|
/// 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: `64 + r * (57 ±0)`
|
|
// Estimated: `1636`
|
|
// Minimum execution time: 10_964 nanoseconds.
|
|
Weight::from_parts(11_800_935, 1636)
|
|
// Standard Error: 1_334
|
|
.saturating_add(Weight::from_parts(96_038, 0).saturating_mul(r.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn set_identity(r: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `474 + r * (5 ±0)`
|
|
// Estimated: `10013`
|
|
// Minimum execution time: 26_400 nanoseconds.
|
|
Weight::from_parts(26_060_549, 10013)
|
|
// Standard Error: 1_561
|
|
.saturating_add(Weight::from_parts(72_083, 0).saturating_mul(r.into()))
|
|
// Standard Error: 304
|
|
.saturating_add(Weight::from_parts(306_994, 0).saturating_mul(x.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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: `15746 + s * (2589 ±0)`
|
|
// Minimum execution time: 8_492 nanoseconds.
|
|
Weight::from_parts(21_645_924, 15746)
|
|
// Standard Error: 3_452
|
|
.saturating_add(Weight::from_parts(2_442_604, 0).saturating_mul(s.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(s.into())))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
.saturating_add(RocksDbWeight::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: `226 + p * (32 ±0)`
|
|
// Estimated: `15746`
|
|
// Minimum execution time: 8_488 nanoseconds.
|
|
Weight::from_parts(20_202_601, 15746)
|
|
// Standard Error: 2_834
|
|
.saturating_add(Weight::from_parts(1_082_941, 0).saturating_mul(p.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
.saturating_add(RocksDbWeight::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]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `533 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
|
|
// Estimated: `15746`
|
|
// Minimum execution time: 41_319 nanoseconds.
|
|
Weight::from_parts(25_850_055, 15746)
|
|
// Standard Error: 4_144
|
|
.saturating_add(Weight::from_parts(59_619, 0).saturating_mul(r.into()))
|
|
// Standard Error: 809
|
|
.saturating_add(Weight::from_parts(1_076_550, 0).saturating_mul(s.into()))
|
|
// Standard Error: 809
|
|
.saturating_add(Weight::from_parts(163_191, 0).saturating_mul(x.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
.saturating_add(RocksDbWeight::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]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn request_judgement(r: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `431 + r * (57 ±0) + x * (66 ±0)`
|
|
// Estimated: `11649`
|
|
// Minimum execution time: 28_118 nanoseconds.
|
|
Weight::from_parts(27_359_471, 11649)
|
|
// Standard Error: 2_707
|
|
.saturating_add(Weight::from_parts(107_279, 0).saturating_mul(r.into()))
|
|
// Standard Error: 528
|
|
.saturating_add(Weight::from_parts(325_165, 0).saturating_mul(x.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn cancel_request(r: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `430 + x * (66 ±0)`
|
|
// Estimated: `10013`
|
|
// Minimum execution time: 24_817 nanoseconds.
|
|
Weight::from_parts(24_749_808, 10013)
|
|
// Standard Error: 1_938
|
|
.saturating_add(Weight::from_parts(63_396, 0).saturating_mul(r.into()))
|
|
// Standard Error: 378
|
|
.saturating_add(Weight::from_parts(327_083, 0).saturating_mul(x.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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: `121 + r * (57 ±0)`
|
|
// Estimated: `1636`
|
|
// Minimum execution time: 6_664 nanoseconds.
|
|
Weight::from_parts(7_286_307, 1636)
|
|
// Standard Error: 1_560
|
|
.saturating_add(Weight::from_parts(96_416, 0).saturating_mul(r.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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: `121 + r * (57 ±0)`
|
|
// Estimated: `1636`
|
|
// Minimum execution time: 7_054 nanoseconds.
|
|
Weight::from_parts(7_382_954, 1636)
|
|
// Standard Error: 1_621
|
|
.saturating_add(Weight::from_parts(101_595, 0).saturating_mul(r.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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: `121 + r * (57 ±0)`
|
|
// Estimated: `1636`
|
|
// Minimum execution time: 6_659 nanoseconds.
|
|
Weight::from_parts(7_188_883, 1636)
|
|
// Standard Error: 1_377
|
|
.saturating_add(Weight::from_parts(98_965, 0).saturating_mul(r.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn provide_judgement(r: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `509 + r * (57 ±0) + x * (66 ±0)`
|
|
// Estimated: `11649`
|
|
// Minimum execution time: 21_567 nanoseconds.
|
|
Weight::from_parts(21_015_310, 11649)
|
|
// Standard Error: 2_516
|
|
.saturating_add(Weight::from_parts(123_992, 0).saturating_mul(r.into()))
|
|
// Standard Error: 465
|
|
.saturating_add(Weight::from_parts(552_116, 0).saturating_mul(x.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `772 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
|
|
// Estimated: `18349`
|
|
// Minimum execution time: 52_881 nanoseconds.
|
|
Weight::from_parts(38_504_388, 18349)
|
|
// Standard Error: 3_909
|
|
.saturating_add(Weight::from_parts(51_452, 0).saturating_mul(r.into()))
|
|
// Standard Error: 763
|
|
.saturating_add(Weight::from_parts(1_069_924, 0).saturating_mul(s.into()))
|
|
// Standard Error: 763
|
|
.saturating_add(Weight::from_parts(164_906, 0).saturating_mul(x.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
.saturating_add(RocksDbWeight::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: `507 + s * (36 ±0)`
|
|
// Estimated: `18335`
|
|
// Minimum execution time: 24_556 nanoseconds.
|
|
Weight::from_parts(28_641_160, 18335)
|
|
// Standard Error: 1_327
|
|
.saturating_add(Weight::from_parts(66_150, 0).saturating_mul(s.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// 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: `623 + s * (3 ±0)`
|
|
// Estimated: `12602`
|
|
// Minimum execution time: 11_347 nanoseconds.
|
|
Weight::from_parts(13_299_367, 12602)
|
|
// Standard Error: 525
|
|
.saturating_add(Weight::from_parts(16_472, 0).saturating_mul(s.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// 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: `702 + s * (35 ±0)`
|
|
// Estimated: `18335`
|
|
// Minimum execution time: 27_810 nanoseconds.
|
|
Weight::from_parts(30_347_763, 18335)
|
|
// Standard Error: 928
|
|
.saturating_add(Weight::from_parts(55_342, 0).saturating_mul(s.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// 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 quit_sub(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `628 + s * (37 ±0)`
|
|
// Estimated: `8322`
|
|
// Minimum execution time: 17_601 nanoseconds.
|
|
Weight::from_parts(19_794_971, 8322)
|
|
// Standard Error: 934
|
|
.saturating_add(Weight::from_parts(59_289, 0).saturating_mul(s.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
}
|