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: 2024-08-05, 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
	fn force_create() -> Weight {
67
		// Proof Size summary in bytes:
68
		//  Measured:  `3`
69
		//  Estimated: `3625`
70
		// Minimum execution time: 10_852_000 picoseconds.
71
		Weight::from_parts(11_123_000, 3625)
72
			.saturating_add(T::DbWeight::get().reads(1_u64))
73
			.saturating_add(T::DbWeight::get().writes(1_u64))
74
	}
75
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
76
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
77
	fn start_destroy() -> Weight {
78
		// Proof Size summary in bytes:
79
		//  Measured:  `225`
80
		//  Estimated: `3625`
81
		// Minimum execution time: 12_196_000 picoseconds.
82
		Weight::from_parts(12_534_000, 3625)
83
			.saturating_add(T::DbWeight::get().reads(1_u64))
84
			.saturating_add(T::DbWeight::get().writes(1_u64))
85
	}
86
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
87
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
88
	/// Storage: `ForeignAssets::Account` (r:1001 w:1000)
89
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
90
	/// Storage: `System::Account` (r:1000 w:1000)
91
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
92
	/// The range of component `c` is `[0, 1000]`.
93
	fn destroy_accounts(c: u32, ) -> Weight {
94
		// Proof Size summary in bytes:
95
		//  Measured:  `176 + c * (183 ±0)`
96
		//  Estimated: `3625 + c * (2591 ±0)`
97
		// Minimum execution time: 17_282_000 picoseconds.
98
		Weight::from_parts(17_451_000, 3625)
99
			// Standard Error: 7_392
100
			.saturating_add(Weight::from_parts(14_500_512, 0).saturating_mul(c.into()))
101
			.saturating_add(T::DbWeight::get().reads(2_u64))
102
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into())))
103
			.saturating_add(T::DbWeight::get().writes(1_u64))
104
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(c.into())))
105
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(c.into()))
106
	}
107
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
108
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
109
	/// Storage: `ForeignAssets::Approvals` (r:1001 w:1000)
110
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
111
	/// The range of component `a` is `[0, 1000]`.
112
	fn destroy_approvals(a: u32, ) -> Weight {
113
		// Proof Size summary in bytes:
114
		//  Measured:  `370 + a * (74 ±0)`
115
		//  Estimated: `3625 + a * (2597 ±0)`
116
		// Minimum execution time: 17_829_000 picoseconds.
117
		Weight::from_parts(18_213_000, 3625)
118
			// Standard Error: 2_440
119
			.saturating_add(Weight::from_parts(5_692_098, 0).saturating_mul(a.into()))
120
			.saturating_add(T::DbWeight::get().reads(2_u64))
121
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into())))
122
			.saturating_add(T::DbWeight::get().writes(1_u64))
123
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(a.into())))
124
			.saturating_add(Weight::from_parts(0, 2597).saturating_mul(a.into()))
125
	}
126
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
127
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
128
	/// Storage: `ForeignAssets::Metadata` (r:1 w:0)
129
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
130
	fn finish_destroy() -> Weight {
131
		// Proof Size summary in bytes:
132
		//  Measured:  `191`
133
		//  Estimated: `3625`
134
		// Minimum execution time: 13_188_000 picoseconds.
135
		Weight::from_parts(13_562_000, 3625)
136
			.saturating_add(T::DbWeight::get().reads(2_u64))
137
			.saturating_add(T::DbWeight::get().writes(1_u64))
138
	}
139
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
140
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
141
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
142
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
143
	fn mint() -> Weight {
144
		// Proof Size summary in bytes:
145
		//  Measured:  `191`
146
		//  Estimated: `3625`
147
		// Minimum execution time: 24_555_000 picoseconds.
148
		Weight::from_parts(25_013_000, 3625)
149
			.saturating_add(T::DbWeight::get().reads(2_u64))
150
			.saturating_add(T::DbWeight::get().writes(2_u64))
151
	}
