1
// Copyright 2024 Moonbeam foundation
2
// This file is part of Moonbeam.
3

            
4
// Moonbeam 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
// Moonbeam 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 Moonbeam.  If not, see <http://www.gnu.org/licenses/>.
16

            
17
//! Autogenerated weights for `pallet_assets`
18
//!
19
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 43.0.0
20
//! DATE: 2025-02-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21
//! WORST CASE MAP SIZE: `1000000`
22
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
23
//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
24

            
25
// Executed Command:
26
// ./target/production/moonbeam
27
// benchmark
28
// pallet
29
// --runtime=./target/production/wbuild/moonbeam-runtime/moonbeam_runtime.wasm
30
// --genesis-builder=runtime
31
// --genesis-builder-preset=development
32
// --steps=50
33
// --repeat=20
34
// --pallet=pallet_assets
35
// --extrinsic=*
36
// --wasm-execution=compiled
37
// --header=./file_header.txt
38
// --template=./benchmarking/frame-weight-template.hbs
39
// --output=./runtime/moonbeam/src/weights/
40

            
41
#![cfg_attr(rustfmt, rustfmt_skip)]
42
#![allow(unused_parens)]
43
#![allow(unused_imports)]
44

            
45
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
46
use sp_std::marker::PhantomData;
47

            
48
/// Weights for `pallet_assets`.
49
pub struct WeightInfo<T>(PhantomData<T>);
50
impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
51
	fn create() -> Weight {
52
		// Proof Size summary in bytes:
53
		//  Measured:  `0`
54
		//  Estimated: `0`
55
		// Minimum execution time: 0_000 picoseconds.
56
		Weight::from_parts(0, 0)
57
	}
58
	/// Storage: `Assets::Asset` (r:1 w:1)
59
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
60
	/// Storage: `Assets::NextAssetId` (r:1 w:0)
61
	/// Proof: `Assets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
62
	fn force_create() -> Weight {
63
		// Proof Size summary in bytes:
64
		//  Measured:  `6`
65
		//  Estimated: `3639`
66
		// Minimum execution time: 10_269_000 picoseconds.
67
		Weight::from_parts(10_582_000, 3639)
68
			.saturating_add(T::DbWeight::get().reads(2_u64))
69
			.saturating_add(T::DbWeight::get().writes(1_u64))
70
	}
71
	/// Storage: `Assets::Asset` (r:1 w:1)
72
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
73
	fn start_destroy() -> Weight {
74
		// Proof Size summary in bytes:
75
		//  Measured:  `241`
76
		//  Estimated: `3639`
77
		// Minimum execution time: 11_568_000 picoseconds.
78
		Weight::from_parts(11_921_000, 3639)
79
			.saturating_add(T::DbWeight::get().reads(1_u64))
80
			.saturating_add(T::DbWeight::get().writes(1_u64))
81
	}
82
	/// Storage: `Assets::Asset` (r:1 w:1)
83
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
84
	/// Storage: `Assets::Account` (r:657 w:656)
85
	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
86
	/// Storage: `System::Account` (r:656 w:656)
87
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
88
	/// The range of component `c` is `[0, 656]`.
89
	fn destroy_accounts(c: u32, ) -> Weight {
90
		// Proof Size summary in bytes:
91
		//  Measured:  `892 + c * (183 ±0)`
92
		//  Estimated: `3639 + c * (2597 ±0)`
93
		// Minimum execution time: 15_033_000 picoseconds.
94
		Weight::from_parts(15_134_000, 3639)
95
			// Standard Error: 6_079
96
			.saturating_add(Weight::from_parts(13_419_314, 0).saturating_mul(c.into()))
97
			.saturating_add(T::DbWeight::get().reads(2_u64))
98
			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into())))
99
			.saturating_add(T::DbWeight::get().writes(1_u64))
100
			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(c.into())))
101
			.saturating_add(Weight::from_parts(0, 2597).saturating_mul(c.into()))
102
	}
