referrerpolicy=no-referrer-when-downgrade

pallet_preimage/
weights.rs

1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// 	http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18// This file is part of Substrate.
19
20// Copyright (C) Parity Technologies (UK) Ltd.
21// SPDX-License-Identifier: Apache-2.0
22
23// Licensed under the Apache License, Version 2.0 (the "License");
24// you may not use this file except in compliance with the License.
25// You may obtain a copy of the License at
26//
27// 	http://www.apache.org/licenses/LICENSE-2.0
28//
29// Unless required by applicable law or agreed to in writing, software
30// distributed under the License is distributed on an "AS IS" BASIS,
31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32// See the License for the specific language governing permissions and
33// limitations under the License.
34
35//! Autogenerated weights for `pallet_preimage`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `4563561839a5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
41//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
42
43// Executed Command:
44// frame-omni-bencher
45// v1
46// benchmark
47// pallet
48// --extrinsic=*
49// --runtime=target/production/wbuild/kitchensink-runtime/kitchensink_runtime.wasm
50// --pallet=pallet_preimage
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/preimage/src/weights.rs
53// --wasm-execution=compiled
54// --steps=50
55// --repeat=20
56// --heap-pages=4096
57// --template=substrate/.maintain/frame-weight-template.hbs
58// --no-storage-info
59// --no-min-squares
60// --no-median-slopes
61// --genesis-builder-policy=none
62// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage,pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier
63
64#![cfg_attr(rustfmt, rustfmt_skip)]
65#![allow(unused_parens)]
66#![allow(unused_imports)]
67#![allow(missing_docs)]
68#![allow(dead_code)]
69
70use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
71use core::marker::PhantomData;
72
73/// Weight functions needed for `pallet_preimage`.
74pub trait WeightInfo {
75	fn note_preimage(s: u32, ) -> Weight;
76	fn note_requested_preimage(s: u32, ) -> Weight;
77	fn note_no_deposit_preimage(s: u32, ) -> Weight;
78	fn unnote_preimage() -> Weight;
79	fn unnote_no_deposit_preimage() -> Weight;
80	fn request_preimage() -> Weight;
81	fn request_no_deposit_preimage() -> Weight;
82	fn request_unnoted_preimage() -> Weight;
83	fn request_requested_preimage() -> Weight;
84	fn unrequest_preimage() -> Weight;
85	fn unrequest_unnoted_preimage() -> Weight;
86	fn unrequest_multi_referenced_preimage() -> Weight;
87	fn ensure_updated(n: u32, ) -> Weight;
88}
89
90/// Weights for `pallet_preimage` using the Substrate node and recommended hardware.
91pub struct SubstrateWeight<T>(PhantomData<T>);
92impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
93	/// Storage: `Preimage::StatusFor` (r:1 w:0)
94	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
95	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
96	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
97	/// Storage: `Parameters::Parameters` (r:2 w:0)
98	/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
99	/// Storage: `Balances::Holds` (r:1 w:1)
100	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(427), added: 2902, mode: `MaxEncodedLen`)
101	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
102	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
103	/// The range of component `s` is `[0, 4194304]`.
104	fn note_preimage(s: u32, ) -> Weight {
105		// Proof Size summary in bytes:
106		//  Measured:  `0`
107		//  Estimated: `28584`
108		// Minimum execution time: 49_419_000 picoseconds.
109		Weight::from_parts(50_499_000, 28584)
110			// Standard Error: 135
111			.saturating_add(Weight::from_parts(13_491, 0).saturating_mul(s.into()))
112			.saturating_add(T::DbWeight::get().reads(5_u64))
113			.saturating_add(T::DbWeight::get().writes(3_u64))
114	}
115	/// Storage: `Preimage::StatusFor` (r:1 w:0)
116	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
117	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
118	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
119	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
120	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
121	/// The range of component `s` is `[0, 4194304]`.
122	fn note_requested_preimage(s: u32, ) -> Weight {
123		// Proof Size summary in bytes:
124		//  Measured:  `0`
125		//  Estimated: `3556`
126		// Minimum execution time: 11_867_000 picoseconds.
127		Weight::from_parts(12_175_000, 3556)
128			// Standard Error: 133
129			.saturating_add(Weight::from_parts(13_488, 0).saturating_mul(s.into()))
130			.saturating_add(T::DbWeight::get().reads(2_u64))
131			.saturating_add(T::DbWeight::get().writes(2_u64))
132	}
133	/// Storage: `Preimage::StatusFor` (r:1 w:0)
134	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
135	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
136	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
137	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
138	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
139	/// The range of component `s` is `[0, 4194304]`.
140	fn note_no_deposit_preimage(s: u32, ) -> Weight {
141		// Proof Size summary in bytes:
142		//  Measured:  `0`
143		//  Estimated: `3556`
144		// Minimum execution time: 10_925_000 picoseconds.
145		Weight::from_parts(11_052_000, 3556)
146			// Standard Error: 133
147			.saturating_add(Weight::from_parts(13_491, 0).saturating_mul(s.into()))
148			.saturating_add(T::DbWeight::get().reads(2_u64))
149			.saturating_add(T::DbWeight::get().writes(2_u64))
150	}
151	/// Storage: `Preimage::StatusFor` (r:1 w:0)
152	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
153	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
154	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
155	/// Storage: `Balances::Holds` (r:1 w:1)
156	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(427), added: 2902, mode: `MaxEncodedLen`)
157	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
158	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
159	fn unnote_preimage() -> Weight {
160		// Proof Size summary in bytes:
161		//  Measured:  `130`
162		//  Estimated: `3892`
163		// Minimum execution time: 48_912_000 picoseconds.
164		Weight::from_parts(50_830_000, 3892)
165			.saturating_add(T::DbWeight::get().reads(3_u64))
166			.saturating_add(T::DbWeight::get().writes(3_u64))
167	}
168	/// Storage: `Preimage::StatusFor` (r:1 w:0)
169	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
170	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
171	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
172	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
173	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
174	fn unnote_no_deposit_preimage() -> Weight {
175		// Proof Size summary in bytes:
176		//  Measured:  `30`
177		//  Estimated: `3556`
178		// Minimum execution time: 21_655_000 picoseconds.
179		Weight::from_parts(24_435_000, 3556)
180			.saturating_add(T::DbWeight::get().reads(2_u64))
181			.saturating_add(T::DbWeight::get().writes(2_u64))
182	}
183	/// Storage: `Preimage::StatusFor` (r:1 w:0)
184	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
185	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
186	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
187	fn request_preimage() -> Weight {
188		// Proof Size summary in bytes:
189		//  Measured:  `74`
190		//  Estimated: `3556`
191		// Minimum execution time: 18_283_000 picoseconds.
192		Weight::from_parts(19_292_000, 3556)
193			.saturating_add(T::DbWeight::get().reads(2_u64))
194			.saturating_add(T::DbWeight::get().writes(1_u64))
195	}
196	/// Storage: `Preimage::StatusFor` (r:1 w:0)
197	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
198	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
199	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
200	fn request_no_deposit_preimage() -> Weight {
201		// Proof Size summary in bytes:
202		//  Measured:  `30`
203		//  Estimated: `3556`
204		// Minimum execution time: 12_317_000 picoseconds.
205		Weight::from_parts(13_510_000, 3556)
206			.saturating_add(T::DbWeight::get().reads(2_u64))
207			.saturating_add(T::DbWeight::get().writes(1_u64))
208	}
209	/// Storage: `Preimage::StatusFor` (r:1 w:0)
210	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
211	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
212	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
213	fn request_unnoted_preimage() -> Weight {
214		// Proof Size summary in bytes:
215		//  Measured:  `0`
216		//  Estimated: `3556`
217		// Minimum execution time: 12_145_000 picoseconds.
218		Weight::from_parts(12_538_000, 3556)
219			.saturating_add(T::DbWeight::get().reads(2_u64))
220			.saturating_add(T::DbWeight::get().writes(1_u64))
221	}
222	/// Storage: `Preimage::StatusFor` (r:1 w:0)
223	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
224	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
225	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
226	fn request_requested_preimage() -> Weight {
227		// Proof Size summary in bytes:
228		//  Measured:  `0`
229		//  Estimated: `3556`
230		// Minimum execution time: 6_853_000 picoseconds.
231		Weight::from_parts(7_180_000, 3556)
232			.saturating_add(T::DbWeight::get().reads(2_u64))
233			.saturating_add(T::DbWeight::get().writes(1_u64))
234	}
235	/// Storage: `Preimage::StatusFor` (r:1 w:0)
236	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
237	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
238	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
239	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
240	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
241	fn unrequest_preimage() -> Weight {
242		// Proof Size summary in bytes:
243		//  Measured:  `30`
244		//  Estimated: `3556`
245		// Minimum execution time: 19_099_000 picoseconds.
246		Weight::from_parts(20_209_000, 3556)
247			.saturating_add(T::DbWeight::get().reads(2_u64))
248			.saturating_add(T::DbWeight::get().writes(2_u64))
249	}
250	/// Storage: `Preimage::StatusFor` (r:1 w:0)
251	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
252	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
253	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
254	fn unrequest_unnoted_preimage() -> Weight {
255		// Proof Size summary in bytes:
256		//  Measured:  `0`
257		//  Estimated: `3556`
258		// Minimum execution time: 6_847_000 picoseconds.
259		Weight::from_parts(7_034_000, 3556)
260			.saturating_add(T::DbWeight::get().reads(2_u64))
261			.saturating_add(T::DbWeight::get().writes(1_u64))
262	}
263	/// Storage: `Preimage::StatusFor` (r:1 w:0)
264	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
265	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
266	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
267	fn unrequest_multi_referenced_preimage() -> Weight {
268		// Proof Size summary in bytes:
269		//  Measured:  `0`
270		//  Estimated: `3556`
271		// Minimum execution time: 6_767_000 picoseconds.
272		Weight::from_parts(7_056_000, 3556)
273			.saturating_add(T::DbWeight::get().reads(2_u64))
274			.saturating_add(T::DbWeight::get().writes(1_u64))
275	}
276	/// Storage: `Preimage::StatusFor` (r:1023 w:1023)
277	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
278	/// Storage: `System::Account` (r:1023 w:1023)
279	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
280	/// Storage: `Parameters::Parameters` (r:2 w:0)
281	/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
282	/// Storage: `Balances::Holds` (r:1023 w:1023)
283	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(427), added: 2902, mode: `MaxEncodedLen`)
284	/// Storage: `Preimage::RequestStatusFor` (r:0 w:1023)
285	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
286	/// The range of component `n` is `[1, 1024]`.
287	fn ensure_updated(n: u32, ) -> Weight {
288		// Proof Size summary in bytes:
289		//  Measured:  `0 + n * (227 ±0)`
290		//  Estimated: `28584 + n * (2902 ±0)`
291		// Minimum execution time: 54_553_000 picoseconds.
292		Weight::from_parts(56_817_000, 28584)
293			// Standard Error: 37_902
294			.saturating_add(Weight::from_parts(59_397_441, 0).saturating_mul(n.into()))
295			.saturating_add(T::DbWeight::get().reads(2_u64))
296			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into())))
297			.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(n.into())))
298			.saturating_add(Weight::from_parts(0, 2902).saturating_mul(n.into()))
299	}
300}
301
302// For backwards compatibility and tests.
303impl WeightInfo for () {
304	/// Storage: `Preimage::StatusFor` (r:1 w:0)
305	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
306	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
307	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
308	/// Storage: `Parameters::Parameters` (r:2 w:0)
309	/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
310	/// Storage: `Balances::Holds` (r:1 w:1)
311	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(427), added: 2902, mode: `MaxEncodedLen`)
312	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
313	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
314	/// The range of component `s` is `[0, 4194304]`.
315	fn note_preimage(s: u32, ) -> Weight {
316		// Proof Size summary in bytes:
317		//  Measured:  `0`
318		//  Estimated: `28584`
319		// Minimum execution time: 49_419_000 picoseconds.
320		Weight::from_parts(50_499_000, 28584)
321			// Standard Error: 135
322			.saturating_add(Weight::from_parts(13_491, 0).saturating_mul(s.into()))
323			.saturating_add(RocksDbWeight::get().reads(5_u64))
324			.saturating_add(RocksDbWeight::get().writes(3_u64))
325	}
326	/// Storage: `Preimage::StatusFor` (r:1 w:0)
327	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
328	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
329	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
330	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
331	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
332	/// The range of component `s` is `[0, 4194304]`.
333	fn note_requested_preimage(s: u32, ) -> Weight {
334		// Proof Size summary in bytes:
335		//  Measured:  `0`
336		//  Estimated: `3556`
337		// Minimum execution time: 11_867_000 picoseconds.
338		Weight::from_parts(12_175_000, 3556)
339			// Standard Error: 133
340			.saturating_add(Weight::from_parts(13_488, 0).saturating_mul(s.into()))
341			.saturating_add(RocksDbWeight::get().reads(2_u64))
342			.saturating_add(RocksDbWeight::get().writes(2_u64))
343	}
344	/// Storage: `Preimage::StatusFor` (r:1 w:0)
345	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
346	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
347	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
348	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
349	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
350	/// The range of component `s` is `[0, 4194304]`.
351	fn note_no_deposit_preimage(s: u32, ) -> Weight {
352		// Proof Size summary in bytes:
353		//  Measured:  `0`
354		//  Estimated: `3556`
355		// Minimum execution time: 10_925_000 picoseconds.
356		Weight::from_parts(11_052_000, 3556)
357			// Standard Error: 133
358			.saturating_add(Weight::from_parts(13_491, 0).saturating_mul(s.into()))
359			.saturating_add(RocksDbWeight::get().reads(2_u64))
360			.saturating_add(RocksDbWeight::get().writes(2_u64))
361	}
362	/// Storage: `Preimage::StatusFor` (r:1 w:0)
363	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
364	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
365	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
366	/// Storage: `Balances::Holds` (r:1 w:1)
367	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(427), added: 2902, mode: `MaxEncodedLen`)
368	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
369	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
370	fn unnote_preimage() -> Weight {
371		// Proof Size summary in bytes:
372		//  Measured:  `130`
373		//  Estimated: `3892`
374		// Minimum execution time: 48_912_000 picoseconds.
375		Weight::from_parts(50_830_000, 3892)
376			.saturating_add(RocksDbWeight::get().reads(3_u64))
377			.saturating_add(RocksDbWeight::get().writes(3_u64))
378	}
379	/// Storage: `Preimage::StatusFor` (r:1 w:0)
380	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
381	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
382	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
383	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
384	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
385	fn unnote_no_deposit_preimage() -> Weight {
386		// Proof Size summary in bytes:
387		//  Measured:  `30`
388		//  Estimated: `3556`
389		// Minimum execution time: 21_655_000 picoseconds.
390		Weight::from_parts(24_435_000, 3556)
391			.saturating_add(RocksDbWeight::get().reads(2_u64))
392			.saturating_add(RocksDbWeight::get().writes(2_u64))
393	}
394	/// Storage: `Preimage::StatusFor` (r:1 w:0)
395	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
396	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
397	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
398	fn request_preimage() -> Weight {
399		// Proof Size summary in bytes:
400		//  Measured:  `74`
401		//  Estimated: `3556`
402		// Minimum execution time: 18_283_000 picoseconds.
403		Weight::from_parts(19_292_000, 3556)
404			.saturating_add(RocksDbWeight::get().reads(2_u64))
405			.saturating_add(RocksDbWeight::get().writes(1_u64))
406	}
407	/// Storage: `Preimage::StatusFor` (r:1 w:0)
408	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
409	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
410	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
411	fn request_no_deposit_preimage() -> Weight {
412		// Proof Size summary in bytes:
413		//  Measured:  `30`
414		//  Estimated: `3556`
415		// Minimum execution time: 12_317_000 picoseconds.
416		Weight::from_parts(13_510_000, 3556)
417			.saturating_add(RocksDbWeight::get().reads(2_u64))
418			.saturating_add(RocksDbWeight::get().writes(1_u64))
419	}
420	/// Storage: `Preimage::StatusFor` (r:1 w:0)
421	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
422	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
423	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
424	fn request_unnoted_preimage() -> Weight {
425		// Proof Size summary in bytes:
426		//  Measured:  `0`
427		//  Estimated: `3556`
428		// Minimum execution time: 12_145_000 picoseconds.
429		Weight::from_parts(12_538_000, 3556)
430			.saturating_add(RocksDbWeight::get().reads(2_u64))
431			.saturating_add(RocksDbWeight::get().writes(1_u64))
432	}
433	/// Storage: `Preimage::StatusFor` (r:1 w:0)
434	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
435	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
436	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
437	fn request_requested_preimage() -> Weight {
438		// Proof Size summary in bytes:
439		//  Measured:  `0`
440		//  Estimated: `3556`
441		// Minimum execution time: 6_853_000 picoseconds.
442		Weight::from_parts(7_180_000, 3556)
443			.saturating_add(RocksDbWeight::get().reads(2_u64))
444			.saturating_add(RocksDbWeight::get().writes(1_u64))
445	}
446	/// Storage: `Preimage::StatusFor` (r:1 w:0)
447	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
448	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
449	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
450	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
451	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
452	fn unrequest_preimage() -> Weight {
453		// Proof Size summary in bytes:
454		//  Measured:  `30`
455		//  Estimated: `3556`
456		// Minimum execution time: 19_099_000 picoseconds.
457		Weight::from_parts(20_209_000, 3556)
458			.saturating_add(RocksDbWeight::get().reads(2_u64))
459			.saturating_add(RocksDbWeight::get().writes(2_u64))
460	}
461	/// Storage: `Preimage::StatusFor` (r:1 w:0)
462	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
463	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
464	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
465	fn unrequest_unnoted_preimage() -> Weight {
466		// Proof Size summary in bytes:
467		//  Measured:  `0`
468		//  Estimated: `3556`
469		// Minimum execution time: 6_847_000 picoseconds.
470		Weight::from_parts(7_034_000, 3556)
471			.saturating_add(RocksDbWeight::get().reads(2_u64))
472			.saturating_add(RocksDbWeight::get().writes(1_u64))
473	}
474	/// Storage: `Preimage::StatusFor` (r:1 w:0)
475	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
476	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
477	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
478	fn unrequest_multi_referenced_preimage() -> Weight {
479		// Proof Size summary in bytes:
480		//  Measured:  `0`
481		//  Estimated: `3556`
482		// Minimum execution time: 6_767_000 picoseconds.
483		Weight::from_parts(7_056_000, 3556)
484			.saturating_add(RocksDbWeight::get().reads(2_u64))
485			.saturating_add(RocksDbWeight::get().writes(1_u64))
486	}
487	/// Storage: `Preimage::StatusFor` (r:1023 w:1023)
488	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
489	/// Storage: `System::Account` (r:1023 w:1023)
490	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
491	/// Storage: `Parameters::Parameters` (r:2 w:0)
492	/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
493	/// Storage: `Balances::Holds` (r:1023 w:1023)
494	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(427), added: 2902, mode: `MaxEncodedLen`)
495	/// Storage: `Preimage::RequestStatusFor` (r:0 w:1023)
496	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
497	/// The range of component `n` is `[1, 1024]`.
498	fn ensure_updated(n: u32, ) -> Weight {
499		// Proof Size summary in bytes:
500		//  Measured:  `0 + n * (227 ±0)`
501		//  Estimated: `28584 + n * (2902 ±0)`
502		// Minimum execution time: 54_553_000 picoseconds.
503		Weight::from_parts(56_817_000, 28584)
504			// Standard Error: 37_902
505			.saturating_add(Weight::from_parts(59_397_441, 0).saturating_mul(n.into()))
506			.saturating_add(RocksDbWeight::get().reads(2_u64))
507			.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(n.into())))
508			.saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(n.into())))
509			.saturating_add(Weight::from_parts(0, 2902).saturating_mul(n.into()))
510	}
511}