pallet_bridge_messages/weights.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Parity Bridges Common.
3
4// Parity Bridges Common 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// Parity Bridges Common 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 Parity Bridges Common. If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for pallet_bridge_messages
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
20//! DATE: 2023-06-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `serban-ROG-Zephyrus`, CPU: `12th Gen Intel(R) Core(TM) i7-12700H`
23//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
24
25// Executed Command:
26// target/release/unknown-bridge-node
27// benchmark
28// pallet
29// --chain=dev
30// --steps=50
31// --repeat=20
32// --pallet=pallet_bridge_messages
33// --extrinsic=*
34// --execution=wasm
35// --wasm-execution=Compiled
36// --heap-pages=4096
37// --output=./modules/messages/src/weights.rs
38// --template=./.maintain/bridge-weight-template.hbs
39
40#![allow(clippy::all)]
41#![allow(unused_parens)]
42#![allow(unused_imports)]
43#![allow(missing_docs)]
44
45use frame_support::{
46 traits::Get,
47 weights::{constants::RocksDbWeight, Weight},
48};
49use sp_std::marker::PhantomData;
50
51/// Weight functions needed for pallet_bridge_messages.
52pub trait WeightInfo {
53 fn receive_single_message_proof() -> Weight;
54 fn receive_n_messages_proof(n: u32) -> Weight;
55 fn receive_single_message_proof_with_outbound_lane_state() -> Weight;
56 fn receive_single_n_bytes_message_proof(n: u32) -> Weight;
57 fn receive_delivery_proof_for_single_message() -> Weight;
58 fn receive_delivery_proof_for_two_messages_by_single_relayer() -> Weight;
59 fn receive_delivery_proof_for_two_messages_by_two_relayers() -> Weight;
60 fn receive_single_n_bytes_message_proof_with_dispatch(n: u32) -> Weight;
61}
62
63/// Weights for `pallet_bridge_messages` that are generated using one of the Bridge testnets.
64///
65/// Those weights are test only and must never be used in production.
66pub struct BridgeWeight<T>(PhantomData<T>);
67impl<T: frame_system::Config> WeightInfo for BridgeWeight<T> {
68 /// Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)
69 ///
70 /// Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2),
71 /// added: 497, mode: MaxEncodedLen)
72 ///
73 /// Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)
74 ///
75 /// Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68),
76 /// added: 2048, mode: MaxEncodedLen)
77 ///
78 /// Storage: BridgeUnknownMessages InboundLanes (r:1 w:1)
79 ///
80 /// Proof: BridgeUnknownMessages InboundLanes (max_values: None, max_size: Some(49180), added:
81 /// 51655, mode: MaxEncodedLen)
82 fn receive_single_message_proof() -> Weight {
83 // Proof Size summary in bytes:
84 // Measured: `653`
85 // Estimated: `52673`
86 // Minimum execution time: 38_724 nanoseconds.
87 Weight::from_parts(40_650_000, 52673)
88 .saturating_add(T::DbWeight::get().reads(3_u64))
89 .saturating_add(T::DbWeight::get().writes(1_u64))
90 }
91 /// Storage: BridgeRialtoMessages PalletOperatingMode (r:1 w:0)
92 ///
93 /// Proof: BridgeRialtoMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2),
94 /// added: 497, mode: MaxEncodedLen)
95 ///
96 /// Storage: BridgeRialtoGrandpa ImportedHeaders (r:1 w:0)
97 ///
98 /// Proof: BridgeRialtoGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68),
99 /// added: 2048, mode: MaxEncodedLen)
100 ///
101 /// Storage: BridgeRialtoMessages InboundLanes (r:1 w:1)
102 ///
103 /// Proof: BridgeRialtoMessages InboundLanes (max_values: None, max_size: Some(49208), added:
104 /// 51683, mode: MaxEncodedLen)
105 ///
106 /// The range of component `n` is `[1, 1004]`.
107 ///
108 /// The range of component `n` is `[1, 1004]`.
109 fn receive_n_messages_proof(n: u32) -> Weight {
110 // Proof Size summary in bytes:
111 // Measured: `653`
112 // Estimated: `52673`
113 // Minimum execution time: 39_354 nanoseconds.
114 Weight::from_parts(29_708_543, 52673)
115 // Standard Error: 1_185
116 .saturating_add(Weight::from_parts(7_648_787, 0).saturating_mul(n.into()))
117 .saturating_add(T::DbWeight::get().reads(3_u64))
118 .saturating_add(T::DbWeight::get().writes(1_u64))
119 }
120 /// Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)
121 ///
122 /// Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2),
123 /// added: 497, mode: MaxEncodedLen)
124 ///
125 /// Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)
126 ///
127 /// Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68),
128 /// added: 2048, mode: MaxEncodedLen)
129 ///
130 /// Storage: BridgeUnknownMessages InboundLanes (r:1 w:1)
131 ///
132 /// Proof: BridgeUnknownMessages InboundLanes (max_values: None, max_size: Some(49180), added:
133 /// 51655, mode: MaxEncodedLen)
134 fn receive_single_message_proof_with_outbound_lane_state() -> Weight {
135 // Proof Size summary in bytes:
136 // Measured: `653`
137 // Estimated: `52673`
138 // Minimum execution time: 45_578 nanoseconds.
139 Weight::from_parts(47_161_000, 52673)
140 .saturating_add(T::DbWeight::get().reads(3_u64))
141 .saturating_add(T::DbWeight::get().writes(1_u64))
142 }
143 /// Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)
144 ///
145 /// Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2),
146 /// added: 497, mode: MaxEncodedLen)
147 ///
148 /// Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)
149 ///
150 /// Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68),
151 /// added: 2048, mode: MaxEncodedLen)
152 ///
153 /// Storage: BridgeUnknownMessages InboundLanes (r:1 w:1)
154 ///
155 /// Proof: BridgeUnknownMessages InboundLanes (max_values: None, max_size: Some(49180), added:
156 /// 51655, mode: MaxEncodedLen)
157 ///
158 /// The range of component `n` is `[1, 16384]`.
159 fn receive_single_n_bytes_message_proof(n: u32) -> Weight {
160 // Proof Size summary in bytes:
161 // Measured: `653`
162 // Estimated: `52673`
163 // Minimum execution time: 38_702 nanoseconds.
164 Weight::from_parts(41_040_143, 52673)
165 // Standard Error: 5
166 .saturating_add(Weight::from_parts(1_174, 0).saturating_mul(n.into()))
167 .saturating_add(T::DbWeight::get().reads(3_u64))
168 .saturating_add(T::DbWeight::get().writes(1_u64))
169 }
170 /// Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)
171 ///
172 /// Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2),
173 /// added: 497, mode: MaxEncodedLen)
174 ///
175 /// Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)
176 ///
177 /// Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68),
178 /// added: 2048, mode: MaxEncodedLen)
179 ///
180 /// Storage: BridgeUnknownMessages OutboundLanes (r:1 w:1)
181 ///
182 /// Proof: BridgeUnknownMessages OutboundLanes (max_values: Some(1), max_size: Some(44), added:
183 /// 539, mode: MaxEncodedLen)
184 ///
185 /// Storage: BridgeRelayers RelayerRewards (r:1 w:1)
186 ///
187 /// Proof: BridgeRelayers RelayerRewards (max_values: None, max_size: Some(93), added: 2568,
188 /// mode: MaxEncodedLen)
189 ///
190 /// Storage: BridgeRialtoMessages OutboundMessages (r:0 w:1)
191 ///
192 /// Proof: BridgeRialtoMessages OutboundMessages (max_values: None, max_size: Some(65596),
193 /// added: 68071, mode: MaxEncodedLen)
194 fn receive_delivery_proof_for_single_message() -> Weight {
195 // Proof Size summary in bytes:
196 // Measured: `701`
197 // Estimated: `3558`
198 // Minimum execution time: 37_197 nanoseconds.
199 Weight::from_parts(38_371_000, 3558)
200 .saturating_add(T::DbWeight::get().reads(4_u64))
201 .saturating_add(T::DbWeight::get().writes(3_u64))
202 }
203 /// Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)
204 ///
205 /// Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2),
206 /// added: 497, mode: MaxEncodedLen)
207 ///
208 /// Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)
209 ///
210 /// Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68),
211 /// added: 2048, mode: MaxEncodedLen)
212 ///
213 /// Storage: BridgeUnknownMessages OutboundLanes (r:1 w:1)
214 ///
215 /// Proof: BridgeUnknownMessages OutboundLanes (max_values: Some(1), max_size: Some(44), added:
216 /// 539, mode: MaxEncodedLen)
217 ///
218 /// Storage: BridgeRelayers RelayerRewards (r:1 w:1)
219 ///
220 /// Proof: BridgeRelayers RelayerRewards (max_values: None, max_size: Some(93), added: 2568,
221 /// mode: MaxEncodedLen)
222 ///
223 /// Storage: BridgeRialtoMessages OutboundMessages (r:0 w:2)
224 ///
225 /// Proof: BridgeRialtoMessages OutboundMessages (max_values: None, max_size: Some(65596),
226 /// added: 68071, mode: MaxEncodedLen)
227 fn receive_delivery_proof_for_two_messages_by_single_relayer() -> Weight {
228 // Proof Size summary in bytes:
229 // Measured: `701`
230 // Estimated: `3558`
231 // Minimum execution time: 38_684 nanoseconds.
232 Weight::from_parts(39_929_000, 3558)
233 .saturating_add(T::DbWeight::get().reads(4_u64))
234 .saturating_add(T::DbWeight::get().writes(4_u64))
235 }
236 /// Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)
237 ///
238 /// Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2),
239 /// added: 497, mode: MaxEncodedLen)
240 ///
241 /// Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)
242 ///
243 /// Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68),
244 /// added: 2048, mode: MaxEncodedLen)
245 ///
246 /// Storage: BridgeUnknownMessages OutboundLanes (r:1 w:1)
247 ///
248 /// Proof: BridgeUnknownMessages OutboundLanes (max_values: Some(1), max_size: Some(44), added:
249 /// 539, mode: MaxEncodedLen)
250 ///
251 /// Storage: BridgeRelayers RelayerRewards (r:2 w:2)
252 ///
253 /// Proof: BridgeRelayers RelayerRewards (max_values: None, max_size: Some(93), added: 2568,
254 /// mode: MaxEncodedLen)
255 ///
256 /// Storage: BridgeRialtoMessages OutboundMessages (r:0 w:2)
257 ///
258 /// Proof: BridgeRialtoMessages OutboundMessages (max_values: None, max_size: Some(65596),
259 /// added: 68071, mode: MaxEncodedLen)
260 fn receive_delivery_proof_for_two_messages_by_two_relayers() -> Weight {
261 // Proof Size summary in bytes:
262 // Measured: `701`
263 // Estimated: `6126`
264 // Minimum execution time: 41_363 nanoseconds.
265 Weight::from_parts(42_621_000, 6126)
266 .saturating_add(T::DbWeight::get().reads(5_u64))
267 .saturating_add(T::DbWeight::get().writes(5_u64))
268 }
269 /// Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)
270 ///
271 /// Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2),
272 /// added: 497, mode: MaxEncodedLen)
273 ///
274 /// Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)
275 ///
276 /// Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68),
277 /// added: 2048, mode: MaxEncodedLen)
278 ///
279 /// Storage: BridgeUnknownMessages InboundLanes (r:1 w:1)
280 ///
281 /// Proof: BridgeUnknownMessages InboundLanes (max_values: None, max_size: Some(49180), added:
282 /// 51655, mode: MaxEncodedLen)
283 ///
284 /// The range of component `n` is `[1, 16384]`.
285 fn receive_single_n_bytes_message_proof_with_dispatch(n: u32) -> Weight {
286 // Proof Size summary in bytes:
287 // Measured: `653`
288 // Estimated: `52673`
289 // Minimum execution time: 38_925 nanoseconds.
290 Weight::from_parts(39_617_000, 52673)
291 // Standard Error: 612
292 .saturating_add(Weight::from_parts(372_813, 0).saturating_mul(n.into()))
293 .saturating_add(T::DbWeight::get().reads(3_u64))
294 .saturating_add(T::DbWeight::get().writes(1_u64))
295 }
296}
297
298// For backwards compatibility and tests
299impl WeightInfo for () {
300 /// Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)
301 ///
302 /// Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2),
303 /// added: 497, mode: MaxEncodedLen)
304 ///
305 /// Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)
306 ///
307 /// Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68),
308 /// added: 2048, mode: MaxEncodedLen)
309 ///
310 /// Storage: BridgeUnknownMessages InboundLanes (r:1 w:1)
311 ///
312 /// Proof: BridgeUnknownMessages InboundLanes (max_values: None, max_size: Some(49180), added:
313 /// 51655, mode: MaxEncodedLen)
314 fn receive_single_message_proof() -> Weight {
315 // Proof Size summary in bytes:
316 // Measured: `653`
317 // Estimated: `52673`
318 // Minimum execution time: 38_724 nanoseconds.
319 Weight::from_parts(40_650_000, 52673)
320 .saturating_add(RocksDbWeight::get().reads(3_u64))
321 .saturating_add(RocksDbWeight::get().writes(1_u64))
322 }
323 /// Storage: BridgeRialtoMessages PalletOperatingMode (r:1 w:0)
324 ///
325 /// Proof: BridgeRialtoMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2),
326 /// added: 497, mode: MaxEncodedLen)
327 ///
328 /// Storage: BridgeRialtoGrandpa ImportedHeaders (r:1 w:0)
329 ///
330 /// Proof: BridgeRialtoGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68),
331 /// added: 2048, mode: MaxEncodedLen)
332 ///
333 /// Storage: BridgeRialtoMessages InboundLanes (r:1 w:1)
334 ///
335 /// Proof: BridgeRialtoMessages InboundLanes (max_values: None, max_size: Some(49208), added:
336 /// 51683, mode: MaxEncodedLen)
337 ///
338 /// The range of component `n` is `[1, 1004]`.
339 ///
340 /// The range of component `n` is `[1, 1004]`.
341 fn receive_n_messages_proof(n: u32) -> Weight {
342 // Proof Size summary in bytes:
343 // Measured: `653`
344 // Estimated: `52673`
345 // Minimum execution time: 39_354 nanoseconds.
346 Weight::from_parts(29_708_543, 52673)
347 // Standard Error: 1_185
348 .saturating_add(Weight::from_parts(7_648_787, 0).saturating_mul(n.into()))
349 .saturating_add(RocksDbWeight::get().reads(3_u64))
350 .saturating_add(RocksDbWeight::get().writes(1_u64))
351 }
352 /// Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)
353 ///
354 /// Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2),
355 /// added: 497, mode: MaxEncodedLen)
356 ///
357 /// Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)
358 ///
359 /// Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68),
360 /// added: 2048, mode: MaxEncodedLen)
361 ///
362 /// Storage: BridgeUnknownMessages InboundLanes (r:1 w:1)
363 ///
364 /// Proof: BridgeUnknownMessages InboundLanes (max_values: None, max_size: Some(49180), added:
365 /// 51655, mode: MaxEncodedLen)
366 fn receive_single_message_proof_with_outbound_lane_state() -> Weight {
367 // Proof Size summary in bytes:
368 // Measured: `653`
369 // Estimated: `52673`
370 // Minimum execution time: 45_578 nanoseconds.
371 Weight::from_parts(47_161_000, 52673)
372 .saturating_add(RocksDbWeight::get().reads(3_u64))
373 .saturating_add(RocksDbWeight::get().writes(1_u64))
374 }
375 /// Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)
376 ///
377 /// Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2),
378 /// added: 497, mode: MaxEncodedLen)
379 ///
380 /// Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)
381 ///
382 /// Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68),
383 /// added: 2048, mode: MaxEncodedLen)
384 ///
385 /// Storage: BridgeUnknownMessages InboundLanes (r:1 w:1)
386 ///
387 /// Proof: BridgeRialtoMessages InboundLanes (max_values: None, max_size: Some(49208), added:
388 /// 51683, mode: MaxEncodedLen)
389 ///
390 /// The range of component `n` is `[1, 16384]`.
391 ///
392 /// The range of component `n` is `[1, 16384]`.
393 fn receive_single_n_bytes_message_proof(n: u32) -> Weight {
394 // Proof Size summary in bytes:
395 // Measured: `653`
396 // Estimated: `52673`
397 // Minimum execution time: 38_702 nanoseconds.
398 Weight::from_parts(41_040_143, 52673)
399 // Standard Error: 5
400 .saturating_add(Weight::from_parts(1_174, 0).saturating_mul(n.into()))
401 .saturating_add(RocksDbWeight::get().reads(3_u64))
402 .saturating_add(RocksDbWeight::get().writes(1_u64))
403 }
404 /// Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)
405 ///
406 /// Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2),
407 /// added: 497, mode: MaxEncodedLen)
408 ///
409 /// Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)
410 ///
411 /// Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68),
412 /// added: 2048, mode: MaxEncodedLen)
413 ///
414 /// Storage: BridgeUnknownMessages OutboundLanes (r:1 w:1)
415 ///
416 /// Proof: BridgeUnknownMessages OutboundLanes (max_values: Some(1), max_size: Some(44), added:
417 /// 539, mode: MaxEncodedLen)
418 ///
419 /// Storage: BridgeRelayers RelayerRewards (r:1 w:1)
420 ///
421 /// Proof: BridgeRelayers RelayerRewards (max_values: None, max_size: Some(93), added: 2568,
422 /// mode: MaxEncodedLen)
423 ///
424 /// Storage: BridgeRialtoMessages OutboundMessages (r:0 w:1)
425 ///
426 /// Proof: BridgeRialtoMessages OutboundMessages (max_values: None, max_size: Some(65596),
427 /// added: 68071, mode: MaxEncodedLen)
428 fn receive_delivery_proof_for_single_message() -> Weight {
429 // Proof Size summary in bytes:
430 // Measured: `701`
431 // Estimated: `3558`
432 // Minimum execution time: 37_197 nanoseconds.
433 Weight::from_parts(38_371_000, 3558)
434 .saturating_add(RocksDbWeight::get().reads(4_u64))
435 .saturating_add(RocksDbWeight::get().writes(3_u64))
436 }
437 /// Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)
438 ///
439 /// Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2),
440 /// added: 497, mode: MaxEncodedLen)
441 ///
442 /// Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)
443 ///
444 /// Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68),
445 /// added: 2048, mode: MaxEncodedLen)
446 ///
447 /// Storage: BridgeUnknownMessages OutboundLanes (r:1 w:1)
448 ///
449 /// Proof: BridgeUnknownMessages OutboundLanes (max_values: Some(1), max_size: Some(44), added:
450 /// 539, mode: MaxEncodedLen)
451 ///
452 /// Storage: BridgeRelayers RelayerRewards (r:1 w:1)
453 ///
454 /// Proof: BridgeRelayers RelayerRewards (max_values: None, max_size: Some(93), added: 2568,
455 /// mode: MaxEncodedLen)
456 ///
457 /// Storage: BridgeRialtoMessages OutboundMessages (r:0 w:2)
458 ///
459 /// Proof: BridgeRialtoMessages OutboundMessages (max_values: None, max_size: Some(65596),
460 /// added: 68071, mode: MaxEncodedLen)
461 fn receive_delivery_proof_for_two_messages_by_single_relayer() -> Weight {
462 // Proof Size summary in bytes:
463 // Measured: `701`
464 // Estimated: `3558`
465 // Minimum execution time: 38_684 nanoseconds.
466 Weight::from_parts(39_929_000, 3558)
467 .saturating_add(RocksDbWeight::get().reads(4_u64))
468 .saturating_add(RocksDbWeight::get().writes(4_u64))
469 }
470 /// Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)
471 ///
472 /// Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2),
473 /// added: 497, mode: MaxEncodedLen)
474 ///
475 /// Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)
476 ///
477 /// Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68),
478 /// added: 2048, mode: MaxEncodedLen)
479 ///
480 /// Storage: BridgeUnknownMessages OutboundLanes (r:1 w:1)
481 ///
482 /// Proof: BridgeUnknownMessages OutboundLanes (max_values: Some(1), max_size: Some(44), added:
483 /// 539, mode: MaxEncodedLen)
484 ///
485 /// Storage: BridgeRelayers RelayerRewards (r:2 w:2)
486 ///
487 /// Proof: BridgeRelayers RelayerRewards (max_values: None, max_size: Some(93), added: 2568,
488 /// mode: MaxEncodedLen)
489 ///
490 /// Storage: BridgeRialtoMessages OutboundMessages (r:0 w:2)
491 ///
492 /// Proof: BridgeRialtoMessages OutboundMessages (max_values: None, max_size: Some(65596),
493 /// added: 68071, mode: MaxEncodedLen)
494 fn receive_delivery_proof_for_two_messages_by_two_relayers() -> Weight {
495 // Proof Size summary in bytes:
496 // Measured: `701`
497 // Estimated: `6126`
498 // Minimum execution time: 41_363 nanoseconds.
499 Weight::from_parts(42_621_000, 6126)
500 .saturating_add(RocksDbWeight::get().reads(5_u64))
501 .saturating_add(RocksDbWeight::get().writes(5_u64))
502 }
503 /// Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)
504 ///
505 /// Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2),
506 /// added: 497, mode: MaxEncodedLen)
507 ///
508 /// Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)
509 ///
510 /// Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68),
511 /// added: 2048, mode: MaxEncodedLen)
512 ///
513 /// Storage: BridgeUnknownMessages InboundLanes (r:1 w:1)
514 ///
515 /// Proof: BridgeUnknownMessages InboundLanes (max_values: None, max_size: Some(49180), added:
516 /// 51655, mode: MaxEncodedLen)
517 ///
518 /// The range of component `n` is `[1, 16384]`.
519 fn receive_single_n_bytes_message_proof_with_dispatch(n: u32) -> Weight {
520 // Proof Size summary in bytes:
521 // Measured: `653`
522 // Estimated: `52673`
523 // Minimum execution time: 38_925 nanoseconds.
524 Weight::from_parts(39_617_000, 52673)
525 // Standard Error: 612
526 .saturating_add(Weight::from_parts(372_813, 0).saturating_mul(n.into()))
527 .saturating_add(RocksDbWeight::get().reads(3_u64))
528 .saturating_add(RocksDbWeight::get().writes(1_u64))
529 }
530}