Migrate to Weight::from_parts (#6794)

* Migrate to from_parts

Have a look at https://github.com/ggwpez/substrate-scripts/blob/master/migrate-from-parts.py

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Adapt to master

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* update lockfile for {"substrate"}

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: parity-processbot <>
This commit is contained in:
Oliver Tale-Yazdi
2023-03-03 00:32:30 +01:00
committed by GitHub
parent c5637bda91
commit 177bedc160
187 changed files with 4080 additions and 4088 deletions
@@ -52,8 +52,8 @@ impl<T: frame_system::Config> pallet_indices::WeightInfo for WeightInfo<T> {
// Measured: `142`
// Estimated: `2544`
// Minimum execution time: 20_043 nanoseconds.
Weight::from_ref_time(20_524_000)
.saturating_add(Weight::from_proof_size(2544))
Weight::from_parts(20_524_000, 0)
.saturating_add(Weight::from_parts(0, 2544))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -66,8 +66,8 @@ impl<T: frame_system::Config> pallet_indices::WeightInfo for WeightInfo<T> {
// Measured: `405`
// Estimated: `5147`
// Minimum execution time: 25_756 nanoseconds.
Weight::from_ref_time(26_328_000)
.saturating_add(Weight::from_proof_size(5147))
Weight::from_parts(26_328_000, 0)
.saturating_add(Weight::from_parts(0, 5147))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
@@ -78,8 +78,8 @@ impl<T: frame_system::Config> pallet_indices::WeightInfo for WeightInfo<T> {
// Measured: `270`
// Estimated: `2544`
// Minimum execution time: 21_115 nanoseconds.
Weight::from_ref_time(21_969_000)
.saturating_add(Weight::from_proof_size(2544))
Weight::from_parts(21_969_000, 0)
.saturating_add(Weight::from_parts(0, 2544))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -92,8 +92,8 @@ impl<T: frame_system::Config> pallet_indices::WeightInfo for WeightInfo<T> {
// Measured: `405`
// Estimated: `5147`
// Minimum execution time: 23_431 nanoseconds.
Weight::from_ref_time(23_760_000)
.saturating_add(Weight::from_proof_size(5147))
Weight::from_parts(23_760_000, 0)
.saturating_add(Weight::from_parts(0, 5147))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
@@ -104,8 +104,8 @@ impl<T: frame_system::Config> pallet_indices::WeightInfo for WeightInfo<T> {
// Measured: `270`
// Estimated: `2544`
// Minimum execution time: 23_719 nanoseconds.
Weight::from_ref_time(24_080_000)
.saturating_add(Weight::from_proof_size(2544))
Weight::from_parts(24_080_000, 0)
.saturating_add(Weight::from_parts(0, 2544))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}