1
// Copyright (C) Moondance Labs Ltd.
2
// This file is part of Tanssi.
3

            
4
// Tanssi 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
// Tanssi 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 Tanssi.  If not, see <http://www.gnu.org/licenses/>
16

            
17

            
18
//! Autogenerated weights for pallet_xcm_core_buyer
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21
//! DATE: 2024-05-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `Parths-MBP-Work`, CPU: `<UNKNOWN>`
24
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// ./target/release/tanssi-node
28
// benchmark
29
// pallet
30
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// pallet_xcm_core_buyer
34
// --extrinsic
35
// *
36
// --chain=dev
37
// --steps
38
// 50
39
// --repeat
40
// 20
41
// --template=benchmarking/frame-weight-pallet-template.hbs
42
// --json-file
43
// raw.json
44
// --output
45
// tmp/pallet_xcm_core_buyer.rs
46

            
47
#![cfg_attr(rustfmt, rustfmt_skip)]
48
#![allow(unused_parens)]
49
#![allow(unused_imports)]
50

            
51
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
52
use sp_std::marker::PhantomData;
53

            
54
/// Weight functions needed for pallet_xcm_core_buyer.
55
pub trait WeightInfo {
56
	fn buy_core() -> Weight;
57
	fn force_buy_core() -> Weight;
58
	fn query_response() -> Weight;
59
	fn clean_up_expired_in_flight_orders(x: u32, ) -> Weight;
60
	fn clean_up_expired_pending_blocks(x: u32, ) -> Weight;
61
	fn set_relay_xcm_weight_config() -> Weight;
62
	fn set_relay_chain() -> Weight;
63
}
64

            
65
/// Weights for pallet_xcm_core_buyer using the Substrate node and recommended hardware.
66
pub struct SubstrateWeight<T>(PhantomData<T>);
67
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
68
	/// Storage: `XcmCoreBuyer::CollatorSignatureNonce` (r:1 w:1)
69
	/// Proof: `XcmCoreBuyer::CollatorSignatureNonce` (`max_values`: None, `max_size`: None, mode: `Measured`)
70
	/// Storage: `XcmCoreBuyer::InFlightOrders` (r:1 w:1)
71
	/// Proof: `XcmCoreBuyer::InFlightOrders` (`max_values`: None, `max_size`: None, mode: `Measured`)
72
	/// Storage: `XcmCoreBuyer::PendingBlocks` (r:1 w:0)
73
	/// Proof: `XcmCoreBuyer::PendingBlocks` (`max_values`: None, `max_size`: None, mode: `Measured`)
74
	/// Storage: `Registrar::ParathreadParams` (r:1 w:0)
75
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: None, mode: `Measured`)
76
	/// Storage: `AuthorNoting::LatestAuthor` (r:1 w:0)
77
	/// Proof: `AuthorNoting::LatestAuthor` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
78
	/// Storage: `XcmCoreBuyer::RelayXcmWeightConfig` (r:1 w:0)
79
	/// Proof: `XcmCoreBuyer::RelayXcmWeightConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
80
	/// Storage: `ServicesPayment::MaxCorePrice` (r:1 w:0)
81
	/// Proof: `ServicesPayment::MaxCorePrice` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
82
	/// Storage: `XcmCoreBuyer::RelayChain` (r:1 w:0)
83
	/// Proof: `XcmCoreBuyer::RelayChain` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
84
	/// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)
85
	/// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
86
	/// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
87
	/// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
88
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
89
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
90
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
91
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
92
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
93
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
94
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
95
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
96
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
97
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
98
	/// Storage: `XcmCoreBuyer::QueryIdToParaId` (r:0 w:1)
99
	/// Proof: `XcmCoreBuyer::QueryIdToParaId` (`max_values`: None, `max_size`: None, mode: `Measured`)
100
	/// Storage: `PolkadotXcm::Queries` (r:0 w:1)
101
	/// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
102
	fn buy_core() -> Weight {
103
		// Proof Size summary in bytes:
104
		//  Measured:  `1534`
105
		//  Estimated: `4999`
106
		// Minimum execution time: 46_000_000 picoseconds.
107
		Weight::from_parts(47_000_000, 4999)
108
			.saturating_add(T::DbWeight::get().reads(15_u64))
109
			.saturating_add(T::DbWeight::get().writes(7_u64))
110
	}
