referrerpolicy=no-referrer-when-downgrade

asset_hub_westend_runtime/weights/
snowbridge_pallet_system_backend.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#![cfg_attr(rustfmt, rustfmt_skip)]
17#![allow(unused_parens)]
18#![allow(unused_imports)]
19#![allow(missing_docs)]
20
21use frame_support::{traits::Get, weights::Weight};
22use core::marker::PhantomData;
23
24/// Weight functions for `snowbridge_pallet_system_frontend::BackendWeightInfo`.
25/// Copy the weight generated for `fn register_token() -> Weight` from
26/// ../../../../bridge-hubs/bridge-hub-westend/src/weights/snowbridge_pallet_system_v2.rs
27pub struct WeightInfo<T>(PhantomData<T>);
28impl<T: frame_system::Config> snowbridge_pallet_system_frontend::BackendWeightInfo for WeightInfo<T> {
29	fn transact_register_token() -> Weight {
30		Weight::from_parts(45_000_000, 6044)
31			.saturating_add(T::DbWeight::get().reads(5_u64))
32			.saturating_add(T::DbWeight::get().writes(3_u64))
33	}
34
35	fn transact_add_tip() -> Weight {
36		Weight::from_parts(45_000_000, 6044)
37			.saturating_add(T::DbWeight::get().reads(5_u64))
38			.saturating_add(T::DbWeight::get().writes(3_u64))
39	}
40
41	fn do_process_message() -> Weight {
42		Weight::from_parts(19_000_000, 0)
43			.saturating_add(Weight::from_parts(0, 1527))
44			.saturating_add(T::DbWeight::get().reads(3))
45			.saturating_add(T::DbWeight::get().writes(4))
46	}
47
48	fn commit_single() -> Weight {
49		Weight::from_parts(10_000_000, 0)
50			.saturating_add(Weight::from_parts(0, 1620))
51			.saturating_add(T::DbWeight::get().reads(1))
52	}
53
54	fn submit_delivery_receipt() -> Weight {
55		Weight::from_parts(68_000_000, 0)
56			.saturating_add(Weight::from_parts(0, 3785))
57			.saturating_add(T::DbWeight::get().reads(4))
58			.saturating_add(T::DbWeight::get().writes(1))
59	}
60}