103
	/// Storage: `Assets::Asset` (r:1 w:1)
104
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
105
	/// Storage: `Assets::Approvals` (r:657 w:656)
106
	/// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(136), added: 2611, mode: `MaxEncodedLen`)
107
	/// The range of component `a` is `[0, 656]`.
108
	fn destroy_approvals(a: u32, ) -> Weight {
109
		// Proof Size summary in bytes:
110
		//  Measured:  `313 + a * (74 ±0)`
111
		//  Estimated: `3639 + a * (2611 ±0)`
112
		// Minimum execution time: 15_423_000 picoseconds.
113
		Weight::from_parts(15_744_000, 3639)
114
			// Standard Error: 3_826
115
			.saturating_add(Weight::from_parts(5_539_306, 0).saturating_mul(a.into()))
116
			.saturating_add(T::DbWeight::get().reads(2_u64))
117
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into())))
118
			.saturating_add(T::DbWeight::get().writes(1_u64))
119
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(a.into())))
120
			.saturating_add(Weight::from_parts(0, 2611).saturating_mul(a.into()))
121
	}
122
	/// Storage: `Assets::Asset` (r:1 w:1)
123
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
124
	/// Storage: `Assets::Metadata` (r:1 w:0)
125
	/// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(152), added: 2627, mode: `MaxEncodedLen`)
126
	fn finish_destroy() -> Weight {
127
		// Proof Size summary in bytes:
128
		//  Measured:  `207`
129
		//  Estimated: `3639`
130
		// Minimum execution time: 12_819_000 picoseconds.
131
		Weight::from_parts(13_091_000, 3639)
132
			.saturating_add(T::DbWeight::get().reads(2_u64))
133
			.saturating_add(T::DbWeight::get().writes(1_u64))
134
	}
135
	/// Storage: `Assets::Asset` (r:1 w:1)
136
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
137
	/// Storage: `Assets::Account` (r:1 w:1)
138
	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
139
	fn mint() -> Weight {
140
		// Proof Size summary in bytes:
141
		//  Measured:  `207`
142
		//  Estimated: `3639`
143
		// Minimum execution time: 21_579_000 picoseconds.
144
		Weight::from_parts(22_238_000, 3639)
145
			.saturating_add(T::DbWeight::get().reads(2_u64))
146
			.saturating_add(T::DbWeight::get().writes(2_u64))
147
	}
148
	/// Storage: `Assets::Asset` (r:1 w:1)
149
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
150
	/// Storage: `Assets::Account` (r:1 w:1)
151
	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
152
	fn burn() -> Weight {
153
		// Proof Size summary in bytes:
154
		//  Measured:  `315`
155
		//  Estimated: `3639`
156
		// Minimum execution time: 29_084_000 picoseconds.
157
		Weight::from_parts(29_731_000, 3639)
158
			.saturating_add(T::DbWeight::get().reads(2_u64))
159
			.saturating_add(T::DbWeight::get().writes(2_u64))
160
	}
161
	/// Storage: `Assets::Asset` (r:1 w:1)
162
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
163
	/// Storage: `Assets::Account` (r:2 w:2)
164
	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
165
	/// Storage: `System::Account` (r:1 w:1)
166
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
167
6
	fn transfer() -> Weight {
168
6
		// Proof Size summary in bytes:
169
6
		//  Measured:  `420`
170
6
		//  Estimated: `6184`
171
6
		// Minimum execution time: 45_611_000 picoseconds.
172
6
		Weight::from_parts(46_726_000, 6184)
173
6
			.saturating_add(T::DbWeight::get().reads(4_u64))
174
6
			.saturating_add(T::DbWeight::get().writes(4_u64))
175
6
	}
176
	/// Storage: `Assets::Asset` (r:1 w:1)
177
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
178
	/// Storage: `Assets::Account` (r:2 w:2)
179
	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
180
	/// Storage: `System::Account` (r:1 w:1)
