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 49.1.0
21
//! DATE: 2025-11-03, 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-simple-node
28
// benchmark
29
// pallet
30
// --wasm-execution=compiled
31
// --pallet
32
// pallet_assets
33
// --extrinsic
34
// *
35
// --chain=dev
36
// --steps
37
// 50
38
// --repeat
39
// 20
40
// --template=benchmarking/frame-weight-runtime-template.hbs
41
// --json-file
42
// raw.json
43
// --output
44
// tmp/simple_template_weights/pallet_assets.rs
45

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

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

            
53
/// Weights for pallet_assets using the Substrate node and recommended hardware.
54
pub struct SubstrateWeight<T>(PhantomData<T>);
55
impl<T: frame_system::Config> pallet_assets::WeightInfo for SubstrateWeight<T> {
56
	fn create() -> Weight {
57
		// Proof Size summary in bytes:
58
		//  Measured:  `0`
59
		//  Estimated: `0`
60
		// Minimum execution time: 0_000 picoseconds.
61
		Weight::from_parts(0, 0)
62
	}
63
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
64
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
65
	/// Storage: `ForeignAssets::NextAssetId` (r:1 w:0)
66
	/// Proof: `ForeignAssets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
67
	fn force_create() -> Weight {
68
		// Proof Size summary in bytes:
69
		//  Measured:  `3`
70
		//  Estimated: `3673`
71
		// Minimum execution time: 15_088_000 picoseconds.
72
		Weight::from_parts(15_333_000, 3673)
73
			.saturating_add(T::DbWeight::get().reads(2_u64))
74
			.saturating_add(T::DbWeight::get().writes(1_u64))
75
	}
76
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
77
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
78
	fn start_destroy() -> Weight {
79
		// Proof Size summary in bytes:
80
		//  Measured:  `273`
81
		//  Estimated: `3673`
82
		// Minimum execution time: 14_375_000 picoseconds.
83
		Weight::from_parts(14_559_000, 3673)
84
			.saturating_add(T::DbWeight::get().reads(1_u64))
85
			.saturating_add(T::DbWeight::get().writes(1_u64))
86
	}
87
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
88
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
89
	/// Storage: `ForeignAssets::Account` (r:1001 w:1000)
90
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
91
	/// Storage: `System::Account` (r:1000 w:1000)
92
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
93
	/// The range of component `c` is `[0, 1000]`.
94
	fn destroy_accounts(c: u32, ) -> Weight {
95
		// Proof Size summary in bytes:
96
		//  Measured:  `79 + c * (208 ±0)`
97
		//  Estimated: `3673 + c * (2607 ±0)`
98
		// Minimum execution time: 20_748_000 picoseconds.
99
		Weight::from_parts(20_949_000, 3673)
100
			// Standard Error: 13_230
101
			.saturating_add(Weight::from_parts(16_551_218, 0).saturating_mul(c.into()))
102
			.saturating_add(T::DbWeight::get().reads(2_u64))
103
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into())))
104
			.saturating_add(T::DbWeight::get().writes(1_u64))
105
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(c.into())))
106
			.saturating_add(Weight::from_parts(0, 2607).saturating_mul(c.into()))
107
	}
108
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
109
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
110
	/// Storage: `ForeignAssets::Approvals` (r:1001 w:1000)
111
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
112
	/// The range of component `a` is `[0, 1000]`.
113
	fn destroy_approvals(a: u32, ) -> Weight {
114
		// Proof Size summary in bytes:
115
		//  Measured:  `408 + a * (86 ±0)`
116
		//  Estimated: `3673 + a * (2621 ±0)`
117
		// Minimum execution time: 20_636_000 picoseconds.
118
		Weight::from_parts(20_843_000, 3673)
119
			// Standard Error: 4_031
120
			.saturating_add(Weight::from_parts(6_405_999, 0).saturating_mul(a.into()))
121
			.saturating_add(T::DbWeight::get().reads(2_u64))
122
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into())))
123
			.saturating_add(T::DbWeight::get().writes(1_u64))
