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_assets
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
21
//! DATE: 2025-05-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `benchmark-1`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// target/release/container-chain-frontier-node
28
// benchmark
29
// pallet
30
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// pallet_assets
34
// --extrinsic
35
// *
36
// --chain=dev
37
// --steps
38
// 50
39
// --repeat
40
// 20
41
// --template=benchmarking/frame-weight-runtime-template.hbs
42
// --json-file
43
// raw.json
44
// --output
45
// tmp/frontier_template_weights/pallet_assets.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
/// Weights for pallet_assets using the Substrate node and recommended hardware.
55
pub struct SubstrateWeight<T>(PhantomData<T>);
56
impl<T: frame_system::Config> pallet_assets::WeightInfo for SubstrateWeight<T> {
57
	fn create() -> Weight {
58
		// Proof Size summary in bytes:
59
		//  Measured:  `0`
60
		//  Estimated: `0`
61
		// Minimum execution time: 0_000 picoseconds.
62
		Weight::from_parts(0, 0)
63
	}
64
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
65
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
66
	/// Storage: `ForeignAssets::NextAssetId` (r:1 w:0)
67
	/// Proof: `ForeignAssets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
68
	fn force_create() -> Weight {
69
		// Proof Size summary in bytes:
70
		//  Measured:  `3`
71
		//  Estimated: `3625`
72
		// Minimum execution time: 13_451_000 picoseconds.
73
		Weight::from_parts(13_721_000, 3625)
74
			.saturating_add(T::DbWeight::get().reads(2_u64))
75
			.saturating_add(T::DbWeight::get().writes(1_u64))
76
	}
77
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
78
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
79
	fn start_destroy() -> Weight {
80
		// Proof Size summary in bytes:
81
		//  Measured:  `225`
82
		//  Estimated: `3625`
83
		// Minimum execution time: 14_885_000 picoseconds.
84
		Weight::from_parts(15_111_000, 3625)
85
			.saturating_add(T::DbWeight::get().reads(1_u64))
86
			.saturating_add(T::DbWeight::get().writes(1_u64))
87
	}
88
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
89
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
90
	/// Storage: `ForeignAssets::Account` (r:1001 w:1000)
91
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
92
	/// Storage: `System::Account` (r:1000 w:1000)
93
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
94
	/// The range of component `c` is `[0, 1000]`.
95
	fn destroy_accounts(c: u32, ) -> Weight {
96
		// Proof Size summary in bytes:
97
		//  Measured:  `176 + c * (183 ±0)`
98
		//  Estimated: `3625 + c * (2591 ±0)`
99
		// Minimum execution time: 19_263_000 picoseconds.
100
		Weight::from_parts(19_310_000, 3625)
101
			// Standard Error: 8_109
102
			.saturating_add(Weight::from_parts(16_363_462, 0).saturating_mul(c.into()))
103
			.saturating_add(T::DbWeight::get().reads(2_u64))
104
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into())))
105
			.saturating_add(T::DbWeight::get().writes(1_u64))
106
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(c.into())))
107
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(c.into()))
108
	}
109
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
110
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
111
	/// Storage: `ForeignAssets::Approvals` (r:1001 w:1000)
112
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
113
	/// The range of component `a` is `[0, 1000]`.
114
	fn destroy_approvals(a: u32, ) -> Weight {
115
		// Proof Size summary in bytes:
116
		//  Measured:  `370 + a * (74 ±0)`
117
		//  Estimated: `3625 + a * (2597 ±0)`
118
		// Minimum execution time: 20_426_000 picoseconds.
119
		Weight::from_parts(20_843_000, 3625)
120
			// Standard Error: 3_638
121
			.saturating_add(Weight::from_parts(6_312_839, 0).saturating_mul(a.into()))
122
			.saturating_add(T::DbWeight::get().reads(2_u64))
123
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into())))
124
			.saturating_add(T::DbWeight::get().writes(1_u64))
125
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(a.into())))
126
			.saturating_add(Weight::from_parts(0, 2597).saturating_mul(a.into()))
127
	}
128
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
129
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
130
	/// Storage: `ForeignAssets::Metadata` (r:1 w:0)
131
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
132
	fn finish_destroy() -> Weight {
133
		// Proof Size summary in bytes:
134
		//  Measured:  `191`
135
		//  Estimated: `3625`
136
		// Minimum execution time: 16_015_000 picoseconds.
137
		Weight::from_parts(16_354_000, 3625)
138
			.saturating_add(T::DbWeight::get().reads(2_u64))
139
			.saturating_add(T::DbWeight::get().writes(1_u64))
140
	}
