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

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

            
41
#![cfg_attr(rustfmt, rustfmt_skip)]
42
#![allow(unused_parens)]
43
#![allow(unused_imports)]
44

            
45
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
46
use sp_std::marker::PhantomData;
47

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