pallet_xcm_weight_trader/
weights.rs

1// Copyright 2024 Moonbeam foundation
2// This file is part of Moonbeam.
3
4// Moonbeam is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Moonbeam is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Moonbeam.  If not, see <http://www.gnu.org/licenses/>.
16
17#![cfg_attr(rustfmt, rustfmt_skip)]
18#![allow(unused_parens)]
19#![allow(unused_imports)]
20
21use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
22use sp_std::marker::PhantomData;
23
24/// Weight functions needed for pallet_xcm_weight_trader
25pub trait WeightInfo {
26	fn add_asset() -> Weight;
27	fn edit_asset() -> Weight;
28	fn pause_asset_support() -> Weight;
29	fn resume_asset_support() -> Weight;
30	fn remove_asset() -> Weight;
31}
32
33// For tests only
34impl WeightInfo for () {
35	fn add_asset() -> Weight {
36		Weight::default()
37	}
38	fn edit_asset() -> Weight {
39		Weight::default()
40	}
41	fn pause_asset_support() -> Weight {
42		Weight::default()
43	}
44	fn resume_asset_support() -> Weight {
45		Weight::default()
46	}
47	fn remove_asset() -> Weight {
48		Weight::default()
49	}
50}