mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 21:31:02 +00:00
Companion of paritytech/substrate#12157 (#5964)
* Remove RefTimeWeight
* Fixes
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
#![allow(unused_parens)]
|
||||
#![allow(unused_imports)]
|
||||
|
||||
use frame_support::{traits::Get, weights::{RefTimeWeight, Weight}};
|
||||
use frame_support::{traits::Get, weights::Weight};
|
||||
use sp_std::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `pallet_utility`.
|
||||
@@ -46,26 +46,26 @@ pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn batch(c: u32, ) -> Weight {
|
||||
Weight::from_ref_time(21_263_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(21_263_000 as u64)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add(Weight::from_ref_time(4_568_000 as RefTimeWeight).saturating_mul(c as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(4_568_000 as u64).saturating_mul(c as u64))
|
||||
}
|
||||
fn as_derivative() -> Weight {
|
||||
Weight::from_ref_time(5_489_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(5_489_000 as u64)
|
||||
}
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn batch_all(c: u32, ) -> Weight {
|
||||
Weight::from_ref_time(12_474_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(12_474_000 as u64)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add(Weight::from_ref_time(4_877_000 as RefTimeWeight).saturating_mul(c as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(4_877_000 as u64).saturating_mul(c as u64))
|
||||
}
|
||||
fn dispatch_as() -> Weight {
|
||||
Weight::from_ref_time(12_745_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(12_745_000 as u64)
|
||||
}
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn force_batch(c: u32, ) -> Weight {
|
||||
Weight::from_ref_time(21_712_000 as RefTimeWeight)
|
||||
Weight::from_ref_time(21_712_000 as u64)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add(Weight::from_ref_time(4_569_000 as RefTimeWeight).saturating_mul(c as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(4_569_000 as u64).saturating_mul(c as u64))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user