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/moonriver-runtime/moonriver_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/moonriver/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:  `76`
56
		//  Estimated: `3541`
57
		// Minimum execution time: 10_144_000 picoseconds.
58
		Weight::from_parts(10_704_000, 3541)
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_441_000 picoseconds.
69
		Weight::from_parts(6_661_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_886_000 picoseconds.
79
		Weight::from_parts(8_068_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: 7_242_000 picoseconds.
89
		Weight::from_parts(7_447_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: 7_252_000 picoseconds.
99
		Weight::from_parts(7_495_000, 0)
100
			.saturating_add(T::DbWeight::get().writes(1_u64))
101
	}
102
	/// Storage: `AssetManager::AssetIdType` (r:1 w:0)
103
	/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
104
	/// Storage: `XcmTransactor::IndexToAccount` (r:1 w:0)
105
	/// Proof: `XcmTransactor::IndexToAccount` (`max_values`: None, `max_size`: None, mode: `Measured`)
106
	/// Storage: `XcmTransactor::RelayIndices` (r:1 w:0)
107
	/// Proof: `XcmTransactor::RelayIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
108
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
109
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
110
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
111
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
112
	/// Storage: `EvmForeignAssets::AssetsByLocation` (r:1 w:0)
113
	/// Proof: `EvmForeignAssets::AssetsByLocation` (`max_values`: None, `max_size`: None, mode: `Measured`)
114
	/// Storage: `AssetManager::AssetTypeId` (r:1 w:0)
115
	/// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
116
	/// Storage: `Assets::Asset` (r:1 w:0)
117
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
118
	fn transact_through_derivative() -> Weight {
119
		// Proof Size summary in bytes:
120
		//  Measured:  `455`
121
		//  Estimated: `3920`
122
		// Minimum execution time: 37_531_000 picoseconds.
123
		Weight::from_parts(38_781_000, 3920)
124
			.saturating_add(T::DbWeight::get().reads(8_u64))
125
	}
126
	/// Storage: `AssetManager::AssetIdType` (r:1 w:0)
127
	/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
128
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
129
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
130
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
131
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
132
	/// Storage: `EvmForeignAssets::AssetsByLocation` (r:1 w:0)
133
	/// Proof: `EvmForeignAssets::AssetsByLocation` (`max_values`: None, `max_size`: None, mode: `Measured`)
134
	/// Storage: `AssetManager::AssetTypeId` (r:1 w:0)
135
	/// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
136
	/// Storage: `Assets::Asset` (r:1 w:0)
137
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
138
	fn transact_through_sovereign() -> Weight {
139
		// Proof Size summary in bytes:
140
		//  Measured:  `393`
141
		//  Estimated: `3858`
142
		// Minimum execution time: 32_066_000 picoseconds.
143
		Weight::from_parts(33_013_000, 3858)
144
			.saturating_add(T::DbWeight::get().reads(6_u64))
145
	}
146
	/// Storage: `AssetManager::AssetIdType` (r:1 w:0)
147
	/// Proof: `AssetManager::AssetIdType` (`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: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
151
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
152
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
153
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
154
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
155
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
156
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
157
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
158
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
159
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
160
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
161
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
162
16
	fn transact_through_signed() -> Weight {
163
16
		// Proof Size summary in bytes:
164
16
		//  Measured:  `433`
165
16
		//  Estimated: `3898`
166
16
		// Minimum execution time: 48_783_000 picoseconds.
167
16
		Weight::from_parts(50_760_000, 3898)
168
16
			.saturating_add(T::DbWeight::get().reads(8_u64))
169
16
			.saturating_add(T::DbWeight::get().writes(2_u64))
170
16
	}
171
	/// Storage: `XcmTransactor::RelayIndices` (r:1 w:0)
172
	/// Proof: `XcmTransactor::RelayIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
173
	/// Storage: `AssetManager::AssetIdType` (r:1 w:0)
174
	/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
175
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
176
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
177
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
178
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
179
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
180
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
181
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
182
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
183
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
184
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
185
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
186
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
187
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
188
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
189
	fn hrmp_manage() -> Weight {
190
		// Proof Size summary in bytes:
191
		//  Measured:  `433`
192
		//  Estimated: `3898`
193
		// Minimum execution time: 52_215_000 picoseconds.
194
		Weight::from_parts(54_013_000, 3898)
195
			.saturating_add(T::DbWeight::get().reads(9_u64))
196
			.saturating_add(T::DbWeight::get().writes(2_u64))
197
	}
198
}