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 32.0.0
21
//! DATE: 2025-05-14, 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: 10_226_000 picoseconds.
60
		Weight::from_parts(10_528_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_477_000 picoseconds.
71
		Weight::from_parts(6_745_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_618_000 picoseconds.
81
		Weight::from_parts(7_840_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: 7_167_000 picoseconds.
91
		Weight::from_parts(7_362_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: 7_002_000 picoseconds.
101
		Weight::from_parts(7_242_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: `AssetManager::AssetIdType` (r:1 w:0)
107
	/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
108
	/// Storage: `XcmTransactor::IndexToAccount` (r:1 w:0)
109
	/// Proof: `XcmTransactor::IndexToAccount` (`max_values`: None, `max_size`: None, mode: `Measured`)
110
	/// Storage: `XcmTransactor::RelayIndices` (r:1 w:0)
111
	/// Proof: `XcmTransactor::RelayIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
112
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
113
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
114
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
115
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
116
	/// Storage: `EvmForeignAssets::AssetsByLocation` (r:1 w:0)
117
	/// Proof: `EvmForeignAssets::AssetsByLocation` (`max_values`: None, `max_size`: None, mode: `Measured`)
118
	/// Storage: `AssetManager::AssetTypeId` (r:1 w:0)
119
	/// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
120
	/// Storage: `Assets::Asset` (r:1 w:0)
121
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
122
	fn transact_through_derivative() -> Weight {
123
		// Proof Size summary in bytes:
124
		//  Measured:  `455`
125
		//  Estimated: `3920`
126
		// Minimum execution time: 40_777_000 picoseconds.
127
		Weight::from_parts(41_438_000, 3920)
128
			.saturating_add(T::DbWeight::get().reads(9_u64))
129
	}
130
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
131
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
132
	/// Storage: `AssetManager::AssetIdType` (r:1 w:0)
133
	/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
134
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
135
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
136
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
137
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
138
	/// Storage: `EvmForeignAssets::AssetsByLocation` (r:1 w:0)
139
	/// Proof: `EvmForeignAssets::AssetsByLocation` (`max_values`: None, `max_size`: None, mode: `Measured`)
140
	/// Storage: `AssetManager::AssetTypeId` (r:1 w:0)
141
	/// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
142
	/// Storage: `Assets::Asset` (r:1 w:0)
143
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
144
	fn transact_through_sovereign() -> Weight {
145
		// Proof Size summary in bytes:
146
		//  Measured:  `393`
147
		//  Estimated: `3858`
148
		// Minimum execution time: 35_833_000 picoseconds.
149
		Weight::from_parts(36_478_000, 3858)
150
			.saturating_add(T::DbWeight::get().reads(7_u64))
151
	}
152
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
153
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
154
	/// Storage: `AssetManager::AssetIdType` (r:1 w:0)
155
	/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
156
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
157
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
158
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
159
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
160
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
161
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
162
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
163
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
164
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
165
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
166
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
167
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
168
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
169
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
170
14
	fn transact_through_signed() -> Weight {
171
14
		// Proof Size summary in bytes:
172
14
		//  Measured:  `437`
173
14
		//  Estimated: `3902`
174
14
		// Minimum execution time: 53_010_000 picoseconds.
175
14
		Weight::from_parts(54_629_000, 3902)
176
14
			.saturating_add(T::DbWeight::get().reads(9_u64))
177
14
			.saturating_add(T::DbWeight::get().writes(2_u64))
178
14
	}
179
	/// Storage: `XcmTransactor::RelayIndices` (r:1 w:0)
180
	/// Proof: `XcmTransactor::RelayIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
181
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
182
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
183
	/// Storage: `AssetManager::AssetIdType` (r:1 w:0)
184
	/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
185
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
186
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
187
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
188
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
189
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
190
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
191
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
192
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
193
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
194
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
195
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
196
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
197
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
198
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
199
	fn hrmp_manage() -> Weight {
200
		// Proof Size summary in bytes:
201
		//  Measured:  `437`
202
		//  Estimated: `3902`
203
		// Minimum execution time: 55_404_000 picoseconds.
204
		Weight::from_parts(56_907_000, 3902)
205
			.saturating_add(T::DbWeight::get().reads(10_u64))
206
			.saturating_add(T::DbWeight::get().writes(2_u64))
207
	}
208
}