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-simple-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/simple_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(208), added: 2683, 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: `3673`
72
		// Minimum execution time: 13_057_000 picoseconds.
73
		Weight::from_parts(13_394_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
79
	fn start_destroy() -> Weight {
80
		// Proof Size summary in bytes:
81
		//  Measured:  `273`
82
		//  Estimated: `3673`
83
		// Minimum execution time: 14_156_000 picoseconds.
84
		Weight::from_parts(14_654_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
90
	/// Storage: `ForeignAssets::Account` (r:1001 w:1000)
91
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
92
	/// Storage: `System::Account` (r:1000 w:1000)
93
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, 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:  `79 + c * (208 ±0)`
98
		//  Estimated: `3673 + c * (2607 ±0)`
99
		// Minimum execution time: 20_188_000 picoseconds.
100
		Weight::from_parts(20_575_000, 3673)
101
			// Standard Error: 9_400
102
			.saturating_add(Weight::from_parts(16_773_422, 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, 2607).saturating_mul(c.into()))
108
	}
109
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
110
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
111
	/// Storage: `ForeignAssets::Approvals` (r:1001 w:1000)
112
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, 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:  `408 + a * (86 ±0)`
117
		//  Estimated: `3673 + a * (2621 ±0)`
118
		// Minimum execution time: 19_615_000 picoseconds.
119
		Weight::from_parts(19_852_000, 3673)
120
			// Standard Error: 4_042
121
			.saturating_add(Weight::from_parts(6_602_315, 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, 2621).saturating_mul(a.into()))
127
	}
128
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
129
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, 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:  `239`
135
		//  Estimated: `3673`
136
		// Minimum execution time: 17_224_000 picoseconds.
137
		Weight::from_parts(17_491_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
143
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
144
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
145
	fn mint() -> Weight {
146
		// Proof Size summary in bytes:
147
		//  Measured:  `239`
148
		//  Estimated: `3673`
149
		// Minimum execution time: 29_131_000 picoseconds.
150
		Weight::from_parts(29_687_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
156
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
157
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
158
	fn burn() -> Weight {
159
		// Proof Size summary in bytes:
160
		//  Measured:  `345`
161
		//  Estimated: `3673`
162
		// Minimum execution time: 37_179_000 picoseconds.
163
		Weight::from_parts(37_859_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
169
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
170
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
171
	/// Storage: `System::Account` (r:1 w:1)
172
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
173
	fn transfer() -> Weight {
174
		// Proof Size summary in bytes:
175
		//  Measured:  `384`
176
		//  Estimated: `6204`
177
		// Minimum execution time: 51_809_000 picoseconds.
178
		Weight::from_parts(52_784_000, 6204)
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(208), added: 2683, mode: `MaxEncodedLen`)
184
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
185
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
186
	/// Storage: `System::Account` (r:1 w:1)
187
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
188
	fn transfer_keep_alive() -> Weight {
189
		// Proof Size summary in bytes:
190
		//  Measured:  `384`
191
		//  Estimated: `6204`
192
		// Minimum execution time: 47_365_000 picoseconds.
193
		Weight::from_parts(47_997_000, 6204)
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(208), added: 2683, mode: `MaxEncodedLen`)
199
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
200
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
201
	/// Storage: `System::Account` (r:1 w:1)
202
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
203
	fn force_transfer() -> Weight {
204
		// Proof Size summary in bytes:
205
		//  Measured:  `384`
206
		//  Estimated: `6204`
207
		// Minimum execution time: 52_956_000 picoseconds.
208
		Weight::from_parts(54_370_000, 6204)
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(208), added: 2683, mode: `MaxEncodedLen`)
214
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
215
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
216
	fn freeze() -> Weight {
217
		// Proof Size summary in bytes:
218
		//  Measured:  `345`
219
		//  Estimated: `3673`
220
		// Minimum execution time: 19_416_000 picoseconds.
221
		Weight::from_parts(19_996_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
227
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
228
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
229
	fn thaw() -> Weight {
230
		// Proof Size summary in bytes:
231
		//  Measured:  `345`
232
		//  Estimated: `3673`
233
		// Minimum execution time: 19_733_000 picoseconds.
234
		Weight::from_parts(20_149_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
240
	fn freeze_asset() -> Weight {
241
		// Proof Size summary in bytes:
242
		//  Measured:  `273`
243
		//  Estimated: `3673`
244
		// Minimum execution time: 13_802_000 picoseconds.
245
		Weight::from_parts(14_287_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
251
	fn thaw_asset() -> Weight {
252
		// Proof Size summary in bytes:
253
		//  Measured:  `273`
254
		//  Estimated: `3673`
255
		// Minimum execution time: 14_116_000 picoseconds.
256
		Weight::from_parts(14_407_000, 3673)
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(208), added: 2683, 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:  `239`
267
		//  Estimated: `3673`
268
		// Minimum execution time: 17_801_000 picoseconds.
269
		Weight::from_parts(18_020_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
275
	fn set_team() -> Weight {
276
		// Proof Size summary in bytes:
277
		//  Measured:  `239`
278
		//  Estimated: `3673`
279
		// Minimum execution time: 15_422_000 picoseconds.
280
		Weight::from_parts(15_957_000, 3673)
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(208), added: 2683, 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:  `239`
293
		//  Estimated: `3673`
294
		// Minimum execution time: 16_960_000 picoseconds.
295
		Weight::from_parts(17_820_411, 3673)
296
			.saturating_add(T::DbWeight::get().reads(2_u64))
297
			.saturating_add(T::DbWeight::get().writes(1_u64))
298
	}
299
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
300
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
301
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
302
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
303
	fn clear_metadata() -> Weight {
304
		// Proof Size summary in bytes:
305
		//  Measured:  `401`
306
		//  Estimated: `3673`
307
		// Minimum execution time: 18_269_000 picoseconds.
308
		Weight::from_parts(18_610_000, 3673)
309
			.saturating_add(T::DbWeight::get().reads(2_u64))
310
			.saturating_add(T::DbWeight::get().writes(1_u64))
311
	}
312
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
313
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
314
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
315
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
316
	/// The range of component `n` is `[0, 50]`.
317
	/// The range of component `s` is `[0, 50]`.
318
	fn force_set_metadata(_n: u32, _s: u32, ) -> Weight {
319
		// Proof Size summary in bytes:
320
		//  Measured:  `78`
321
		//  Estimated: `3673`
322
		// Minimum execution time: 16_511_000 picoseconds.
323
		Weight::from_parts(17_216_762, 3673)
324
			.saturating_add(T::DbWeight::get().reads(2_u64))
325
			.saturating_add(T::DbWeight::get().writes(1_u64))
326
	}
327
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
328
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
329
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
330
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
331
	fn force_clear_metadata() -> Weight {
332
		// Proof Size summary in bytes:
333
		//  Measured:  `401`
334
		//  Estimated: `3673`
335
		// Minimum execution time: 17_615_000 picoseconds.
336
		Weight::from_parts(18_005_000, 3673)
337
			.saturating_add(T::DbWeight::get().reads(2_u64))
338
			.saturating_add(T::DbWeight::get().writes(1_u64))
339
	}
340
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
341
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
342
	fn force_asset_status() -> Weight {
343
		// Proof Size summary in bytes:
344
		//  Measured:  `239`
345
		//  Estimated: `3673`
346
		// Minimum execution time: 15_252_000 picoseconds.
347
		Weight::from_parts(15_581_000, 3673)
348
			.saturating_add(T::DbWeight::get().reads(1_u64))
349
			.saturating_add(T::DbWeight::get().writes(1_u64))
350
	}
351
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
352
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
353
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
354
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
355
	fn approve_transfer() -> Weight {
356
		// Proof Size summary in bytes:
357
		//  Measured:  `273`
358
		//  Estimated: `3673`
359
		// Minimum execution time: 22_165_000 picoseconds.
360
		Weight::from_parts(22_667_000, 3673)
361
			.saturating_add(T::DbWeight::get().reads(2_u64))
362
			.saturating_add(T::DbWeight::get().writes(2_u64))
363
	}
364
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
365
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
366
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
367
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
368
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
369
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
370
	/// Storage: `System::Account` (r:1 w:1)
371
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
372
	fn transfer_approved() -> Weight {
373
		// Proof Size summary in bytes:
374
		//  Measured:  `552`
375
		//  Estimated: `6204`
376
		// Minimum execution time: 64_821_000 picoseconds.
377
		Weight::from_parts(65_968_000, 6204)
378
			.saturating_add(T::DbWeight::get().reads(5_u64))
379
			.saturating_add(T::DbWeight::get().writes(5_u64))
380
	}
381
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
382
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
383
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
384
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
385
	fn cancel_approval() -> Weight {
386
		// Proof Size summary in bytes:
387
		//  Measured:  `441`
388
		//  Estimated: `3673`
389
		// Minimum execution time: 24_976_000 picoseconds.
390
		Weight::from_parts(25_505_000, 3673)
391
			.saturating_add(T::DbWeight::get().reads(2_u64))
392
			.saturating_add(T::DbWeight::get().writes(2_u64))
393
	}
394
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
395
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
396
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
397
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
398
	fn force_cancel_approval() -> Weight {
399
		// Proof Size summary in bytes:
400
		//  Measured:  `441`
401
		//  Estimated: `3673`
402
		// Minimum execution time: 25_206_000 picoseconds.
403
		Weight::from_parts(25_869_000, 3673)
404
			.saturating_add(T::DbWeight::get().reads(2_u64))
405
			.saturating_add(T::DbWeight::get().writes(2_u64))
406
	}
407
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
408
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
409
	fn set_min_balance() -> Weight {
410
		// Proof Size summary in bytes:
411
		//  Measured:  `239`
412
		//  Estimated: `3673`
413
		// Minimum execution time: 16_623_000 picoseconds.
414
		Weight::from_parts(16_993_000, 3673)
415
			.saturating_add(T::DbWeight::get().reads(1_u64))
416
			.saturating_add(T::DbWeight::get().writes(1_u64))
417
	}
418
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
419
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
420
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
421
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
422
	fn touch() -> Weight {
423
		// Proof Size summary in bytes:
424
		//  Measured:  `239`
425
		//  Estimated: `3673`
426
		// Minimum execution time: 22_038_000 picoseconds.
427
		Weight::from_parts(22_551_000, 3673)
428
			.saturating_add(T::DbWeight::get().reads(2_u64))
429
			.saturating_add(T::DbWeight::get().writes(2_u64))
430
	}
431
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
432
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
433
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
434
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
435
	fn touch_other() -> Weight {
436
		// Proof Size summary in bytes:
437
		//  Measured:  `239`
438
		//  Estimated: `3673`
439
		// Minimum execution time: 20_987_000 picoseconds.
440
		Weight::from_parts(21_430_000, 3673)
441
			.saturating_add(T::DbWeight::get().reads(2_u64))
442
			.saturating_add(T::DbWeight::get().writes(2_u64))
443
	}
444
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
445
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
446
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
447
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
448
	fn refund() -> Weight {
449
		// Proof Size summary in bytes:
450
		//  Measured:  `363`
451
		//  Estimated: `3673`
452
		// Minimum execution time: 20_557_000 picoseconds.
453
		Weight::from_parts(21_082_000, 3673)
454
			.saturating_add(T::DbWeight::get().reads(2_u64))
455
			.saturating_add(T::DbWeight::get().writes(2_u64))
456
	}
457
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
458
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
459
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
460
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
461
	fn refund_other() -> Weight {
462
		// Proof Size summary in bytes:
463
		//  Measured:  `396`
464
		//  Estimated: `3673`
465
		// Minimum execution time: 19_365_000 picoseconds.
466
		Weight::from_parts(19_753_000, 3673)
467
			.saturating_add(T::DbWeight::get().reads(2_u64))
468
			.saturating_add(T::DbWeight::get().writes(2_u64))
469
	}
470
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
471
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
472
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
473
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
474
	fn block() -> Weight {
475
		// Proof Size summary in bytes:
476
		//  Measured:  `345`
477
		//  Estimated: `3673`
478
		// Minimum execution time: 19_381_000 picoseconds.
479
		Weight::from_parts(19_652_000, 3673)
480
			.saturating_add(T::DbWeight::get().reads(2_u64))
481
			.saturating_add(T::DbWeight::get().writes(1_u64))
482
	}
483
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
484
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
485
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
486
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
487
	/// Storage: `System::Account` (r:1 w:1)
488
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
489
	fn transfer_all() -> Weight {
490
		// Proof Size summary in bytes:
491
		//  Measured:  `384`
492
		//  Estimated: `6204`
493
		// Minimum execution time: 63_726_000 picoseconds.
494
		Weight::from_parts(64_844_000, 6204)
495
			.saturating_add(T::DbWeight::get().reads(4_u64))
496
			.saturating_add(T::DbWeight::get().writes(4_u64))
497
	}
498
}