111
	/// Storage: `XcmCoreBuyer::InFlightOrders` (r:1 w:1)
112
	/// Proof: `XcmCoreBuyer::InFlightOrders` (`max_values`: None, `max_size`: None, mode: `Measured`)
113
	/// Storage: `XcmCoreBuyer::PendingBlocks` (r:1 w:0)
114
	/// Proof: `XcmCoreBuyer::PendingBlocks` (`max_values`: None, `max_size`: None, mode: `Measured`)
115
	/// Storage: `Registrar::ParathreadParams` (r:1 w:0)
116
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: None, mode: `Measured`)
117
	/// Storage: `AuthorNoting::LatestAuthor` (r:1 w:0)
118
	/// Proof: `AuthorNoting::LatestAuthor` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
119
	/// Storage: `XcmCoreBuyer::RelayXcmWeightConfig` (r:1 w:0)
120
	/// Proof: `XcmCoreBuyer::RelayXcmWeightConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
121
	/// Storage: `ServicesPayment::MaxCorePrice` (r:1 w:0)
122
	/// Proof: `ServicesPayment::MaxCorePrice` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
123
	/// Storage: `XcmCoreBuyer::RelayChain` (r:1 w:0)
124
	/// Proof: `XcmCoreBuyer::RelayChain` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
125
	/// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)
126
	/// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
127
	/// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
128
	/// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
129
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
130
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
131
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
132
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
133
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
134
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
135
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
136
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
137
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
138
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
139
	/// Storage: `XcmCoreBuyer::QueryIdToParaId` (r:0 w:1)
140
	/// Proof: `XcmCoreBuyer::QueryIdToParaId` (`max_values`: None, `max_size`: None, mode: `Measured`)
141
	/// Storage: `PolkadotXcm::Queries` (r:0 w:1)
142
	/// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
143
	fn force_buy_core() -> Weight {
144
		// Proof Size summary in bytes:
145
		//  Measured:  `1534`
146
		//  Estimated: `4999`
147
		// Minimum execution time: 44_000_000 picoseconds.
148
		Weight::from_parts(45_000_000, 4999)
149
			.saturating_add(T::DbWeight::get().reads(14_u64))
150
			.saturating_add(T::DbWeight::get().writes(6_u64))
151
	}
152
	/// Storage: `XcmCoreBuyer::QueryIdToParaId` (r:1 w:1)
153
	/// Proof: `XcmCoreBuyer::QueryIdToParaId` (`max_values`: None, `max_size`: None, mode: `Measured`)
154
	/// Storage: `XcmCoreBuyer::PendingBlocks` (r:0 w:1)
155
	/// Proof: `XcmCoreBuyer::PendingBlocks` (`max_values`: None, `max_size`: None, mode: `Measured`)
156
	/// Storage: `XcmCoreBuyer::InFlightOrders` (r:0 w:1)
157
	/// Proof: `XcmCoreBuyer::InFlightOrders` (`max_values`: None, `max_size`: None, mode: `Measured`)
158
	fn query_response() -> Weight {
159
		// Proof Size summary in bytes:
160
		//  Measured:  `1221`
161
		//  Estimated: `4686`
162
		// Minimum execution time: 15_000_000 picoseconds.
163
		Weight::from_parts(15_000_000, 4686)
164
			.saturating_add(T::DbWeight::get().reads(1_u64))
165
			.saturating_add(T::DbWeight::get().writes(3_u64))
166
	}
167
	/// Storage: `XcmCoreBuyer::InFlightOrders` (r:1000 w:1000)
168
	/// Proof: `XcmCoreBuyer::InFlightOrders` (`max_values`: None, `max_size`: None, mode: `Measured`)
169
	/// Storage: `XcmCoreBuyer::QueryIdToParaId` (r:0 w:1000)
170
	/// Proof: `XcmCoreBuyer::QueryIdToParaId` (`max_values`: None, `max_size`: None, mode: `Measured`)
171
	/// The range of component `x` is `[1, 1000]`.
