1
// Copyright 2025 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

            
18
//! Autogenerated weights for `pallet_xcm_weight_trader`
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 51.0.0
21
//! DATE: 2026-02-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
25

            
26
// Executed Command:
27
// ./frame-omni-bencher
28
// v1
29
// benchmark
30
// pallet
31
// --runtime=./target/production/wbuild/moonbase-runtime/moonbase_runtime.wasm
32
// --genesis-builder=runtime
33
// --genesis-builder-preset=development
34
// --steps=50
35
// --repeat=20
36
// --pallet=pallet_xcm_weight_trader
37
// --extrinsic=*
38
// --wasm-execution=compiled
39
// --header=./file_header.txt
40
// --template=./benchmarking/frame-weight-template.hbs
41
// --disable-log-color
42
// --output=./runtime/moonbase/src/weights
43

            
44
#![cfg_attr(rustfmt, rustfmt_skip)]
45
#![allow(unused_parens)]
46
#![allow(unused_imports)]
47

            
48
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
49
use sp_std::marker::PhantomData;
50

            
51
/// Weights for `pallet_xcm_weight_trader`.
52
pub struct WeightInfo<T>(PhantomData<T>);
53
impl<T: frame_system::Config> pallet_xcm_weight_trader::WeightInfo for WeightInfo<T> {
54
	/// Storage: `XcmWeightTrader::SupportedAssets` (r:1 w:1)
55
	/// Proof: `XcmWeightTrader::SupportedAssets` (`max_values`: None, `max_size`: Some(635), added: 3110, mode: `MaxEncodedLen`)
56
	fn add_asset() -> Weight {
57
		// Proof Size summary in bytes:
58
		//  Measured:  `76`
59
		//  Estimated: `4100`
60
		// Minimum execution time: 10_460_000 picoseconds.
61
		Weight::from_parts(10_858_000, 4100)
62
			.saturating_add(T::DbWeight::get().reads(1_u64))
63
			.saturating_add(T::DbWeight::get().writes(1_u64))
64
	}
65
	/// Storage: `XcmWeightTrader::SupportedAssets` (r:1 w:1)
66
	/// Proof: `XcmWeightTrader::SupportedAssets` (`max_values`: None, `max_size`: Some(635), added: 3110, mode: `MaxEncodedLen`)
67
	fn edit_asset() -> Weight {
68
		// Proof Size summary in bytes:
69
		//  Measured:  `136`
70
		//  Estimated: `4100`
71
		// Minimum execution time: 11_854_000 picoseconds.
72
		Weight::from_parts(12_226_000, 4100)
73
			.saturating_add(T::DbWeight::get().reads(1_u64))
74
			.saturating_add(T::DbWeight::get().writes(1_u64))
75
	}
76
	/// Storage: `XcmWeightTrader::SupportedAssets` (r:1 w:1)
77
	/// Proof: `XcmWeightTrader::SupportedAssets` (`max_values`: None, `max_size`: Some(635), added: 3110, mode: `MaxEncodedLen`)
78
	fn resume_asset_support() -> Weight {
79
		// Proof Size summary in bytes:
80
		//  Measured:  `136`
81
		//  Estimated: `4100`
82
		// Minimum execution time: 11_716_000 picoseconds.
83
		Weight::from_parts(12_067_000, 4100)
84
			.saturating_add(T::DbWeight::get().reads(1_u64))
85
			.saturating_add(T::DbWeight::get().writes(1_u64))
86
	}
87
	/// Storage: `XcmWeightTrader::SupportedAssets` (r:1 w:1)
88
	/// Proof: `XcmWeightTrader::SupportedAssets` (`max_values`: None, `max_size`: Some(635), added: 3110, mode: `MaxEncodedLen`)
89
	fn pause_asset_support() -> Weight {
90
		// Proof Size summary in bytes:
91
		//  Measured:  `136`
92
		//  Estimated: `4100`
93
		// Minimum execution time: 11_674_000 picoseconds.
94
		Weight::from_parts(12_251_000, 4100)
95
			.saturating_add(T::DbWeight::get().reads(1_u64))
96
			.saturating_add(T::DbWeight::get().writes(1_u64))
97
	}
98
	/// Storage: `XcmWeightTrader::SupportedAssets` (r:1 w:1)
99
	/// Proof: `XcmWeightTrader::SupportedAssets` (`max_values`: None, `max_size`: Some(635), added: 3110, mode: `MaxEncodedLen`)
100
	fn remove_asset() -> Weight {
101
		// Proof Size summary in bytes:
102
		//  Measured:  `136`
103
		//  Estimated: `4100`
104
		// Minimum execution time: 11_595_000 picoseconds.
105
		Weight::from_parts(11_914_000, 4100)
106
			.saturating_add(T::DbWeight::get().reads(1_u64))
107
			.saturating_add(T::DbWeight::get().writes(1_u64))
108
	}
109
}