From a6cf8c271dea40403c83ebffc2abbd9bb87a6d3b Mon Sep 17 00:00:00 2001 From: Adrian Catangiu Date: Fri, 8 Sep 2023 14:04:18 +0300 Subject: [PATCH] runtimes: add missing reserve_withdraw_assets in pallet_xcm::WeightInfo --- .../asset-hub-kusama/src/weights/pallet_xcm.rs | 3 ++- .../asset-hub-polkadot/src/weights/pallet_xcm.rs | 3 ++- .../asset-hub-westend/src/weights/pallet_xcm.rs | 3 ++- .../bridge-hub-kusama/src/weights/pallet_xcm.rs | 4 ++++ .../bridge-hub-polkadot/src/weights/pallet_xcm.rs | 4 ++++ .../bridge-hub-rococo/src/weights/pallet_xcm.rs | 4 ++++ .../collectives-polkadot/src/weights/pallet_xcm.rs | 4 ++++ polkadot/runtime/kusama/src/weights/pallet_xcm.rs | 4 ++++ polkadot/runtime/polkadot/src/weights/pallet_xcm.rs | 12 ++++++++++++ polkadot/runtime/rococo/src/weights/pallet_xcm.rs | 4 ++++ polkadot/runtime/westend/src/weights/pallet_xcm.rs | 4 ++++ 11 files changed, 46 insertions(+), 3 deletions(-) diff --git a/cumulus/parachains/runtimes/assets/asset-hub-kusama/src/weights/pallet_xcm.rs b/cumulus/parachains/runtimes/assets/asset-hub-kusama/src/weights/pallet_xcm.rs index 05ddbd59a7d68..474ad208f5013 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-kusama/src/weights/pallet_xcm.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-kusama/src/weights/pallet_xcm.rs @@ -93,7 +93,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { .saturating_add(T::DbWeight::get().reads(1)) } fn reserve_withdraw_assets() -> Weight { - Weight::from_parts(20_000_000, 0) + Weight::from_parts(23_000_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Benchmark::Override` (r:0 w:0) /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) diff --git a/cumulus/parachains/runtimes/assets/asset-hub-polkadot/src/weights/pallet_xcm.rs b/cumulus/parachains/runtimes/assets/asset-hub-polkadot/src/weights/pallet_xcm.rs index 9af340588c15a..48a9f859c2557 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-polkadot/src/weights/pallet_xcm.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-polkadot/src/weights/pallet_xcm.rs @@ -93,7 +93,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { .saturating_add(T::DbWeight::get().reads(1)) } fn reserve_withdraw_assets() -> Weight { - Weight::from_parts(20_000_000, 0) + Weight::from_parts(23_000_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Benchmark::Override` (r:0 w:0) /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) diff --git a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_xcm.rs b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_xcm.rs index 8ef2e71db5744..bbf09bee42a95 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_xcm.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_xcm.rs @@ -93,7 +93,8 @@ impl pallet_xcm::WeightInfo for WeightInfo { .saturating_add(T::DbWeight::get().reads(1)) } fn reserve_withdraw_assets() -> Weight { - Weight::from_parts(20_000_000, 0) + Weight::from_parts(23_000_000, 0) + .saturating_add(Weight::from_parts(0, 0)) } fn execute() -> Weight { // Proof Size summary in bytes: diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/pallet_xcm.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/pallet_xcm.rs index 71bc583077100..664041448a24d 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/pallet_xcm.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/pallet_xcm.rs @@ -91,6 +91,10 @@ impl pallet_xcm::WeightInfo for WeightInfo { Weight::from_parts(18_446_744_073_709_551_000, 0) .saturating_add(Weight::from_parts(0, 0)) } + fn reserve_withdraw_assets() -> Weight { + Weight::from_parts(23_000_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } /// Storage: `Benchmark::Override` (r:0 w:0) /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute() -> Weight { diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/weights/pallet_xcm.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/weights/pallet_xcm.rs index ffc5fa2fc23ed..5a6816af45592 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/weights/pallet_xcm.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/weights/pallet_xcm.rs @@ -91,6 +91,10 @@ impl pallet_xcm::WeightInfo for WeightInfo { Weight::from_parts(18_446_744_073_709_551_000, 0) .saturating_add(Weight::from_parts(0, 0)) } + fn reserve_withdraw_assets() -> Weight { + Weight::from_parts(23_000_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } /// Storage: `Benchmark::Override` (r:0 w:0) /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute() -> Weight { diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/pallet_xcm.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/pallet_xcm.rs index 72bdb282585de..b9065327a4cb8 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/pallet_xcm.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/pallet_xcm.rs @@ -91,6 +91,10 @@ impl pallet_xcm::WeightInfo for WeightInfo { Weight::from_parts(18_446_744_073_709_551_000, 0) .saturating_add(Weight::from_parts(0, 0)) } + fn reserve_withdraw_assets() -> Weight { + Weight::from_parts(23_000_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } /// Storage: `Benchmark::Override` (r:0 w:0) /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute() -> Weight { diff --git a/cumulus/parachains/runtimes/collectives/collectives-polkadot/src/weights/pallet_xcm.rs b/cumulus/parachains/runtimes/collectives/collectives-polkadot/src/weights/pallet_xcm.rs index 738742b6108b7..0b60425c0f516 100644 --- a/cumulus/parachains/runtimes/collectives/collectives-polkadot/src/weights/pallet_xcm.rs +++ b/cumulus/parachains/runtimes/collectives/collectives-polkadot/src/weights/pallet_xcm.rs @@ -91,6 +91,10 @@ impl pallet_xcm::WeightInfo for WeightInfo { Weight::from_parts(18_446_744_073_709_551_000, 0) .saturating_add(Weight::from_parts(0, 0)) } + fn reserve_withdraw_assets() -> Weight { + Weight::from_parts(23_000_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } /// Storage: `Benchmark::Override` (r:0 w:0) /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`) fn execute() -> Weight { diff --git a/polkadot/runtime/kusama/src/weights/pallet_xcm.rs b/polkadot/runtime/kusama/src/weights/pallet_xcm.rs index 4b1a790a57a14..15c9734d206bd 100644 --- a/polkadot/runtime/kusama/src/weights/pallet_xcm.rs +++ b/polkadot/runtime/kusama/src/weights/pallet_xcm.rs @@ -89,6 +89,10 @@ impl pallet_xcm::WeightInfo for WeightInfo { Weight::from_parts(22_407_000, 0) .saturating_add(Weight::from_parts(0, 0)) } + fn reserve_withdraw_assets() -> Weight { + Weight::from_parts(23_000_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn execute() -> Weight { // Proof Size summary in bytes: // Measured: `0` diff --git a/polkadot/runtime/polkadot/src/weights/pallet_xcm.rs b/polkadot/runtime/polkadot/src/weights/pallet_xcm.rs index abbd5b1f2b962..d667e7926791d 100644 --- a/polkadot/runtime/polkadot/src/weights/pallet_xcm.rs +++ b/polkadot/runtime/polkadot/src/weights/pallet_xcm.rs @@ -89,6 +89,18 @@ impl pallet_xcm::WeightInfo for WeightInfo { Weight::from_parts(23_138_000, 0) .saturating_add(Weight::from_parts(0, 0)) } + fn reserve_withdraw_assets() -> Weight { + Weight::from_parts(23_000_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } + fn reserve_wi_assets() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 22_672_000 picoseconds. + Weight::from_parts(23_138_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) fn execute() -> Weight { diff --git a/polkadot/runtime/rococo/src/weights/pallet_xcm.rs b/polkadot/runtime/rococo/src/weights/pallet_xcm.rs index 43b4358b89038..8eac9bd764612 100644 --- a/polkadot/runtime/rococo/src/weights/pallet_xcm.rs +++ b/polkadot/runtime/rococo/src/weights/pallet_xcm.rs @@ -85,6 +85,10 @@ impl pallet_xcm::WeightInfo for WeightInfo { Weight::from_parts(21_768_000, 0) .saturating_add(Weight::from_parts(0, 0)) } + fn reserve_withdraw_assets() -> Weight { + Weight::from_parts(23_000_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } fn execute() -> Weight { // Proof Size summary in bytes: // Measured: `0` diff --git a/polkadot/runtime/westend/src/weights/pallet_xcm.rs b/polkadot/runtime/westend/src/weights/pallet_xcm.rs index 7f2a1de44e939..07fc6bcb06257 100644 --- a/polkadot/runtime/westend/src/weights/pallet_xcm.rs +++ b/polkadot/runtime/westend/src/weights/pallet_xcm.rs @@ -89,6 +89,10 @@ impl pallet_xcm::WeightInfo for WeightInfo { Weight::from_parts(21_942_000, 0) .saturating_add(Weight::from_parts(0, 0)) } + fn reserve_withdraw_assets() -> Weight { + Weight::from_parts(23_000_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) fn execute() -> Weight {