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 42.0.0
20
//! DATE: 2024-10-10, 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: Some("moonbase-dev"), DB CACHE: 1024
24

            
25
// Executed Command:
26
// ./target/production/moonbeam
27
// benchmark
28
// pallet
29
// --chain=moonbase-dev
30
// --steps=50
31
// --repeat=20
32
// --pallet=pallet_xcm_transactor
33
// --extrinsic=*
34
// --wasm-execution=compiled
35
// --header=./file_header.txt
36
// --template=./benchmarking/frame-weight-template.hbs
37
// --output=./runtime/common/src/weights/
38

            
39
#![cfg_attr(rustfmt, rustfmt_skip)]
40
#![allow(unused_parens)]
41
#![allow(unused_imports)]
42

            
43
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
44
use sp_std::marker::PhantomData;
45

            
46
/// Weights for `pallet_xcm_transactor`.
47
pub struct WeightInfo<T>(PhantomData<T>);
48
impl<T: frame_system::Config> pallet_xcm_transactor::WeightInfo for WeightInfo<T> {
49
	/// Storage: `XcmTransactor::IndexToAccount` (r:1 w:1)
50
	/// Proof: `XcmTransactor::IndexToAccount` (`max_values`: None, `max_size`: None, mode: `Measured`)
51
	fn register() -> Weight {
52
		// Proof Size summary in bytes:
53
		//  Measured:  `114`
54
		//  Estimated: `3579`
55
		// Minimum execution time: 9_049_000 picoseconds.
56
		Weight::from_parts(9_379_000, 3579)
57
			.saturating_add(T::DbWeight::get().reads(1_u64))
58
			.saturating_add(T::DbWeight::get().writes(1_u64))
59
	}
60
	/// Storage: `XcmTransactor::IndexToAccount` (r:0 w:1)
61
	/// Proof: `XcmTransactor::IndexToAccount` (`max_values`: None, `max_size`: None, mode: `Measured`)
62
	fn deregister() -> Weight {
63
		// Proof Size summary in bytes:
64
		//  Measured:  `0`
65
		//  Estimated: `0`
66
		// Minimum execution time: 5_430_000 picoseconds.
67
		Weight::from_parts(5_685_000, 0)
68
			.saturating_add(T::DbWeight::get().writes(1_u64))
69
	}
70
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:0 w:1)
71
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
72
	fn set_transact_info() -> Weight {
73
		// Proof Size summary in bytes:
74
		//  Measured:  `0`
75
		//  Estimated: `0`
76
		// Minimum execution time: 6_765_000 picoseconds.
77
		Weight::from_parts(7_158_000, 0)
78
			.saturating_add(T::DbWeight::get().writes(1_u64))
79
	}
80
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:0 w:1)
81
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
82
	fn remove_transact_info() -> Weight {
83
		// Proof Size summary in bytes:
84
		//  Measured:  `0`
85
		//  Estimated: `0`
86
		// Minimum execution time: 6_236_000 picoseconds.
87
		Weight::from_parts(6_354_000, 0)
88
			.saturating_add(T::DbWeight::get().writes(1_u64))
89
	}
90
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:0 w:1)
91
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
92
	fn set_fee_per_second() -> Weight {
93
		// Proof Size summary in bytes:
94
		//  Measured:  `0`
95
		//  Estimated: `0`
96
		// Minimum execution time: 6_095_000 picoseconds.
97
		Weight::from_parts(6_463_000, 0)
98
			.saturating_add(T::DbWeight::get().writes(1_u64))
99
	}
100
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
101
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
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:  `493`
121
		//  Estimated: `3958`
122
		// Minimum execution time: 33_891_000 picoseconds.
123
		Weight::from_parts(34_690_000, 3958)
124
			.saturating_add(T::DbWeight::get().reads(9_u64))
125
	}
126
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
127
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
128
	/// Storage: `AssetManager::AssetIdType` (r:1 w:0)
129
	/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
130
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
131
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
132
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
133
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
134
	/// Storage: `EvmForeignAssets::AssetsByLocation` (r:1 w:0)
135
	/// Proof: `EvmForeignAssets::AssetsByLocation` (`max_values`: None, `max_size`: None, mode: `Measured`)
136
	/// Storage: `AssetManager::AssetTypeId` (r:1 w:0)
137
	/// Proof: `AssetManager::AssetTypeId` (`max_values`: None, `max_size`: None, mode: `Measured`)
138
	/// Storage: `Assets::Asset` (r:1 w:0)
139
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
140
	fn transact_through_sovereign() -> Weight {
141
		// Proof Size summary in bytes:
142
		//  Measured:  `427`
143
		//  Estimated: `3892`
144
		// Minimum execution time: 29_022_000 picoseconds.
145
		Weight::from_parts(29_585_000, 3892)
146
			.saturating_add(T::DbWeight::get().reads(7_u64))
147
	}
148
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
149
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
150
	/// Storage: `AssetManager::AssetIdType` (r:1 w:0)
151
	/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
152
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
153
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
154
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
155
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
156
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
157
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
158
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
159
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
160
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
161
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
162
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
163
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
164
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
165
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
166
52
	fn transact_through_signed() -> Weight {
167
52
		// Proof Size summary in bytes:
168
52
		//  Measured:  `471`
169
52
		//  Estimated: `3936`
170
52
		// Minimum execution time: 42_533_000 picoseconds.
171
52
		Weight::from_parts(43_640_000, 3936)
172
52
			.saturating_add(T::DbWeight::get().reads(9_u64))
173
52
			.saturating_add(T::DbWeight::get().writes(2_u64))
174
52
	}
175
	/// Storage: `XcmTransactor::RelayIndices` (r:1 w:0)
176
	/// Proof: `XcmTransactor::RelayIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
177
	/// Storage: `EvmForeignAssets::AssetsById` (r:1 w:0)
178
	/// Proof: `EvmForeignAssets::AssetsById` (`max_values`: None, `max_size`: None, mode: `Measured`)
179
	/// Storage: `AssetManager::AssetIdType` (r:1 w:0)
180
	/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
181
	/// Storage: `XcmTransactor::TransactInfoWithWeightLimit` (r:1 w:0)
182
	/// Proof: `XcmTransactor::TransactInfoWithWeightLimit` (`max_values`: None, `max_size`: None, mode: `Measured`)
183
	/// Storage: `XcmTransactor::DestinationAssetFeePerSecond` (r:1 w:0)
184
	/// Proof: `XcmTransactor::DestinationAssetFeePerSecond` (`max_values`: None, `max_size`: None, mode: `Measured`)
185
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
186
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
187
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
188
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
189
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
190
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
191
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
192
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
193
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
194
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
195
	fn hrmp_manage() -> Weight {
196
		// Proof Size summary in bytes:
197
		//  Measured:  `475`
198
		//  Estimated: `3940`
199
		// Minimum execution time: 46_127_000 picoseconds.
200
		Weight::from_parts(46_893_000, 3940)
201
			.saturating_add(T::DbWeight::get().reads(10_u64))
202
			.saturating_add(T::DbWeight::get().writes(2_u64))
203
	}
204
}