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
//! Autogenerated weights for `pallet_preimage`
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
21
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
24
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
25

            
26
// Executed Command:
27
// ./target/production/substrate-node
28
// benchmark
29
// pallet
30
// --chain=dev
31
// --steps=50
32
// --repeat=20
33
// --pallet=pallet_preimage
34
// --no-storage-info
35
// --no-median-slopes
36
// --no-min-squares
37
// --extrinsic=*
38
// --wasm-execution=compiled
39
// --heap-pages=4096
40
// --output=./substrate/frame/preimage/src/weights.rs
41
// --header=./substrate/HEADER-APACHE2
42
// --template=./substrate/.maintain/frame-weight-template.hbs
43

            
44
#![cfg_attr(rustfmt, rustfmt_skip)]
45
#![allow(unused_parens)]
46
#![allow(unused_imports)]
47
#![allow(missing_docs)]
48

            
49
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
50
use core::marker::PhantomData;
51

            
52
/// Weight functions needed for `pallet_preimage`.
53
pub trait WeightInfo {
54
	fn note_preimage(s: u32, ) -> Weight;
55
	fn note_requested_preimage(s: u32, ) -> Weight;
56
	fn note_no_deposit_preimage(s: u32, ) -> Weight;
57
	fn unnote_preimage() -> Weight;
58
	fn unnote_no_deposit_preimage() -> Weight;
59
	fn request_preimage() -> Weight;
60
	fn request_no_deposit_preimage() -> Weight;
61
	fn request_unnoted_preimage() -> Weight;
62
	fn request_requested_preimage() -> Weight;
63
	fn unrequest_preimage() -> Weight;
64
	fn unrequest_unnoted_preimage() -> Weight;
65
	fn unrequest_multi_referenced_preimage() -> Weight;
66
	fn ensure_updated(n: u32, ) -> Weight;
67
}
68

            
69
/// Weights for `pallet_preimage` using the Substrate node and recommended hardware.
70
pub struct SubstrateWeight<T>(PhantomData<T>);
71
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
72
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
73
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
74
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
75
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
76
	/// Storage: `Parameters::Parameters` (r:2 w:0)
77
	/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
78
	/// Storage: `Balances::Holds` (r:1 w:1)
79
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
80
	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
81
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
82
	/// The range of component `s` is `[0, 4194304]`.
83
	fn note_preimage(s: u32, ) -> Weight {
84
		// Proof Size summary in bytes:
85
		//  Measured:  `112`
86
		//  Estimated: `6012`
87
		// Minimum execution time: 52_531_000 picoseconds.
88
		Weight::from_parts(53_245_000, 6012)
89
			// Standard Error: 1
90
			.saturating_add(Weight::from_parts(1_744, 0).saturating_mul(s.into()))
91
			.saturating_add(T::DbWeight::get().reads(5_u64))
92
			.saturating_add(T::DbWeight::get().writes(3_u64))
93
	}
94
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
95
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
96
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
97
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
98
	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
99
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
100
	/// The range of component `s` is `[0, 4194304]`.
101
	fn note_requested_preimage(s: u32, ) -> Weight {
102
		// Proof Size summary in bytes:
103
		//  Measured:  `173`
104
		//  Estimated: `3556`
105
		// Minimum execution time: 15_601_000 picoseconds.
106
		Weight::from_parts(15_871_000, 3556)
107
			// Standard Error: 2
108
			.saturating_add(Weight::from_parts(1_836, 0).saturating_mul(s.into()))
109
			.saturating_add(T::DbWeight::get().reads(2_u64))
110
			.saturating_add(T::DbWeight::get().writes(2_u64))
111
	}
112
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
113
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
114
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
115
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
116
	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
117
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
118
	/// The range of component `s` is `[0, 4194304]`.
119
	fn note_no_deposit_preimage(s: u32, ) -> Weight {
120
		// Proof Size summary in bytes:
121
		//  Measured:  `173`
122
		//  Estimated: `3556`
123
		// Minimum execution time: 15_614_000 picoseconds.
124
		Weight::from_parts(15_934_000, 3556)
125
			// Standard Error: 2
126
			.saturating_add(Weight::from_parts(1_832, 0).saturating_mul(s.into()))
127
			.saturating_add(T::DbWeight::get().reads(2_u64))
128
			.saturating_add(T::DbWeight::get().writes(2_u64))
129
	}
130
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
131
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
132
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
133
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
134
	/// Storage: `Balances::Holds` (r:1 w:1)
135
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
136
	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
