Skip to content

Commit

Permalink
Merge branch 'bko-transfer-asset-via-bridge' into alistair/merge-bko-…
Browse files Browse the repository at this point in the history
…transfer-assets
  • Loading branch information
alistair-singh committed May 30, 2023
2 parents 646f6e6 + faae320 commit ea44488
Showing 1 changed file with 77 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//! Autogenerated weights for `pallet_bridge_transfer`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-03-30, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-05-30, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westmint-dev"), DB CACHE: 1024
Expand All @@ -41,28 +41,75 @@
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(missing_docs)]

use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData;
use core::marker::PhantomData;

/// Weight functions for `pallet_bridge_transfer`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_bridge_transfer::WeightInfo for WeightInfo<T> {
/// Storage: ParachainInfo ParachainId (r:1 w:0)
/// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: BridgeTransfer AllowedExporters (r:1 w:0)
/// Proof: BridgeTransfer AllowedExporters (max_values: None, max_size: Some(2537), added: 5012, mode: MaxEncodedLen)
/// Storage: unknown `0x3a696e747261626c6f636b5f656e74726f7079` (r:1 w:1)
/// Proof Skipped: unknown `0x3a696e747261626c6f636b5f656e74726f7079` (r:1 w:1)
/// Storage: Assets Asset (r:1 w:1)
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
/// Storage: Assets Account (r:2 w:2)
/// Proof: Assets Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
/// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured)
/// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
/// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0)
/// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ParachainSystem RelevantMessagingState (r:1 w:0)
/// Proof Skipped: ParachainSystem RelevantMessagingState (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: XcmpQueue OutboundXcmpStatus (r:1 w:1)
/// Proof Skipped: XcmpQueue OutboundXcmpStatus (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: XcmpQueue OutboundXcmpMessages (r:0 w:1)
/// Proof Skipped: XcmpQueue OutboundXcmpMessages (max_values: None, max_size: None, mode: Measured)
fn transfer_asset_via_bridge() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 0_000 picoseconds.
Weight::from_parts(0, 0)
.saturating_add(Weight::from_parts(0, 0))
// Measured: `732`
// Estimated: `6208`
// Minimum execution time: 151_961_000 picoseconds.
Weight::from_parts(153_658_000, 0)
.saturating_add(Weight::from_parts(0, 6208))
.saturating_add(T::DbWeight::get().reads(12))
.saturating_add(T::DbWeight::get().writes(8))
}
/// Storage: ParachainInfo ParachainId (r:1 w:0)
/// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: BridgeTransfer AllowedExporters (r:1 w:0)
/// Proof: BridgeTransfer AllowedExporters (max_values: None, max_size: Some(2537), added: 5012, mode: MaxEncodedLen)
/// Storage: unknown `0x3a696e747261626c6f636b5f656e74726f7079` (r:1 w:1)
/// Proof Skipped: unknown `0x3a696e747261626c6f636b5f656e74726f7079` (r:1 w:1)
/// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
/// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured)
/// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
/// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0)
/// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ParachainSystem RelevantMessagingState (r:1 w:0)
/// Proof Skipped: ParachainSystem RelevantMessagingState (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: XcmpQueue OutboundXcmpStatus (r:1 w:1)
/// Proof Skipped: XcmpQueue OutboundXcmpStatus (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: XcmpQueue OutboundXcmpMessages (r:0 w:1)
/// Proof Skipped: XcmpQueue OutboundXcmpMessages (max_values: None, max_size: None, mode: Measured)
fn ping_via_bridge() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 0_000 picoseconds.
Weight::from_parts(0, 0)
.saturating_add(Weight::from_parts(0, 0))
// Measured: `381`
// Estimated: `6002`
// Minimum execution time: 64_672_000 picoseconds.
Weight::from_parts(65_698_000, 0)
.saturating_add(Weight::from_parts(0, 6002))
.saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().writes(4))
}
/// Storage: BridgeTransfer AllowedExporters (r:1 w:1)
/// Proof: BridgeTransfer AllowedExporters (max_values: None, max_size: Some(2537), added: 5012, mode: MaxEncodedLen)
Expand All @@ -71,21 +118,21 @@ impl<T: frame_system::Config> pallet_bridge_transfer::WeightInfo for WeightInfo<
fn add_exporter_config() -> Weight {
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `7491`
// Minimum execution time: 15_704_000 picoseconds.
Weight::from_parts(16_139_000, 0)
.saturating_add(Weight::from_parts(0, 7491))
// Estimated: `6002`
// Minimum execution time: 16_205_000 picoseconds.
Weight::from_parts(16_584_000, 0)
.saturating_add(Weight::from_parts(0, 6002))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: BridgeTransfer AllowedExporters (r:1 w:1)
/// Proof: BridgeTransfer AllowedExporters (max_values: None, max_size: Some(2537), added: 5012, mode: MaxEncodedLen)
fn remove_exporter_config() -> Weight {
// Proof Size summary in bytes:
// Measured: `165`
// Measured: `175`
// Estimated: `6002`
// Minimum execution time: 13_749_000 picoseconds.
Weight::from_parts(14_178_000, 0)
// Minimum execution time: 13_171_000 picoseconds.
Weight::from_parts(13_598_000, 0)
.saturating_add(Weight::from_parts(0, 6002))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -94,10 +141,10 @@ impl<T: frame_system::Config> pallet_bridge_transfer::WeightInfo for WeightInfo<
/// Proof: BridgeTransfer AllowedExporters (max_values: None, max_size: Some(2537), added: 5012, mode: MaxEncodedLen)
fn update_exporter_config() -> Weight {
// Proof Size summary in bytes:
// Measured: `165`
// Measured: `175`
// Estimated: `6002`
// Minimum execution time: 18_664_000 picoseconds.
Weight::from_parts(18_982_000, 0)
// Minimum execution time: 16_666_000 picoseconds.
Weight::from_parts(16_847_000, 0)
.saturating_add(Weight::from_parts(0, 6002))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -108,8 +155,8 @@ impl<T: frame_system::Config> pallet_bridge_transfer::WeightInfo for WeightInfo<
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `5884`
// Minimum execution time: 12_859_000 picoseconds.
Weight::from_parts(19_737_000, 0)
// Minimum execution time: 11_874_000 picoseconds.
Weight::from_parts(12_188_000, 0)
.saturating_add(Weight::from_parts(0, 5884))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -120,8 +167,8 @@ impl<T: frame_system::Config> pallet_bridge_transfer::WeightInfo for WeightInfo<
// Proof Size summary in bytes:
// Measured: `158`
// Estimated: `5884`
// Minimum execution time: 15_939_000 picoseconds.
Weight::from_parts(16_245_000, 0)
// Minimum execution time: 15_103_000 picoseconds.
Weight::from_parts(15_497_000, 0)
.saturating_add(Weight::from_parts(0, 5884))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -132,8 +179,8 @@ impl<T: frame_system::Config> pallet_bridge_transfer::WeightInfo for WeightInfo<
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `6302`
// Minimum execution time: 12_764_000 picoseconds.
Weight::from_parts(13_060_000, 0)
// Minimum execution time: 11_624_000 picoseconds.
Weight::from_parts(11_983_000, 0)
.saturating_add(Weight::from_parts(0, 6302))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -144,8 +191,8 @@ impl<T: frame_system::Config> pallet_bridge_transfer::WeightInfo for WeightInfo<
// Proof Size summary in bytes:
// Measured: `141`
// Estimated: `6302`
// Minimum execution time: 14_613_000 picoseconds.
Weight::from_parts(14_927_000, 0)
// Minimum execution time: 13_568_000 picoseconds.
Weight::from_parts(13_867_000, 0)
.saturating_add(Weight::from_parts(0, 6302))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand Down

0 comments on commit ea44488

Please sign in to comment.