141
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
142
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
143
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
144
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
145
	fn mint() -> Weight {
146
		// Proof Size summary in bytes:
147
		//  Measured:  `191`
148
		//  Estimated: `3625`
149
		// Minimum execution time: 28_108_000 picoseconds.
150
		Weight::from_parts(28_757_000, 3625)
151
			.saturating_add(T::DbWeight::get().reads(2_u64))
152
			.saturating_add(T::DbWeight::get().writes(2_u64))
153
	}
154
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
155
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
156
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
157
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
158
	fn burn() -> Weight {
159
		// Proof Size summary in bytes:
160
		//  Measured:  `285`
161
		//  Estimated: `3625`
162
		// Minimum execution time: 38_453_000 picoseconds.
163
		Weight::from_parts(39_095_000, 3625)
164
			.saturating_add(T::DbWeight::get().reads(2_u64))
165
			.saturating_add(T::DbWeight::get().writes(2_u64))
166
	}
167
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
168
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
169
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
170
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
171
	/// Storage: `System::Account` (r:1 w:1)
172
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
173
	fn transfer() -> Weight {
174
		// Proof Size summary in bytes:
175
		//  Measured:  `376`
176
		//  Estimated: `6156`
177
		// Minimum execution time: 53_444_000 picoseconds.
178
		Weight::from_parts(54_470_000, 6156)
179
			.saturating_add(T::DbWeight::get().reads(4_u64))
180
			.saturating_add(T::DbWeight::get().writes(4_u64))
181
	}
182
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
183
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
184
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
185
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
186
	/// Storage: `System::Account` (r:1 w:1)
187
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
188
	fn transfer_keep_alive() -> Weight {
189
		// Proof Size summary in bytes:
190
		//  Measured:  `376`
191
		//  Estimated: `6156`
192
		// Minimum execution time: 48_401_000 picoseconds.
193
		Weight::from_parts(49_269_000, 6156)
194
			.saturating_add(T::DbWeight::get().reads(4_u64))
195
			.saturating_add(T::DbWeight::get().writes(4_u64))
196
	}
197
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
198
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
199
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
200
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
201
	/// Storage: `System::Account` (r:1 w:1)
202
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
203
	fn force_transfer() -> Weight {
204
		// Proof Size summary in bytes:
205
		//  Measured:  `376`
206
		//  Estimated: `6156`
207
		// Minimum execution time: 53_635_000 picoseconds.
208
		Weight::from_parts(54_161_000, 6156)
209
			.saturating_add(T::DbWeight::get().reads(4_u64))
210
			.saturating_add(T::DbWeight::get().writes(4_u64))
211
	}
212
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
213
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
214
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
215
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
216
	fn freeze() -> Weight {
217
		// Proof Size summary in bytes:
218
		//  Measured:  `285`
219
		//  Estimated: `3625`
220
		// Minimum execution time: 19_784_000 picoseconds.
221
		Weight::from_parts(20_269_000, 3625)
222
			.saturating_add(T::DbWeight::get().reads(2_u64))
223
			.saturating_add(T::DbWeight::get().writes(1_u64))
224
	}
225
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
226
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
227
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
228
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
229
	fn thaw() -> Weight {
230
		// Proof Size summary in bytes:
231
		//  Measured:  `285`
232
		//  Estimated: `3625`
233
		// Minimum execution time: 19_719_000 picoseconds.
234
		Weight::from_parts(20_338_000, 3625)
235
			.saturating_add(T::DbWeight::get().reads(2_u64))
236
			.saturating_add(T::DbWeight::get().writes(1_u64))
237
	}
238
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
239
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
240
	fn freeze_asset() -> Weight {
241
		// Proof Size summary in bytes:
242
		//  Measured:  `225`
243
		//  Estimated: `3625`
244
		// Minimum execution time: 14_304_000 picoseconds.
245
		Weight::from_parts(14_719_000, 3625)
246
			.saturating_add(T::DbWeight::get().reads(1_u64))
247
			.saturating_add(T::DbWeight::get().writes(1_u64))
248
	}
249
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
250
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
251
	fn thaw_asset() -> Weight {
252
		// Proof Size summary in bytes:
253
		//  Measured:  `225`
254
		//  Estimated: `3625`
255
		// Minimum execution time: 14_340_000 picoseconds.
256
		Weight::from_parts(14_706_000, 3625)
257
			.saturating_add(T::DbWeight::get().reads(1_u64))
258
			.saturating_add(T::DbWeight::get().writes(1_u64))
259
	}
260
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
261
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
262
	/// Storage: `ForeignAssets::Metadata` (r:1 w:0)