124
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(a.into())))
125
			.saturating_add(Weight::from_parts(0, 2621).saturating_mul(a.into()))
126
	}
127
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
128
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
129
	/// Storage: `ForeignAssets::Metadata` (r:1 w:0)
130
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
131
	fn finish_destroy() -> Weight {
132
		// Proof Size summary in bytes:
133
		//  Measured:  `239`
134
		//  Estimated: `3673`
135
		// Minimum execution time: 17_082_000 picoseconds.
136
		Weight::from_parts(17_422_000, 3673)
137
			.saturating_add(T::DbWeight::get().reads(2_u64))
138
			.saturating_add(T::DbWeight::get().writes(1_u64))
139
	}
140
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
141
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
142
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
143
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
144
	fn mint() -> Weight {
145
		// Proof Size summary in bytes:
146
		//  Measured:  `239`
147
		//  Estimated: `3673`
148
		// Minimum execution time: 29_937_000 picoseconds.
149
		Weight::from_parts(30_184_000, 3673)
150
			.saturating_add(T::DbWeight::get().reads(2_u64))
151
			.saturating_add(T::DbWeight::get().writes(2_u64))
152
	}
153
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
154
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
155
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
156
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
157
	fn burn() -> Weight {
158
		// Proof Size summary in bytes:
159
		//  Measured:  `345`
160
		//  Estimated: `3673`
161
		// Minimum execution time: 38_550_000 picoseconds.
162
		Weight::from_parts(39_355_000, 3673)
163
			.saturating_add(T::DbWeight::get().reads(2_u64))
164
			.saturating_add(T::DbWeight::get().writes(2_u64))
165
	}
166
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
167
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
168
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
169
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
170
	/// Storage: `System::Account` (r:1 w:1)
171
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
172
	fn transfer() -> Weight {
173
		// Proof Size summary in bytes:
174
		//  Measured:  `384`
175
		//  Estimated: `6204`
176
		// Minimum execution time: 54_488_000 picoseconds.
177
		Weight::from_parts(55_542_000, 6204)
178
			.saturating_add(T::DbWeight::get().reads(4_u64))
179
			.saturating_add(T::DbWeight::get().writes(4_u64))
180
	}
181
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
182
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
183
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
184
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
185
	/// Storage: `System::Account` (r:1 w:1)
186
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
187
	fn transfer_keep_alive() -> Weight {
188
		// Proof Size summary in bytes:
189
		//  Measured:  `384`
190
		//  Estimated: `6204`
191
		// Minimum execution time: 49_320_000 picoseconds.
192
		Weight::from_parts(50_043_000, 6204)
193
			.saturating_add(T::DbWeight::get().reads(4_u64))
194
			.saturating_add(T::DbWeight::get().writes(4_u64))
195
	}
196
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
197
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
198
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
199
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
200
	/// Storage: `System::Account` (r:1 w:1)
201
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
202
	fn force_transfer() -> Weight {
203
		// Proof Size summary in bytes:
204
		//  Measured:  `384`
205
		//  Estimated: `6204`
206
		// Minimum execution time: 54_798_000 picoseconds.
207
		Weight::from_parts(55_887_000, 6204)
208
			.saturating_add(T::DbWeight::get().reads(4_u64))
209
			.saturating_add(T::DbWeight::get().writes(4_u64))
210
	}
211
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
212
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
213
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
214
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
215
	fn freeze() -> Weight {
216
		// Proof Size summary in bytes:
217
		//  Measured:  `345`
218
		//  Estimated: `3673`
219
		// Minimum execution time: 19_765_000 picoseconds.
220
		Weight::from_parts(20_086_000, 3673)
221
			.saturating_add(T::DbWeight::get().reads(2_u64))
222
			.saturating_add(T::DbWeight::get().writes(1_u64))
223
	}
224
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
225
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
226
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
227
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
228
	fn thaw() -> Weight {
229
		// Proof Size summary in bytes:
230
		//  Measured:  `345`
231
		//  Estimated: `3673`
232
		// Minimum execution time: 19_719_000 picoseconds.
233
		Weight::from_parts(20_257_000, 3673)
234
			.saturating_add(T::DbWeight::get().reads(2_u64))
235
			.saturating_add(T::DbWeight::get().writes(1_u64))
236
	}