137
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
138
	fn unnote_preimage() -> Weight {
139
		// Proof Size summary in bytes:
140
		//  Measured:  `311`
141
		//  Estimated: `3658`
142
		// Minimum execution time: 53_001_000 picoseconds.
143
		Weight::from_parts(55_866_000, 3658)
144
			.saturating_add(T::DbWeight::get().reads(3_u64))
145
			.saturating_add(T::DbWeight::get().writes(3_u64))
146
	}
147
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
148
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
149
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
150
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
151
	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
152
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
153
	fn unnote_no_deposit_preimage() -> Weight {
154
		// Proof Size summary in bytes:
155
		//  Measured:  `211`
156
		//  Estimated: `3556`
157
		// Minimum execution time: 26_901_000 picoseconds.
158
		Weight::from_parts(28_079_000, 3556)
159
			.saturating_add(T::DbWeight::get().reads(2_u64))
160
			.saturating_add(T::DbWeight::get().writes(2_u64))
161
	}
162
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
163
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
164
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
165
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
166
	fn request_preimage() -> Weight {
167
		// Proof Size summary in bytes:
168
		//  Measured:  `255`
169
		//  Estimated: `3556`
170
		// Minimum execution time: 21_716_000 picoseconds.
171
		Weight::from_parts(25_318_000, 3556)
172
			.saturating_add(T::DbWeight::get().reads(2_u64))
173
			.saturating_add(T::DbWeight::get().writes(1_u64))
174
	}
175
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
176
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
177
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
178
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
179
	fn request_no_deposit_preimage() -> Weight {
180
		// Proof Size summary in bytes:
181
		//  Measured:  `211`
182
		//  Estimated: `3556`
183
		// Minimum execution time: 13_890_000 picoseconds.
184
		Weight::from_parts(14_744_000, 3556)
185
			.saturating_add(T::DbWeight::get().reads(2_u64))
186
			.saturating_add(T::DbWeight::get().writes(1_u64))
187
	}
188
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
189
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
190
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
191
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
192
	fn request_unnoted_preimage() -> Weight {
193
		// Proof Size summary in bytes:
194
		//  Measured:  `109`
195
		//  Estimated: `3556`
196
		// Minimum execution time: 14_192_000 picoseconds.
197
		Weight::from_parts(15_113_000, 3556)
198
			.saturating_add(T::DbWeight::get().reads(2_u64))
199
			.saturating_add(T::DbWeight::get().writes(1_u64))
200
	}
201
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
202
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
203
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
204
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
205
	fn request_requested_preimage() -> Weight {
206
		// Proof Size summary in bytes:
207
		//  Measured:  `173`
208
		//  Estimated: `3556`
209
		// Minimum execution time: 9_909_000 picoseconds.
210
		Weight::from_parts(10_134_000, 3556)
211
			.saturating_add(T::DbWeight::get().reads(2_u64))
212
			.saturating_add(T::DbWeight::get().writes(1_u64))
213
	}
214
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
215
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
216
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
217
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
218
	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
219
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
220
	fn unrequest_preimage() -> Weight {
221
		// Proof Size summary in bytes:
222
		//  Measured:  `211`
223
		//  Estimated: `3556`
224
		// Minimum execution time: 21_725_000 picoseconds.
225
		Weight::from_parts(24_058_000, 3556)
226
			.saturating_add(T::DbWeight::get().reads(2_u64))
227
			.saturating_add(T::DbWeight::get().writes(2_u64))
228
	}
229
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
230
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
231
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
232
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
233
	fn unrequest_unnoted_preimage() -> Weight {
234
		// Proof Size summary in bytes:
235
		//  Measured:  `173`
236
		//  Estimated: `3556`
237
		// Minimum execution time: 9_854_000 picoseconds.
238
		Weight::from_parts(10_175_000, 3556)
239
			.saturating_add(T::DbWeight::get().reads(2_u64))
240
			.saturating_add(T::DbWeight::get().writes(1_u64))
241
	}
242
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
243
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
244
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
245
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
246
	fn unrequest_multi_referenced_preimage() -> Weight {
247
		// Proof Size summary in bytes:
248
		//  Measured:  `173`
249
		//  Estimated: `3556`
250
		// Minimum execution time: 10_143_000 picoseconds.
251
		Weight::from_parts(10_539_000, 3556)
252
			.saturating_add(T::DbWeight::get().reads(2_u64))
253
			.saturating_add(T::DbWeight::get().writes(1_u64))
254
	}
255
	/// Storage: `Preimage::StatusFor` (r:1023 w:1023)
256
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
257
	/// Storage: `System::Account` (r:1023 w:1023)
258
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
259
	/// Storage: `Parameters::Parameters` (r:2 w:0)
260
	/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
261
	/// Storage: `Balances::Holds` (r:1023 w:1023)