263
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
264
	fn transfer_ownership() -> Weight {
265
		// Proof Size summary in bytes:
266
		//  Measured:  `191`
267
		//  Estimated: `3625`
268
		// Minimum execution time: 16_320_000 picoseconds.
269
		Weight::from_parts(16_995_000, 3625)
270
			.saturating_add(T::DbWeight::get().reads(2_u64))
271
			.saturating_add(T::DbWeight::get().writes(1_u64))
272
	}
273
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
274
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
275
	fn set_team() -> Weight {
276
		// Proof Size summary in bytes:
277
		//  Measured:  `191`
278
		//  Estimated: `3625`
279
		// Minimum execution time: 14_425_000 picoseconds.
280
		Weight::from_parts(14_757_000, 3625)
281
			.saturating_add(T::DbWeight::get().reads(1_u64))
282
			.saturating_add(T::DbWeight::get().writes(1_u64))
283
	}
284
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
285
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
286
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
287
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
288
	/// The range of component `n` is `[0, 50]`.
289
	/// The range of component `s` is `[0, 50]`.
290
	fn set_metadata(n: u32, s: u32, ) -> Weight {
291
		// Proof Size summary in bytes:
292
		//  Measured:  `191`
293
		//  Estimated: `3625`
294
		// Minimum execution time: 17_348_000 picoseconds.
295
		Weight::from_parts(18_195_406, 3625)
296
			// Standard Error: 446
297
			.saturating_add(Weight::from_parts(3_153, 0).saturating_mul(n.into()))
298
			// Standard Error: 446
299
			.saturating_add(Weight::from_parts(1_789, 0).saturating_mul(s.into()))
300
			.saturating_add(T::DbWeight::get().reads(2_u64))
301
			.saturating_add(T::DbWeight::get().writes(1_u64))
302
	}
303
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
304
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
305
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
306
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
307
	fn clear_metadata() -> Weight {
308
		// Proof Size summary in bytes:
309
		//  Measured:  `353`
310
		//  Estimated: `3625`
311
		// Minimum execution time: 18_704_000 picoseconds.
312
		Weight::from_parts(19_187_000, 3625)
313
			.saturating_add(T::DbWeight::get().reads(2_u64))
314
			.saturating_add(T::DbWeight::get().writes(1_u64))
315
	}
316
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
317
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
318
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
319
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
320
	/// The range of component `n` is `[0, 50]`.
321
	/// The range of component `s` is `[0, 50]`.
322
	fn force_set_metadata(_n: u32, s: u32, ) -> Weight {
323
		// Proof Size summary in bytes:
324
		//  Measured:  `78`
325
		//  Estimated: `3625`
326
		// Minimum execution time: 15_577_000 picoseconds.
327
		Weight::from_parts(16_241_466, 3625)
328
			// Standard Error: 321
329
			.saturating_add(Weight::from_parts(766, 0).saturating_mul(s.into()))
330
			.saturating_add(T::DbWeight::get().reads(2_u64))
331
			.saturating_add(T::DbWeight::get().writes(1_u64))
332
	}
333
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
334
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
335
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
336
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
337
	fn force_clear_metadata() -> Weight {
338
		// Proof Size summary in bytes:
339
		//  Measured:  `353`
340
		//  Estimated: `3625`
341
		// Minimum execution time: 18_345_000 picoseconds.
342
		Weight::from_parts(18_913_000, 3625)
343
			.saturating_add(T::DbWeight::get().reads(2_u64))
344
			.saturating_add(T::DbWeight::get().writes(1_u64))
345
	}
346
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
347
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
348
	fn force_asset_status() -> Weight {
349
		// Proof Size summary in bytes:
350
		//  Measured:  `191`
351
		//  Estimated: `3625`
352
		// Minimum execution time: 13_935_000 picoseconds.
353
		Weight::from_parts(14_366_000, 3625)
354
			.saturating_add(T::DbWeight::get().reads(1_u64))
355
			.saturating_add(T::DbWeight::get().writes(1_u64))
356
	}
357
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
358
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
359
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
360
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
361
	fn approve_transfer() -> Weight {
362
		// Proof Size summary in bytes:
363
		//  Measured:  `225`
364
		//  Estimated: `3625`
365
		// Minimum execution time: 22_534_000 picoseconds.
366
		Weight::from_parts(23_182_000, 3625)
367
			.saturating_add(T::DbWeight::get().reads(2_u64))
368
			.saturating_add(T::DbWeight::get().writes(2_u64))
369
	}
370
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
371
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
372
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
373
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
374
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
375
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
376
	/// Storage: `System::Account` (r:1 w:1)
