mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 02:21:03 +00:00
Deprecate Weight::from_{ref_time, proof_size} (#13475)
* Deprecate Weight::from_{ref_time, proof_size}
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Update templates
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Use from_parts
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Use from_parts
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Dont revert comment 🤦
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_balances
* Update weight files
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* More fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Adapt to Master changes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: command-bot <>
This commit is contained in:
committed by
GitHub
parent
7981d4aa59
commit
9e56e1acdd
@@ -111,7 +111,7 @@ parameter_types! {
|
||||
pub static Target: Perquintill = Perquintill::zero();
|
||||
pub const MinReceipt: Perquintill = Perquintill::from_percent(1);
|
||||
pub const ThawThrottle: (Perquintill, u64) = (Perquintill::from_percent(25), 5);
|
||||
pub static MaxIntakeWeight: Weight = Weight::from_ref_time(2_000_000_000_000);
|
||||
pub static MaxIntakeWeight: Weight = Weight::from_parts(2_000_000_000_000, 0);
|
||||
pub const ReserveId: [u8; 8] = *b"py/nis ";
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Minimum execution time: 28_814 nanoseconds.
|
||||
Weight::from_parts(35_245_917, 60718)
|
||||
// Standard Error: 189
|
||||
.saturating_add(Weight::from_ref_time(45_322).saturating_mul(l.into()))
|
||||
.saturating_add(Weight::from_parts(45_322, 0).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -111,7 +111,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Minimum execution time: 34_426 nanoseconds.
|
||||
Weight::from_parts(36_434_166, 60718)
|
||||
// Standard Error: 135
|
||||
.saturating_add(Weight::from_ref_time(33_923).saturating_mul(l.into()))
|
||||
.saturating_add(Weight::from_parts(33_923, 0).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -239,7 +239,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 6_758 nanoseconds.
|
||||
Weight::from_ref_time(6_911_000)
|
||||
Weight::from_parts(6_911_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
@@ -260,7 +260,7 @@ impl WeightInfo for () {
|
||||
// Minimum execution time: 28_814 nanoseconds.
|
||||
Weight::from_parts(35_245_917, 60718)
|
||||
// Standard Error: 189
|
||||
.saturating_add(Weight::from_ref_time(45_322).saturating_mul(l.into()))
|
||||
.saturating_add(Weight::from_parts(45_322, 0).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -293,7 +293,7 @@ impl WeightInfo for () {
|
||||
// Minimum execution time: 34_426 nanoseconds.
|
||||
Weight::from_parts(36_434_166, 60718)
|
||||
// Standard Error: 135
|
||||
.saturating_add(Weight::from_ref_time(33_923).saturating_mul(l.into()))
|
||||
.saturating_add(Weight::from_parts(33_923, 0).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -421,7 +421,7 @@ impl WeightInfo for () {
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 6_758 nanoseconds.
|
||||
Weight::from_ref_time(6_911_000)
|
||||
Weight::from_parts(6_911_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user