181
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
182
	fn transfer_keep_alive() -> Weight {
183
		// Proof Size summary in bytes:
184
		//  Measured:  `420`
185
		//  Estimated: `6184`
186
		// Minimum execution time: 41_327_000 picoseconds.
187
		Weight::from_parts(42_610_000, 6184)
188
			.saturating_add(T::DbWeight::get().reads(4_u64))
189
			.saturating_add(T::DbWeight::get().writes(4_u64))
190
	}
191
	/// Storage: `Assets::Asset` (r:1 w:1)
192
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
193
	/// Storage: `Assets::Account` (r:2 w:2)
194
	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
195
	/// Storage: `System::Account` (r:1 w:1)
196
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
197
	fn force_transfer() -> Weight {
198
		// Proof Size summary in bytes:
199
		//  Measured:  `420`
200
		//  Estimated: `6184`
201
		// Minimum execution time: 45_506_000 picoseconds.
202
		Weight::from_parts(46_378_000, 6184)
203
			.saturating_add(T::DbWeight::get().reads(4_u64))
204
			.saturating_add(T::DbWeight::get().writes(4_u64))
205
	}
206
	/// Storage: `Assets::Asset` (r:1 w:0)
207
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
208
	/// Storage: `Assets::Account` (r:1 w:1)
209
	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
210
	fn freeze() -> Weight {
211
		// Proof Size summary in bytes:
212
		//  Measured:  `315`
213
		//  Estimated: `3639`
214
		// Minimum execution time: 15_707_000 picoseconds.
215
		Weight::from_parts(16_469_000, 3639)
216
			.saturating_add(T::DbWeight::get().reads(2_u64))
217
			.saturating_add(T::DbWeight::get().writes(1_u64))
218
	}
219
	/// Storage: `Assets::Asset` (r:1 w:0)
220
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
221
	/// Storage: `Assets::Account` (r:1 w:1)
222
	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
223
	fn thaw() -> Weight {
224
		// Proof Size summary in bytes:
225
		//  Measured:  `315`
226
		//  Estimated: `3639`
227
		// Minimum execution time: 15_768_000 picoseconds.
228
		Weight::from_parts(16_612_000, 3639)
229
			.saturating_add(T::DbWeight::get().reads(2_u64))
230
			.saturating_add(T::DbWeight::get().writes(1_u64))
231
	}
232
	/// Storage: `Assets::Asset` (r:1 w:1)
233
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
234
	fn freeze_asset() -> Weight {
235
		// Proof Size summary in bytes:
236
		//  Measured:  `241`
237
		//  Estimated: `3639`
238
		// Minimum execution time: 11_237_000 picoseconds.
239
		Weight::from_parts(11_713_000, 3639)
240
			.saturating_add(T::DbWeight::get().reads(1_u64))
241
			.saturating_add(T::DbWeight::get().writes(1_u64))
242
	}
243
	/// Storage: `Assets::Asset` (r:1 w:1)
244
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
245
	fn thaw_asset() -> Weight {
246
		// Proof Size summary in bytes:
247
		//  Measured:  `241`
248
		//  Estimated: `3639`
249
		// Minimum execution time: 11_446_000 picoseconds.
250
		Weight::from_parts(11_868_000, 3639)
251
			.saturating_add(T::DbWeight::get().reads(1_u64))
252
			.saturating_add(T::DbWeight::get().writes(1_u64))
253
	}
254
	/// Storage: `Assets::Asset` (r:1 w:1)
255
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
256
	/// Storage: `Assets::Metadata` (r:1 w:0)
257
	/// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(152), added: 2627, mode: `MaxEncodedLen`)
258
	fn transfer_ownership() -> Weight {
259
		// Proof Size summary in bytes:
260
		//  Measured:  `207`
261
		//  Estimated: `3639`
262
		// Minimum execution time: 13_111_000 picoseconds.
263
		Weight::from_parts(13_464_000, 3639)
264
			.saturating_add(T::DbWeight::get().reads(2_u64))
265
			.saturating_add(T::DbWeight::get().writes(1_u64))
266
	}