172
	fn clean_up_expired_in_flight_orders(x: u32, ) -> Weight {
173
		// Proof Size summary in bytes:
174
		//  Measured:  `205 + x * (36 ±0)`
175
		//  Estimated: `3684 + x * (2512 ±0)`
176
		// Minimum execution time: 13_000_000 picoseconds.
177
		Weight::from_parts(13_000_000, 3684)
178
			// Standard Error: 11_138
179
			.saturating_add(Weight::from_parts(4_263_561, 0).saturating_mul(x.into()))
180
			.saturating_add(T::DbWeight::get().reads(1_u64))
181
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into())))
182
			.saturating_add(T::DbWeight::get().writes(2_u64))
183
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(x.into())))
184
			.saturating_add(Weight::from_parts(0, 2512).saturating_mul(x.into()))
185
	}
186
	/// Storage: `XcmCoreBuyer::PendingBlocks` (r:1000 w:1000)
187
	/// Proof: `XcmCoreBuyer::PendingBlocks` (`max_values`: None, `max_size`: None, mode: `Measured`)
188
	/// The range of component `x` is `[1, 1000]`.
189
	fn clean_up_expired_pending_blocks(x: u32, ) -> Weight {
190
		// Proof Size summary in bytes:
191
		//  Measured:  `147 + x * (23 ±0)`
192
		//  Estimated: `3627 + x * (2499 ±0)`
193
		// Minimum execution time: 11_000_000 picoseconds.
194
		Weight::from_parts(7_280_568, 3627)
195
			// Standard Error: 5_885
196
			.saturating_add(Weight::from_parts(2_701_842, 0).saturating_mul(x.into()))
197
			.saturating_add(T::DbWeight::get().reads(1_u64))
198
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into())))
199
			.saturating_add(T::DbWeight::get().writes(1_u64))
200
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
201
			.saturating_add(Weight::from_parts(0, 2499).saturating_mul(x.into()))
202
	}
203
	/// Storage: `XcmCoreBuyer::RelayXcmWeightConfig` (r:0 w:1)
204
	/// Proof: `XcmCoreBuyer::RelayXcmWeightConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
205
	fn set_relay_xcm_weight_config() -> Weight {
206
		// Proof Size summary in bytes:
207
		//  Measured:  `0`
208
		//  Estimated: `0`
209
		// Minimum execution time: 2_000_000 picoseconds.
210
		Weight::from_parts(2_000_000, 0)
211
			.saturating_add(T::DbWeight::get().writes(1_u64))
212
	}
213
	/// Storage: `XcmCoreBuyer::RelayChain` (r:0 w:1)
214
	/// Proof: `XcmCoreBuyer::RelayChain` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
215
	fn set_relay_chain() -> Weight {
216
		// Proof Size summary in bytes:
217
		//  Measured:  `0`
218
		//  Estimated: `0`
219
		// Minimum execution time: 2_000_000 picoseconds.
220
		Weight::from_parts(2_000_000, 0)
221
			.saturating_add(T::DbWeight::get().writes(1_u64))
222
	}
223
}
224

            
225
// For backwards compatibility and tests
226
impl WeightInfo for () {
227
	/// Storage: `XcmCoreBuyer::CollatorSignatureNonce` (r:1 w:1)
228
	/// Proof: `XcmCoreBuyer::CollatorSignatureNonce` (`max_values`: None, `max_size`: None, mode: `Measured`)
229
	/// Storage: `XcmCoreBuyer::InFlightOrders` (r:1 w:1)
230
	/// Proof: `XcmCoreBuyer::InFlightOrders` (`max_values`: None, `max_size`: None, mode: `Measured`)
231
	/// Storage: `XcmCoreBuyer::PendingBlocks` (r:1 w:0)
232
	/// Proof: `XcmCoreBuyer::PendingBlocks` (`max_values`: None, `max_size`: None, mode: `Measured`)
233
	/// Storage: `Registrar::ParathreadParams` (r:1 w:0)
234
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: None, mode: `Measured`)
235
	/// Storage: `AuthorNoting::LatestAuthor` (r:1 w:0)
236
	/// Proof: `AuthorNoting::LatestAuthor` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
237
	/// Storage: `XcmCoreBuyer::RelayXcmWeightConfig` (r:1 w:0)
238
	/// Proof: `XcmCoreBuyer::RelayXcmWeightConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
