common_runtime/weights/
pallet_assets.rs

1//! Autogenerated weights for pallet_assets
2//!
3//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0
4//! DATE: 2025-10-30, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
5//! WORST CASE MAP SIZE: `1000000`
6//! HOSTNAME: `ip-10-173-5-194`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
7//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
8
9// Executed Command:
10// ./scripts/../target/release/frequency
11// benchmark
12// pallet
13// --pallet=pallet_assets
14// --extrinsic
15// *
16// --heap-pages=4096
17// --steps=50
18// --repeat=20
19// --output=./scripts/../runtime/common/src/weights
20// --template=./scripts/../.maintain/runtime-weight-template.hbs
21// --additional-trie-layers=3
22// --runtime=./scripts/../target/release/wbuild/frequency-runtime/frequency_runtime.wasm
23// --genesis-builder=runtime
24
25#![cfg_attr(rustfmt, rustfmt_skip)]
26#![allow(unused_parens)]
27#![allow(unused_imports)]
28#![allow(missing_docs)]
29
30use frame_support::{traits::Get, weights::Weight};
31use core::marker::PhantomData;
32
33/// Weights for `pallet_assets` using the Substrate node and recommended hardware.
34pub struct SubstrateWeight<T>(PhantomData<T>);
35impl<T: frame_system::Config> pallet_assets::WeightInfo for SubstrateWeight<T> {
36	fn create() -> Weight {
37		// Proof Size summary in bytes:
38		//  Measured:  `0`
39		//  Estimated: `0`
40		// Minimum execution time: 0_000 picoseconds.
41		Weight::from_parts(0, 0)
42	}
43	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
44	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
45	/// Storage: `ForeignAssets::NextAssetId` (r:1 w:0)
46	/// Proof: `ForeignAssets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(602), added: 1097, mode: `MaxEncodedLen`)
47	fn force_create() -> Weight {
48		// Proof Size summary in bytes:
49		//  Measured:  `4`
50		//  Estimated: `4768`
51		// Minimum execution time: 11_460_000 picoseconds.
52		Weight::from_parts(12_197_000, 4768)
53			.saturating_add(T::DbWeight::get().reads(2_u64))
54			.saturating_add(T::DbWeight::get().writes(1_u64))
55	}
56	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
57	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
58	fn start_destroy() -> Weight {
59		// Proof Size summary in bytes:
60		//  Measured:  `276`
61		//  Estimated: `4768`
62		// Minimum execution time: 14_299_000 picoseconds.
63		Weight::from_parts(15_143_000, 4768)
64			.saturating_add(T::DbWeight::get().reads(1_u64))
65			.saturating_add(T::DbWeight::get().writes(1_u64))
66	}
67	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
68	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
69	/// Storage: `ForeignAssets::Account` (r:1001 w:1000)
70	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
71	/// Storage: `System::Account` (r:1000 w:1000)
72	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
73	/// The range of component `c` is `[0, 1000]`.
74	fn destroy_accounts(c: u32, ) -> Weight {
75		// Proof Size summary in bytes:
76		//  Measured:  `116 + c * (208 ±0)`
77		//  Estimated: `4768 + c * (3207 ±0)`
78		// Minimum execution time: 16_530_000 picoseconds.
79		Weight::from_parts(17_102_000, 4768)
80			// Standard Error: 17_267
81			.saturating_add(Weight::from_parts(14_867_408, 0).saturating_mul(c.into()))
82			.saturating_add(T::DbWeight::get().reads(2_u64))
83			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into())))
84			.saturating_add(T::DbWeight::get().writes(1_u64))
85			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(c.into())))
86			.saturating_add(Weight::from_parts(0, 3207).saturating_mul(c.into()))
87	}
88	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
89	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
90	/// Storage: `ForeignAssets::Approvals` (r:1001 w:1000)
91	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(746), added: 3221, mode: `MaxEncodedLen`)
92	/// The range of component `a` is `[0, 1000]`.
93	fn destroy_approvals(a: u32, ) -> Weight {
94		// Proof Size summary in bytes:
95		//  Measured:  `413 + a * (86 ±0)`
96		//  Estimated: `4768 + a * (3221 ±0)`
97		// Minimum execution time: 19_491_000 picoseconds.
98		Weight::from_parts(20_118_000, 4768)
99			// Standard Error: 5_275
100			.saturating_add(Weight::from_parts(5_763_619, 0).saturating_mul(a.into()))
101			.saturating_add(T::DbWeight::get().reads(2_u64))
102			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into())))
103			.saturating_add(T::DbWeight::get().writes(1_u64))
104			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(a.into())))
105			.saturating_add(Weight::from_parts(0, 3221).saturating_mul(a.into()))
106	}
107	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
108	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
109	/// Storage: `ForeignAssets::Metadata` (r:1 w:0)
110	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(738), added: 3213, mode: `MaxEncodedLen`)
111	fn finish_destroy() -> Weight {
112		// Proof Size summary in bytes:
113		//  Measured:  `242`
114		//  Estimated: `4768`
115		// Minimum execution time: 13_720_000 picoseconds.
116		Weight::from_parts(14_205_000, 4768)
117			.saturating_add(T::DbWeight::get().reads(2_u64))
118			.saturating_add(T::DbWeight::get().writes(1_u64))
119	}
120	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
121	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
122	/// Storage: `ForeignAssets::Account` (r:1 w:1)
123	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
124	fn mint() -> Weight {
125		// Proof Size summary in bytes:
126		//  Measured:  `242`
127		//  Estimated: `4768`
128		// Minimum execution time: 24_282_000 picoseconds.
129		Weight::from_parts(24_843_000, 4768)
130			.saturating_add(T::DbWeight::get().reads(2_u64))
131			.saturating_add(T::DbWeight::get().writes(2_u64))
132	}
133	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
134	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
135	/// Storage: `ForeignAssets::Account` (r:1 w:1)
136	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
137	fn burn() -> Weight {
138		// Proof Size summary in bytes:
139		//  Measured:  `350`
140		//  Estimated: `4768`
141		// Minimum execution time: 35_377_000 picoseconds.
142		Weight::from_parts(36_084_000, 4768)
143			.saturating_add(T::DbWeight::get().reads(2_u64))
144			.saturating_add(T::DbWeight::get().writes(2_u64))
145	}
146	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
147	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
148	/// Storage: `ForeignAssets::Account` (r:2 w:2)
149	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
150	/// Storage: `System::Account` (r:1 w:1)
151	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
152	fn transfer() -> Weight {
153		// Proof Size summary in bytes:
154		//  Measured:  `389`
155		//  Estimated: `7899`
156		// Minimum execution time: 49_218_000 picoseconds.
157		Weight::from_parts(51_150_000, 7899)
158			.saturating_add(T::DbWeight::get().reads(4_u64))
159			.saturating_add(T::DbWeight::get().writes(4_u64))
160	}
161	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
162	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
163	/// Storage: `ForeignAssets::Account` (r:2 w:2)
164	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
165	/// Storage: `System::Account` (r:1 w:1)
166	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
167	fn transfer_keep_alive() -> Weight {
168		// Proof Size summary in bytes:
169		//  Measured:  `389`
170		//  Estimated: `7899`
171		// Minimum execution time: 44_868_000 picoseconds.
172		Weight::from_parts(45_290_000, 7899)
173			.saturating_add(T::DbWeight::get().reads(4_u64))
174			.saturating_add(T::DbWeight::get().writes(4_u64))
175	}
176	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
177	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
178	/// Storage: `ForeignAssets::Account` (r:2 w:2)
179	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
180	/// Storage: `System::Account` (r:1 w:1)
181	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
182	fn force_transfer() -> Weight {
183		// Proof Size summary in bytes:
184		//  Measured:  `389`
185		//  Estimated: `7899`
186		// Minimum execution time: 49_448_000 picoseconds.
187		Weight::from_parts(50_877_000, 7899)
188			.saturating_add(T::DbWeight::get().reads(4_u64))
189			.saturating_add(T::DbWeight::get().writes(4_u64))
190	}
191	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
192	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
193	/// Storage: `ForeignAssets::Account` (r:1 w:1)
194	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
195	fn freeze() -> Weight {
196		// Proof Size summary in bytes:
197		//  Measured:  `350`
198		//  Estimated: `4768`
199		// Minimum execution time: 18_785_000 picoseconds.
200		Weight::from_parts(20_044_000, 4768)
201			.saturating_add(T::DbWeight::get().reads(2_u64))
202			.saturating_add(T::DbWeight::get().writes(1_u64))
203	}
204	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
205	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
206	/// Storage: `ForeignAssets::Account` (r:1 w:1)
207	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
208	fn thaw() -> Weight {
209		// Proof Size summary in bytes:
210		//  Measured:  `350`
211		//  Estimated: `4768`
212		// Minimum execution time: 18_810_000 picoseconds.
213		Weight::from_parts(20_300_000, 4768)
214			.saturating_add(T::DbWeight::get().reads(2_u64))
215			.saturating_add(T::DbWeight::get().writes(1_u64))
216	}
217	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
218	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
219	fn freeze_asset() -> Weight {
220		// Proof Size summary in bytes:
221		//  Measured:  `276`
222		//  Estimated: `4768`
223		// Minimum execution time: 14_652_000 picoseconds.
224		Weight::from_parts(15_120_000, 4768)
225			.saturating_add(T::DbWeight::get().reads(1_u64))
226			.saturating_add(T::DbWeight::get().writes(1_u64))
227	}
228	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
229	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
230	fn thaw_asset() -> Weight {
231		// Proof Size summary in bytes:
232		//  Measured:  `276`
233		//  Estimated: `4768`
234		// Minimum execution time: 14_702_000 picoseconds.
235		Weight::from_parts(15_287_000, 4768)
236			.saturating_add(T::DbWeight::get().reads(1_u64))
237			.saturating_add(T::DbWeight::get().writes(1_u64))
238	}
239	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
240	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
241	/// Storage: `ForeignAssets::Metadata` (r:1 w:0)
242	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(738), added: 3213, mode: `MaxEncodedLen`)
243	fn transfer_ownership() -> Weight {
244		// Proof Size summary in bytes:
245		//  Measured:  `242`
246		//  Estimated: `4768`
247		// Minimum execution time: 14_169_000 picoseconds.
248		Weight::from_parts(14_870_000, 4768)
249			.saturating_add(T::DbWeight::get().reads(2_u64))
250			.saturating_add(T::DbWeight::get().writes(1_u64))
251	}
252	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
253	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
254	fn set_team() -> Weight {
255		// Proof Size summary in bytes:
256		//  Measured:  `242`
257		//  Estimated: `4768`
258		// Minimum execution time: 12_027_000 picoseconds.
259		Weight::from_parts(12_668_000, 4768)
260			.saturating_add(T::DbWeight::get().reads(1_u64))
261			.saturating_add(T::DbWeight::get().writes(1_u64))
262	}
263	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
264	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
265	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
266	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(738), added: 3213, mode: `MaxEncodedLen`)
267	/// The range of component `n` is `[0, 50]`.
268	/// The range of component `s` is `[0, 50]`.
269	fn set_metadata(_n: u32, s: u32, ) -> Weight {
270		// Proof Size summary in bytes:
271		//  Measured:  `242`
272		//  Estimated: `4768`
273		// Minimum execution time: 17_000_000 picoseconds.
274		Weight::from_parts(17_991_460, 4768)
275			// Standard Error: 549
276			.saturating_add(Weight::from_parts(1_470, 0).saturating_mul(s.into()))
277			.saturating_add(T::DbWeight::get().reads(2_u64))
278			.saturating_add(T::DbWeight::get().writes(1_u64))
279	}
280	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
281	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
282	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
283	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(738), added: 3213, mode: `MaxEncodedLen`)
284	fn clear_metadata() -> Weight {
285		// Proof Size summary in bytes:
286		//  Measured:  `406`
287		//  Estimated: `4768`
288		// Minimum execution time: 18_272_000 picoseconds.
289		Weight::from_parts(18_946_000, 4768)
290			.saturating_add(T::DbWeight::get().reads(2_u64))
291			.saturating_add(T::DbWeight::get().writes(1_u64))
292	}
293	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
294	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
295	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
296	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(738), added: 3213, mode: `MaxEncodedLen`)
297	/// The range of component `n` is `[0, 50]`.
298	/// The range of component `s` is `[0, 50]`.
299	fn force_set_metadata(n: u32, s: u32, ) -> Weight {
300		// Proof Size summary in bytes:
301		//  Measured:  `81`
302		//  Estimated: `4768`
303		// Minimum execution time: 12_689_000 picoseconds.
304		Weight::from_parts(13_360_129, 4768)
305			// Standard Error: 418
306			.saturating_add(Weight::from_parts(1_808, 0).saturating_mul(n.into()))
307			// Standard Error: 418
308			.saturating_add(Weight::from_parts(1_343, 0).saturating_mul(s.into()))
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(808), added: 3283, mode: `MaxEncodedLen`)
314	/// Storage: `ForeignAssets::Metadata` (r:1 w:1)
315	/// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(738), added: 3213, mode: `MaxEncodedLen`)
316	fn force_clear_metadata() -> Weight {
317		// Proof Size summary in bytes:
318		//  Measured:  `406`
319		//  Estimated: `4768`
320		// Minimum execution time: 17_520_000 picoseconds.
321		Weight::from_parts(18_048_000, 4768)
322			.saturating_add(T::DbWeight::get().reads(2_u64))
323			.saturating_add(T::DbWeight::get().writes(1_u64))
324	}
325	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
326	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
327	fn force_asset_status() -> Weight {
328		// Proof Size summary in bytes:
329		//  Measured:  `242`
330		//  Estimated: `4768`
331		// Minimum execution time: 11_407_000 picoseconds.
332		Weight::from_parts(12_370_000, 4768)
333			.saturating_add(T::DbWeight::get().reads(1_u64))
334			.saturating_add(T::DbWeight::get().writes(1_u64))
335	}
336	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
337	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
338	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
339	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(746), added: 3221, mode: `MaxEncodedLen`)
340	fn approve_transfer() -> Weight {
341		// Proof Size summary in bytes:
342		//  Measured:  `276`
343		//  Estimated: `4768`
344		// Minimum execution time: 21_475_000 picoseconds.
345		Weight::from_parts(22_401_000, 4768)
346			.saturating_add(T::DbWeight::get().reads(2_u64))
347			.saturating_add(T::DbWeight::get().writes(2_u64))
348	}
349	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
350	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
351	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
352	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(746), added: 3221, mode: `MaxEncodedLen`)
353	/// Storage: `ForeignAssets::Account` (r:2 w:2)
354	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
355	/// Storage: `System::Account` (r:1 w:1)
356	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
357	fn transfer_approved() -> Weight {
358		// Proof Size summary in bytes:
359		//  Measured:  `559`
360		//  Estimated: `7899`
361		// Minimum execution time: 59_544_000 picoseconds.
362		Weight::from_parts(60_829_000, 7899)
363			.saturating_add(T::DbWeight::get().reads(5_u64))
364			.saturating_add(T::DbWeight::get().writes(5_u64))
365	}
366	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
367	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
368	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
369	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(746), added: 3221, mode: `MaxEncodedLen`)
370	fn cancel_approval() -> Weight {
371		// Proof Size summary in bytes:
372		//  Measured:  `446`
373		//  Estimated: `4768`
374		// Minimum execution time: 24_016_000 picoseconds.
375		Weight::from_parts(24_996_000, 4768)
376			.saturating_add(T::DbWeight::get().reads(2_u64))
377			.saturating_add(T::DbWeight::get().writes(2_u64))
378	}
379	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
380	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
381	/// Storage: `ForeignAssets::Approvals` (r:1 w:1)
382	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(746), added: 3221, mode: `MaxEncodedLen`)
383	fn force_cancel_approval() -> Weight {
384		// Proof Size summary in bytes:
385		//  Measured:  `446`
386		//  Estimated: `4768`
387		// Minimum execution time: 24_270_000 picoseconds.
388		Weight::from_parts(25_028_000, 4768)
389			.saturating_add(T::DbWeight::get().reads(2_u64))
390			.saturating_add(T::DbWeight::get().writes(2_u64))
391	}
392	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
393	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
394	fn set_min_balance() -> Weight {
395		// Proof Size summary in bytes:
396		//  Measured:  `242`
397		//  Estimated: `4768`
398		// Minimum execution time: 12_892_000 picoseconds.
399		Weight::from_parts(13_405_000, 4768)
400			.saturating_add(T::DbWeight::get().reads(1_u64))
401			.saturating_add(T::DbWeight::get().writes(1_u64))
402	}
403	/// Storage: `ForeignAssets::Account` (r:1 w:1)
404	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
405	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
406	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
407	fn touch() -> Weight {
408		// Proof Size summary in bytes:
409		//  Measured:  `242`
410		//  Estimated: `4768`
411		// Minimum execution time: 18_323_000 picoseconds.
412		Weight::from_parts(19_135_000, 4768)
413			.saturating_add(T::DbWeight::get().reads(2_u64))
414			.saturating_add(T::DbWeight::get().writes(2_u64))
415	}
416	/// Storage: `ForeignAssets::Account` (r:1 w:1)
417	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
418	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
419	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
420	fn touch_other() -> Weight {
421		// Proof Size summary in bytes:
422		//  Measured:  `242`
423		//  Estimated: `4768`
424		// Minimum execution time: 20_687_000 picoseconds.
425		Weight::from_parts(21_264_000, 4768)
426			.saturating_add(T::DbWeight::get().reads(2_u64))
427			.saturating_add(T::DbWeight::get().writes(2_u64))
428	}
429	/// Storage: `ForeignAssets::Account` (r:1 w:1)
430	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
431	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
432	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
433	fn refund() -> Weight {
434		// Proof Size summary in bytes:
435		//  Measured:  `368`
436		//  Estimated: `4768`
437		// Minimum execution time: 19_001_000 picoseconds.
438		Weight::from_parts(19_845_000, 4768)
439			.saturating_add(T::DbWeight::get().reads(2_u64))
440			.saturating_add(T::DbWeight::get().writes(2_u64))
441	}
442	/// Storage: `ForeignAssets::Account` (r:1 w:1)
443	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
444	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
445	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
446	fn refund_other() -> Weight {
447		// Proof Size summary in bytes:
448		//  Measured:  `401`
449		//  Estimated: `4768`
450		// Minimum execution time: 18_987_000 picoseconds.
451		Weight::from_parts(19_501_000, 4768)
452			.saturating_add(T::DbWeight::get().reads(2_u64))
453			.saturating_add(T::DbWeight::get().writes(2_u64))
454	}
455	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
456	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
457	/// Storage: `ForeignAssets::Account` (r:1 w:1)
458	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
459	fn block() -> Weight {
460		// Proof Size summary in bytes:
461		//  Measured:  `350`
462		//  Estimated: `4768`
463		// Minimum execution time: 18_665_000 picoseconds.
464		Weight::from_parts(19_530_000, 4768)
465			.saturating_add(T::DbWeight::get().reads(2_u64))
466			.saturating_add(T::DbWeight::get().writes(1_u64))
467	}
468	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
469	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
470	/// Storage: `ForeignAssets::Account` (r:2 w:2)
471	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
472	/// Storage: `System::Account` (r:1 w:1)
473	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
474	fn transfer_all() -> Weight {
475		// Proof Size summary in bytes:
476		//  Measured:  `389`
477		//  Estimated: `7899`
478		// Minimum execution time: 59_813_000 picoseconds.
479		Weight::from_parts(61_301_000, 7899)
480			.saturating_add(T::DbWeight::get().reads(4_u64))
481			.saturating_add(T::DbWeight::get().writes(4_u64))
482	}
483	/// Storage: `ForeignAssets::Asset` (r:1 w:0)
484	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
485	fn total_issuance() -> Weight {
486		// Proof Size summary in bytes:
487		//  Measured:  `276`
488		//  Estimated: `4768`
489		// Minimum execution time: 7_499_000 picoseconds.
490		Weight::from_parts(7_878_000, 4768)
491			.saturating_add(T::DbWeight::get().reads(1_u64))
492	}
493	/// Storage: `ForeignAssets::Account` (r:1 w:0)
494	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
495	fn balance() -> Weight {
496		// Proof Size summary in bytes:
497		//  Measured:  `150`
498		//  Estimated: `4692`
499		// Minimum execution time: 8_656_000 picoseconds.
500		Weight::from_parts(8_870_000, 4692)
501			.saturating_add(T::DbWeight::get().reads(1_u64))
502	}
503	/// Storage: `ForeignAssets::Approvals` (r:1 w:0)
504	/// Proof: `ForeignAssets::Approvals` (`max_values`: None, `max_size`: Some(746), added: 3221, mode: `MaxEncodedLen`)
505	fn allowance() -> Weight {
506		// Proof Size summary in bytes:
507		//  Measured:  `245`
508		//  Estimated: `4706`
509		// Minimum execution time: 11_383_000 picoseconds.
510		Weight::from_parts(11_907_000, 4706)
511			.saturating_add(T::DbWeight::get().reads(1_u64))
512	}
513}
514
515
516#[cfg(test)]
517mod tests {
518  use frame_support::{traits::Get, weights::Weight, dispatch::DispatchClass};
519  use crate::constants::{MAXIMUM_BLOCK_WEIGHT, NORMAL_DISPATCH_RATIO};
520  use crate::weights::extrinsic_weights::ExtrinsicBaseWeight;
521
522  #[allow(dead_code)]
523  struct BlockWeights;
524  impl Get<frame_system::limits::BlockWeights> for BlockWeights {
525  	fn get() -> frame_system::limits::BlockWeights {
526  		frame_system::limits::BlockWeights::builder()
527  			.base_block(Weight::zero())
528  			.for_class(DispatchClass::all(), |weights| {
529  				weights.base_extrinsic = ExtrinsicBaseWeight::get();
530  			})
531  			.for_class(DispatchClass::non_mandatory(), |weights| {
532  				weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);
533  			})
534  			.build_or_panic()
535  	}
536  }
537
538	#[test]
539	fn test_force_create() {
540		assert!(
541			BlockWeights::get()
542				.per_class
543				.get(frame_support::dispatch::DispatchClass::Normal)
544				.max_extrinsic
545				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
546				.proof_size()
547				> 4768
548		);
549	}
550	#[test]
551	fn test_start_destroy() {
552		assert!(
553			BlockWeights::get()
554				.per_class
555				.get(frame_support::dispatch::DispatchClass::Normal)
556				.max_extrinsic
557				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
558				.proof_size()
559				> 4768
560		);
561	}
562	#[test]
563	fn test_destroy_accounts() {
564		assert!(
565			BlockWeights::get()
566				.per_class
567				.get(frame_support::dispatch::DispatchClass::Normal)
568				.max_extrinsic
569				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
570				.proof_size()
571				> 4768
572		);
573	}
574	#[test]
575	fn test_destroy_approvals() {
576		assert!(
577			BlockWeights::get()
578				.per_class
579				.get(frame_support::dispatch::DispatchClass::Normal)
580				.max_extrinsic
581				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
582				.proof_size()
583				> 4768
584		);
585	}
586	#[test]
587	fn test_finish_destroy() {
588		assert!(
589			BlockWeights::get()
590				.per_class
591				.get(frame_support::dispatch::DispatchClass::Normal)
592				.max_extrinsic
593				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
594				.proof_size()
595				> 4768
596		);
597	}
598	#[test]
599	fn test_mint() {
600		assert!(
601			BlockWeights::get()
602				.per_class
603				.get(frame_support::dispatch::DispatchClass::Normal)
604				.max_extrinsic
605				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
606				.proof_size()
607				> 4768
608		);
609	}
610	#[test]
611	fn test_burn() {
612		assert!(
613			BlockWeights::get()
614				.per_class
615				.get(frame_support::dispatch::DispatchClass::Normal)
616				.max_extrinsic
617				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
618				.proof_size()
619				> 4768
620		);
621	}
622	#[test]
623	fn test_transfer() {
624		assert!(
625			BlockWeights::get()
626				.per_class
627				.get(frame_support::dispatch::DispatchClass::Normal)
628				.max_extrinsic
629				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
630				.proof_size()
631				> 7899
632		);
633	}
634	#[test]
635	fn test_transfer_keep_alive() {
636		assert!(
637			BlockWeights::get()
638				.per_class
639				.get(frame_support::dispatch::DispatchClass::Normal)
640				.max_extrinsic
641				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
642				.proof_size()
643				> 7899
644		);
645	}
646	#[test]
647	fn test_force_transfer() {
648		assert!(
649			BlockWeights::get()
650				.per_class
651				.get(frame_support::dispatch::DispatchClass::Normal)
652				.max_extrinsic
653				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
654				.proof_size()
655				> 7899
656		);
657	}
658	#[test]
659	fn test_freeze() {
660		assert!(
661			BlockWeights::get()
662				.per_class
663				.get(frame_support::dispatch::DispatchClass::Normal)
664				.max_extrinsic
665				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
666				.proof_size()
667				> 4768
668		);
669	}
670	#[test]
671	fn test_thaw() {
672		assert!(
673			BlockWeights::get()
674				.per_class
675				.get(frame_support::dispatch::DispatchClass::Normal)
676				.max_extrinsic
677				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
678				.proof_size()
679				> 4768
680		);
681	}
682	#[test]
683	fn test_freeze_asset() {
684		assert!(
685			BlockWeights::get()
686				.per_class
687				.get(frame_support::dispatch::DispatchClass::Normal)
688				.max_extrinsic
689				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
690				.proof_size()
691				> 4768
692		);
693	}
694	#[test]
695	fn test_thaw_asset() {
696		assert!(
697			BlockWeights::get()
698				.per_class
699				.get(frame_support::dispatch::DispatchClass::Normal)
700				.max_extrinsic
701				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
702				.proof_size()
703				> 4768
704		);
705	}
706	#[test]
707	fn test_transfer_ownership() {
708		assert!(
709			BlockWeights::get()
710				.per_class
711				.get(frame_support::dispatch::DispatchClass::Normal)
712				.max_extrinsic
713				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
714				.proof_size()
715				> 4768
716		);
717	}
718	#[test]
719	fn test_set_team() {
720		assert!(
721			BlockWeights::get()
722				.per_class
723				.get(frame_support::dispatch::DispatchClass::Normal)
724				.max_extrinsic
725				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
726				.proof_size()
727				> 4768
728		);
729	}
730	#[test]
731	fn test_set_metadata() {
732		assert!(
733			BlockWeights::get()
734				.per_class
735				.get(frame_support::dispatch::DispatchClass::Normal)
736				.max_extrinsic
737				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
738				.proof_size()
739				> 4768
740		);
741	}
742	#[test]
743	fn test_clear_metadata() {
744		assert!(
745			BlockWeights::get()
746				.per_class
747				.get(frame_support::dispatch::DispatchClass::Normal)
748				.max_extrinsic
749				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
750				.proof_size()
751				> 4768
752		);
753	}
754	#[test]
755	fn test_force_set_metadata() {
756		assert!(
757			BlockWeights::get()
758				.per_class
759				.get(frame_support::dispatch::DispatchClass::Normal)
760				.max_extrinsic
761				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
762				.proof_size()
763				> 4768
764		);
765	}
766	#[test]
767	fn test_force_clear_metadata() {
768		assert!(
769			BlockWeights::get()
770				.per_class
771				.get(frame_support::dispatch::DispatchClass::Normal)
772				.max_extrinsic
773				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
774				.proof_size()
775				> 4768
776		);
777	}
778	#[test]
779	fn test_force_asset_status() {
780		assert!(
781			BlockWeights::get()
782				.per_class
783				.get(frame_support::dispatch::DispatchClass::Normal)
784				.max_extrinsic
785				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
786				.proof_size()
787				> 4768
788		);
789	}
790	#[test]
791	fn test_approve_transfer() {
792		assert!(
793			BlockWeights::get()
794				.per_class
795				.get(frame_support::dispatch::DispatchClass::Normal)
796				.max_extrinsic
797				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
798				.proof_size()
799				> 4768
800		);
801	}
802	#[test]
803	fn test_transfer_approved() {
804		assert!(
805			BlockWeights::get()
806				.per_class
807				.get(frame_support::dispatch::DispatchClass::Normal)
808				.max_extrinsic
809				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
810				.proof_size()
811				> 7899
812		);
813	}
814	#[test]
815	fn test_cancel_approval() {
816		assert!(
817			BlockWeights::get()
818				.per_class
819				.get(frame_support::dispatch::DispatchClass::Normal)
820				.max_extrinsic
821				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
822				.proof_size()
823				> 4768
824		);
825	}
826	#[test]
827	fn test_force_cancel_approval() {
828		assert!(
829			BlockWeights::get()
830				.per_class
831				.get(frame_support::dispatch::DispatchClass::Normal)
832				.max_extrinsic
833				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
834				.proof_size()
835				> 4768
836		);
837	}
838	#[test]
839	fn test_set_min_balance() {
840		assert!(
841			BlockWeights::get()
842				.per_class
843				.get(frame_support::dispatch::DispatchClass::Normal)
844				.max_extrinsic
845				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
846				.proof_size()
847				> 4768
848		);
849	}
850	#[test]
851	fn test_touch() {
852		assert!(
853			BlockWeights::get()
854				.per_class
855				.get(frame_support::dispatch::DispatchClass::Normal)
856				.max_extrinsic
857				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
858				.proof_size()
859				> 4768
860		);
861	}
862	#[test]
863	fn test_touch_other() {
864		assert!(
865			BlockWeights::get()
866				.per_class
867				.get(frame_support::dispatch::DispatchClass::Normal)
868				.max_extrinsic
869				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
870				.proof_size()
871				> 4768
872		);
873	}
874	#[test]
875	fn test_refund() {
876		assert!(
877			BlockWeights::get()
878				.per_class
879				.get(frame_support::dispatch::DispatchClass::Normal)
880				.max_extrinsic
881				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
882				.proof_size()
883				> 4768
884		);
885	}
886	#[test]
887	fn test_refund_other() {
888		assert!(
889			BlockWeights::get()
890				.per_class
891				.get(frame_support::dispatch::DispatchClass::Normal)
892				.max_extrinsic
893				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
894				.proof_size()
895				> 4768
896		);
897	}
898	#[test]
899	fn test_block() {
900		assert!(
901			BlockWeights::get()
902				.per_class
903				.get(frame_support::dispatch::DispatchClass::Normal)
904				.max_extrinsic
905				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
906				.proof_size()
907				> 4768
908		);
909	}
910	#[test]
911	fn test_transfer_all() {
912		assert!(
913			BlockWeights::get()
914				.per_class
915				.get(frame_support::dispatch::DispatchClass::Normal)
916				.max_extrinsic
917				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
918				.proof_size()
919				> 7899
920		);
921	}
922	#[test]
923	fn test_total_issuance() {
924		assert!(
925			BlockWeights::get()
926				.per_class
927				.get(frame_support::dispatch::DispatchClass::Normal)
928				.max_extrinsic
929				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
930				.proof_size()
931				> 4768
932		);
933	}
934	#[test]
935	fn test_balance() {
936		assert!(
937			BlockWeights::get()
938				.per_class
939				.get(frame_support::dispatch::DispatchClass::Normal)
940				.max_extrinsic
941				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
942				.proof_size()
943				> 4692
944		);
945	}
946	#[test]
947	fn test_allowance() {
948		assert!(
949			BlockWeights::get()
950				.per_class
951				.get(frame_support::dispatch::DispatchClass::Normal)
952				.max_extrinsic
953				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
954				.proof_size()
955				> 4706
956		);
957	}
958}