mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 16:51:02 +00:00
Companion for Weight v1.5 (#5943)
* fix to latest substrate pr
* update weights
* cargo build -p polkadot-runtime-parachains
* fix xcm-builder
* fix import
* fix a bunch
* fix a bunch of weight stuff
* kusama compile
* unused
* builds
* maybe fix
* cargo test -p polkadot-runtime-parachains
* xcm simulator example
* fix tests
* xcm sim fuzz
* fix runtime tests
* remove unused
* fix integration tests
* scalar div
* 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::Weight};
|
||||
use frame_support::{traits::Get, weights::{RefTimeWeight, Weight}};
|
||||
use sp_std::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `runtime_parachains::paras_inherent`.
|
||||
@@ -76,11 +76,11 @@ impl<T: frame_system::Config> runtime_parachains::paras_inherent::WeightInfo for
|
||||
// Storage: Paras UpgradeGoAheadSignal (r:0 w:1)
|
||||
/// The range of component `v` is `[10, 200]`.
|
||||
fn enter_variable_disputes(v: u32, ) -> Weight {
|
||||
(367_606_000 as Weight)
|
||||
Weight::from_ref_time(367_606_000 as RefTimeWeight)
|
||||
// Standard Error: 14_000
|
||||
.saturating_add((48_163_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(28 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(18 as Weight))
|
||||
.saturating_add(Weight::from_ref_time(48_163_000 as RefTimeWeight).scalar_saturating_mul(v as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(28 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(18 as RefTimeWeight))
|
||||
}
|
||||
// Storage: ParaInherent Included (r:1 w:1)
|
||||
// Storage: System ParentHash (r:1 w:0)
|
||||
@@ -112,9 +112,9 @@ impl<T: frame_system::Config> runtime_parachains::paras_inherent::WeightInfo for
|
||||
// Storage: Paras Heads (r:0 w:1)
|
||||
// Storage: Paras UpgradeGoAheadSignal (r:0 w:1)
|
||||
fn enter_bitfields() -> Weight {
|
||||
(355_084_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(25 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(17 as Weight))
|
||||
Weight::from_ref_time(355_084_000 as RefTimeWeight)
|
||||
.saturating_add(T::DbWeight::get().reads(25 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(17 as RefTimeWeight))
|
||||
}
|
||||
// Storage: ParaInherent Included (r:1 w:1)
|
||||
// Storage: System ParentHash (r:1 w:0)
|
||||
@@ -148,11 +148,11 @@ impl<T: frame_system::Config> runtime_parachains::paras_inherent::WeightInfo for
|
||||
// Storage: Paras UpgradeGoAheadSignal (r:0 w:1)
|
||||
/// The range of component `v` is `[101, 200]`.
|
||||
fn enter_backed_candidates_variable(v: u32, ) -> Weight {
|
||||
(949_843_000 as Weight)
|
||||
Weight::from_ref_time(949_843_000 as RefTimeWeight)
|
||||
// Standard Error: 40_000
|
||||
.saturating_add((48_022_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(28 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(16 as Weight))
|
||||
.saturating_add(Weight::from_ref_time(48_022_000 as RefTimeWeight).scalar_saturating_mul(v as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().reads(28 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(16 as RefTimeWeight))
|
||||
}
|
||||
// Storage: ParaInherent Included (r:1 w:1)
|
||||
// Storage: System ParentHash (r:1 w:0)
|
||||
@@ -187,8 +187,8 @@ impl<T: frame_system::Config> runtime_parachains::paras_inherent::WeightInfo for
|
||||
// Storage: Paras Heads (r:0 w:1)
|
||||
// Storage: Paras UpgradeGoAheadSignal (r:0 w:1)
|
||||
fn enter_backed_candidate_code_upgrade() -> Weight {
|
||||
(42_881_188_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(30 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(16 as Weight))
|
||||
Weight::from_ref_time(42_881_188_000 as RefTimeWeight)
|
||||
.saturating_add(T::DbWeight::get().reads(30 as RefTimeWeight))
|
||||
.saturating_add(T::DbWeight::get().writes(16 as RefTimeWeight))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user