239
	/// Storage: `ServicesPayment::MaxCorePrice` (r:1 w:0)
240
	/// Proof: `ServicesPayment::MaxCorePrice` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
241
	/// Storage: `XcmCoreBuyer::RelayChain` (r:1 w:0)
242
	/// Proof: `XcmCoreBuyer::RelayChain` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
243
	/// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)
244
	/// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
245
	/// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
246
	/// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
247
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
248
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
249
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
250
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
251
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
252
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
253
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
254
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
255
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
256
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
257
	/// Storage: `XcmCoreBuyer::QueryIdToParaId` (r:0 w:1)
258
	/// Proof: `XcmCoreBuyer::QueryIdToParaId` (`max_values`: None, `max_size`: None, mode: `Measured`)
259
	/// Storage: `PolkadotXcm::Queries` (r:0 w:1)
260
	/// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
261
	fn buy_core() -> Weight {
262
		// Proof Size summary in bytes:
263
		//  Measured:  `1534`
264
		//  Estimated: `4999`
265
		// Minimum execution time: 46_000_000 picoseconds.
266
		Weight::from_parts(47_000_000, 4999)
267
			.saturating_add(RocksDbWeight::get().reads(15_u64))
268
			.saturating_add(RocksDbWeight::get().writes(7_u64))
269
	}
270
	/// Storage: `XcmCoreBuyer::InFlightOrders` (r:1 w:1)
271
	/// Proof: `XcmCoreBuyer::InFlightOrders` (`max_values`: None, `max_size`: None, mode: `Measured`)
272
	/// Storage: `XcmCoreBuyer::PendingBlocks` (r:1 w:0)
273
	/// Proof: `XcmCoreBuyer::PendingBlocks` (`max_values`: None, `max_size`: None, mode: `Measured`)
274
	/// Storage: `Registrar::ParathreadParams` (r:1 w:0)
275
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: None, mode: `Measured`)
276
	/// Storage: `AuthorNoting::LatestAuthor` (r:1 w:0)
277
	/// Proof: `AuthorNoting::LatestAuthor` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
278
	/// Storage: `XcmCoreBuyer::RelayXcmWeightConfig` (r:1 w:0)
279
	/// Proof: `XcmCoreBuyer::RelayXcmWeightConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
280
	/// Storage: `ServicesPayment::MaxCorePrice` (r:1 w:0)
281
	/// Proof: `ServicesPayment::MaxCorePrice` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
282
	/// Storage: `XcmCoreBuyer::RelayChain` (r:1 w:0)
283
	/// Proof: `XcmCoreBuyer::RelayChain` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
284
	/// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)
285
	/// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
286
	/// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
287
	/// Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
288
	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
289
	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
290
	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
291
	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
292
	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
293
	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
294
	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
295
	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
296
	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
297
	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
298
	/// Storage: `XcmCoreBuyer::QueryIdToParaId` (r:0 w:1)
299
	/// Proof: `XcmCoreBuyer::QueryIdToParaId` (`max_values`: None, `max_size`: None, mode: `Measured`)
300
	/// Storage: `PolkadotXcm::Queries` (r:0 w:1)
301
	/// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
302
	fn force_buy_core() -> Weight {
303
		// Proof Size summary in bytes:
304
		//  Measured:  `1534`
305
		//  Estimated: `4999`
306
		// Minimum execution time: 44_000_000 picoseconds.
307
		Weight::from_parts(45_000_000, 4999)
308
			.saturating_add(RocksDbWeight::get().reads(14_u64))
309
			.saturating_add(RocksDbWeight::get().writes(6_u64))
310
	}
311
	/// Storage: `XcmCoreBuyer::QueryIdToParaId` (r:1 w:1)
312
	/// Proof: `XcmCoreBuyer::QueryIdToParaId` (`max_values`: None, `max_size`: None, mode: `Measured`)
313
	/// Storage: `XcmCoreBuyer::PendingBlocks` (r:0 w:1)
314
	/// Proof: `XcmCoreBuyer::PendingBlocks` (`max_values`: None, `max_size`: None, mode: `Measured`)
315
	/// Storage: `XcmCoreBuyer::InFlightOrders` (r:0 w:1)
316
	/// Proof: `XcmCoreBuyer::InFlightOrders` (`max_values`: None, `max_size`: None, mode: `Measured`)