267
	/// Storage: `Assets::Asset` (r:1 w:1)
268
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
269
	fn set_team() -> Weight {
270
		// Proof Size summary in bytes:
271
		//  Measured:  `207`
272
		//  Estimated: `3639`
273
		// Minimum execution time: 11_229_000 picoseconds.
274
		Weight::from_parts(11_635_000, 3639)
275
			.saturating_add(T::DbWeight::get().reads(1_u64))
276
			.saturating_add(T::DbWeight::get().writes(1_u64))
277
	}
278
	/// Storage: `Assets::Asset` (r:1 w:0)
279
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
280
	/// Storage: `Assets::Metadata` (r:1 w:1)
281
	/// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(152), added: 2627, mode: `MaxEncodedLen`)
282
	/// The range of component `n` is `[0, 50]`.
283
	/// The range of component `s` is `[0, 50]`.
284
	fn set_metadata(n: u32, s: u32, ) -> Weight {
285
		// Proof Size summary in bytes:
286
		//  Measured:  `207`
287
		//  Estimated: `3639`
288
		// Minimum execution time: 27_379_000 picoseconds.
289
		Weight::from_parts(28_282_335, 3639)
290
			// Standard Error: 584
291
			.saturating_add(Weight::from_parts(1_624, 0).saturating_mul(n.into()))
292
			// Standard Error: 584
293
			.saturating_add(Weight::from_parts(1_730, 0).saturating_mul(s.into()))
294
			.saturating_add(T::DbWeight::get().reads(2_u64))
295
			.saturating_add(T::DbWeight::get().writes(1_u64))
296
	}
297
	/// Storage: `Assets::Asset` (r:1 w:0)
298
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
299
	/// Storage: `Assets::Metadata` (r:1 w:1)
300
	/// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(152), added: 2627, mode: `MaxEncodedLen`)
301
	fn clear_metadata() -> Weight {
302
		// Proof Size summary in bytes:
303
		//  Measured:  `383`
304
		//  Estimated: `3639`
305
		// Minimum execution time: 30_864_000 picoseconds.
306
		Weight::from_parts(31_396_000, 3639)
307
			.saturating_add(T::DbWeight::get().reads(2_u64))
308
			.saturating_add(T::DbWeight::get().writes(1_u64))
309
	}
310
	/// Storage: `Assets::Asset` (r:1 w:0)
311
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
312
	/// Storage: `Assets::Metadata` (r:1 w:1)
313
	/// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(152), added: 2627, mode: `MaxEncodedLen`)
314
	/// The range of component `n` is `[0, 50]`.
315
	/// The range of component `s` is `[0, 50]`.
316
	fn force_set_metadata(n: u32, s: u32, ) -> Weight {
317
		// Proof Size summary in bytes:
318
		//  Measured:  `94`
319
		//  Estimated: `3639`
320
		// Minimum execution time: 12_018_000 picoseconds.
321
		Weight::from_parts(12_554_524, 3639)
322
			// Standard Error: 311
323
			.saturating_add(Weight::from_parts(1_077, 0).saturating_mul(n.into()))
324
			// Standard Error: 311
325
			.saturating_add(Weight::from_parts(1_758, 0).saturating_mul(s.into()))
326
			.saturating_add(T::DbWeight::get().reads(2_u64))
327
			.saturating_add(T::DbWeight::get().writes(1_u64))
328
	}
329
	/// Storage: `Assets::Asset` (r:1 w:0)
330
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
331
	/// Storage: `Assets::Metadata` (r:1 w:1)
332
	/// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(152), added: 2627, mode: `MaxEncodedLen`)
333
	fn force_clear_metadata() -> Weight {
334
		// Proof Size summary in bytes:
335
		//  Measured:  `383`
336
		//  Estimated: `3639`
337
		// Minimum execution time: 30_774_000 picoseconds.
338
		Weight::from_parts(31_204_000, 3639)
339
			.saturating_add(T::DbWeight::get().reads(2_u64))
340
			.saturating_add(T::DbWeight::get().writes(1_u64))
341
	}
