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/tanssi-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/dancebox_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
	fn force_create() -> Weight {
67
		// Proof Size summary in bytes:
68
		//  Measured:  `4`
69
		//  Estimated: `3673`
70
		// Minimum execution time: 11_679_000 picoseconds.
71
		Weight::from_parts(12_339_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
77
	fn start_destroy() -> Weight {
78
		// Proof Size summary in bytes:
79
		//  Measured:  `274`
80
		//  Estimated: `3673`
81
		// Minimum execution time: 12_115_000 picoseconds.
82
		Weight::from_parts(12_463_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
88
	/// Storage: `ForeignAssets::Account` (r:1001 w:1000)
89
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
90
	/// Storage: `System::Account` (r:1000 w:1000)
91
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, 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:  `212 + c * (208 ±0)`
96
		//  Estimated: `3673 + c * (2607 ±0)`
97
		// Minimum execution time: 17_559_000 picoseconds.
98
		Weight::from_parts(17_749_000, 3673)
99
			// Standard Error: 9_392
100
			.saturating_add(Weight::from_parts(15_174_492, 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, 2607).saturating_mul(c.into()))
106
	}
107
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
108
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
109
	/// Storage: `ForeignAssets::Approvals` (r:1001 w:1000)
110
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, 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:  `409 + a * (86 ±0)`
115
		//  Estimated: `3673 + a * (2621 ±0)`
116
		// Minimum execution time: 17_573_000 picoseconds.
117
		Weight::from_parts(17_785_000, 3673)
118
			// Standard Error: 3_941
119
			.saturating_add(Weight::from_parts(6_033_114, 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, 2621).saturating_mul(a.into()))
125
	}
126
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
127
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, 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:  `240`
133
		//  Estimated: `3673`
134
		// Minimum execution time: 14_087_000 picoseconds.
135
		Weight::from_parts(14_387_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
141
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
142
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
143
	fn mint() -> Weight {
144
		// Proof Size summary in bytes:
145
		//  Measured:  `240`
146
		//  Estimated: `3673`
147
		// Minimum execution time: 25_960_000 picoseconds.
148
		Weight::from_parts(26_459_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
154
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
155
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
156
	fn burn() -> Weight {
157
		// Proof Size summary in bytes:
158
		//  Measured:  `346`
159
		//  Estimated: `3673`
160
		// Minimum execution time: 34_261_000 picoseconds.
161
		Weight::from_parts(35_028_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
167
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
168
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
169
	/// Storage: `System::Account` (r:1 w:1)
170
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
171
	fn transfer() -> Weight {
172
		// Proof Size summary in bytes:
173
		//  Measured:  `385`
174
		//  Estimated: `6204`
175
		// Minimum execution time: 48_446_000 picoseconds.
176
		Weight::from_parts(48_918_000, 6204)
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(208), added: 2683, mode: `MaxEncodedLen`)
182
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
183
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
184
	/// Storage: `System::Account` (r:1 w:1)
185
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
186
	fn transfer_keep_alive() -> Weight {
187
		// Proof Size summary in bytes:
188
		//  Measured:  `385`
189
		//  Estimated: `6204`
190
		// Minimum execution time: 43_593_000 picoseconds.
191
		Weight::from_parts(44_104_000, 6204)
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(208), added: 2683, mode: `MaxEncodedLen`)
197
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
198
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
199
	/// Storage: `System::Account` (r:1 w:1)
200
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
201
	fn force_transfer() -> Weight {
202
		// Proof Size summary in bytes:
203
		//  Measured:  `385`
204
		//  Estimated: `6204`
205
		// Minimum execution time: 48_681_000 picoseconds.
206
		Weight::from_parts(49_383_000, 6204)
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(208), added: 2683, mode: `MaxEncodedLen`)
212
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
213
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
214
	fn freeze() -> Weight {
215
		// Proof Size summary in bytes:
216
		//  Measured:  `346`
217
		//  Estimated: `3673`
218
		// Minimum execution time: 16_777_000 picoseconds.
219
		Weight::from_parts(17_181_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
225
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
226
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
227
	fn thaw() -> Weight {
228
		// Proof Size summary in bytes:
229
		//  Measured:  `346`
230
		//  Estimated: `3673`
231
		// Minimum execution time: 16_792_000 picoseconds.
232
		Weight::from_parts(17_318_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
238
	fn freeze_asset() -> Weight {
239
		// Proof Size summary in bytes:
240
		//  Measured:  `274`
241
		//  Estimated: `3673`
242
		// Minimum execution time: 11_901_000 picoseconds.
243
		Weight::from_parts(12_329_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
249
	fn thaw_asset() -> Weight {
250
		// Proof Size summary in bytes:
251
		//  Measured:  `274`
252
		//  Estimated: `3673`
253
		// Minimum execution time: 12_048_000 picoseconds.
254
		Weight::from_parts(12_338_000, 3673)
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(208), added: 2683, 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:  `240`
265
		//  Estimated: `3673`
266
		// Minimum execution time: 14_841_000 picoseconds.
267
		Weight::from_parts(15_420_000, 3673)
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(208), added: 2683, mode: `MaxEncodedLen`)
273
	fn set_team() -> Weight {
274
		// Proof Size summary in bytes:
275
		//  Measured:  `240`
276
		//  Estimated: `3673`
277
		// Minimum execution time: 12_864_000 picoseconds.
278
		Weight::from_parts(13_256_000, 3673)
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(208), added: 2683, 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:  `240`
291
		//  Estimated: `3673`
292
		// Minimum execution time: 14_963_000 picoseconds.
293
		Weight::from_parts(15_803_697, 3673)
294
			// Standard Error: 363
295
			.saturating_add(Weight::from_parts(248, 0).saturating_mul(s.into()))
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:  `402`
306
		//  Estimated: `3673`
307
		// Minimum execution time: 15_711_000 picoseconds.
308
		Weight::from_parts(16_326_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:  `79`
321
		//  Estimated: `3673`
322
		// Minimum execution time: 13_608_000 picoseconds.
323
		Weight::from_parts(14_364_610, 3673)
324
			// Standard Error: 329
325
			.saturating_add(Weight::from_parts(681, 0).saturating_mul(n.into()))
326
			.saturating_add(T::DbWeight::get().reads(2_u64))
327
			.saturating_add(T::DbWeight::get().writes(1_u64))
328
	}
329
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
330
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
331
	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
332
	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
333
	fn force_clear_metadata() -> Weight {
334
		// Proof Size summary in bytes:
335
		//  Measured:  `402`
336
		//  Estimated: `3673`
337
		// Minimum execution time: 15_319_000 picoseconds.
338
		Weight::from_parts(15_853_000, 3673)
339
			.saturating_add(T::DbWeight::get().reads(2_u64))
340
			.saturating_add(T::DbWeight::get().writes(1_u64))
341
	}
342
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
343
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
344
	fn force_asset_status() -> Weight {
345
		// Proof Size summary in bytes:
346
		//  Measured:  `240`
347
		//  Estimated: `3673`
348
		// Minimum execution time: 12_219_000 picoseconds.
349
		Weight::from_parts(12_588_000, 3673)
350
			.saturating_add(T::DbWeight::get().reads(1_u64))
351
			.saturating_add(T::DbWeight::get().writes(1_u64))
352
	}
353
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
354
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
355
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
356
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
357
	fn approve_transfer() -> Weight {
358
		// Proof Size summary in bytes:
359
		//  Measured:  `274`
360
		//  Estimated: `3673`
361
		// Minimum execution time: 19_887_000 picoseconds.
362
		Weight::from_parts(20_467_000, 3673)
363
			.saturating_add(T::DbWeight::get().reads(2_u64))
364
			.saturating_add(T::DbWeight::get().writes(2_u64))
365
	}
366
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
367
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
368
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
369
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
370
	/// Storage: `ForeignAssets::Account` (r:2 w:2)
371
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
372
	/// Storage: `System::Account` (r:1 w:1)
373
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
374
	fn transfer_approved() -> Weight {
375
		// Proof Size summary in bytes:
376
		//  Measured:  `553`
377
		//  Estimated: `6204`
378
		// Minimum execution time: 60_190_000 picoseconds.
379
		Weight::from_parts(61_611_000, 6204)
380
			.saturating_add(T::DbWeight::get().reads(5_u64))
381
			.saturating_add(T::DbWeight::get().writes(5_u64))
382
	}
383
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
384
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
385
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
386
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
387
	fn cancel_approval() -> Weight {
388
		// Proof Size summary in bytes:
389
		//  Measured:  `442`
390
		//  Estimated: `3673`
391
		// Minimum execution time: 22_386_000 picoseconds.
392
		Weight::from_parts(22_817_000, 3673)
393
			.saturating_add(T::DbWeight::get().reads(2_u64))
394
			.saturating_add(T::DbWeight::get().writes(2_u64))
395
	}
396
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
397
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
398
	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
399
	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
400
	fn force_cancel_approval() -> Weight {
401
		// Proof Size summary in bytes:
402
		//  Measured:  `442`
403
		//  Estimated: `3673`
404
		// Minimum execution time: 22_857_000 picoseconds.
405
		Weight::from_parts(23_254_000, 3673)
406
			.saturating_add(T::DbWeight::get().reads(2_u64))
407
			.saturating_add(T::DbWeight::get().writes(2_u64))
408
	}
409
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
410
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
411
	fn set_min_balance() -> Weight {
412
		// Proof Size summary in bytes:
413
		//  Measured:  `240`
414
		//  Estimated: `3673`
415
		// Minimum execution time: 13_748_000 picoseconds.
416
		Weight::from_parts(13_995_000, 3673)
417
			.saturating_add(T::DbWeight::get().reads(1_u64))
418
			.saturating_add(T::DbWeight::get().writes(1_u64))
419
	}
420
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
421
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
422
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
423
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
424
	fn touch() -> Weight {
425
		// Proof Size summary in bytes:
426
		//  Measured:  `240`
427
		//  Estimated: `3673`
428
		// Minimum execution time: 19_976_000 picoseconds.
429
		Weight::from_parts(20_374_000, 3673)
430
			.saturating_add(T::DbWeight::get().reads(2_u64))
431
			.saturating_add(T::DbWeight::get().writes(2_u64))
432
	}
433
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
434
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
435
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
436
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
437
	fn touch_other() -> Weight {
438
		// Proof Size summary in bytes:
439
		//  Measured:  `240`
440
		//  Estimated: `3673`
441
		// Minimum execution time: 19_054_000 picoseconds.
442
		Weight::from_parts(19_452_000, 3673)
443
			.saturating_add(T::DbWeight::get().reads(2_u64))
444
			.saturating_add(T::DbWeight::get().writes(2_u64))
445
	}
446
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
447
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
448
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
449
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
450
	fn refund() -> Weight {
451
		// Proof Size summary in bytes:
452
		//  Measured:  `364`
453
		//  Estimated: `3673`
454
		// Minimum execution time: 18_305_000 picoseconds.
455
		Weight::from_parts(18_577_000, 3673)
456
			.saturating_add(T::DbWeight::get().reads(2_u64))
457
			.saturating_add(T::DbWeight::get().writes(2_u64))
458
	}
459
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
460
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
461
	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
462
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
463
	fn refund_other() -> Weight {
464
		// Proof Size summary in bytes:
465
		//  Measured:  `397`
466
		//  Estimated: `3673`
467
		// Minimum execution time: 17_072_000 picoseconds.
468
		Weight::from_parts(17_624_000, 3673)
469
			.saturating_add(T::DbWeight::get().reads(2_u64))
470
			.saturating_add(T::DbWeight::get().writes(2_u64))
471
	}
472
	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
473
	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(208), added: 2683, mode: `MaxEncodedLen`)
474
	/// Storage: `ForeignAssets::Account` (r:1 w:1)
475
	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
476
	fn block() -> Weight {
477
		// Proof Size summary in bytes:
478
		//  Measured:  `346`
479
		//  Estimated: `3673`
480
		// Minimum execution time: 16_992_000 picoseconds.
481
		Weight::from_parts(17_346_000, 3673)
482
			.saturating_add(T::DbWeight::get().reads(2_u64))
483
			.saturating_add(T::DbWeight::get().writes(1_u64))
484
	}
485
}