317
20
	fn query_response() -> Weight {
318
20
		// Proof Size summary in bytes:
319
20
		//  Measured:  `1221`
320
20
		//  Estimated: `4686`
321
20
		// Minimum execution time: 15_000_000 picoseconds.
322
20
		Weight::from_parts(15_000_000, 4686)
323
20
			.saturating_add(RocksDbWeight::get().reads(1_u64))
324
20
			.saturating_add(RocksDbWeight::get().writes(3_u64))
325
20
	}
326
	/// Storage: `XcmCoreBuyer::InFlightOrders` (r:1000 w:1000)
327
	/// Proof: `XcmCoreBuyer::InFlightOrders` (`max_values`: None, `max_size`: None, mode: `Measured`)
328
	/// Storage: `XcmCoreBuyer::QueryIdToParaId` (r:0 w:1000)
329
	/// Proof: `XcmCoreBuyer::QueryIdToParaId` (`max_values`: None, `max_size`: None, mode: `Measured`)
330
	/// The range of component `x` is `[1, 1000]`.
331
	fn clean_up_expired_in_flight_orders(x: u32, ) -> Weight {
332
		// Proof Size summary in bytes:
333
		//  Measured:  `205 + x * (36 ±0)`
334
		//  Estimated: `3684 + x * (2512 ±0)`
335
		// Minimum execution time: 13_000_000 picoseconds.
336
		Weight::from_parts(13_000_000, 3684)
337
			// Standard Error: 11_138
338
			.saturating_add(Weight::from_parts(4_263_561, 0).saturating_mul(x.into()))
339
			.saturating_add(RocksDbWeight::get().reads(1_u64))
340
			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(x.into())))
341
			.saturating_add(RocksDbWeight::get().writes(2_u64))
342
			.saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(x.into())))
343
			.saturating_add(Weight::from_parts(0, 2512).saturating_mul(x.into()))
344
	}
345
	/// Storage: `XcmCoreBuyer::PendingBlocks` (r:1000 w:1000)
346
	/// Proof: `XcmCoreBuyer::PendingBlocks` (`max_values`: None, `max_size`: None, mode: `Measured`)
347
	/// The range of component `x` is `[1, 1000]`.
348
	fn clean_up_expired_pending_blocks(x: u32, ) -> Weight {
349
		// Proof Size summary in bytes:
350
		//  Measured:  `147 + x * (23 ±0)`
351
		//  Estimated: `3627 + x * (2499 ±0)`
352
		// Minimum execution time: 11_000_000 picoseconds.
353
		Weight::from_parts(7_280_568, 3627)
354
			// Standard Error: 5_885
355
			.saturating_add(Weight::from_parts(2_701_842, 0).saturating_mul(x.into()))
356
			.saturating_add(RocksDbWeight::get().reads(1_u64))
357
			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(x.into())))
358
			.saturating_add(RocksDbWeight::get().writes(1_u64))
359
			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(x.into())))
360
			.saturating_add(Weight::from_parts(0, 2499).saturating_mul(x.into()))
361
	}
362
	/// Storage: `XcmCoreBuyer::RelayXcmWeightConfig` (r:0 w:1)
363
	/// Proof: `XcmCoreBuyer::RelayXcmWeightConfig` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
364
	fn set_relay_xcm_weight_config() -> Weight {
365
		// Proof Size summary in bytes:
366
		//  Measured:  `0`
367
		//  Estimated: `0`
368
		// Minimum execution time: 2_000_000 picoseconds.
369
		Weight::from_parts(2_000_000, 0)
370
			.saturating_add(RocksDbWeight::get().writes(1_u64))
371
	}
372
	/// Storage: `XcmCoreBuyer::RelayChain` (r:0 w:1)
373
	/// Proof: `XcmCoreBuyer::RelayChain` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
374
	fn set_relay_chain() -> Weight {
375
		// Proof Size summary in bytes:
376
		//  Measured:  `0`
377
		//  Estimated: `0`
378
		// Minimum execution time: 2_000_000 picoseconds.
379
		Weight::from_parts(2_000_000, 0)
380
			.saturating_add(RocksDbWeight::get().writes(1_u64))
381
	}
382
}