Companion of paritytech/substrate#12157 (#5964)

* Remove RefTimeWeight

* Fixes

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
This commit is contained in:
Keith Yeung
2022-09-03 03:12:06 +08:00
committed by GitHub
parent f0c74f6bc5
commit 41eff346cb
138 changed files with 4123 additions and 4123 deletions
@@ -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 `runtime_common::auctions`.
@@ -47,9 +47,9 @@ impl<T: frame_system::Config> runtime_common::auctions::WeightInfo for WeightInf
// Storage: Auctions AuctionInfo (r:1 w:1)
// Storage: Auctions AuctionCounter (r:1 w:1)
fn new_auction() -> Weight {
Weight::from_ref_time(15_406_000 as RefTimeWeight)
.saturating_add(T::DbWeight::get().reads(2 as RefTimeWeight))
.saturating_add(T::DbWeight::get().writes(2 as RefTimeWeight))
Weight::from_ref_time(15_406_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Paras ParaLifecycles (r:1 w:0)
// Storage: Auctions AuctionCounter (r:1 w:0)
@@ -59,9 +59,9 @@ impl<T: frame_system::Config> runtime_common::auctions::WeightInfo for WeightInf
// Storage: Auctions ReservedAmounts (r:2 w:2)
// Storage: System Account (r:1 w:1)
fn bid() -> Weight {
Weight::from_ref_time(70_846_000 as RefTimeWeight)
.saturating_add(T::DbWeight::get().reads(8 as RefTimeWeight))
.saturating_add(T::DbWeight::get().writes(4 as RefTimeWeight))
Weight::from_ref_time(70_846_000 as u64)
.saturating_add(T::DbWeight::get().reads(8 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
// Storage: Auctions AuctionInfo (r:1 w:1)
// Storage: Babe NextRandomness (r:1 w:0)
@@ -76,17 +76,17 @@ impl<T: frame_system::Config> runtime_common::auctions::WeightInfo for WeightInf
// Storage: Paras ActionsQueue (r:1 w:1)
// Storage: Registrar Paras (r:1 w:1)
fn on_initialize() -> Weight {
Weight::from_ref_time(2_965_000_000 as RefTimeWeight)
.saturating_add(T::DbWeight::get().reads(688 as RefTimeWeight))
.saturating_add(T::DbWeight::get().writes(683 as RefTimeWeight))
Weight::from_ref_time(2_965_000_000 as u64)
.saturating_add(T::DbWeight::get().reads(688 as u64))
.saturating_add(T::DbWeight::get().writes(683 as u64))
}
// Storage: Auctions ReservedAmounts (r:37 w:36)
// Storage: System Account (r:36 w:36)
// Storage: Auctions Winning (r:0 w:600)
// Storage: Auctions AuctionInfo (r:0 w:1)
fn cancel_auction() -> Weight {
Weight::from_ref_time(1_202_383_000 as RefTimeWeight)
.saturating_add(T::DbWeight::get().reads(73 as RefTimeWeight))
.saturating_add(T::DbWeight::get().writes(673 as RefTimeWeight))
Weight::from_ref_time(1_202_383_000 as u64)
.saturating_add(T::DbWeight::get().reads(73 as u64))
.saturating_add(T::DbWeight::get().writes(673 as u64))
}
}