referrerpolicy=no-referrer-when-downgrade

asset_hub_westend_runtime/weights/
snowbridge_pallet_system_frontend.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// 	http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Autogenerated weights for `snowbridge_pallet_system_frontend`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-05-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `MacBook-Pro-4.local`, CPU: `<UNKNOWN>`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-westend-dev")`, DB CACHE: 1024
23
24// Executed Command:
25// ./target/release/polkadot-parachain
26// benchmark
27// pallet
28// --chain
29// asset-hub-westend-dev
30// --pallet=snowbridge-pallet-system-frontend
31// --extrinsic=*
32// --wasm-execution=compiled
33// --output
34// cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/snowbridge_pallet_system_frontend.rs
35
36#![cfg_attr(rustfmt, rustfmt_skip)]
37#![allow(unused_parens)]
38#![allow(unused_imports)]
39#![allow(missing_docs)]
40
41use frame_support::{traits::Get, weights::Weight};
42use core::marker::PhantomData;
43
44/// Weight functions for `snowbridge_pallet_system_frontend`.
45pub struct WeightInfo<T>(PhantomData<T>);
46impl<T: frame_system::Config> snowbridge_pallet_system_frontend::WeightInfo for WeightInfo<T> {
47	/// Storage: `SnowbridgeSystemFrontend::ExportOperatingMode` (r:1 w:0)
48	/// Proof: `SnowbridgeSystemFrontend::ExportOperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
49	/// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
50	/// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
51	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
52	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
53	fn register_token() -> Weight {
54		// Proof Size summary in bytes:
55		//  Measured:  `456`
56		//  Estimated: `4273`
57		// Minimum execution time: 15_000_000 picoseconds.
58		Weight::from_parts(16_000_000, 0)
59			.saturating_add(Weight::from_parts(0, 4273))
60			.saturating_add(T::DbWeight::get().reads(3))
61	}
62	/// Storage: UNKNOWN KEY `0x1b38344db996cce0ee20ee2bfb1848ff` (r:1 w:0)
63	/// Proof: UNKNOWN KEY `0x1b38344db996cce0ee20ee2bfb1848ff` (r:1 w:0)
64	/// Storage: `System::Account` (r:1 w:1)
65	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
66	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
67	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
68	/// Storage: `ForeignAssets::Account` (r:2 w:2)
69	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
70	/// Storage: `ForeignAssetsFreezer::FrozenBalances` (r:2 w:1)
71	/// Proof: `ForeignAssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(682), added: 3157, mode: `MaxEncodedLen`)
72	/// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
73	/// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
74	/// Storage: `ForeignAssetsFreezer::Freezes` (r:1 w:1)
75	/// Proof: `ForeignAssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(685), added: 3160, mode: `MaxEncodedLen`)
76	fn add_tip() -> Weight {
77		// Proof Size summary in bytes:
78		//  Measured:  `685`
79		//  Estimated: `7404`
80		// Minimum execution time: 136_000_000 picoseconds.
81		Weight::from_parts(139_000_000, 0)
82			.saturating_add(Weight::from_parts(0, 7404))
83			.saturating_add(T::DbWeight::get().reads(9))
84			.saturating_add(T::DbWeight::get().writes(6))
85	}
86}