237
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
238
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
239
	fn freeze_asset() -> Weight {
240
		// Proof Size summary in bytes:
241
		//  Measured:  `273`
242
		//  Estimated: `3673`
243
		// Minimum execution time: 14_328_000 picoseconds.
244
		Weight::from_parts(14_638_000, 3673)
245
			.saturating_add(T::DbWeight::get().reads(1_u64))
246
			.saturating_add(T::DbWeight::get().writes(1_u64))
247
	}
248
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
249
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
250
	fn thaw_asset() -> Weight {
251
		// Proof Size summary in bytes:
252
		//  Measured:  `273`
253
		//  Estimated: `3673`
254
		// Minimum execution time: 14_274_000 picoseconds.
255
		Weight::from_parts(14_634_000, 3673)
256
			.saturating_add(T::DbWeight::get().reads(1_u64))
257
			.saturating_add(T::DbWeight::get().writes(1_u64))
258
	}
259
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
260
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
261
	/// Storage: `ForeignAssets::Metadata` (r:1 w:0)
262
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
263
	fn transfer_ownership() -> Weight {
264
		// Proof Size summary in bytes:
265
		//  Measured:  `239`
266
		//  Estimated: `3673`
267
		// Minimum execution time: 17_491_000 picoseconds.
268
		Weight::from_parts(17_811_000, 3673)
269
			.saturating_add(T::DbWeight::get().reads(2_u64))
270
			.saturating_add(T::DbWeight::get().writes(1_u64))
271
	}
272
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
273
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
274
	fn set_team() -> Weight {
275
		// Proof Size summary in bytes:
276
		//  Measured:  `239`
277
		//  Estimated: `3673`
278
		// Minimum execution time: 15_180_000 picoseconds.
279
		Weight::from_parts(15_572_000, 3673)
280
			.saturating_add(T::DbWeight::get().reads(1_u64))
281
			.saturating_add(T::DbWeight::get().writes(1_u64))
282
	}
283
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
284
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
285
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
286
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
287
	/// The range of component `n` is `[0, 50]`.
288
	/// The range of component `s` is `[0, 50]`.
289
	fn set_metadata(n: u32, s: u32, ) -> Weight {
290
		// Proof Size summary in bytes:
291
		//  Measured:  `239`
292
		//  Estimated: `3673`
293
		// Minimum execution time: 17_145_000 picoseconds.
294
		Weight::from_parts(17_890_026, 3673)
295
			// Standard Error: 356
296
			.saturating_add(Weight::from_parts(248, 0).saturating_mul(n.into()))
297
			// Standard Error: 356
298
			.saturating_add(Weight::from_parts(1_863, 0).saturating_mul(s.into()))
299
			.saturating_add(T::DbWeight::get().reads(2_u64))
300
			.saturating_add(T::DbWeight::get().writes(1_u64))
301
	}
302
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
303
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
304
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
305
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
306
	fn clear_metadata() -> Weight {
307
		// Proof Size summary in bytes:
308
		//  Measured:  `401`
309
		//  Estimated: `3673`
310
		// Minimum execution time: 17_979_000 picoseconds.
311
		Weight::from_parts(18_533_000, 3673)
312
			.saturating_add(T::DbWeight::get().reads(2_u64))
313
			.saturating_add(T::DbWeight::get().writes(1_u64))
314
	}
315
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
316
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
317
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
318
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
319
	/// The range of component `n` is `[0, 50]`.
320
	/// The range of component `s` is `[0, 50]`.
