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-09-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-36`, 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/moonriver-runtime/moonriver_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/moonriver/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:  `76`
58
		//  Estimated: `3541`
59
		// Minimum execution time: 9_809_000 picoseconds.
60
		Weight::from_parts(10_203_000, 3541)
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_063_000 picoseconds.
71
		Weight::from_parts(6_287_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_321_000 picoseconds.
81
		Weight::from_parts(7_697_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_808_000 picoseconds.
91
		Weight::from_parts(7_067_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_862_000 picoseconds.
101
		Weight::from_parts(7_166_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: `Assets::Asset` (r:1 w:0)
133
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
134
	/// Storage: `Ethereum::CounterForPending` (r:1 w:1)
135
	/// Proof: `Ethereum::CounterForPending` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
136
	/// Storage: `Ethereum::Pending` (r:2 w:1)
137
	/// Proof: `Ethereum::Pending` (`max_values`: None, `max_size`: None, mode: `Measured`)
138
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
139
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
140
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
141
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
142
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
143
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
144
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
145
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
146
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
147
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
148
	fn transact_through_derivative() -> Weight {
149
		// Proof Size summary in bytes:
150
		//  Measured:  `14802`
151
		//  Estimated: `20742`
152
		// Minimum execution time: 153_210_000 picoseconds.
153
		Weight::from_parts(159_399_000, 20742)
154
			.saturating_add(T::DbWeight::get().reads(24_u64))
155
			.saturating_add(T::DbWeight::get().writes(6_u64))
156
	}
157
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
158
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
159
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
160
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
161
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
162
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
163
	/// Storage: `EvmForeignAssets::AssetsByLocation` (r:1 w:0)
164
	/// Proof: `EvmForeignAssets::AssetsByLocation` (`max_values`: None, `max_size`: None, mode: `Measured`)
165
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
166
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
167
	/// Storage: `EthereumXcm::EthereumXcmSuspended` (r:1 w:0)
168
	/// Proof: `EthereumXcm::EthereumXcmSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
169
	/// Storage: `EthereumXcm::Nonce` (r:1 w:1)
170
	/// Proof: `EthereumXcm::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
171
	/// Storage: `EthereumChainId::ChainId` (r:1 w:0)
172
	/// Proof: `EthereumChainId::ChainId` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
173
	/// Storage: `TransactionPayment::NextFeeMultiplier` (r:1 w:0)
174
	/// Proof: `TransactionPayment::NextFeeMultiplier` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
175
	/// Storage: `EVM::AccountCodesMetadata` (r:2 w:0)
176
	/// Proof: `EVM::AccountCodesMetadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
177
	/// Storage: `System::Account` (r:1 w:1)
178
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
179
	/// Storage: `System::Digest` (r:1 w:0)
180
	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
181
	/// Storage: `Assets::Asset` (r:1 w:0)
182
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
183
	/// Storage: `Ethereum::CounterForPending` (r:1 w:1)
184
	/// Proof: `Ethereum::CounterForPending` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
185
	/// Storage: `Ethereum::Pending` (r:2 w:1)
186
	/// Proof: `Ethereum::Pending` (`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 transact_through_sovereign() -> Weight {
198
		// Proof Size summary in bytes:
199
		//  Measured:  `14740`
200
		//  Estimated: `20680`
201
		// Minimum execution time: 149_113_000 picoseconds.
202
		Weight::from_parts(153_756_000, 20680)
203
			.saturating_add(T::DbWeight::get().reads(22_u64))
204
			.saturating_add(T::DbWeight::get().writes(6_u64))
205
	}
206
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
207
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
208
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
209
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
210
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
211
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
212
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
213
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
214
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
215
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
216
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
217
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
218
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
219
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
220
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
221
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
222
14
	fn transact_through_signed() -> Weight {
223
14
		// Proof Size summary in bytes:
224
14
		//  Measured:  `521`
225
14
		//  Estimated: `3986`
226
14
		// Minimum execution time: 48_374_000 picoseconds.
227
14
		Weight::from_parts(49_915_000, 3986)
228
14
			.saturating_add(T::DbWeight::get().reads(8_u64))
229
14
			.saturating_add(T::DbWeight::get().writes(2_u64))
230
14
	}
231
	/// Storage: `XcmTransactor::RelayIndices` (r:1 w:0)
232
	/// Proof: `XcmTransactor::RelayIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
233
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
234
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
235
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
236
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
237
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
238
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
239
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
240
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
241
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
242
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
243
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
244
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
245
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
246
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
247
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
248
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
249
	fn hrmp_manage() -> Weight {
250
		// Proof Size summary in bytes:
251
		//  Measured:  `521`
252
		//  Estimated: `3986`
253
		// Minimum execution time: 51_049_000 picoseconds.
254
		Weight::from_parts(52_412_000, 3986)
255
			.saturating_add(T::DbWeight::get().reads(9_u64))
256
			.saturating_add(T::DbWeight::get().writes(2_u64))
257
	}
258
}