mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 00:01:09 +00:00
Weight v1.5 Follow Ups (#12155)
* 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 * Update frame/support/src/weights/weight_v2.rs * not needed * fix weight file
This commit is contained in:
@@ -60,7 +60,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn report_awesome(r: u32, ) -> Weight {
|
||||
Weight::from_ref_time(30_669_000 as RefTimeWeight)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(4_000 as RefTimeWeight).scalar_saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(4_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as RefTimeWeight))
|
||||
}
|
||||
@@ -77,9 +77,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn tip_new(r: u32, t: u32, ) -> Weight {
|
||||
Weight::from_ref_time(20_385_000 as RefTimeWeight)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(2_000 as RefTimeWeight).scalar_saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(2_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
// Standard Error: 3_000
|
||||
.saturating_add(Weight::from_ref_time(166_000 as RefTimeWeight).scalar_saturating_mul(t as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(166_000 as RefTimeWeight).saturating_mul(t as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as RefTimeWeight))
|
||||
}
|
||||
@@ -88,7 +88,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn tip(t: u32, ) -> Weight {
|
||||
Weight::from_ref_time(12_287_000 as RefTimeWeight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add(Weight::from_ref_time(363_000 as RefTimeWeight).scalar_saturating_mul(t as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(363_000 as RefTimeWeight).saturating_mul(t as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
||||
}
|
||||
@@ -99,7 +99,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn close_tip(t: u32, ) -> Weight {
|
||||
Weight::from_ref_time(45_656_000 as RefTimeWeight)
|
||||
// Standard Error: 14_000
|
||||
.saturating_add(Weight::from_ref_time(276_000 as RefTimeWeight).scalar_saturating_mul(t as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(276_000 as RefTimeWeight).saturating_mul(t as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as RefTimeWeight))
|
||||
}
|
||||
@@ -108,7 +108,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn slash_tip(t: u32, ) -> Weight {
|
||||
Weight::from_ref_time(18_525_000 as RefTimeWeight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add(Weight::from_ref_time(37_000 as RefTimeWeight).scalar_saturating_mul(t as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(37_000 as RefTimeWeight).saturating_mul(t as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as RefTimeWeight))
|
||||
}
|
||||
@@ -121,7 +121,7 @@ impl WeightInfo for () {
|
||||
fn report_awesome(r: u32, ) -> Weight {
|
||||
Weight::from_ref_time(30_669_000 as RefTimeWeight)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(4_000 as RefTimeWeight).scalar_saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(4_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as RefTimeWeight))
|
||||
}
|
||||
@@ -138,9 +138,9 @@ impl WeightInfo for () {
|
||||
fn tip_new(r: u32, t: u32, ) -> Weight {
|
||||
Weight::from_ref_time(20_385_000 as RefTimeWeight)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(2_000 as RefTimeWeight).scalar_saturating_mul(r as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(2_000 as RefTimeWeight).saturating_mul(r as RefTimeWeight))
|
||||
// Standard Error: 3_000
|
||||
.saturating_add(Weight::from_ref_time(166_000 as RefTimeWeight).scalar_saturating_mul(t as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(166_000 as RefTimeWeight).saturating_mul(t as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as RefTimeWeight))
|
||||
}
|
||||
@@ -149,7 +149,7 @@ impl WeightInfo for () {
|
||||
fn tip(t: u32, ) -> Weight {
|
||||
Weight::from_ref_time(12_287_000 as RefTimeWeight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add(Weight::from_ref_time(363_000 as RefTimeWeight).scalar_saturating_mul(t as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(363_000 as RefTimeWeight).saturating_mul(t as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
||||
}
|
||||
@@ -160,7 +160,7 @@ impl WeightInfo for () {
|
||||
fn close_tip(t: u32, ) -> Weight {
|
||||
Weight::from_ref_time(45_656_000 as RefTimeWeight)
|
||||
// Standard Error: 14_000
|
||||
.saturating_add(Weight::from_ref_time(276_000 as RefTimeWeight).scalar_saturating_mul(t as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(276_000 as RefTimeWeight).saturating_mul(t as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as RefTimeWeight))
|
||||
}
|
||||
@@ -169,7 +169,7 @@ impl WeightInfo for () {
|
||||
fn slash_tip(t: u32, ) -> Weight {
|
||||
Weight::from_ref_time(18_525_000 as RefTimeWeight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add(Weight::from_ref_time(37_000 as RefTimeWeight).scalar_saturating_mul(t as RefTimeWeight))
|
||||
.saturating_add(Weight::from_ref_time(37_000 as RefTimeWeight).saturating_mul(t as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as RefTimeWeight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as RefTimeWeight))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user