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 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/moonbeam-runtime/moonbeam_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
// --disable-log-color
42
// --output=./runtime/moonbeam/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_transactor`.
52
pub struct WeightInfo<T>(PhantomData<T>);
53
impl<T: frame_system::Config> pallet_xcm_transactor::WeightInfo for WeightInfo<T> {
54
	/// Storage: `XcmTransactor::IndexToAccount` (r:1 w:1)
55
	/// Proof: `XcmTransactor::IndexToAccount` (`max_values`: None, `max_size`: None, mode: `Measured`)
56
	fn register() -> Weight {
57
		// Proof Size summary in bytes:
58
		//  Measured:  `109`
59
		//  Estimated: `3574`
60
		// Minimum execution time: 10_606_000 picoseconds.
61
		Weight::from_parts(11_038_000, 3574)
62
			.saturating_add(T::DbWeight::get().reads(1_u64))
63
			.saturating_add(T::DbWeight::get().writes(1_u64))
64
	}
65
	/// Storage: `XcmTransactor::IndexToAccount` (r:0 w:1)
66
	/// Proof: `XcmTransactor::IndexToAccount` (`max_values`: None, `max_size`: None, mode: `Measured`)
67
	fn deregister() -> Weight {
68
		// Proof Size summary in bytes:
69
		//  Measured:  `0`
70
		//  Estimated: `0`
71
		// Minimum execution time: 6_611_000 picoseconds.
72
		Weight::from_parts(6_838_000, 0)
73
			.saturating_add(T::DbWeight::get().writes(1_u64))
74
	}
75
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:0 w:1)
76
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
77
	fn set_transact_info() -> Weight {
78
		// Proof Size summary in bytes:
79
		//  Measured:  `0`
80
		//  Estimated: `0`
81
		// Minimum execution time: 7_986_000 picoseconds.
82
		Weight::from_parts(8_243_000, 0)
83
			.saturating_add(T::DbWeight::get().writes(1_u64))
84
	}
85
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:0 w:1)
86
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
87
	fn remove_transact_info() -> Weight {
88
		// Proof Size summary in bytes:
89
		//  Measured:  `0`
90
		//  Estimated: `0`
91
		// Minimum execution time: 7_316_000 picoseconds.
92
		Weight::from_parts(7_563_000, 0)
93
			.saturating_add(T::DbWeight::get().writes(1_u64))
94
	}
95
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
96
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
97
	/// Storage: `XcmTransactor::IndexToAccount` (r:1 w:0)
98
	/// Proof: `XcmTransactor::IndexToAccount` (`max_values`: None, `max_size`: None, mode: `Measured`)
99
	/// Storage: `XcmTransactor::RelayIndices` (r:1 w:0)
100
	/// Proof: `XcmTransactor::RelayIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
101
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
102
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
103
	/// Storage: `XcmWeightTrader::SupportedAssets` (r:1 w:0)
104
	/// Proof: `XcmWeightTrader::SupportedAssets` (`max_values`: None, `max_size`: Some(635), added: 3110, mode: `MaxEncodedLen`)
105
	/// Storage: `EvmForeignAssets::AssetsByLocation` (r:1 w:0)
106
	/// Proof: `EvmForeignAssets::AssetsByLocation` (`max_values`: None, `max_size`: None, mode: `Measured`)
107
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
108
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
109
	/// Storage: `EthereumXcm::EthereumXcmSuspended` (r:1 w:0)
110
	/// Proof: `EthereumXcm::EthereumXcmSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
111
	/// Storage: `EthereumXcm::Nonce` (r:1 w:1)
112
	/// Proof: `EthereumXcm::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
113
	/// Storage: `EthereumChainId::ChainId` (r:1 w:0)
114
	/// Proof: `EthereumChainId::ChainId` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
115
	/// Storage: `TransactionPayment::NextFeeMultiplier` (r:1 w:0)
116
	/// Proof: `TransactionPayment::NextFeeMultiplier` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
117
	/// Storage: `EVM::AccountCodesMetadata` (r:2 w:0)
118
	/// Proof: `EVM::AccountCodesMetadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
119
	/// Storage: `System::Account` (r:1 w:1)
120
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
121
	/// Storage: `System::Digest` (r:1 w:0)
122
	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
123
	/// Storage: `Ethereum::CounterForPending` (r:1 w:1)
124
	/// Proof: `Ethereum::CounterForPending` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
125
	/// Storage: `Ethereum::Pending` (r:2 w:1)
126
	/// Proof: `Ethereum::Pending` (`max_values`: None, `max_size`: None, mode: `Measured`)