152
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
153
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
154
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
155
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
156
	fn burn() -> Weight {
157
		// Proof Size summary in bytes:
158
		//  Measured:  `285`
159
		//  Estimated: `3625`
160
		// Minimum execution time: 33_304_000 picoseconds.
161
		Weight::from_parts(33_831_000, 3625)
162
			.saturating_add(T::DbWeight::get().reads(2_u64))
163
			.saturating_add(T::DbWeight::get().writes(2_u64))
164
	}
165
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
166
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
167
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
168
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
169
	/// Storage: `System::Account` (r:1 w:1)
170
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
171
	fn transfer() -> Weight {
172
		// Proof Size summary in bytes:
173
		//  Measured:  `376`
174
		//  Estimated: `6156`
175
		// Minimum execution time: 47_074_000 picoseconds.
176
		Weight::from_parts(47_997_000, 6156)
177
			.saturating_add(T::DbWeight::get().reads(4_u64))
178
			.saturating_add(T::DbWeight::get().writes(4_u64))
179
	}
180
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
181
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
182
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
183
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
184
	/// Storage: `System::Account` (r:1 w:1)
185
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
186
	fn transfer_keep_alive() -> Weight {
187
		// Proof Size summary in bytes:
188
		//  Measured:  `376`
189
		//  Estimated: `6156`
190
		// Minimum execution time: 42_424_000 picoseconds.
191
		Weight::from_parts(42_981_000, 6156)
192
			.saturating_add(T::DbWeight::get().reads(4_u64))
193
			.saturating_add(T::DbWeight::get().writes(4_u64))
194
	}
195
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
196
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
197
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
198
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
199
	/// Storage: `System::Account` (r:1 w:1)
200
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
201
	fn force_transfer() -> Weight {
202
		// Proof Size summary in bytes:
203
		//  Measured:  `376`
204
		//  Estimated: `6156`
205
		// Minimum execution time: 47_127_000 picoseconds.
206
		Weight::from_parts(47_973_000, 6156)
207
			.saturating_add(T::DbWeight::get().reads(4_u64))
208
			.saturating_add(T::DbWeight::get().writes(4_u64))
209
	}
210
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
211
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
212
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
213
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
214
	fn freeze() -> Weight {
215
		// Proof Size summary in bytes:
216
		//  Measured:  `285`
217
		//  Estimated: `3625`
218
		// Minimum execution time: 16_400_000 picoseconds.
219
		Weight::from_parts(16_828_000, 3625)
220
			.saturating_add(T::DbWeight::get().reads(2_u64))
221
			.saturating_add(T::DbWeight::get().writes(1_u64))
222
	}
223
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
224
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
225
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
226
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
227
	fn thaw() -> Weight {
228
		// Proof Size summary in bytes:
229
		//  Measured:  `285`
230
		//  Estimated: `3625`
231
		// Minimum execution time: 16_562_000 picoseconds.
232
		Weight::from_parts(17_025_000, 3625)
233
			.saturating_add(T::DbWeight::get().reads(2_u64))
234
			.saturating_add(T::DbWeight::get().writes(1_u64))
235
	}
236
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
237
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
238
	fn freeze_asset() -> Weight {
239
		// Proof Size summary in bytes:
240
		//  Measured:  `225`
241
		//  Estimated: `3625`
242
		// Minimum execution time: 11_649_000 picoseconds.
243
		Weight::from_parts(12_039_000, 3625)
244
			.saturating_add(T::DbWeight::get().reads(1_u64))
245
			.saturating_add(T::DbWeight::get().writes(1_u64))
246
	}
247
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
248
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
249
	fn thaw_asset() -> Weight {
250
		// Proof Size summary in bytes:
251
		//  Measured:  `225`
252
		//  Estimated: `3625`
253
		// Minimum execution time: 11_864_000 picoseconds.
254
		Weight::from_parts(12_186_000, 3625)
255
			.saturating_add(T::DbWeight::get().reads(1_u64))
256
			.saturating_add(T::DbWeight::get().writes(1_u64))
257
	}
258
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
259
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
260
	/// Storage: `ForeignAssets::Metadata` (r:1 w:0)
