referrerpolicy=no-referrer-when-downgrade

snowbridge_pallet_system_frontend/
backend_weights.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
3//! XCM Execution weights for invoking the backend implementation
4
5use frame_support::weights::{constants::RocksDbWeight, Weight};
6
7/// XCM Execution weights for invoking the backend implementation
8pub trait BackendWeightInfo {
9	/// Execution weight for remote xcm that dispatches `EthereumSystemCall::RegisterToken`
10	/// using `Transact`.
11	fn transact_register_token() -> Weight;
12	fn transact_add_tip() -> Weight;
13	fn do_process_message() -> Weight;
14	fn commit_single() -> Weight;
15	fn submit_delivery_receipt() -> Weight;
16}
17
18impl BackendWeightInfo for () {
19	fn transact_register_token() -> Weight {
20		Weight::from_parts(100_000_000, 10000)
21	}
22	fn transact_add_tip() -> Weight {
23		Weight::from_parts(100_000_000, 10000)
24	}
25	fn do_process_message() -> Weight {
26		Weight::from_parts(39_000_000, 3485)
27			.saturating_add(RocksDbWeight::get().reads(4_u64))
28			.saturating_add(RocksDbWeight::get().writes(4_u64))
29	}
30	fn commit_single() -> Weight {
31		Weight::from_parts(9_000_000, 1586)
32			.saturating_add(RocksDbWeight::get().reads(2_u64))
33			.saturating_add(RocksDbWeight::get().writes(1_u64))
34	}
35
36	fn submit_delivery_receipt() -> Weight {
37		Weight::from_parts(70_000_000, 0)
38			.saturating_add(Weight::from_parts(0, 3601))
39			.saturating_add(RocksDbWeight::get().reads(2))
40			.saturating_add(RocksDbWeight::get().writes(2))
41	}
42}