Migrate to Weight::from_parts (#2245)

* Migrate to from_parts

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

* Fix remaining files

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

* cargo update -p polkadot-primitives

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

* cargo update -p sp-io

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

* Use Master Cargo.lock

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

* cargo update -p polkadot-primitives

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

* cargo update -p sp-io

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

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
Oliver Tale-Yazdi
2023-03-03 13:47:23 +01:00
committed by GitHub
parent 1de575dc25
commit 558502345f
128 changed files with 2223 additions and 2223 deletions
@@ -62,8 +62,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
// Measured: `38`
// Estimated: `4645`
// Minimum execution time: 23_618 nanoseconds.
Weight::from_ref_time(24_118_000)
.saturating_add(Weight::from_proof_size(4645))
Weight::from_parts(24_118_000, 0)
.saturating_add(Weight::from_parts(0, 4645))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(2))
}
@@ -74,8 +74,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
// Measured: `32`
// Estimated: `499`
// Minimum execution time: 23_764 nanoseconds.
Weight::from_ref_time(24_114_000)
.saturating_add(Weight::from_proof_size(499))
Weight::from_parts(24_114_000, 0)
.saturating_add(Weight::from_parts(0, 499))
.saturating_add(T::DbWeight::get().reads(1))
}
/// Storage: Benchmark Override (r:0 w:0)
@@ -85,8 +85,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 18_446_744_073_709_551 nanoseconds.
Weight::from_ref_time(18_446_744_073_709_551_000)
.saturating_add(Weight::from_proof_size(0))
Weight::from_parts(18_446_744_073_709_551_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
/// Storage: Benchmark Override (r:0 w:0)
/// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured)
@@ -95,8 +95,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 18_446_744_073_709_551 nanoseconds.
Weight::from_ref_time(18_446_744_073_709_551_000)
.saturating_add(Weight::from_proof_size(0))
Weight::from_parts(18_446_744_073_709_551_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
/// Storage: PolkadotXcm SupportedVersion (r:0 w:1)
/// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured)
@@ -105,8 +105,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_266 nanoseconds.
Weight::from_ref_time(8_578_000)
.saturating_add(Weight::from_proof_size(0))
Weight::from_parts(8_578_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: PolkadotXcm SafeXcmVersion (r:0 w:1)
@@ -116,8 +116,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_289 nanoseconds.
Weight::from_ref_time(2_382_000)
.saturating_add(Weight::from_proof_size(0))
Weight::from_parts(2_382_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: PolkadotXcm VersionNotifiers (r:1 w:1)
@@ -141,8 +141,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
// Measured: `38`
// Estimated: `7729`
// Minimum execution time: 28_592 nanoseconds.
Weight::from_ref_time(29_116_000)
.saturating_add(Weight::from_proof_size(7729))
Weight::from_parts(29_116_000, 0)
.saturating_add(Weight::from_parts(0, 7729))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(5))
}
@@ -165,8 +165,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
// Measured: `220`
// Estimated: `8470`
// Minimum execution time: 30_604 nanoseconds.
Weight::from_ref_time(31_361_000)
.saturating_add(Weight::from_proof_size(8470))
Weight::from_parts(31_361_000, 0)
.saturating_add(Weight::from_parts(0, 8470))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(4))
}
@@ -177,8 +177,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
// Measured: `95`
// Estimated: `9995`
// Minimum execution time: 13_750 nanoseconds.
Weight::from_ref_time(14_051_000)
.saturating_add(Weight::from_proof_size(9995))
Weight::from_parts(14_051_000, 0)
.saturating_add(Weight::from_parts(0, 9995))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(2))
}
@@ -189,8 +189,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
// Measured: `99`
// Estimated: `9999`
// Minimum execution time: 13_897 nanoseconds.
Weight::from_ref_time(14_080_000)
.saturating_add(Weight::from_proof_size(9999))
Weight::from_parts(14_080_000, 0)
.saturating_add(Weight::from_parts(0, 9999))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(2))
}
@@ -201,8 +201,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
// Measured: `106`
// Estimated: `12481`
// Minimum execution time: 16_364 nanoseconds.
Weight::from_ref_time(16_867_000)
.saturating_add(Weight::from_proof_size(12481))
Weight::from_parts(16_867_000, 0)
.saturating_add(Weight::from_parts(0, 12481))
.saturating_add(T::DbWeight::get().reads(5))
}
/// Storage: PolkadotXcm VersionNotifyTargets (r:2 w:1)
@@ -222,8 +222,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
// Measured: `106`
// Estimated: `10041`
// Minimum execution time: 27_372 nanoseconds.
Weight::from_ref_time(28_128_000)
.saturating_add(Weight::from_proof_size(10041))
Weight::from_parts(28_128_000, 0)
.saturating_add(Weight::from_parts(0, 10041))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(3))
}
@@ -234,8 +234,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
// Measured: `136`
// Estimated: `7561`
// Minimum execution time: 7_804 nanoseconds.
Weight::from_ref_time(8_096_000)
.saturating_add(Weight::from_proof_size(7561))
Weight::from_parts(8_096_000, 0)
.saturating_add(Weight::from_parts(0, 7561))
.saturating_add(T::DbWeight::get().reads(3))
}
/// Storage: PolkadotXcm VersionNotifyTargets (r:4 w:2)
@@ -245,8 +245,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
// Measured: `106`
// Estimated: `10006`
// Minimum execution time: 14_948 nanoseconds.
Weight::from_ref_time(15_422_000)
.saturating_add(Weight::from_proof_size(10006))
Weight::from_parts(15_422_000, 0)
.saturating_add(Weight::from_parts(0, 10006))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(2))
}
@@ -267,8 +267,8 @@ impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
// Measured: `112`
// Estimated: `15027`
// Minimum execution time: 33_791 nanoseconds.
Weight::from_ref_time(34_282_000)
.saturating_add(Weight::from_proof_size(15027))
Weight::from_parts(34_282_000, 0)
.saturating_add(Weight::from_parts(0, 15027))
.saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(4))
}