321
	fn force_set_metadata(n: u32, s: u32, ) -> Weight {
322
		// Proof Size summary in bytes:
323
		//  Measured:  `78`
324
		//  Estimated: `3673`
325
		// Minimum execution time: 16_629_000 picoseconds.
326
		Weight::from_parts(17_157_814, 3673)
327
			// Standard Error: 314
328
			.saturating_add(Weight::from_parts(942, 0).saturating_mul(n.into()))
329
			// Standard Error: 314
330
			.saturating_add(Weight::from_parts(876, 0).saturating_mul(s.into()))
331
			.saturating_add(T::DbWeight::get().reads(2_u64))
332
			.saturating_add(T::DbWeight::get().writes(1_u64))
333
	}
334
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
335
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
336
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
337
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
338
	fn force_clear_metadata() -> Weight {
339
		// Proof Size summary in bytes:
340
		//  Measured:  `401`
341
		//  Estimated: `3673`
342
		// Minimum execution time: 17_857_000 picoseconds.
343
		Weight::from_parts(18_324_000, 3673)
344
			.saturating_add(T::DbWeight::get().reads(2_u64))
345
			.saturating_add(T::DbWeight::get().writes(1_u64))
346
	}
347
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
348
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
349
	fn force_asset_status() -> Weight {
350
		// Proof Size summary in bytes:
351
		//  Measured:  `239`
352
		//  Estimated: `3673`
353
		// Minimum execution time: 14_823_000 picoseconds.
354
		Weight::from_parts(15_159_000, 3673)
355
			.saturating_add(T::DbWeight::get().reads(1_u64))
356
			.saturating_add(T::DbWeight::get().writes(1_u64))
357
	}
358
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
359
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
360
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
361
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
362
	fn approve_transfer() -> Weight {
363
		// Proof Size summary in bytes:
364
		//  Measured:  `273`
365
		//  Estimated: `3673`
366
		// Minimum execution time: 22_398_000 picoseconds.
367
		Weight::from_parts(23_018_000, 3673)
368
			.saturating_add(T::DbWeight::get().reads(2_u64))
369
			.saturating_add(T::DbWeight::get().writes(2_u64))
370
	}
371
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
372
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
373
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
374
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
375
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
376
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
377
	/// Storage: `System::Account` (r:1 w:1)
378
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
379
	fn transfer_approved() -> Weight {
380
		// Proof Size summary in bytes:
381
		//  Measured:  `552`
382
		//  Estimated: `6204`
383
		// Minimum execution time: 67_594_000 picoseconds.
384
		Weight::from_parts(68_736_000, 6204)
385
			.saturating_add(T::DbWeight::get().reads(5_u64))
386
			.saturating_add(T::DbWeight::get().writes(5_u64))
387
	}
388
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
389
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
390
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
391
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
392
	fn cancel_approval() -> Weight {
393
		// Proof Size summary in bytes:
394
		//  Measured:  `441`
395
		//  Estimated: `3673`
396
		// Minimum execution time: 25_839_000 picoseconds.
397
		Weight::from_parts(26_435_000, 3673)
398
			.saturating_add(T::DbWeight::get().reads(2_u64))
399
			.saturating_add(T::DbWeight::get().writes(2_u64))
400
	}
401
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
402
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
403
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
404
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
405
	fn force_cancel_approval() -> Weight {
406
		// Proof Size summary in bytes:
407
		//  Measured:  `441`
408
		//  Estimated: `3673`
409
		// Minimum execution time: 25_863_000 picoseconds.
410
		Weight::from_parts(26_353_000, 3673)
411
			.saturating_add(T::DbWeight::get().reads(2_u64))
412
			.saturating_add(T::DbWeight::get().writes(2_u64))
413
	}
414
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
415
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
416
	fn set_min_balance() -> Weight {
417
		// Proof Size summary in bytes:
418
		//  Measured:  `239`
419
		//  Estimated: `3673`
420
		// Minimum execution time: 16_169_000 picoseconds.
421
		Weight::from_parts(16_584_000, 3673)
422
			.saturating_add(T::DbWeight::get().reads(1_u64))
423
			.saturating_add(T::DbWeight::get().writes(1_u64))
424
	}