342
	/// Storage: `Assets::Asset` (r:1 w:1)
343
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
344
	fn force_asset_status() -> Weight {
345
		// Proof Size summary in bytes:
346
		//  Measured:  `207`
347
		//  Estimated: `3639`
348
		// Minimum execution time: 10_780_000 picoseconds.
349
		Weight::from_parts(11_153_000, 3639)
350
			.saturating_add(T::DbWeight::get().reads(1_u64))
351
			.saturating_add(T::DbWeight::get().writes(1_u64))
352
	}
353
	/// Storage: `Assets::Asset` (r:1 w:1)
354
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
355
	/// Storage: `Assets::Approvals` (r:1 w:1)
356
	/// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(136), added: 2611, mode: `MaxEncodedLen`)
357
6
	fn approve_transfer() -> Weight {
358
6
		// Proof Size summary in bytes:
359
6
		//  Measured:  `241`
360
6
		//  Estimated: `3639`
361
6
		// Minimum execution time: 17_198_000 picoseconds.
362
6
		Weight::from_parts(17_871_000, 3639)
363
6
			.saturating_add(T::DbWeight::get().reads(2_u64))
364
6
			.saturating_add(T::DbWeight::get().writes(2_u64))
365
6
	}
366
	/// Storage: `Assets::Asset` (r:1 w:1)
367
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
368
	/// Storage: `Assets::Approvals` (r:1 w:1)
369
	/// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(136), added: 2611, mode: `MaxEncodedLen`)
370
	/// Storage: `Assets::Account` (r:2 w:2)
371
	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
372
	/// Storage: `System::Account` (r:1 w:1)
373
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
374
6
	fn transfer_approved() -> Weight {
375
6
		// Proof Size summary in bytes:
376
6
		//  Measured:  `513`
377
6
		//  Estimated: `6184`
378
6
		// Minimum execution time: 54_291_000 picoseconds.
379
6
		Weight::from_parts(55_341_000, 6184)
380
6
			.saturating_add(T::DbWeight::get().reads(5_u64))
381
6
			.saturating_add(T::DbWeight::get().writes(5_u64))
382
6
	}
383
	/// Storage: `Assets::Asset` (r:1 w:1)
384
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
385
	/// Storage: `Assets::Approvals` (r:1 w:1)
386
	/// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(136), added: 2611, mode: `MaxEncodedLen`)
387
	fn cancel_approval() -> Weight {
388
		// Proof Size summary in bytes:
389
		//  Measured:  `399`
390
		//  Estimated: `3639`
391
		// Minimum execution time: 20_000_000 picoseconds.
392
		Weight::from_parts(20_708_000, 3639)
393
			.saturating_add(T::DbWeight::get().reads(2_u64))
394
			.saturating_add(T::DbWeight::get().writes(2_u64))
395
	}
396
	/// Storage: `Assets::Asset` (r:1 w:1)
397
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
398
	/// Storage: `Assets::Approvals` (r:1 w:1)
399
	/// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(136), added: 2611, mode: `MaxEncodedLen`)
400
	fn force_cancel_approval() -> Weight {
401
		// Proof Size summary in bytes:
402
		//  Measured:  `399`
403
		//  Estimated: `3639`
404
		// Minimum execution time: 20_105_000 picoseconds.
405
		Weight::from_parts(20_829_000, 3639)
406
			.saturating_add(T::DbWeight::get().reads(2_u64))
407
			.saturating_add(T::DbWeight::get().writes(2_u64))
408
	}
409
	/// Storage: `Assets::Asset` (r:1 w:1)
410
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
411
	fn set_min_balance() -> Weight {
412
		// Proof Size summary in bytes:
413
		//  Measured:  `207`
414
		//  Estimated: `3639`
415
		// Minimum execution time: 11_965_000 picoseconds.
416
		Weight::from_parts(12_257_000, 3639)
417
			.saturating_add(T::DbWeight::get().reads(1_u64))
418
			.saturating_add(T::DbWeight::get().writes(1_u64))
419
	}
