mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 18:41:05 +00:00
Remove RefTimeWeight (#12157)
* update api * update * remove unused * remove `one` api * fix unused * fmt * add saturating accrue * remove `Weight::new()` * use some macros * div makes no sense * Update weight_v2.rs * missed some * more patch * fixes * more fixes * more fix * more fix * remove RefTimeWeight * Update frame/contracts/src/storage.rs Co-authored-by: Alexander Theißen <alex.theissen@me.com> * not needed * Fixes Co-authored-by: Alexander Theißen <alex.theissen@me.com> Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
#![allow(unused_parens)]
|
||||
#![allow(unused_imports)]
|
||||
|
||||
use frame_support::{traits::Get, weights::{RefTimeWeight, Weight, constants::RocksDbWeight}};
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use sp_std::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_identity.
|
||||
@@ -69,48 +69,48 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn add_registrar(r: u32, ) -> Weight {
|
||||
Weight::from_ref_time(16_649_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(16_649_000 as u64)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add(Weight::from_ref_time(241_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(241_000 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[1, 100]`.
|
||||
fn set_identity(r: u32, x: u32, ) -> Weight {
|
||||
Weight::from_ref_time(31_322_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(31_322_000 as u64)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add(Weight::from_ref_time(252_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(252_000 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(312_000 as RefTimeWeight).saturating_mul(x as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(312_000 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
fn set_subs_new(s: u32, ) -> Weight {
|
||||
Weight::from_ref_time(30_012_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(30_012_000 as u64)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add(Weight::from_ref_time(3_005_000 as RefTimeWeight).saturating_mul(s as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as RefTimeWeight).saturating_mul(s as RefTimeWeight)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as RefTimeWeight).saturating_mul(s as RefTimeWeight)))
|
||||
.saturating_add(Weight::from_ref_time(3_005_000 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(s as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:1)
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn set_subs_old(p: u32, ) -> Weight {
|
||||
Weight::from_ref_time(29_623_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(29_623_000 as u64)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(1_100_000 as RefTimeWeight).saturating_mul(p as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as RefTimeWeight).saturating_mul(p as RefTimeWeight)))
|
||||
.saturating_add(Weight::from_ref_time(1_100_000 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64)))
|
||||
}
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
@@ -119,81 +119,81 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
/// The range of component `x` is `[1, 100]`.
|
||||
fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
||||
Weight::from_ref_time(34_370_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(34_370_000 as u64)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add(Weight::from_ref_time(186_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(186_000 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(1_114_000 as RefTimeWeight).saturating_mul(s as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(1_114_000 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(189_000 as RefTimeWeight).saturating_mul(x as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as RefTimeWeight).saturating_mul(s as RefTimeWeight)))
|
||||
.saturating_add(Weight::from_ref_time(189_000 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:0)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[1, 100]`.
|
||||
fn request_judgement(r: u32, x: u32, ) -> Weight {
|
||||
Weight::from_ref_time(34_759_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(34_759_000 as u64)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add(Weight::from_ref_time(251_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(251_000 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(340_000 as RefTimeWeight).saturating_mul(x as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(340_000 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[1, 100]`.
|
||||
fn cancel_request(r: u32, x: u32, ) -> Weight {
|
||||
Weight::from_ref_time(32_254_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(32_254_000 as u64)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add(Weight::from_ref_time(159_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(159_000 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(347_000 as RefTimeWeight).saturating_mul(x as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(347_000 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_fee(r: u32, ) -> Weight {
|
||||
Weight::from_ref_time(7_858_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(7_858_000 as u64)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add(Weight::from_ref_time(190_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(190_000 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_account_id(r: u32, ) -> Weight {
|
||||
Weight::from_ref_time(8_011_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(8_011_000 as u64)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add(Weight::from_ref_time(187_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(187_000 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_fields(r: u32, ) -> Weight {
|
||||
Weight::from_ref_time(7_970_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(7_970_000 as u64)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add(Weight::from_ref_time(175_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(175_000 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:0)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
/// The range of component `x` is `[1, 100]`.
|
||||
fn provide_judgement(r: u32, x: u32, ) -> Weight {
|
||||
Weight::from_ref_time(24_730_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(24_730_000 as u64)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add(Weight::from_ref_time(196_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(196_000 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(341_000 as RefTimeWeight).saturating_mul(x as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(341_000 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
@@ -203,58 +203,58 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
/// The range of component `x` is `[1, 100]`.
|
||||
fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
||||
Weight::from_ref_time(44_988_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(44_988_000 as u64)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add(Weight::from_ref_time(201_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(201_000 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(1_126_000 as RefTimeWeight).saturating_mul(s as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(1_126_000 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(2_000 as RefTimeWeight).saturating_mul(x as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as RefTimeWeight).saturating_mul(s as RefTimeWeight)))
|
||||
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// The range of component `s` is `[1, 99]`.
|
||||
fn add_sub(s: u32, ) -> Weight {
|
||||
Weight::from_ref_time(36_768_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(36_768_000 as u64)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(115_000 as RefTimeWeight).saturating_mul(s as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(115_000 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
fn rename_sub(s: u32, ) -> Weight {
|
||||
Weight::from_ref_time(13_474_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(13_474_000 as u64)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(56_000 as RefTimeWeight).saturating_mul(s as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(56_000 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
fn remove_sub(s: u32, ) -> Weight {
|
||||
Weight::from_ref_time(37_720_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(37_720_000 as u64)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(114_000 as RefTimeWeight).saturating_mul(s as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(114_000 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
}
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// The range of component `s` is `[1, 99]`.
|
||||
fn quit_sub(s: u32, ) -> Weight {
|
||||
Weight::from_ref_time(26_848_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(26_848_000 as u64)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(115_000 as RefTimeWeight).saturating_mul(s as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(115_000 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -263,48 +263,48 @@ impl WeightInfo for () {
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn add_registrar(r: u32, ) -> Weight {
|
||||
Weight::from_ref_time(16_649_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(16_649_000 as u64)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add(Weight::from_ref_time(241_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(241_000 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[1, 100]`.
|
||||
fn set_identity(r: u32, x: u32, ) -> Weight {
|
||||
Weight::from_ref_time(31_322_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(31_322_000 as u64)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add(Weight::from_ref_time(252_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(252_000 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(312_000 as RefTimeWeight).saturating_mul(x as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(312_000 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
fn set_subs_new(s: u32, ) -> Weight {
|
||||
Weight::from_ref_time(30_012_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(30_012_000 as u64)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add(Weight::from_ref_time(3_005_000 as RefTimeWeight).saturating_mul(s as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as RefTimeWeight).saturating_mul(s as RefTimeWeight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as RefTimeWeight).saturating_mul(s as RefTimeWeight)))
|
||||
.saturating_add(Weight::from_ref_time(3_005_000 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(s as u64)))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:1)
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn set_subs_old(p: u32, ) -> Weight {
|
||||
Weight::from_ref_time(29_623_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(29_623_000 as u64)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(1_100_000 as RefTimeWeight).saturating_mul(p as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as RefTimeWeight).saturating_mul(p as RefTimeWeight)))
|
||||
.saturating_add(Weight::from_ref_time(1_100_000 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(p as u64)))
|
||||
}
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
@@ -313,81 +313,81 @@ impl WeightInfo for () {
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
/// The range of component `x` is `[1, 100]`.
|
||||
fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
||||
Weight::from_ref_time(34_370_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(34_370_000 as u64)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add(Weight::from_ref_time(186_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(186_000 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(1_114_000 as RefTimeWeight).saturating_mul(s as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(1_114_000 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(189_000 as RefTimeWeight).saturating_mul(x as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as RefTimeWeight).saturating_mul(s as RefTimeWeight)))
|
||||
.saturating_add(Weight::from_ref_time(189_000 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:0)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[1, 100]`.
|
||||
fn request_judgement(r: u32, x: u32, ) -> Weight {
|
||||
Weight::from_ref_time(34_759_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(34_759_000 as u64)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add(Weight::from_ref_time(251_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(251_000 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(340_000 as RefTimeWeight).saturating_mul(x as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(340_000 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[1, 100]`.
|
||||
fn cancel_request(r: u32, x: u32, ) -> Weight {
|
||||
Weight::from_ref_time(32_254_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(32_254_000 as u64)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add(Weight::from_ref_time(159_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(159_000 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(347_000 as RefTimeWeight).saturating_mul(x as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(347_000 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_fee(r: u32, ) -> Weight {
|
||||
Weight::from_ref_time(7_858_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(7_858_000 as u64)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add(Weight::from_ref_time(190_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(190_000 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_account_id(r: u32, ) -> Weight {
|
||||
Weight::from_ref_time(8_011_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(8_011_000 as u64)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add(Weight::from_ref_time(187_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(187_000 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_fields(r: u32, ) -> Weight {
|
||||
Weight::from_ref_time(7_970_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(7_970_000 as u64)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add(Weight::from_ref_time(175_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(175_000 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:0)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
/// The range of component `x` is `[1, 100]`.
|
||||
fn provide_judgement(r: u32, x: u32, ) -> Weight {
|
||||
Weight::from_ref_time(24_730_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(24_730_000 as u64)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add(Weight::from_ref_time(196_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(196_000 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(341_000 as RefTimeWeight).saturating_mul(x as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(341_000 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
@@ -397,57 +397,57 @@ impl WeightInfo for () {
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
/// The range of component `x` is `[1, 100]`.
|
||||
fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
||||
Weight::from_ref_time(44_988_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(44_988_000 as u64)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add(Weight::from_ref_time(201_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(201_000 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(1_126_000 as RefTimeWeight).saturating_mul(s as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(1_126_000 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(2_000 as RefTimeWeight).saturating_mul(x as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as RefTimeWeight).saturating_mul(s as RefTimeWeight)))
|
||||
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// The range of component `s` is `[1, 99]`.
|
||||
fn add_sub(s: u32, ) -> Weight {
|
||||
Weight::from_ref_time(36_768_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(36_768_000 as u64)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(115_000 as RefTimeWeight).saturating_mul(s as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(115_000 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
fn rename_sub(s: u32, ) -> Weight {
|
||||
Weight::from_ref_time(13_474_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(13_474_000 as u64)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(56_000 as RefTimeWeight).saturating_mul(s as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(56_000 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
fn remove_sub(s: u32, ) -> Weight {
|
||||
Weight::from_ref_time(37_720_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(37_720_000 as u64)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(114_000 as RefTimeWeight).saturating_mul(s as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(114_000 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
}
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// The range of component `s` is `[1, 99]`.
|
||||
fn quit_sub(s: u32, ) -> Weight {
|
||||
Weight::from_ref_time(26_848_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(26_848_000 as u64)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(115_000 as RefTimeWeight).saturating_mul(s as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(115_000 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user