377
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
378
	fn transfer_approved() -> Weight {
379
		// Proof Size summary in bytes:
380
		//  Measured:  `429`
381
		//  Estimated: `6156`
382
		// Minimum execution time: 65_419_000 picoseconds.
383
		Weight::from_parts(66_326_000, 6156)
384
			.saturating_add(T::DbWeight::get().reads(5_u64))
385
			.saturating_add(T::DbWeight::get().writes(5_u64))
386
	}
387
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
388
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
389
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
390
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
391
	fn cancel_approval() -> Weight {
392
		// Proof Size summary in bytes:
393
		//  Measured:  `369`
394
		//  Estimated: `3625`
395
		// Minimum execution time: 25_163_000 picoseconds.
396
		Weight::from_parts(25_735_000, 3625)
397
			.saturating_add(T::DbWeight::get().reads(2_u64))
398
			.saturating_add(T::DbWeight::get().writes(2_u64))
399
	}
400
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
401
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
402
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
403
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
404
	fn force_cancel_approval() -> Weight {
405
		// Proof Size summary in bytes:
406
		//  Measured:  `369`
407
		//  Estimated: `3625`
408
		// Minimum execution time: 25_438_000 picoseconds.
409
		Weight::from_parts(25_996_000, 3625)
410
			.saturating_add(T::DbWeight::get().reads(2_u64))
411
			.saturating_add(T::DbWeight::get().writes(2_u64))
412
	}
413
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
414
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
415
	fn set_min_balance() -> Weight {
416
		// Proof Size summary in bytes:
417
		//  Measured:  `191`
418
		//  Estimated: `3625`
419
		// Minimum execution time: 15_409_000 picoseconds.
420
		Weight::from_parts(15_674_000, 3625)
421
			.saturating_add(T::DbWeight::get().reads(1_u64))
422
			.saturating_add(T::DbWeight::get().writes(1_u64))
423
	}
424
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
425
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
426
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
427
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
428
	fn touch() -> Weight {
429
		// Proof Size summary in bytes:
430
		//  Measured:  `191`
431
		//  Estimated: `3625`
432
		// Minimum execution time: 21_552_000 picoseconds.
433
		Weight::from_parts(21_884_000, 3625)
434
			.saturating_add(T::DbWeight::get().reads(2_u64))
435
			.saturating_add(T::DbWeight::get().writes(2_u64))
436
	}
437
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
438
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
439
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
440
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
441
	fn touch_other() -> Weight {
442
		// Proof Size summary in bytes:
443
		//  Measured:  `191`
444
		//  Estimated: `3625`
445
		// Minimum execution time: 21_540_000 picoseconds.
446
		Weight::from_parts(21_918_000, 3625)
447
			.saturating_add(T::DbWeight::get().reads(2_u64))
448
			.saturating_add(T::DbWeight::get().writes(2_u64))
449
	}
450
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
451
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
452
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
453
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
454
	fn refund() -> Weight {
455
		// Proof Size summary in bytes:
456
		//  Measured:  `303`
457
		//  Estimated: `3625`
458
		// Minimum execution time: 19_464_000 picoseconds.
459
		Weight::from_parts(19_770_000, 3625)
460
			.saturating_add(T::DbWeight::get().reads(2_u64))
461
			.saturating_add(T::DbWeight::get().writes(2_u64))
462
	}
463
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
464
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
465
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
466
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
467
	fn refund_other() -> Weight {
468
		// Proof Size summary in bytes:
469
		//  Measured:  `323`
470
		//  Estimated: `3625`
471
		// Minimum execution time: 19_220_000 picoseconds.
472
		Weight::from_parts(19_675_000, 3625)
473
			.saturating_add(T::DbWeight::get().reads(2_u64))
474
			.saturating_add(T::DbWeight::get().writes(2_u64))
475
	}
476
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
477
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
478
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
479
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
480
	fn block() -> Weight {
481
		// Proof Size summary in bytes:
482
		//  Measured:  `285`
483
		//  Estimated: `3625`
484
		// Minimum execution time: 19_520_000 picoseconds.
485
		Weight::from_parts(20_073_000, 3625)
486
			.saturating_add(T::DbWeight::get().reads(2_u64))
487
			.saturating_add(T::DbWeight::get().writes(1_u64))
488
	}
489
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
490
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
491
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
492
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
493
	/// Storage: `System::Account` (r:1 w:1)
494
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
495
	fn transfer_all() -> Weight {
496
		// Proof Size summary in bytes:
497
		//  Measured:  `376`
498
		//  Estimated: `6156`
499
		// Minimum execution time: 65_240_000 picoseconds.
500
		Weight::from_parts(66_526_000, 6156)
501
			.saturating_add(T::DbWeight::get().reads(4_u64))
502
			.saturating_add(T::DbWeight::get().writes(4_u64))
503
	}
504
}