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_transactor`
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 48.0.0
21
//! DATE: 2025-10-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-198`, 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_transactor
37
// --extrinsic=*
38
// --wasm-execution=compiled
39
// --header=./file_header.txt
40
// --template=./benchmarking/frame-weight-template.hbs
41
// --output=./runtime/moonbase/src/weights
42

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

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

            
50
/// Weights for `pallet_xcm_transactor`.
51
pub struct WeightInfo<T>(PhantomData<T>);
52
impl<T: frame_system::Config> pallet_xcm_transactor::WeightInfo for WeightInfo<T> {
53
	/// Storage: `XcmTransactor::IndexToAccount` (r:1 w:1)
54
	/// Proof: `XcmTransactor::IndexToAccount` (`max_values`: None, `max_size`: None, mode: `Measured`)
55
	fn register() -> Weight {
56
		// Proof Size summary in bytes:
57
		//  Measured:  `114`
58
		//  Estimated: `3579`
59
		// Minimum execution time: 10_245_000 picoseconds.
60
		Weight::from_parts(10_510_000, 3579)
61
			.saturating_add(T::DbWeight::get().reads(1_u64))
62
			.saturating_add(T::DbWeight::get().writes(1_u64))
63
	}
64
	/// Storage: `XcmTransactor::IndexToAccount` (r:0 w:1)
65
	/// Proof: `XcmTransactor::IndexToAccount` (`max_values`: None, `max_size`: None, mode: `Measured`)
66
	fn deregister() -> Weight {
67
		// Proof Size summary in bytes:
68
		//  Measured:  `0`
69
		//  Estimated: `0`
70
		// Minimum execution time: 6_059_000 picoseconds.
71
		Weight::from_parts(6_206_000, 0)
72
			.saturating_add(T::DbWeight::get().writes(1_u64))
73
	}
74
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:0 w:1)
75
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
76
	fn set_transact_info() -> Weight {
77
		// Proof Size summary in bytes:
78
		//  Measured:  `0`
79
		//  Estimated: `0`
80
		// Minimum execution time: 7_142_000 picoseconds.
81
		Weight::from_parts(7_434_000, 0)
82
			.saturating_add(T::DbWeight::get().writes(1_u64))
83
	}
84
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:0 w:1)
85
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
86
	fn remove_transact_info() -> Weight {
87
		// Proof Size summary in bytes:
88
		//  Measured:  `0`
89
		//  Estimated: `0`
90
		// Minimum execution time: 6_650_000 picoseconds.
91
		Weight::from_parts(6_915_000, 0)
92
			.saturating_add(T::DbWeight::get().writes(1_u64))
93
	}
94
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:0 w:1)
95
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
96
	fn set_fee_per_second() -> Weight {
97
		// Proof Size summary in bytes:
98
		//  Measured:  `0`
99
		//  Estimated: `0`
100
		// Minimum execution time: 6_436_000 picoseconds.
101
		Weight::from_parts(6_789_000, 0)
102
			.saturating_add(T::DbWeight::get().writes(1_u64))
103
	}
104
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
105
	/// Proof: `EvmForeignAssets::AssetsById` (`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: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
117
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
118
	/// Storage: `EthereumXcm::EthereumXcmSuspended` (r:1 w:0)
119
	/// Proof: `EthereumXcm::EthereumXcmSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
120
	/// Storage: `EthereumXcm::Nonce` (r:1 w:1)
121
	/// Proof: `EthereumXcm::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
122
	/// Storage: `EthereumChainId::ChainId` (r:1 w:0)
123
	/// Proof: `EthereumChainId::ChainId` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
124
	/// Storage: `TransactionPayment::NextFeeMultiplier` (r:1 w:0)
125
	/// Proof: `TransactionPayment::NextFeeMultiplier` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
126
	/// Storage: `EVM::AccountCodesMetadata` (r:2 w:0)
127
	/// Proof: `EVM::AccountCodesMetadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
128
	/// Storage: `System::Account` (r:1 w:1)
129
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
130
	/// Storage: `System::Digest` (r:1 w:0)
131
	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
132
	/// Storage: `Ethereum::CounterForPending` (r:1 w:1)
133
	/// Proof: `Ethereum::CounterForPending` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
134
	/// Storage: `Ethereum::Pending` (r:1 w:1)