262
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
263
	/// Storage: `Preimage::RequestStatusFor` (r:0 w:1023)
264
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
265
	/// The range of component `n` is `[1, 1024]`.
266
	fn ensure_updated(n: u32, ) -> Weight {
267
		// Proof Size summary in bytes:
268
		//  Measured:  `0 + n * (227 ±0)`
269
		//  Estimated: `6012 + n * (2668 ±0)`
270
		// Minimum execution time: 59_384_000 picoseconds.
271
		Weight::from_parts(60_000_000, 6012)
272
			// Standard Error: 39_890
273
			.saturating_add(Weight::from_parts(56_317_686, 0).saturating_mul(n.into()))
274
			.saturating_add(T::DbWeight::get().reads(2_u64))
275
			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into())))
276
			.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(n.into())))
277
			.saturating_add(Weight::from_parts(0, 2668).saturating_mul(n.into()))
278
	}
279
}
280

            
281
// For backwards compatibility and tests.
282
impl WeightInfo for () {
283
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
284
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
285
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
286
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
287
	/// Storage: `Parameters::Parameters` (r:2 w:0)
288
	/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
289
	/// Storage: `Balances::Holds` (r:1 w:1)
290
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
291
	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
292
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
293
	/// The range of component `s` is `[0, 4194304]`.
294
	fn note_preimage(s: u32, ) -> Weight {
295
		// Proof Size summary in bytes:
296
		//  Measured:  `112`
297
		//  Estimated: `6012`
298
		// Minimum execution time: 52_531_000 picoseconds.
299
		Weight::from_parts(53_245_000, 6012)
300
			// Standard Error: 1
301
			.saturating_add(Weight::from_parts(1_744, 0).saturating_mul(s.into()))
302
			.saturating_add(RocksDbWeight::get().reads(5_u64))
303
			.saturating_add(RocksDbWeight::get().writes(3_u64))
304
	}
305
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
306
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
307
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
308
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
309
	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
310
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
311
	/// The range of component `s` is `[0, 4194304]`.
312
	fn note_requested_preimage(s: u32, ) -> Weight {
313
		// Proof Size summary in bytes:
314
		//  Measured:  `173`
315
		//  Estimated: `3556`
316
		// Minimum execution time: 15_601_000 picoseconds.
317
		Weight::from_parts(15_871_000, 3556)
318
			// Standard Error: 2
319
			.saturating_add(Weight::from_parts(1_836, 0).saturating_mul(s.into()))
320
			.saturating_add(RocksDbWeight::get().reads(2_u64))
321
			.saturating_add(RocksDbWeight::get().writes(2_u64))
322
	}
323
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
324
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
325
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
326
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
327
	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
328
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
329
	/// The range of component `s` is `[0, 4194304]`.
330
	fn note_no_deposit_preimage(s: u32, ) -> Weight {
331
		// Proof Size summary in bytes:
332
		//  Measured:  `173`
333
		//  Estimated: `3556`
334
		// Minimum execution time: 15_614_000 picoseconds.
335
		Weight::from_parts(15_934_000, 3556)
336
			// Standard Error: 2
337
			.saturating_add(Weight::from_parts(1_832, 0).saturating_mul(s.into()))
338
			.saturating_add(RocksDbWeight::get().reads(2_u64))
339
			.saturating_add(RocksDbWeight::get().writes(2_u64))
340
	}
341
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
342
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
343
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
344
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
345
	/// Storage: `Balances::Holds` (r:1 w:1)
346
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
347
	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
348
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
349
	fn unnote_preimage() -> Weight {
350
		// Proof Size summary in bytes:
351
		//  Measured:  `311`
352
		//  Estimated: `3658`
353
		// Minimum execution time: 53_001_000 picoseconds.
354
		Weight::from_parts(55_866_000, 3658)
355
			.saturating_add(RocksDbWeight::get().reads(3_u64))
356
			.saturating_add(RocksDbWeight::get().writes(3_u64))
357
	}
358
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
359
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
360
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
361
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
362
	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
363
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
364
	fn unnote_no_deposit_preimage() -> Weight {
365
		// Proof Size summary in bytes:
366
		//  Measured:  `211`
367
		//  Estimated: `3556`
368
		// Minimum execution time: 26_901_000 picoseconds.
369
		Weight::from_parts(28_079_000, 3556)
370
			.saturating_add(RocksDbWeight::get().reads(2_u64))
371
			.saturating_add(RocksDbWeight::get().writes(2_u64))
372
	}
373
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
374
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
375
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
376
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
377
	fn request_preimage() -> Weight {
378
		// Proof Size summary in bytes:
379
		//  Measured:  `255`
380
		//  Estimated: `3556`
381
		// Minimum execution time: 21_716_000 picoseconds.
382
		Weight::from_parts(25_318_000, 3556)
383
			.saturating_add(RocksDbWeight::get().reads(2_u64))
384
			.saturating_add(RocksDbWeight::get().writes(1_u64))
385
	}
386
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
387
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
388
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
389
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
390
	fn request_no_deposit_preimage() -> Weight {
391
		// Proof Size summary in bytes:
392
		//  Measured:  `211`
393
		//  Estimated: `3556`
394
		// Minimum execution time: 13_890_000 picoseconds.
395
		Weight::from_parts(14_744_000, 3556)
396
			.saturating_add(RocksDbWeight::get().reads(2_u64))
397
			.saturating_add(RocksDbWeight::get().writes(1_u64))
398
	}
399
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
400
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
401
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
402
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
403
	fn request_unnoted_preimage() -> Weight {
404
		// Proof Size summary in bytes:
405
		//  Measured:  `109`
406
		//  Estimated: `3556`
407
		// Minimum execution time: 14_192_000 picoseconds.
408
		Weight::from_parts(15_113_000, 3556)
409
			.saturating_add(RocksDbWeight::get().reads(2_u64))
410
			.saturating_add(RocksDbWeight::get().writes(1_u64))
411
	}
412
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
413
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
414
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
415
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
416
	fn request_requested_preimage() -> Weight {
417
		// Proof Size summary in bytes:
418
		//  Measured:  `173`
419
		//  Estimated: `3556`
420
		// Minimum execution time: 9_909_000 picoseconds.
421
		Weight::from_parts(10_134_000, 3556)
422
			.saturating_add(RocksDbWeight::get().reads(2_u64))
423
			.saturating_add(RocksDbWeight::get().writes(1_u64))
424
	}
425
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
426
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
427
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
428
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
429
	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
430
	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
431
	fn unrequest_preimage() -> Weight {
432
		// Proof Size summary in bytes:
433
		//  Measured:  `211`
434
		//  Estimated: `3556`
435
		// Minimum execution time: 21_725_000 picoseconds.
436
		Weight::from_parts(24_058_000, 3556)
437
			.saturating_add(RocksDbWeight::get().reads(2_u64))
438
			.saturating_add(RocksDbWeight::get().writes(2_u64))
439
	}
440
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
441
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
442
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
443
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
444
	fn unrequest_unnoted_preimage() -> Weight {
445
		// Proof Size summary in bytes:
446
		//  Measured:  `173`
447
		//  Estimated: `3556`
448
		// Minimum execution time: 9_854_000 picoseconds.
449
		Weight::from_parts(10_175_000, 3556)
450
			.saturating_add(RocksDbWeight::get().reads(2_u64))
451
			.saturating_add(RocksDbWeight::get().writes(1_u64))
452
	}
453
	/// Storage: `Preimage::StatusFor` (r:1 w:0)
454
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
455
	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
456
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
457
	fn unrequest_multi_referenced_preimage() -> Weight {
458
		// Proof Size summary in bytes:
459
		//  Measured:  `173`
460
		//  Estimated: `3556`
461
		// Minimum execution time: 10_143_000 picoseconds.
462
		Weight::from_parts(10_539_000, 3556)
463
			.saturating_add(RocksDbWeight::get().reads(2_u64))
464
			.saturating_add(RocksDbWeight::get().writes(1_u64))
465
	}
466
	/// Storage: `Preimage::StatusFor` (r:1023 w:1023)
467
	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
468
	/// Storage: `System::Account` (r:1023 w:1023)
469
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
470
	/// Storage: `Parameters::Parameters` (r:2 w:0)
471
	/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
472
	/// Storage: `Balances::Holds` (r:1023 w:1023)
473
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
474
	/// Storage: `Preimage::RequestStatusFor` (r:0 w:1023)
475
	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
476
	/// The range of component `n` is `[1, 1024]`.
477
	fn ensure_updated(n: u32, ) -> Weight {
478
		// Proof Size summary in bytes:
479
		//  Measured:  `0 + n * (227 ±0)`
480
		//  Estimated: `6012 + n * (2668 ±0)`
481
		// Minimum execution time: 59_384_000 picoseconds.
482
		Weight::from_parts(60_000_000, 6012)
483
			// Standard Error: 39_890
484
			.saturating_add(Weight::from_parts(56_317_686, 0).saturating_mul(n.into()))
485
			.saturating_add(RocksDbWeight::get().reads(2_u64))
486
			.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(n.into())))
487
			.saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(n.into())))
488
			.saturating_add(Weight::from_parts(0, 2668).saturating_mul(n.into()))
489
	}
490
}