261
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
262
	fn transfer_ownership() -> Weight {
263
		// Proof Size summary in bytes:
264
		//  Measured:  `191`
265
		//  Estimated: `3625`
266
		// Minimum execution time: 13_588_000 picoseconds.
267
		Weight::from_parts(14_083_000, 3625)
268
			.saturating_add(T::DbWeight::get().reads(2_u64))
269
			.saturating_add(T::DbWeight::get().writes(1_u64))
270
	}
271
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
272
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
273
	fn set_team() -> Weight {
274
		// Proof Size summary in bytes:
275
		//  Measured:  `191`
276
		//  Estimated: `3625`
277
		// Minimum execution time: 11_743_000 picoseconds.
278
		Weight::from_parts(12_057_000, 3625)
279
			.saturating_add(T::DbWeight::get().reads(1_u64))
280
			.saturating_add(T::DbWeight::get().writes(1_u64))
281
	}
282
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
283
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
284
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
285
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
286
	/// The range of component `n` is `[0, 50]`.
287
	/// The range of component `s` is `[0, 50]`.
288
	fn set_metadata(n: u32, s: u32, ) -> Weight {
289
		// Proof Size summary in bytes:
290
		//  Measured:  `191`
291
		//  Estimated: `3625`
292
		// Minimum execution time: 14_590_000 picoseconds.
293
		Weight::from_parts(15_456_424, 3625)
294
			// Standard Error: 367
295
			.saturating_add(Weight::from_parts(1_839, 0).saturating_mul(n.into()))
296
			// Standard Error: 367
297
			.saturating_add(Weight::from_parts(1_235, 0).saturating_mul(s.into()))
298
			.saturating_add(T::DbWeight::get().reads(2_u64))
299
			.saturating_add(T::DbWeight::get().writes(1_u64))
300
	}
301
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
302
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
303
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
304
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
305
	fn clear_metadata() -> Weight {
306
		// Proof Size summary in bytes:
307
		//  Measured:  `353`
308
		//  Estimated: `3625`
309
		// Minimum execution time: 15_613_000 picoseconds.
310
		Weight::from_parts(16_045_000, 3625)
311
			.saturating_add(T::DbWeight::get().reads(2_u64))
312
			.saturating_add(T::DbWeight::get().writes(1_u64))
313
	}
314
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
315
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(160), added: 2635, mode: `MaxEncodedLen`)
316
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
317
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
318
	/// The range of component `n` is `[0, 50]`.
319
	/// The range of component `s` is `[0, 50]`.
320
	fn force_set_metadata(n: u32, s: u32, ) -> Weight {
321
		// Proof Size summary in bytes:
322
		//  Measured:  `78`
323
		//  Estimated: `3625`
324
		// Minimum execution time: 12_902_000 picoseconds.
325
		Weight::from_parts(13_554_065, 3625)
326
			// Standard Error: 301
327
			.saturating_add(Weight::from_parts(365, 0).saturating_mul(n.into()))
328
			// Standard Error: 301
329
			.saturating_add(Weight::from_parts(593, 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: 15_152_000 picoseconds.
342
		Weight::from_parts(15_561_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: 11_161_000 picoseconds.
353
		Weight::from_parts(11_495_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: 19_873_000 picoseconds.
366
		Weight::from_parts(20_345_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: 57_669_000 picoseconds.
383
		Weight::from_parts(58_621_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: 21_715_000 picoseconds.
396
		Weight::from_parts(22_331_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: 22_147_000 picoseconds.
409
		Weight::from_parts(22_561_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: 12_920_000 picoseconds.
420
		Weight::from_parts(13_410_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: 18_268_000 picoseconds.
433
		Weight::from_parts(18_648_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: 18_391_000 picoseconds.
446
		Weight::from_parts(18_893_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: 16_709_000 picoseconds.
459
		Weight::from_parts(16_960_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: 16_760_000 picoseconds.
472
		Weight::from_parts(17_160_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: 16_498_000 picoseconds.
485
		Weight::from_parts(16_900_000, 3625)
486
			.saturating_add(T::DbWeight::get().reads(2_u64))
487
			.saturating_add(T::DbWeight::get().writes(1_u64))
488
	}
489
}