425
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
426
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
427
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
428
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
429
	fn touch() -> Weight {
430
		// Proof Size summary in bytes:
431
		//  Measured:  `239`
432
		//  Estimated: `3673`
433
		// Minimum execution time: 22_698_000 picoseconds.
434
		Weight::from_parts(22_947_000, 3673)
435
			.saturating_add(T::DbWeight::get().reads(2_u64))
436
			.saturating_add(T::DbWeight::get().writes(2_u64))
437
	}
438
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
439
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
440
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
441
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
442
	fn touch_other() -> Weight {
443
		// Proof Size summary in bytes:
444
		//  Measured:  `239`
445
		//  Estimated: `3673`
446
		// Minimum execution time: 21_787_000 picoseconds.
447
		Weight::from_parts(22_265_000, 3673)
448
			.saturating_add(T::DbWeight::get().reads(2_u64))
449
			.saturating_add(T::DbWeight::get().writes(2_u64))
450
	}
451
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
452
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
453
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
454
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
455
	fn refund() -> Weight {
456
		// Proof Size summary in bytes:
457
		//  Measured:  `363`
458
		//  Estimated: `3673`
459
		// Minimum execution time: 20_715_000 picoseconds.
460
		Weight::from_parts(21_115_000, 3673)
461
			.saturating_add(T::DbWeight::get().reads(2_u64))
462
			.saturating_add(T::DbWeight::get().writes(2_u64))
463
	}
464
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
465
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
466
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
467
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
468
	fn refund_other() -> Weight {
469
		// Proof Size summary in bytes:
470
		//  Measured:  `396`
471
		//  Estimated: `3673`
472
		// Minimum execution time: 19_582_000 picoseconds.
473
		Weight::from_parts(19_878_000, 3673)
474
			.saturating_add(T::DbWeight::get().reads(2_u64))
475
			.saturating_add(T::DbWeight::get().writes(2_u64))
476
	}
477
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
478
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
479
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
480
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
481
	fn block() -> Weight {
482
		// Proof Size summary in bytes:
483
		//  Measured:  `345`
484
		//  Estimated: `3673`
485
		// Minimum execution time: 19_535_000 picoseconds.
486
		Weight::from_parts(20_118_000, 3673)
487
			.saturating_add(T::DbWeight::get().reads(2_u64))
488
			.saturating_add(T::DbWeight::get().writes(1_u64))
489
	}
490
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
491
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
492
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
493
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
494
	/// Storage: `System::Account` (r:1 w:1)
495
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
496
	fn transfer_all() -> Weight {
497
		// Proof Size summary in bytes:
498
		//  Measured:  `384`
499
		//  Estimated: `6204`
500
		// Minimum execution time: 67_303_000 picoseconds.
501
		Weight::from_parts(68_103_000, 6204)
502
			.saturating_add(T::DbWeight::get().reads(4_u64))
503
			.saturating_add(T::DbWeight::get().writes(4_u64))
504
	}
505
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
506
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
507
	fn total_issuance() -> Weight {
508
		// Proof Size summary in bytes:
509
		//  Measured:  `273`
510
		//  Estimated: `3673`
511
		// Minimum execution time: 6_132_000 picoseconds.
512
		Weight::from_parts(6_352_000, 3673)
513
			.saturating_add(T::DbWeight::get().reads(1_u64))
514
	}
515
	/// Storage: `ForeignAssets::Account` (r:1 w:0)
516
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
517
	fn balance() -> Weight {
518
		// Proof Size summary in bytes:
519
		//  Measured:  `147`
520
		//  Estimated: `3597`
521
		// Minimum execution time: 7_243_000 picoseconds.
522
		Weight::from_parts(7_551_000, 3597)
523
			.saturating_add(T::DbWeight::get().reads(1_u64))
524
	}
525
	/// Storage: `ForeignAssets::Approvals` (r:1 w:0)
526
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
527
	fn allowance() -> Weight {
528
		// Proof Size summary in bytes:
529
		//  Measured:  `242`
530
		//  Estimated: `3611`
531
		// Minimum execution time: 10_660_000 picoseconds.
532
		Weight::from_parts(10_867_000, 3611)
533
			.saturating_add(T::DbWeight::get().reads(1_u64))
534
	}
535
}