135
	/// Proof: `Ethereum::Pending` (`max_values`: None, `max_size`: None, mode: `Measured`)
136
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
137
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
138
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
139
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
140
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
141
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
142
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
143
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
144
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
145
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
146
	fn transact_through_derivative() -> Weight {
147
		// Proof Size summary in bytes:
148
		//  Measured:  `1584`
149
		//  Estimated: `7524`
150
		// Minimum execution time: 125_392_000 picoseconds.
151
		Weight::from_parts(128_465_000, 7524)
152
			.saturating_add(T::DbWeight::get().reads(22_u64))
153
			.saturating_add(T::DbWeight::get().writes(6_u64))
154
	}
155
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
156
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
157
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
158
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
159
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
160
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
161
	/// Storage: `EvmForeignAssets::AssetsByLocation` (r:1 w:0)
162
	/// Proof: `EvmForeignAssets::AssetsByLocation` (`max_values`: None, `max_size`: None, mode: `Measured`)
163
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
164
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
165
	/// Storage: `EthereumXcm::EthereumXcmSuspended` (r:1 w:0)
166
	/// Proof: `EthereumXcm::EthereumXcmSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
167
	/// Storage: `EthereumXcm::Nonce` (r:1 w:1)
168
	/// Proof: `EthereumXcm::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
169
	/// Storage: `EthereumChainId::ChainId` (r:1 w:0)
170
	/// Proof: `EthereumChainId::ChainId` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
171
	/// Storage: `TransactionPayment::NextFeeMultiplier` (r:1 w:0)
172
	/// Proof: `TransactionPayment::NextFeeMultiplier` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
173
	/// Storage: `EVM::AccountCodesMetadata` (r:2 w:0)
174
	/// Proof: `EVM::AccountCodesMetadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
175
	/// Storage: `System::Account` (r:1 w:1)
176
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
177
	/// Storage: `System::Digest` (r:1 w:0)
178
	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
179
	/// Storage: `Ethereum::CounterForPending` (r:1 w:1)
180
	/// Proof: `Ethereum::CounterForPending` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
181
	/// Storage: `Ethereum::Pending` (r:1 w:1)
182
	/// Proof: `Ethereum::Pending` (`max_values`: None, `max_size`: None, mode: `Measured`)
183
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
184
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
185
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
186
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
187
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
188
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
189
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
190
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
191
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
192
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
193
	fn transact_through_sovereign() -> Weight {
194
		// Proof Size summary in bytes:
195
		//  Measured:  `1518`
196
		//  Estimated: `7458`
197
		// Minimum execution time: 117_042_000 picoseconds.
198
		Weight::from_parts(123_766_000, 7458)
199
			.saturating_add(T::DbWeight::get().reads(20_u64))
200
			.saturating_add(T::DbWeight::get().writes(6_u64))
201
	}
202
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
203
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
204
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
205
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
206
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
207
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
208
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
209
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
210
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
211
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
212
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
213
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
214
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
215
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
216
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
217
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
218
24
	fn transact_through_signed() -> Weight {
219
24
		// Proof Size summary in bytes:
220
24
		//  Measured:  `456`
221
24
		//  Estimated: `3921`
222
24
		// Minimum execution time: 44_962_000 picoseconds.
223
24
		Weight::from_parts(46_520_000, 3921)
224
24
			.saturating_add(T::DbWeight::get().reads(8_u64))
225
24
			.saturating_add(T::DbWeight::get().writes(2_u64))
226
24
	}
227
	/// Storage: `XcmTransactor::RelayIndices` (r:1 w:0)
228
	/// Proof: `XcmTransactor::RelayIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
229
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
230
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
231
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
232
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
233
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
234
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
235
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
236
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
237
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
238
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
239
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
240
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
241
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
242
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
243
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
244
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
245
	fn hrmp_manage() -> Weight {
246
		// Proof Size summary in bytes:
247
		//  Measured:  `460`
248
		//  Estimated: `3925`
249
		// Minimum execution time: 49_137_000 picoseconds.
250
		Weight::from_parts(50_391_000, 3925)
251
			.saturating_add(T::DbWeight::get().reads(9_u64))
252
			.saturating_add(T::DbWeight::get().writes(2_u64))
253
	}
254
}