127
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
128
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
129
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
130
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
131
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
132
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
133
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
134
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
135
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
136
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
137
	fn transact_through_derivative() -> Weight {
138
		// Proof Size summary in bytes:
139
		//  Measured:  `15022`
140
		//  Estimated: `20962`
141
		// Minimum execution time: 167_821_000 picoseconds.
142
		Weight::from_parts(173_609_000, 20962)
143
			.saturating_add(T::DbWeight::get().reads(23_u64))
144
			.saturating_add(T::DbWeight::get().writes(6_u64))
145
	}
146
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
147
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
148
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
149
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
150
	/// Storage: `XcmWeightTrader::SupportedAssets` (r:1 w:0)
151
	/// Proof: `XcmWeightTrader::SupportedAssets` (`max_values`: None, `max_size`: Some(635), added: 3110, mode: `MaxEncodedLen`)
152
	/// Storage: `EvmForeignAssets::AssetsByLocation` (r:1 w:0)
153
	/// Proof: `EvmForeignAssets::AssetsByLocation` (`max_values`: None, `max_size`: None, mode: `Measured`)
154
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
155
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
156
	/// Storage: `EthereumXcm::EthereumXcmSuspended` (r:1 w:0)
157
	/// Proof: `EthereumXcm::EthereumXcmSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
158
	/// Storage: `EthereumXcm::Nonce` (r:1 w:1)
159
	/// Proof: `EthereumXcm::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
160
	/// Storage: `EthereumChainId::ChainId` (r:1 w:0)
161
	/// Proof: `EthereumChainId::ChainId` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
162
	/// Storage: `TransactionPayment::NextFeeMultiplier` (r:1 w:0)
163
	/// Proof: `TransactionPayment::NextFeeMultiplier` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
164
	/// Storage: `EVM::AccountCodesMetadata` (r:2 w:0)
165
	/// Proof: `EVM::AccountCodesMetadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
166
	/// Storage: `System::Account` (r:1 w:1)
167
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
168
	/// Storage: `System::Digest` (r:1 w:0)
169
	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
170
	/// Storage: `Ethereum::CounterForPending` (r:1 w:1)
171
	/// Proof: `Ethereum::CounterForPending` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
172
	/// Storage: `Ethereum::Pending` (r:2 w:1)
173
	/// Proof: `Ethereum::Pending` (`max_values`: None, `max_size`: None, mode: `Measured`)
174
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
175
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
176
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
177
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
178
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
179
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
180
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
181
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
182
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
183
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
184
	fn transact_through_sovereign() -> Weight {
185
		// Proof Size summary in bytes:
186
		//  Measured:  `14960`
187
		//  Estimated: `20900`
188
		// Minimum execution time: 158_996_000 picoseconds.
189
		Weight::from_parts(166_731_000, 20900)
190
			.saturating_add(T::DbWeight::get().reads(21_u64))
191
			.saturating_add(T::DbWeight::get().writes(6_u64))
192
	}
193
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
194
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
195
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
196
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
197
	/// Storage: `XcmWeightTrader::SupportedAssets` (r:1 w:0)
198
	/// Proof: `XcmWeightTrader::SupportedAssets` (`max_values`: None, `max_size`: Some(635), added: 3110, mode: `MaxEncodedLen`)
199
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
200
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
201
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
202
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
203
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
204
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
205
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
206
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
207
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
208
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
209
14
	fn transact_through_signed() -> Weight {
210
		// Proof Size summary in bytes:
211
		//  Measured:  `784`
212
		//  Estimated: `4249`
213
		// Minimum execution time: 58_676_000 picoseconds.
214
14
		Weight::from_parts(60_912_000, 4249)
215
14
			.saturating_add(T::DbWeight::get().reads(8_u64))
216
14
			.saturating_add(T::DbWeight::get().writes(2_u64))
217
14
	}
218
	/// Storage: `XcmTransactor::RelayIndices` (r:1 w:0)
219
	/// Proof: `XcmTransactor::RelayIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
220
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
221
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
222
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
223
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
224
	/// Storage: `XcmWeightTrader::SupportedAssets` (r:1 w:0)
225
	/// Proof: `XcmWeightTrader::SupportedAssets` (`max_values`: None, `max_size`: Some(635), added: 3110, mode: `MaxEncodedLen`)
226
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
227
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
228
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
229
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
230
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
231
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
232
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
233
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
234
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
235
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
236
	fn hrmp_manage() -> Weight {
237
		// Proof Size summary in bytes:
238
		//  Measured:  `784`
239
		//  Estimated: `4249`
240
		// Minimum execution time: 62_455_000 picoseconds.
241
		Weight::from_parts(64_807_000, 4249)
242
			.saturating_add(T::DbWeight::get().reads(9_u64))
243
			.saturating_add(T::DbWeight::get().writes(2_u64))
244
	}
245
}