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_transactor`
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_transactor
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_transactor`.
49
pub struct WeightInfo<T>(PhantomData<T>);
50
impl<T: frame_system::Config> pallet_xcm_transactor::WeightInfo for WeightInfo<T> {
51
	/// Storage: `XcmTransactor::IndexToAccount` (r:1 w:1)
52
	/// Proof: `XcmTransactor::IndexToAccount` (`max_values`: None, `max_size`: None, mode: `Measured`)
53
	fn register() -> Weight {
54
		// Proof Size summary in bytes:
55
		//  Measured:  `114`
56
		//  Estimated: `3579`
57
		// Minimum execution time: 10_822_000 picoseconds.
58
		Weight::from_parts(11_360_000, 3579)
59
			.saturating_add(T::DbWeight::get().reads(1_u64))
60
			.saturating_add(T::DbWeight::get().writes(1_u64))
61
	}
62
	/// Storage: `XcmTransactor::IndexToAccount` (r:0 w:1)
63
	/// Proof: `XcmTransactor::IndexToAccount` (`max_values`: None, `max_size`: None, mode: `Measured`)
64
	fn deregister() -> Weight {
65
		// Proof Size summary in bytes:
66
		//  Measured:  `0`
67
		//  Estimated: `0`
68
		// Minimum execution time: 6_326_000 picoseconds.
69
		Weight::from_parts(6_490_000, 0)
70
			.saturating_add(T::DbWeight::get().writes(1_u64))
71
	}
72
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:0 w:1)
73
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
74
	fn set_transact_info() -> Weight {
75
		// Proof Size summary in bytes:
76
		//  Measured:  `0`
77
		//  Estimated: `0`
78
		// Minimum execution time: 7_542_000 picoseconds.
79
		Weight::from_parts(7_738_000, 0)
80
			.saturating_add(T::DbWeight::get().writes(1_u64))
81
	}
82
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:0 w:1)
83
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
84
	fn remove_transact_info() -> Weight {
85
		// Proof Size summary in bytes:
86
		//  Measured:  `0`
87
		//  Estimated: `0`
88
		// Minimum execution time: 6_963_000 picoseconds.
89
		Weight::from_parts(7_175_000, 0)
90
			.saturating_add(T::DbWeight::get().writes(1_u64))
91
	}
92
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:0 w:1)
93
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
94
	fn set_fee_per_second() -> Weight {
95
		// Proof Size summary in bytes:
96
		//  Measured:  `0`
97
		//  Estimated: `0`
98
		// Minimum execution time: 6_970_000 picoseconds.
99
		Weight::from_parts(7_194_000, 0)
100
			.saturating_add(T::DbWeight::get().writes(1_u64))
101
	}
102
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
103
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
104
	/// Storage: `AssetManager::AssetIdType` (r:1 w:0)
105
	/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
106
	/// Storage: `XcmTransactor::IndexToAccount` (r:1 w:0)
107
	/// Proof: `XcmTransactor::IndexToAccount` (`max_values`: None, `max_size`: None, mode: `Measured`)
108
	/// Storage: `XcmTransactor::RelayIndices` (r:1 w:0)
109
	/// Proof: `XcmTransactor::RelayIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
110
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
111
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
112
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
113
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
114
	/// Storage: `EvmForeignAssets::AssetsByLocation` (r:1 w:0)
115
	/// Proof: `EvmForeignAssets::AssetsByLocation` (`max_values`: None, `max_size`: None, mode: `Measured`)
116
	/// Storage: `AssetManager::AssetTypeId` (r:1 w:0)
117
	/// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
118
	/// Storage: `Assets::Asset` (r:1 w:0)
119
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
120
	fn transact_through_derivative() -> Weight {
121
		// Proof Size summary in bytes:
122
		//  Measured:  `493`
123
		//  Estimated: `3958`
124
		// Minimum execution time: 40_791_000 picoseconds.
125
		Weight::from_parts(41_431_000, 3958)
126
			.saturating_add(T::DbWeight::get().reads(9_u64))
127
	}
128
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
129
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
130
	/// Storage: `AssetManager::AssetIdType` (r:1 w:0)
131
	/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
132
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
133
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
134
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
135
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
136
	/// Storage: `EvmForeignAssets::AssetsByLocation` (r:1 w:0)
137
	/// Proof: `EvmForeignAssets::AssetsByLocation` (`max_values`: None, `max_size`: None, mode: `Measured`)
138
	/// Storage: `AssetManager::AssetTypeId` (r:1 w:0)
139
	/// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
140
	/// Storage: `Assets::Asset` (r:1 w:0)
141
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
142
	fn transact_through_sovereign() -> Weight {
143
		// Proof Size summary in bytes:
144
		//  Measured:  `427`
145
		//  Estimated: `3892`
146
		// Minimum execution time: 34_401_000 picoseconds.
147
		Weight::from_parts(35_378_000, 3892)
148
			.saturating_add(T::DbWeight::get().reads(7_u64))
149
	}
150
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
151
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
152
	/// Storage: `AssetManager::AssetIdType` (r:1 w:0)
153
	/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
154
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
155
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
156
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
157
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
158
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
159
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
160
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
161
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
162
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
163
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
164
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
165
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
166
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
167
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
168
24
	fn transact_through_signed() -> Weight {
169
24
		// Proof Size summary in bytes:
170
24
		//  Measured:  `471`
171
24
		//  Estimated: `3936`
172
24
		// Minimum execution time: 52_002_000 picoseconds.
173
24
		Weight::from_parts(53_373_000, 3936)
174
24
			.saturating_add(T::DbWeight::get().reads(9_u64))
175
24
			.saturating_add(T::DbWeight::get().writes(2_u64))
176
24
	}
177
	/// Storage: `XcmTransactor::RelayIndices` (r:1 w:0)
178
	/// Proof: `XcmTransactor::RelayIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
179
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
180
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
181
	/// Storage: `AssetManager::AssetIdType` (r:1 w:0)
182
	/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
183
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
184
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
185
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
186
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
187
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
188
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
189
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
190
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
191
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
192
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
193
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
194
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
195
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
196
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
197
	fn hrmp_manage() -> Weight {
198
		// Proof Size summary in bytes:
199
		//  Measured:  `475`
200
		//  Estimated: `3940`
201
		// Minimum execution time: 55_456_000 picoseconds.
202
		Weight::from_parts(56_968_000, 3940)
203
			.saturating_add(T::DbWeight::get().reads(10_u64))
204
			.saturating_add(T::DbWeight::get().writes(2_u64))
205
	}
206
}