Companion for paritytech/substrate#12157 (#1590)

* Remove RefTimeWeight

* [ci] Apply cargo-fmt

* update lockfile for {"substrate", "polkadot"}

Co-authored-by: paritytech-ci <paritytech-ci@parity.io>
Co-authored-by: parity-processbot <>
This commit is contained in:
Keith Yeung
2022-09-03 03:36:55 +08:00
committed by GitHub
parent 23c3657fef
commit 36e721bf2a
53 changed files with 1770 additions and 1814 deletions
@@ -40,7 +40,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`.
@@ -48,26 +48,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(30_959_000 as RefTimeWeight)
Weight::from_ref_time(30_959_000 as u64)
// Standard Error: 6_000
.saturating_add(Weight::from_ref_time(3_220_000 as RefTimeWeight).saturating_mul(c as RefTimeWeight))
.saturating_add(Weight::from_ref_time(3_220_000 as u64).saturating_mul(c as u64))
}
fn as_derivative() -> Weight {
Weight::from_ref_time(4_732_000 as RefTimeWeight)
Weight::from_ref_time(4_732_000 as u64)
}
/// The range of component `c` is `[0, 1000]`.
fn batch_all(c: u32, ) -> Weight {
Weight::from_ref_time(16_465_000 as RefTimeWeight)
Weight::from_ref_time(16_465_000 as u64)
// Standard Error: 2_000
.saturating_add(Weight::from_ref_time(3_364_000 as RefTimeWeight).saturating_mul(c as RefTimeWeight))
.saturating_add(Weight::from_ref_time(3_364_000 as u64).saturating_mul(c as u64))
}
fn dispatch_as() -> Weight {
Weight::from_ref_time(11_903_000 as RefTimeWeight)
Weight::from_ref_time(11_903_000 as u64)
}
/// The range of component `c` is `[0, 1000]`.
fn force_batch(c: u32, ) -> Weight {
Weight::from_ref_time(22_621_000 as RefTimeWeight)
Weight::from_ref_time(22_621_000 as u64)
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(3_147_000 as RefTimeWeight).saturating_mul(c as RefTimeWeight))
.saturating_add(Weight::from_ref_time(3_147_000 as u64).saturating_mul(c as u64))
}
}