420
	/// Storage: `Assets::Account` (r:1 w:1)
421
	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
422
	/// Storage: `Assets::Asset` (r:1 w:1)
423
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
424
	/// Storage: `System::Account` (r:1 w:1)
425
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
426
	fn touch() -> Weight {
427
		// Proof Size summary in bytes:
428
		//  Measured:  `435`
429
		//  Estimated: `3639`
430
		// Minimum execution time: 33_338_000 picoseconds.
431
		Weight::from_parts(34_546_000, 3639)
432
			.saturating_add(T::DbWeight::get().reads(3_u64))
433
			.saturating_add(T::DbWeight::get().writes(3_u64))
434
	}
435
	/// Storage: `Assets::Account` (r:1 w:1)
436
	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
437
	/// Storage: `Assets::Asset` (r:1 w:1)
438
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
439
	fn touch_other() -> Weight {
440
		// Proof Size summary in bytes:
441
		//  Measured:  `207`
442
		//  Estimated: `3639`
443
		// Minimum execution time: 30_237_000 picoseconds.
444
		Weight::from_parts(30_905_000, 3639)
445
			.saturating_add(T::DbWeight::get().reads(2_u64))
446
			.saturating_add(T::DbWeight::get().writes(2_u64))
447
	}
448
	/// Storage: `Assets::Account` (r:1 w:1)
449
	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
450
	/// Storage: `Assets::Asset` (r:1 w:1)
451
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
452
	/// Storage: `System::Account` (r:1 w:1)
453
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
454
	fn refund() -> Weight {
455
		// Proof Size summary in bytes:
456
		//  Measured:  `561`
457
		//  Estimated: `3639`
458
		// Minimum execution time: 35_445_000 picoseconds.
459
		Weight::from_parts(36_412_000, 3639)
460
			.saturating_add(T::DbWeight::get().reads(3_u64))
461
			.saturating_add(T::DbWeight::get().writes(3_u64))
462
	}
463
	/// Storage: `Assets::Account` (r:1 w:1)
464
	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
465
	/// Storage: `Assets::Asset` (r:1 w:1)
466
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
467
	fn refund_other() -> Weight {
468
		// Proof Size summary in bytes:
469
		//  Measured:  `353`
470
		//  Estimated: `3639`
471
		// Minimum execution time: 32_634_000 picoseconds.
472
		Weight::from_parts(33_594_000, 3639)
473
			.saturating_add(T::DbWeight::get().reads(2_u64))
474
			.saturating_add(T::DbWeight::get().writes(2_u64))
475
	}
476
	/// Storage: `Assets::Asset` (r:1 w:0)
477
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
478
	/// Storage: `Assets::Account` (r:1 w:1)
479
	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
480
	fn block() -> Weight {
481
		// Proof Size summary in bytes:
482
		//  Measured:  `315`
483
		//  Estimated: `3639`
484
		// Minimum execution time: 15_764_000 picoseconds.
485
		Weight::from_parts(16_419_000, 3639)
486
			.saturating_add(T::DbWeight::get().reads(2_u64))
487
			.saturating_add(T::DbWeight::get().writes(1_u64))
488
	}
489
	/// Storage: `Assets::Asset` (r:1 w:1)
490
	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
491
	/// Storage: `Assets::Account` (r:2 w:2)
492
	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
493
	/// Storage: `System::Account` (r:1 w:1)
494
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
495
	fn transfer_all() -> Weight {
496
		// Proof Size summary in bytes:
497
		//  Measured:  `420`
498
		//  Estimated: `6184`
499
		// Minimum execution time: 54_229_000 picoseconds.
500
		Weight::from_parts(55_496_000, 6184)
501
			.saturating_add(T::DbWeight::get().reads(4_u64))
502
			.saturating_add(T::DbWeight::get().writes(4_u64))
503
	}
504
}