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
@@ -54,8 +54,8 @@ impl<T: frame_system::Config> runtime_common::auctions::WeightInfo for WeightInf
// Measured: `4`
// Estimated: `1002`
// Minimum execution time: 12_996 nanoseconds.
Weight::from_ref_time(13_515_000)
.saturating_add(Weight::from_proof_size(1002))
Weight::from_parts(13_515_000, 0)
.saturating_add(Weight::from_parts(0, 1002))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
@@ -78,8 +78,8 @@ impl<T: frame_system::Config> runtime_common::auctions::WeightInfo for WeightInf
// Measured: `792`
// Estimated: `19604`
// Minimum execution time: 69_368 nanoseconds.
Weight::from_ref_time(70_426_000)
.saturating_add(Weight::from_proof_size(19604))
Weight::from_parts(70_426_000, 0)
.saturating_add(Weight::from_parts(0, 19604))
.saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().writes(4))
}
@@ -112,8 +112,8 @@ impl<T: frame_system::Config> runtime_common::auctions::WeightInfo for WeightInf
// Measured: `7060535`
// Estimated: `51327080`
// Minimum execution time: 15_633_312 nanoseconds.
Weight::from_ref_time(16_032_872_000)
.saturating_add(Weight::from_proof_size(51327080))
Weight::from_parts(16_032_872_000, 0)
.saturating_add(Weight::from_parts(0, 51327080))
.saturating_add(T::DbWeight::get().reads(3683))
.saturating_add(T::DbWeight::get().writes(3678))
}
@@ -130,8 +130,8 @@ impl<T: frame_system::Config> runtime_common::auctions::WeightInfo for WeightInf
// Measured: `178884`
// Estimated: `16009503`
// Minimum execution time: 4_771_029 nanoseconds.
Weight::from_ref_time(4_880_229_000)
.saturating_add(Weight::from_proof_size(16009503))
Weight::from_parts(4_880_229_000, 0)
.saturating_add(Weight::from_parts(0, 16009503))
.saturating_add(T::DbWeight::get().reads(3673))
.saturating_add(T::DbWeight::get().writes(3673))
}