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-04, 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("starlight-dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// target/release/tanssi-relay
28
// benchmark
29
// pallet
30
// --wasm-execution=compiled
31
// --pallet
32
// pallet_assets
33
// --extrinsic
34
// *
35
// --chain=starlight-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/starlight_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:  `4`
70
		//  Estimated: `3673`
71
		// Minimum execution time: 14_351_000 picoseconds.
72
		Weight::from_parts(14_594_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:  `274`
81
		//  Estimated: `3673`
82
		// Minimum execution time: 14_654_000 picoseconds.
83
		Weight::from_parts(15_092_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:  `61 + c * (208 ±0)`
97
		//  Estimated: `3673 + c * (2607 ±0)`
98
		// Minimum execution time: 21_489_000 picoseconds.
99
		Weight::from_parts(21_973_000, 3673)
100
			// Standard Error: 12_325
101
			.saturating_add(Weight::from_parts(16_801_875, 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:  `409 + a * (86 ±0)`
116
		//  Estimated: `3673 + a * (2621 ±0)`
117
		// Minimum execution time: 20_775_000 picoseconds.
118
		Weight::from_parts(21_137_000, 3673)
119
			// Standard Error: 3_936
120
			.saturating_add(Weight::from_parts(6_575_872, 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:  `240`
134
		//  Estimated: `3673`
135
		// Minimum execution time: 18_274_000 picoseconds.
136
		Weight::from_parts(18_973_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:  `240`
147
		//  Estimated: `3673`
148
		// Minimum execution time: 30_830_000 picoseconds.
149
		Weight::from_parts(31_574_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:  `346`
160
		//  Estimated: `3673`
161
		// Minimum execution time: 39_308_000 picoseconds.
162
		Weight::from_parts(40_120_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:  `385`
175
		//  Estimated: `6204`
176
		// Minimum execution time: 55_414_000 picoseconds.
177
		Weight::from_parts(56_367_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:  `385`
190
		//  Estimated: `6204`
191
		// Minimum execution time: 49_252_000 picoseconds.
192
		Weight::from_parts(50_423_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:  `385`
205
		//  Estimated: `6204`
206
		// Minimum execution time: 55_660_000 picoseconds.
207
		Weight::from_parts(56_716_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:  `346`
218
		//  Estimated: `3673`
219
		// Minimum execution time: 20_194_000 picoseconds.
220
		Weight::from_parts(20_838_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:  `346`
231
		//  Estimated: `3673`
232
		// Minimum execution time: 20_351_000 picoseconds.
233
		Weight::from_parts(20_783_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:  `274`
242
		//  Estimated: `3673`
243
		// Minimum execution time: 14_735_000 picoseconds.
244
		Weight::from_parts(15_125_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:  `274`
253
		//  Estimated: `3673`
254
		// Minimum execution time: 14_873_000 picoseconds.
255
		Weight::from_parts(15_202_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:  `240`
266
		//  Estimated: `3673`
267
		// Minimum execution time: 18_898_000 picoseconds.
268
		Weight::from_parts(19_227_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:  `240`
277
		//  Estimated: `3673`
278
		// Minimum execution time: 16_510_000 picoseconds.
279
		Weight::from_parts(17_009_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:  `240`
292
		//  Estimated: `3673`
293
		// Minimum execution time: 17_839_000 picoseconds.
294
		Weight::from_parts(18_708_891, 3673)
295
			// Standard Error: 478
296
			.saturating_add(Weight::from_parts(2_498, 0).saturating_mul(s.into()))
297
			.saturating_add(T::DbWeight::get().reads(2_u64))
298
			.saturating_add(T::DbWeight::get().writes(1_u64))
299
	}
300
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
301
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
302
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
303
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
304
	fn clear_metadata() -> Weight {
305
		// Proof Size summary in bytes:
306
		//  Measured:  `402`
307
		//  Estimated: `3673`
308
		// Minimum execution time: 18_894_000 picoseconds.
309
		Weight::from_parts(19_415_000, 3673)
310
			.saturating_add(T::DbWeight::get().reads(2_u64))
311
			.saturating_add(T::DbWeight::get().writes(1_u64))
312
	}
313
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
314
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
315
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
316
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
317
	/// The range of component `n` is `[0, 50]`.
318
	/// The range of component `s` is `[0, 50]`.
319
	fn force_set_metadata(n: u32, s: u32, ) -> Weight {
320
		// Proof Size summary in bytes:
321
		//  Measured:  `79`
322
		//  Estimated: `3673`
323
		// Minimum execution time: 17_900_000 picoseconds.
324
		Weight::from_parts(18_559_112, 3673)
325
			// Standard Error: 405
326
			.saturating_add(Weight::from_parts(1_740, 0).saturating_mul(n.into()))
327
			// Standard Error: 405
328
			.saturating_add(Weight::from_parts(1_098, 0).saturating_mul(s.into()))
329
			.saturating_add(T::DbWeight::get().reads(2_u64))
330
			.saturating_add(T::DbWeight::get().writes(1_u64))
331
	}
332
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
333
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
334
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
335
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
336
	fn force_clear_metadata() -> Weight {
337
		// Proof Size summary in bytes:
338
		//  Measured:  `402`
339
		//  Estimated: `3673`
340
		// Minimum execution time: 18_369_000 picoseconds.
341
		Weight::from_parts(18_896_000, 3673)
342
			.saturating_add(T::DbWeight::get().reads(2_u64))
343
			.saturating_add(T::DbWeight::get().writes(1_u64))
344
	}
345
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
346
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
347
	fn force_asset_status() -> Weight {
348
		// Proof Size summary in bytes:
349
		//  Measured:  `240`
350
		//  Estimated: `3673`
351
		// Minimum execution time: 16_115_000 picoseconds.
352
		Weight::from_parts(16_417_000, 3673)
353
			.saturating_add(T::DbWeight::get().reads(1_u64))
354
			.saturating_add(T::DbWeight::get().writes(1_u64))
355
	}
356
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
357
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
358
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
359
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
360
	fn approve_transfer() -> Weight {
361
		// Proof Size summary in bytes:
362
		//  Measured:  `274`
363
		//  Estimated: `3673`
364
		// Minimum execution time: 23_007_000 picoseconds.
365
		Weight::from_parts(23_694_000, 3673)
366
			.saturating_add(T::DbWeight::get().reads(2_u64))
367
			.saturating_add(T::DbWeight::get().writes(2_u64))
368
	}
369
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
370
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
371
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
372
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
373
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
374
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
375
	/// Storage: `System::Account` (r:1 w:1)
376
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
377
	fn transfer_approved() -> Weight {
378
		// Proof Size summary in bytes:
379
		//  Measured:  `553`
380
		//  Estimated: `6204`
381
		// Minimum execution time: 67_278_000 picoseconds.
382
		Weight::from_parts(68_477_000, 6204)
383
			.saturating_add(T::DbWeight::get().reads(5_u64))
384
			.saturating_add(T::DbWeight::get().writes(5_u64))
385
	}
386
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
387
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
388
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
389
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
390
	fn cancel_approval() -> Weight {
391
		// Proof Size summary in bytes:
392
		//  Measured:  `442`
393
		//  Estimated: `3673`
394
		// Minimum execution time: 26_463_000 picoseconds.
395
		Weight::from_parts(27_150_000, 3673)
396
			.saturating_add(T::DbWeight::get().reads(2_u64))
397
			.saturating_add(T::DbWeight::get().writes(2_u64))
398
	}
399
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
400
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
401
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
402
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
403
	fn force_cancel_approval() -> Weight {
404
		// Proof Size summary in bytes:
405
		//  Measured:  `442`
406
		//  Estimated: `3673`
407
		// Minimum execution time: 26_446_000 picoseconds.
408
		Weight::from_parts(27_122_000, 3673)
409
			.saturating_add(T::DbWeight::get().reads(2_u64))
410
			.saturating_add(T::DbWeight::get().writes(2_u64))
411
	}
412
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
413
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
414
	fn set_min_balance() -> Weight {
415
		// Proof Size summary in bytes:
416
		//  Measured:  `240`
417
		//  Estimated: `3673`
418
		// Minimum execution time: 16_844_000 picoseconds.
419
		Weight::from_parts(17_682_000, 3673)
420
			.saturating_add(T::DbWeight::get().reads(1_u64))
421
			.saturating_add(T::DbWeight::get().writes(1_u64))
422
	}
423
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
424
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
425
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
426
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
427
	fn touch() -> Weight {
428
		// Proof Size summary in bytes:
429
		//  Measured:  `240`
430
		//  Estimated: `3673`
431
		// Minimum execution time: 24_197_000 picoseconds.
432
		Weight::from_parts(24_808_000, 3673)
433
			.saturating_add(T::DbWeight::get().reads(2_u64))
434
			.saturating_add(T::DbWeight::get().writes(2_u64))
435
	}
436
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
437
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
438
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
439
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
440
	fn touch_other() -> Weight {
441
		// Proof Size summary in bytes:
442
		//  Measured:  `240`
443
		//  Estimated: `3673`
444
		// Minimum execution time: 21_982_000 picoseconds.
445
		Weight::from_parts(22_669_000, 3673)
446
			.saturating_add(T::DbWeight::get().reads(2_u64))
447
			.saturating_add(T::DbWeight::get().writes(2_u64))
448
	}
449
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
450
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
451
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
452
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
453
	fn refund() -> Weight {
454
		// Proof Size summary in bytes:
455
		//  Measured:  `364`
456
		//  Estimated: `3673`
457
		// Minimum execution time: 21_467_000 picoseconds.
458
		Weight::from_parts(21_945_000, 3673)
459
			.saturating_add(T::DbWeight::get().reads(2_u64))
460
			.saturating_add(T::DbWeight::get().writes(2_u64))
461
	}
462
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
463
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
464
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
465
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
466
	fn refund_other() -> Weight {
467
		// Proof Size summary in bytes:
468
		//  Measured:  `397`
469
		//  Estimated: `3673`
470
		// Minimum execution time: 20_002_000 picoseconds.
471
		Weight::from_parts(20_644_000, 3673)
472
			.saturating_add(T::DbWeight::get().reads(2_u64))
473
			.saturating_add(T::DbWeight::get().writes(2_u64))
474
	}
475
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
476
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
477
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
478
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
479
	fn block() -> Weight {
480
		// Proof Size summary in bytes:
481
		//  Measured:  `346`
482
		//  Estimated: `3673`
483
		// Minimum execution time: 19_952_000 picoseconds.
484
		Weight::from_parts(20_535_000, 3673)
485
			.saturating_add(T::DbWeight::get().reads(2_u64))
486
			.saturating_add(T::DbWeight::get().writes(1_u64))
487
	}
488
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
489
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
490
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
491
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
492
	/// Storage: `System::Account` (r:1 w:1)
493
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
494
	fn transfer_all() -> Weight {
495
		// Proof Size summary in bytes:
496
		//  Measured:  `385`
497
		//  Estimated: `6204`
498
		// Minimum execution time: 67_613_000 picoseconds.
499
		Weight::from_parts(68_673_000, 6204)
500
			.saturating_add(T::DbWeight::get().reads(4_u64))
501
			.saturating_add(T::DbWeight::get().writes(4_u64))
502
	}
503
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
504
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
505
	fn total_issuance() -> Weight {
506
		// Proof Size summary in bytes:
507
		//  Measured:  `274`
508
		//  Estimated: `3673`
509
		// Minimum execution time: 6_467_000 picoseconds.
510
		Weight::from_parts(6_668_000, 3673)
511
			.saturating_add(T::DbWeight::get().reads(1_u64))
512
	}
513
	/// Storage: `ForeignAssets::Account` (r:1 w:0)
514
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
515
	fn balance() -> Weight {
516
		// Proof Size summary in bytes:
517
		//  Measured:  `148`
518
		//  Estimated: `3597`
519
		// Minimum execution time: 7_655_000 picoseconds.
520
		Weight::from_parts(8_009_000, 3597)
521
			.saturating_add(T::DbWeight::get().reads(1_u64))
522
	}
523
	/// Storage: `ForeignAssets::Approvals` (r:1 w:0)
524
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
525
	fn allowance() -> Weight {
526
		// Proof Size summary in bytes:
527
		//  Measured:  `243`
528
		//  Estimated: `3611`
529
		// Minimum execution time: 11_116_000 picoseconds.
530
		Weight::from_parts(11_613_000, 3611)
531
			.saturating_add(T::DbWeight::get().reads(1_u64))
532
	}
533
}