pallet_staking_async_parachain_runtime/weights/pallet_xcm.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Substrate.
3// SPDX-License-Identifier: Apache-2.0
4
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
17//! Autogenerated weights for `pallet_xcm`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2024-12-18, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `c0a5c14955e4`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-next-westend-dev")`, DB CACHE: 1024
24
25// Executed Command:
26// target/production/polkadot-parachain
27// benchmark
28// pallet
29// --extrinsic=*
30// --chain=asset-hub-next-westend-dev
31// --pallet=pallet_xcm
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/assets/asset-hub-next-westend/src/weights
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --no-storage-info
39// --no-min-squares
40// --no-median-slopes
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `pallet_xcm`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
53 /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
54 /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
55 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
56 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
57 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
58 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
59 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
60 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
61 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
62 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
63 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
64 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
65 fn send() -> Weight {
66 // Proof Size summary in bytes:
67 // Measured: `145`
68 // Estimated: `3610`
69 // Minimum execution time: 28_333_000 picoseconds.
70 Weight::from_parts(29_115_000, 0)
71 .saturating_add(Weight::from_parts(0, 3610))
72 .saturating_add(T::DbWeight::get().reads(6))
73 .saturating_add(T::DbWeight::get().writes(2))
74 }
75 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
76 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
77 /// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0)
78 /// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
79 /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
80 /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
81 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
82 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
83 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
84 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
85 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
86 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
87 /// Storage: `System::Account` (r:1 w:1)
88 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
89 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
90 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
91 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
92 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
93 fn teleport_assets() -> Weight {
94 // Proof Size summary in bytes:
95 // Measured: `145`
96 // Estimated: `3610`
97 // Minimum execution time: 111_150_000 picoseconds.
98 Weight::from_parts(113_250_000, 0)
99 .saturating_add(Weight::from_parts(0, 3610))
100 .saturating_add(T::DbWeight::get().reads(9))
101 .saturating_add(T::DbWeight::get().writes(3))
102 }
103 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
104 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
105 /// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0)
106 /// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
107 /// Storage: `System::Account` (r:2 w:2)
108 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
109 /// Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
110 /// Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
111 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
112 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
113 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
114 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
115 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
116 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
117 /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
118 /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
119 /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
120 /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
121 /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
122 /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(105506), added: 107981, mode: `MaxEncodedLen`)
123 fn reserve_transfer_assets() -> Weight {
124 // Proof Size summary in bytes:
125 // Measured: `400`
126 // Estimated: `6196`
127 // Minimum execution time: 135_730_000 picoseconds.
128 Weight::from_parts(140_479_000, 0)
129 .saturating_add(Weight::from_parts(0, 6196))
130 .saturating_add(T::DbWeight::get().reads(10))
131 .saturating_add(T::DbWeight::get().writes(5))
132 }
133 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
134 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
135 /// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0)
136 /// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
137 /// Storage: `Assets::Asset` (r:1 w:1)
138 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
139 /// Storage: `Assets::Account` (r:2 w:2)
140 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
141 /// Storage: `AssetsFreezer::FrozenBalances` (r:1 w:0)
142 /// Proof: `AssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
143 /// Storage: `System::Account` (r:2 w:2)
144 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
145 /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
146 /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
147 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
148 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
149 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
150 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
151 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
152 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
153 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
154 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
155 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
156 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
157 fn transfer_assets() -> Weight {
158 // Proof Size summary in bytes:
159 // Measured: `571`
160 // Estimated: `6208`
161 // Minimum execution time: 174_654_000 picoseconds.
162 Weight::from_parts(182_260_000, 0)
163 .saturating_add(Weight::from_parts(0, 6208))
164 .saturating_add(T::DbWeight::get().reads(14))
165 .saturating_add(T::DbWeight::get().writes(7))
166 }
167 /// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0)
168 /// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
169 fn execute() -> Weight {
170 // Proof Size summary in bytes:
171 // Measured: `103`
172 // Estimated: `1588`
173 // Minimum execution time: 12_750_000 picoseconds.
174 Weight::from_parts(13_124_000, 0)
175 .saturating_add(Weight::from_parts(0, 1588))
176 .saturating_add(T::DbWeight::get().reads(1))
177 }
178 /// Storage: `PolkadotXcm::SupportedVersion` (r:0 w:1)
179 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
180 fn force_xcm_version() -> Weight {
181 // Proof Size summary in bytes:
182 // Measured: `0`
183 // Estimated: `0`
184 // Minimum execution time: 7_083_000 picoseconds.
185 Weight::from_parts(7_353_000, 0)
186 .saturating_add(Weight::from_parts(0, 0))
187 .saturating_add(T::DbWeight::get().writes(1))
188 }
189 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:0 w:1)
190 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
191 fn force_default_xcm_version() -> Weight {
192 // Proof Size summary in bytes:
193 // Measured: `0`
194 // Estimated: `0`
195 // Minimum execution time: 2_254_000 picoseconds.
196 Weight::from_parts(2_408_000, 0)
197 .saturating_add(Weight::from_parts(0, 0))
198 .saturating_add(T::DbWeight::get().writes(1))
199 }
200 /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1)
201 /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)
202 /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)
203 /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
204 /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
205 /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
206 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
207 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
208 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
209 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
210 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
211 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
212 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
213 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
214 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
215 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
216 /// Storage: `PolkadotXcm::Queries` (r:0 w:1)
217 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
218 fn force_subscribe_version_notify() -> Weight {
219 // Proof Size summary in bytes:
220 // Measured: `145`
221 // Estimated: `3610`
222 // Minimum execution time: 34_983_000 picoseconds.
223 Weight::from_parts(35_949_000, 0)
224 .saturating_add(Weight::from_parts(0, 3610))
225 .saturating_add(T::DbWeight::get().reads(8))
226 .saturating_add(T::DbWeight::get().writes(5))
227 }
228 /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1)
229 /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)
230 /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
231 /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
232 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
233 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
234 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
235 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
236 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
237 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
238 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
239 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
240 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
241 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
242 /// Storage: `PolkadotXcm::Queries` (r:0 w:1)
243 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
244 fn force_unsubscribe_version_notify() -> Weight {
245 // Proof Size summary in bytes:
246 // Measured: `363`
247 // Estimated: `3828`
248 // Minimum execution time: 38_226_000 picoseconds.
249 Weight::from_parts(39_353_000, 0)
250 .saturating_add(Weight::from_parts(0, 3828))
251 .saturating_add(T::DbWeight::get().reads(7))
252 .saturating_add(T::DbWeight::get().writes(4))
253 }
254 /// Storage: `PolkadotXcm::XcmExecutionSuspended` (r:0 w:1)
255 /// Proof: `PolkadotXcm::XcmExecutionSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
256 fn force_suspension() -> Weight {
257 // Proof Size summary in bytes:
258 // Measured: `0`
259 // Estimated: `0`
260 // Minimum execution time: 2_254_000 picoseconds.
261 Weight::from_parts(2_432_000, 0)
262 .saturating_add(Weight::from_parts(0, 0))
263 .saturating_add(T::DbWeight::get().writes(1))
264 }
265 /// Storage: `PolkadotXcm::SupportedVersion` (r:6 w:2)
266 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
267 fn migrate_supported_version() -> Weight {
268 // Proof Size summary in bytes:
269 // Measured: `159`
270 // Estimated: `15999`
271 // Minimum execution time: 25_561_000 picoseconds.
272 Weight::from_parts(26_274_000, 0)
273 .saturating_add(Weight::from_parts(0, 15999))
274 .saturating_add(T::DbWeight::get().reads(6))
275 .saturating_add(T::DbWeight::get().writes(2))
276 }
277 /// Storage: `PolkadotXcm::VersionNotifiers` (r:6 w:2)
278 /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)
279 fn migrate_version_notifiers() -> Weight {
280 // Proof Size summary in bytes:
281 // Measured: `163`
282 // Estimated: `16003`
283 // Minimum execution time: 25_950_000 picoseconds.
284 Weight::from_parts(26_532_000, 0)
285 .saturating_add(Weight::from_parts(0, 16003))
286 .saturating_add(T::DbWeight::get().reads(6))
287 .saturating_add(T::DbWeight::get().writes(2))
288 }
289 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:7 w:0)
290 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
291 fn already_notified_target() -> Weight {
292 // Proof Size summary in bytes:
293 // Measured: `173`
294 // Estimated: `18488`
295 // Minimum execution time: 28_508_000 picoseconds.
296 Weight::from_parts(29_178_000, 0)
297 .saturating_add(Weight::from_parts(0, 18488))
298 .saturating_add(T::DbWeight::get().reads(7))
299 }
300 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:2 w:1)
301 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
302 /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
303 /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
304 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
305 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
306 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
307 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
308 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
309 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
310 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
311 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
312 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
313 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
314 fn notify_current_targets() -> Weight {
315 // Proof Size summary in bytes:
316 // Measured: `212`
317 // Estimated: `6152`
318 // Minimum execution time: 33_244_000 picoseconds.
319 Weight::from_parts(33_946_000, 0)
320 .saturating_add(Weight::from_parts(0, 6152))
321 .saturating_add(T::DbWeight::get().reads(8))
322 .saturating_add(T::DbWeight::get().writes(3))
323 }
324 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:0)
325 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
326 fn notify_target_migration_fail() -> Weight {
327 // Proof Size summary in bytes:
328 // Measured: `176`
329 // Estimated: `13541`
330 // Minimum execution time: 18_071_000 picoseconds.
331 Weight::from_parts(18_677_000, 0)
332 .saturating_add(Weight::from_parts(0, 13541))
333 .saturating_add(T::DbWeight::get().reads(5))
334 }
335 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:6 w:2)
336 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
337 fn migrate_version_notify_targets() -> Weight {
338 // Proof Size summary in bytes:
339 // Measured: `170`
340 // Estimated: `16010`
341 // Minimum execution time: 25_605_000 picoseconds.
342 Weight::from_parts(26_284_000, 0)
343 .saturating_add(Weight::from_parts(0, 16010))
344 .saturating_add(T::DbWeight::get().reads(6))
345 .saturating_add(T::DbWeight::get().writes(2))
346 }
347 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:6 w:2)
348 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
349 /// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
350 /// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
351 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
352 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
353 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
354 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
355 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
356 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
357 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
358 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
359 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
360 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
361 fn migrate_and_notify_old_targets() -> Weight {
362 // Proof Size summary in bytes:
363 // Measured: `212`
364 // Estimated: `16052`
365 // Minimum execution time: 46_991_000 picoseconds.
366 Weight::from_parts(47_866_000, 0)
367 .saturating_add(Weight::from_parts(0, 16052))
368 .saturating_add(T::DbWeight::get().reads(12))
369 .saturating_add(T::DbWeight::get().writes(4))
370 }
371 /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)
372 /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
373 /// Storage: `PolkadotXcm::Queries` (r:0 w:1)
374 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
375 fn new_query() -> Weight {
376 // Proof Size summary in bytes:
377 // Measured: `103`
378 // Estimated: `1588`
379 // Minimum execution time: 5_685_000 picoseconds.
380 Weight::from_parts(5_816_000, 0)
381 .saturating_add(Weight::from_parts(0, 1588))
382 .saturating_add(T::DbWeight::get().reads(1))
383 .saturating_add(T::DbWeight::get().writes(2))
384 }
385 /// Storage: `PolkadotXcm::Queries` (r:1 w:1)
386 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
387 fn take_response() -> Weight {
388 // Proof Size summary in bytes:
389 // Measured: `7740`
390 // Estimated: `11205`
391 // Minimum execution time: 31_271_000 picoseconds.
392 Weight::from_parts(32_195_000, 0)
393 .saturating_add(Weight::from_parts(0, 11205))
394 .saturating_add(T::DbWeight::get().reads(1))
395 .saturating_add(T::DbWeight::get().writes(1))
396 }
397 /// Storage: `PolkadotXcm::ShouldRecordXcm` (r:1 w:0)
398 /// Proof: `PolkadotXcm::ShouldRecordXcm` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
399 /// Storage: `PolkadotXcm::AssetTraps` (r:1 w:1)
400 /// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`)
401 fn claim_assets() -> Weight {
402 // Proof Size summary in bytes:
403 // Measured: `160`
404 // Estimated: `3625`
405 // Minimum execution time: 43_530_000 picoseconds.
406 Weight::from_parts(44_942_000, 0)
407 .saturating_add(Weight::from_parts(0, 3625))
408 .saturating_add(T::DbWeight::get().reads(2))
409 .saturating_add(T::DbWeight::get().writes(1))
410 }
411 fn add_authorized_alias() -> Weight {
412 Weight::from_parts(100_000, 0)
413 }
414 fn remove_authorized_alias() -> Weight {
415 Weight::from_parts(100_000, 0)
416 }
417
418 fn weigh_message() -> Weight {
419 // Proof Size summary in bytes:
420 // Measured: `0`
421 // Estimated: `0`
422 // Minimum execution time: 7_785_000 picoseconds.
423 Weight::from_parts(8_077_000, 0)
424 .saturating_add(Weight::from_parts(0, 0))
425 }
426}