referrerpolicy=no-referrer-when-downgrade

bridge_hub_westend_runtime/weights/
snowbridge_pallet_inbound_queue_v2.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_inbound_queue_v2`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-03-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `Mac`, CPU: `<UNKNOWN>`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("bridge-hub-westend-dev")`, DB CACHE: 1024
23
24// Executed Command:
25// ./target/release/polkadot-parachain
26// benchmark
27// pallet
28// --chain
29// bridge-hub-westend-dev
30// --pallet=snowbridge-pallet-inbound-queue-v2
31// --extrinsic=*
32// --wasm-execution=compiled
33// --output
34// cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/weights/snowbridge_pallet_inbound_queue_v2.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_inbound_queue_v2`.
45pub struct WeightInfo<T>(PhantomData<T>);
46impl<T: frame_system::Config> snowbridge_pallet_inbound_queue_v2::WeightInfo for WeightInfo<T> {
47	/// Storage: `EthereumInboundQueueV2::OperatingMode` (r:1 w:0)
48	/// Proof: `EthereumInboundQueueV2::OperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
49	/// Storage: `EthereumBeaconClient::LatestFinalizedBlockRoot` (r:1 w:0)
50	/// Proof: `EthereumBeaconClient::LatestFinalizedBlockRoot` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
51	/// Storage: `EthereumBeaconClient::FinalizedBeaconState` (r:1 w:0)
52	/// Proof: `EthereumBeaconClient::FinalizedBeaconState` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
53	/// Storage: UNKNOWN KEY `0xaed97c7854d601808b98ae43079dafb3` (r:1 w:0)
54	/// Proof: UNKNOWN KEY `0xaed97c7854d601808b98ae43079dafb3` (r:1 w:0)
55	/// Storage: `EthereumInboundQueueV2::NonceBitmap` (r:1 w:1)
56	/// Proof: `EthereumInboundQueueV2::NonceBitmap` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
57	/// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
58	/// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
59	/// Storage: `BridgeRelayers::RelayerRewards` (r:1 w:1)
60	/// Proof: `BridgeRelayers::RelayerRewards` (`max_values`: None, `max_size`: Some(74), added: 2549, mode: `MaxEncodedLen`)
61	fn submit() -> Weight {
62		// Proof Size summary in bytes:
63		//  Measured:  `309`
64		//  Estimated: `3774`
65		// Minimum execution time: 59_000_000 picoseconds.
66		Weight::from_parts(60_000_000, 0)
67			.saturating_add(Weight::from_parts(0, 3774))
68			.saturating_add(T::DbWeight::get().reads(7))
69			.saturating_add(T::DbWeight::get().writes(2))
70	}
71}