pallet_assets/weights.rs
1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18// This file is part of Substrate.
19
20// Copyright (C) Parity Technologies (UK) Ltd.
21// SPDX-License-Identifier: Apache-2.0
22
23// Licensed under the Apache License, Version 2.0 (the "License");
24// you may not use this file except in compliance with the License.
25// You may obtain a copy of the License at
26//
27// http://www.apache.org/licenses/LICENSE-2.0
28//
29// Unless required by applicable law or agreed to in writing, software
30// distributed under the License is distributed on an "AS IS" BASIS,
31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32// See the License for the specific language governing permissions and
33// limitations under the License.
34
35//! Autogenerated weights for `pallet_assets`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2026-02-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `675bd5accea3`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
41//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
42
43// Executed Command:
44// frame-omni-bencher
45// v1
46// benchmark
47// pallet
48// --extrinsic=*
49// --runtime=target/production/wbuild/kitchensink-runtime/kitchensink_runtime.wasm
50// --pallet=pallet_assets
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/assets/src/weights.rs
53// --wasm-execution=compiled
54// --steps=50
55// --repeat=20
56// --heap-pages=4096
57// --template=substrate/.maintain/frame-weight-template.hbs
58// --no-storage-info
59// --no-min-squares
60// --no-median-slopes
61// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage
62
63#![cfg_attr(rustfmt, rustfmt_skip)]
64#![allow(unused_parens)]
65#![allow(unused_imports)]
66#![allow(missing_docs)]
67#![allow(dead_code)]
68
69use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
70use core::marker::PhantomData;
71
72/// Weight functions needed for `pallet_assets`.
73pub trait WeightInfo {
74 fn create() -> Weight;
75 fn force_create() -> Weight;
76 fn start_destroy() -> Weight;
77 fn destroy_accounts(c: u32, ) -> Weight;
78 fn destroy_approvals(a: u32, ) -> Weight;
79 fn finish_destroy() -> Weight;
80 fn mint() -> Weight;
81 fn burn() -> Weight;
82 fn transfer() -> Weight;
83 fn transfer_keep_alive() -> Weight;
84 fn force_transfer() -> Weight;
85 fn freeze() -> Weight;
86 fn thaw() -> Weight;
87 fn freeze_asset() -> Weight;
88 fn thaw_asset() -> Weight;
89 fn transfer_ownership() -> Weight;
90 fn set_team() -> Weight;
91 fn set_reserves(n: u32, ) -> Weight;
92 fn set_metadata(n: u32, s: u32, ) -> Weight;
93 fn clear_metadata() -> Weight;
94 fn force_set_metadata(n: u32, s: u32, ) -> Weight;
95 fn force_clear_metadata() -> Weight;
96 fn force_asset_status() -> Weight;
97 fn approve_transfer() -> Weight;
98 fn transfer_approved() -> Weight;
99 fn cancel_approval() -> Weight;
100 fn force_cancel_approval() -> Weight;
101 fn set_min_balance() -> Weight;
102 fn touch() -> Weight;
103 fn touch_other() -> Weight;
104 fn refund() -> Weight;
105 fn refund_other() -> Weight;
106 fn block() -> Weight;
107 fn transfer_all() -> Weight;
108 fn total_issuance() -> Weight;
109 fn balance() -> Weight;
110 fn allowance() -> Weight;
111 fn migration_v2_foreign_asset_set_reserve_weight() -> Weight;
112 fn get_metadata() -> Weight;
113}
114
115/// Weights for `pallet_assets` using the Substrate node and recommended hardware.
116pub struct SubstrateWeight<T>(PhantomData<T>);
117impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
118 /// Storage: `Assets::Asset` (r:1 w:1)
119 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
120 /// Storage: `Assets::NextAssetId` (r:1 w:0)
121 /// Proof: `Assets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
122 /// Storage: `System::Account` (r:1 w:1)
123 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
124 fn create() -> Weight {
125 // Proof Size summary in bytes:
126 // Measured: `359`
127 // Estimated: `3675`
128 // Minimum execution time: 37_320_000 picoseconds.
129 Weight::from_parts(38_406_000, 3675)
130 .saturating_add(T::DbWeight::get().reads(3_u64))
131 .saturating_add(T::DbWeight::get().writes(2_u64))
132 }
133 /// Storage: `Assets::Asset` (r:1 w:1)
134 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
135 /// Storage: `Assets::NextAssetId` (r:1 w:0)
136 /// Proof: `Assets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
137 fn force_create() -> Weight {
138 // Proof Size summary in bytes:
139 // Measured: `219`
140 // Estimated: `3675`
141 // Minimum execution time: 15_517_000 picoseconds.
142 Weight::from_parts(16_256_000, 3675)
143 .saturating_add(T::DbWeight::get().reads(2_u64))
144 .saturating_add(T::DbWeight::get().writes(1_u64))
145 }
146 /// Storage: `Assets::Asset` (r:1 w:1)
147 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
148 fn start_destroy() -> Weight {
149 // Proof Size summary in bytes:
150 // Measured: `451`
151 // Estimated: `3675`
152 // Minimum execution time: 18_207_000 picoseconds.
153 Weight::from_parts(19_253_000, 3675)
154 .saturating_add(T::DbWeight::get().reads(1_u64))
155 .saturating_add(T::DbWeight::get().writes(1_u64))
156 }
157 /// Storage: `Assets::Asset` (r:1 w:1)
158 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
159 /// Storage: `Assets::Account` (r:1001 w:1000)
160 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
161 /// Storage: `System::Account` (r:1000 w:1000)
162 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
163 /// The range of component `c` is `[0, 1000]`.
164 fn destroy_accounts(c: u32, ) -> Weight {
165 // Proof Size summary in bytes:
166 // Measured: `169 + c * (208 ±0)`
167 // Estimated: `3675 + c * (2609 ±0)`
168 // Minimum execution time: 20_177_000 picoseconds.
169 Weight::from_parts(20_589_000, 3675)
170 // Standard Error: 25_894
171 .saturating_add(Weight::from_parts(16_635_717, 0).saturating_mul(c.into()))
172 .saturating_add(T::DbWeight::get().reads(2_u64))
173 .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into())))
174 .saturating_add(T::DbWeight::get().writes(1_u64))
175 .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(c.into())))
176 .saturating_add(Weight::from_parts(0, 2609).saturating_mul(c.into()))
177 }
178 /// Storage: `Assets::Asset` (r:1 w:1)
179 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
180 /// Storage: `Assets::Approvals` (r:1001 w:1000)
181 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
182 /// The range of component `a` is `[0, 1000]`.
183 fn destroy_approvals(a: u32, ) -> Weight {
184 // Proof Size summary in bytes:
185 // Measured: `588 + a * (86 ±0)`
186 // Estimated: `3675 + a * (2623 ±0)`
187 // Minimum execution time: 23_968_000 picoseconds.
188 Weight::from_parts(25_341_000, 3675)
189 // Standard Error: 18_610
190 .saturating_add(Weight::from_parts(18_802_362, 0).saturating_mul(a.into()))
191 .saturating_add(T::DbWeight::get().reads(2_u64))
192 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into())))
193 .saturating_add(T::DbWeight::get().writes(1_u64))
194 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(a.into())))
195 .saturating_add(Weight::from_parts(0, 2623).saturating_mul(a.into()))
196 }
197 /// Storage: `Assets::Asset` (r:1 w:1)
198 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
199 /// Storage: `Assets::Metadata` (r:1 w:0)
200 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
201 /// Storage: `Assets::Reserves` (r:0 w:1)
202 /// Proof: `Assets::Reserves` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`)
203 fn finish_destroy() -> Weight {
204 // Proof Size summary in bytes:
205 // Measured: `417`
206 // Estimated: `3675`
207 // Minimum execution time: 18_216_000 picoseconds.
208 Weight::from_parts(19_185_000, 3675)
209 .saturating_add(T::DbWeight::get().reads(2_u64))
210 .saturating_add(T::DbWeight::get().writes(2_u64))
211 }
212 /// Storage: `Assets::Asset` (r:1 w:1)
213 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
214 /// Storage: `Assets::Account` (r:1 w:1)
215 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
216 fn mint() -> Weight {
217 // Proof Size summary in bytes:
218 // Measured: `417`
219 // Estimated: `3675`
220 // Minimum execution time: 28_835_000 picoseconds.
221 Weight::from_parts(30_240_000, 3675)
222 .saturating_add(T::DbWeight::get().reads(2_u64))
223 .saturating_add(T::DbWeight::get().writes(2_u64))
224 }
225 /// Storage: `Assets::Asset` (r:1 w:1)
226 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
227 /// Storage: `Assets::Account` (r:1 w:1)
228 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
229 fn burn() -> Weight {
230 // Proof Size summary in bytes:
231 // Measured: `525`
232 // Estimated: `3675`
233 // Minimum execution time: 40_615_000 picoseconds.
234 Weight::from_parts(42_976_000, 3675)
235 .saturating_add(T::DbWeight::get().reads(2_u64))
236 .saturating_add(T::DbWeight::get().writes(2_u64))
237 }
238 /// Storage: `Assets::Asset` (r:1 w:1)
239 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
240 /// Storage: `Assets::Account` (r:2 w:2)
241 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
242 /// Storage: `System::Account` (r:1 w:1)
243 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
244 fn transfer() -> Weight {
245 // Proof Size summary in bytes:
246 // Measured: `564`
247 // Estimated: `6208`
248 // Minimum execution time: 56_309_000 picoseconds.
249 Weight::from_parts(57_626_000, 6208)
250 .saturating_add(T::DbWeight::get().reads(4_u64))
251 .saturating_add(T::DbWeight::get().writes(4_u64))
252 }
253 /// Storage: `Assets::Asset` (r:1 w:1)
254 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
255 /// Storage: `Assets::Account` (r:2 w:2)
256 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
257 /// Storage: `System::Account` (r:1 w:1)
258 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
259 fn transfer_keep_alive() -> Weight {
260 // Proof Size summary in bytes:
261 // Measured: `564`
262 // Estimated: `6208`
263 // Minimum execution time: 50_789_000 picoseconds.
264 Weight::from_parts(52_276_000, 6208)
265 .saturating_add(T::DbWeight::get().reads(4_u64))
266 .saturating_add(T::DbWeight::get().writes(4_u64))
267 }
268 /// Storage: `Assets::Asset` (r:1 w:1)
269 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
270 /// Storage: `Assets::Account` (r:2 w:2)
271 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
272 /// Storage: `System::Account` (r:1 w:1)
273 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
274 fn force_transfer() -> Weight {
275 // Proof Size summary in bytes:
276 // Measured: `564`
277 // Estimated: `6208`
278 // Minimum execution time: 55_790_000 picoseconds.
279 Weight::from_parts(57_530_000, 6208)
280 .saturating_add(T::DbWeight::get().reads(4_u64))
281 .saturating_add(T::DbWeight::get().writes(4_u64))
282 }
283 /// Storage: `Assets::Asset` (r:1 w:0)
284 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
285 /// Storage: `Assets::Account` (r:1 w:1)
286 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
287 fn freeze() -> Weight {
288 // Proof Size summary in bytes:
289 // Measured: `525`
290 // Estimated: `3675`
291 // Minimum execution time: 23_353_000 picoseconds.
292 Weight::from_parts(24_340_000, 3675)
293 .saturating_add(T::DbWeight::get().reads(2_u64))
294 .saturating_add(T::DbWeight::get().writes(1_u64))
295 }
296 /// Storage: `Assets::Asset` (r:1 w:0)
297 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
298 /// Storage: `Assets::Account` (r:1 w:1)
299 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
300 fn thaw() -> Weight {
301 // Proof Size summary in bytes:
302 // Measured: `525`
303 // Estimated: `3675`
304 // Minimum execution time: 23_720_000 picoseconds.
305 Weight::from_parts(24_789_000, 3675)
306 .saturating_add(T::DbWeight::get().reads(2_u64))
307 .saturating_add(T::DbWeight::get().writes(1_u64))
308 }
309 /// Storage: `Assets::Asset` (r:1 w:1)
310 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
311 fn freeze_asset() -> Weight {
312 // Proof Size summary in bytes:
313 // Measured: `451`
314 // Estimated: `3675`
315 // Minimum execution time: 18_947_000 picoseconds.
316 Weight::from_parts(19_718_000, 3675)
317 .saturating_add(T::DbWeight::get().reads(1_u64))
318 .saturating_add(T::DbWeight::get().writes(1_u64))
319 }
320 /// Storage: `Assets::Asset` (r:1 w:1)
321 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
322 fn thaw_asset() -> Weight {
323 // Proof Size summary in bytes:
324 // Measured: `451`
325 // Estimated: `3675`
326 // Minimum execution time: 18_223_000 picoseconds.
327 Weight::from_parts(18_780_000, 3675)
328 .saturating_add(T::DbWeight::get().reads(1_u64))
329 .saturating_add(T::DbWeight::get().writes(1_u64))
330 }
331 /// Storage: `Assets::Asset` (r:1 w:1)
332 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
333 /// Storage: `Assets::Metadata` (r:1 w:0)
334 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
335 fn transfer_ownership() -> Weight {
336 // Proof Size summary in bytes:
337 // Measured: `417`
338 // Estimated: `3675`
339 // Minimum execution time: 17_714_000 picoseconds.
340 Weight::from_parts(18_202_000, 3675)
341 .saturating_add(T::DbWeight::get().reads(2_u64))
342 .saturating_add(T::DbWeight::get().writes(1_u64))
343 }
344 /// Storage: `Assets::Asset` (r:1 w:1)
345 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
346 fn set_team() -> Weight {
347 // Proof Size summary in bytes:
348 // Measured: `417`
349 // Estimated: `3675`
350 // Minimum execution time: 15_404_000 picoseconds.
351 Weight::from_parts(15_889_000, 3675)
352 .saturating_add(T::DbWeight::get().reads(1_u64))
353 .saturating_add(T::DbWeight::get().writes(1_u64))
354 }
355 /// Storage: `Assets::Asset` (r:1 w:0)
356 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
357 /// Storage: `Assets::Reserves` (r:0 w:1)
358 /// Proof: `Assets::Reserves` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`)
359 /// The range of component `n` is `[0, 5]`.
360 fn set_reserves(n: u32, ) -> Weight {
361 // Proof Size summary in bytes:
362 // Measured: `417`
363 // Estimated: `3675`
364 // Minimum execution time: 18_944_000 picoseconds.
365 Weight::from_parts(20_430_419, 3675)
366 // Standard Error: 8_201
367 .saturating_add(Weight::from_parts(108_305, 0).saturating_mul(n.into()))
368 .saturating_add(T::DbWeight::get().reads(1_u64))
369 .saturating_add(T::DbWeight::get().writes(1_u64))
370 }
371 /// Storage: `Assets::Asset` (r:1 w:0)
372 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
373 /// Storage: `Assets::Metadata` (r:1 w:1)
374 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
375 /// The range of component `n` is `[0, 50]`.
376 /// The range of component `s` is `[0, 50]`.
377 fn set_metadata(n: u32, s: u32, ) -> Weight {
378 // Proof Size summary in bytes:
379 // Measured: `417`
380 // Estimated: `3675`
381 // Minimum execution time: 36_344_000 picoseconds.
382 Weight::from_parts(38_278_706, 3675)
383 // Standard Error: 1_250
384 .saturating_add(Weight::from_parts(6_447, 0).saturating_mul(n.into()))
385 // Standard Error: 1_250
386 .saturating_add(Weight::from_parts(6_609, 0).saturating_mul(s.into()))
387 .saturating_add(T::DbWeight::get().reads(2_u64))
388 .saturating_add(T::DbWeight::get().writes(1_u64))
389 }
390 /// Storage: `Assets::Asset` (r:1 w:0)
391 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
392 /// Storage: `Assets::Metadata` (r:1 w:1)
393 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
394 fn clear_metadata() -> Weight {
395 // Proof Size summary in bytes:
396 // Measured: `581`
397 // Estimated: `3675`
398 // Minimum execution time: 36_302_000 picoseconds.
399 Weight::from_parts(38_178_000, 3675)
400 .saturating_add(T::DbWeight::get().reads(2_u64))
401 .saturating_add(T::DbWeight::get().writes(1_u64))
402 }
403 /// Storage: `Assets::Asset` (r:1 w:0)
404 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
405 /// Storage: `Assets::Metadata` (r:1 w:1)
406 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
407 /// The range of component `n` is `[0, 50]`.
408 /// The range of component `s` is `[0, 50]`.
409 fn force_set_metadata(n: u32, s: u32, ) -> Weight {
410 // Proof Size summary in bytes:
411 // Measured: `256`
412 // Estimated: `3675`
413 // Minimum execution time: 15_926_000 picoseconds.
414 Weight::from_parts(17_089_161, 3675)
415 // Standard Error: 670
416 .saturating_add(Weight::from_parts(96, 0).saturating_mul(n.into()))
417 // Standard Error: 670
418 .saturating_add(Weight::from_parts(2_057, 0).saturating_mul(s.into()))
419 .saturating_add(T::DbWeight::get().reads(2_u64))
420 .saturating_add(T::DbWeight::get().writes(1_u64))
421 }
422 /// Storage: `Assets::Asset` (r:1 w:0)
423 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
424 /// Storage: `Assets::Metadata` (r:1 w:1)
425 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
426 fn force_clear_metadata() -> Weight {
427 // Proof Size summary in bytes:
428 // Measured: `581`
429 // Estimated: `3675`
430 // Minimum execution time: 35_344_000 picoseconds.
431 Weight::from_parts(37_253_000, 3675)
432 .saturating_add(T::DbWeight::get().reads(2_u64))
433 .saturating_add(T::DbWeight::get().writes(1_u64))
434 }
435 /// Storage: `Assets::Asset` (r:1 w:1)
436 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
437 fn force_asset_status() -> Weight {
438 // Proof Size summary in bytes:
439 // Measured: `417`
440 // Estimated: `3675`
441 // Minimum execution time: 14_637_000 picoseconds.
442 Weight::from_parts(15_850_000, 3675)
443 .saturating_add(T::DbWeight::get().reads(1_u64))
444 .saturating_add(T::DbWeight::get().writes(1_u64))
445 }
446 /// Storage: `Assets::Asset` (r:1 w:1)
447 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
448 /// Storage: `Assets::Approvals` (r:1 w:1)
449 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
450 fn approve_transfer() -> Weight {
451 // Proof Size summary in bytes:
452 // Measured: `451`
453 // Estimated: `3675`
454 // Minimum execution time: 42_634_000 picoseconds.
455 Weight::from_parts(43_860_000, 3675)
456 .saturating_add(T::DbWeight::get().reads(2_u64))
457 .saturating_add(T::DbWeight::get().writes(2_u64))
458 }
459 /// Storage: `Assets::Asset` (r:1 w:1)
460 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
461 /// Storage: `Assets::Approvals` (r:1 w:1)
462 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
463 /// Storage: `Assets::Account` (r:2 w:2)
464 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
465 /// Storage: `System::Account` (r:1 w:1)
466 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
467 fn transfer_approved() -> Weight {
468 // Proof Size summary in bytes:
469 // Measured: `734`
470 // Estimated: `6208`
471 // Minimum execution time: 80_342_000 picoseconds.
472 Weight::from_parts(82_913_000, 6208)
473 .saturating_add(T::DbWeight::get().reads(5_u64))
474 .saturating_add(T::DbWeight::get().writes(5_u64))
475 }
476 /// Storage: `Assets::Asset` (r:1 w:1)
477 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
478 /// Storage: `Assets::Approvals` (r:1 w:1)
479 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
480 fn cancel_approval() -> Weight {
481 // Proof Size summary in bytes:
482 // Measured: `621`
483 // Estimated: `3675`
484 // Minimum execution time: 43_370_000 picoseconds.
485 Weight::from_parts(44_987_000, 3675)
486 .saturating_add(T::DbWeight::get().reads(2_u64))
487 .saturating_add(T::DbWeight::get().writes(2_u64))
488 }
489 /// Storage: `Assets::Asset` (r:1 w:1)
490 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
491 /// Storage: `Assets::Approvals` (r:1 w:1)
492 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
493 fn force_cancel_approval() -> Weight {
494 // Proof Size summary in bytes:
495 // Measured: `621`
496 // Estimated: `3675`
497 // Minimum execution time: 43_084_000 picoseconds.
498 Weight::from_parts(44_770_000, 3675)
499 .saturating_add(T::DbWeight::get().reads(2_u64))
500 .saturating_add(T::DbWeight::get().writes(2_u64))
501 }
502 /// Storage: `Assets::Asset` (r:1 w:1)
503 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
504 fn set_min_balance() -> Weight {
505 // Proof Size summary in bytes:
506 // Measured: `417`
507 // Estimated: `3675`
508 // Minimum execution time: 16_201_000 picoseconds.
509 Weight::from_parts(16_747_000, 3675)
510 .saturating_add(T::DbWeight::get().reads(1_u64))
511 .saturating_add(T::DbWeight::get().writes(1_u64))
512 }
513 /// Storage: `Assets::Account` (r:1 w:1)
514 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
515 /// Storage: `Assets::Asset` (r:1 w:1)
516 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
517 /// Storage: `System::Account` (r:1 w:1)
518 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
519 fn touch() -> Weight {
520 // Proof Size summary in bytes:
521 // Measured: `519`
522 // Estimated: `3675`
523 // Minimum execution time: 43_087_000 picoseconds.
524 Weight::from_parts(44_948_000, 3675)
525 .saturating_add(T::DbWeight::get().reads(3_u64))
526 .saturating_add(T::DbWeight::get().writes(3_u64))
527 }
528 /// Storage: `Assets::Account` (r:1 w:1)
529 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
530 /// Storage: `Assets::Asset` (r:1 w:1)
531 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
532 fn touch_other() -> Weight {
533 // Proof Size summary in bytes:
534 // Measured: `417`
535 // Estimated: `3675`
536 // Minimum execution time: 41_273_000 picoseconds.
537 Weight::from_parts(42_452_000, 3675)
538 .saturating_add(T::DbWeight::get().reads(2_u64))
539 .saturating_add(T::DbWeight::get().writes(2_u64))
540 }
541 /// Storage: `Assets::Account` (r:1 w:1)
542 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
543 /// Storage: `Assets::Asset` (r:1 w:1)
544 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
545 /// Storage: `System::Account` (r:1 w:1)
546 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
547 fn refund() -> Weight {
548 // Proof Size summary in bytes:
549 // Measured: `645`
550 // Estimated: `3675`
551 // Minimum execution time: 40_785_000 picoseconds.
552 Weight::from_parts(42_985_000, 3675)
553 .saturating_add(T::DbWeight::get().reads(3_u64))
554 .saturating_add(T::DbWeight::get().writes(3_u64))
555 }
556 /// Storage: `Assets::Account` (r:1 w:1)
557 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
558 /// Storage: `Assets::Asset` (r:1 w:1)
559 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
560 fn refund_other() -> Weight {
561 // Proof Size summary in bytes:
562 // Measured: `576`
563 // Estimated: `3675`
564 // Minimum execution time: 39_042_000 picoseconds.
565 Weight::from_parts(39_947_000, 3675)
566 .saturating_add(T::DbWeight::get().reads(2_u64))
567 .saturating_add(T::DbWeight::get().writes(2_u64))
568 }
569 /// Storage: `Assets::Asset` (r:1 w:0)
570 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
571 /// Storage: `Assets::Account` (r:1 w:1)
572 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
573 fn block() -> Weight {
574 // Proof Size summary in bytes:
575 // Measured: `525`
576 // Estimated: `3675`
577 // Minimum execution time: 23_502_000 picoseconds.
578 Weight::from_parts(24_752_000, 3675)
579 .saturating_add(T::DbWeight::get().reads(2_u64))
580 .saturating_add(T::DbWeight::get().writes(1_u64))
581 }
582 /// Storage: `Assets::Asset` (r:1 w:1)
583 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
584 /// Storage: `Assets::Account` (r:2 w:2)
585 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
586 /// Storage: `System::Account` (r:1 w:1)
587 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
588 fn transfer_all() -> Weight {
589 // Proof Size summary in bytes:
590 // Measured: `564`
591 // Estimated: `6208`
592 // Minimum execution time: 67_955_000 picoseconds.
593 Weight::from_parts(69_022_000, 6208)
594 .saturating_add(T::DbWeight::get().reads(4_u64))
595 .saturating_add(T::DbWeight::get().writes(4_u64))
596 }
597 /// Storage: `Assets::Asset` (r:1 w:0)
598 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
599 fn total_issuance() -> Weight {
600 // Proof Size summary in bytes:
601 // Measured: `451`
602 // Estimated: `3675`
603 // Minimum execution time: 10_794_000 picoseconds.
604 Weight::from_parts(11_213_000, 3675)
605 .saturating_add(T::DbWeight::get().reads(1_u64))
606 }
607 /// Storage: `Assets::Account` (r:1 w:0)
608 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
609 fn balance() -> Weight {
610 // Proof Size summary in bytes:
611 // Measured: `288`
612 // Estimated: `3599`
613 // Minimum execution time: 7_933_000 picoseconds.
614 Weight::from_parts(8_327_000, 3599)
615 .saturating_add(T::DbWeight::get().reads(1_u64))
616 }
617 /// Storage: `Assets::Approvals` (r:1 w:0)
618 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
619 fn allowance() -> Weight {
620 // Proof Size summary in bytes:
621 // Measured: `383`
622 // Estimated: `3613`
623 // Minimum execution time: 11_212_000 picoseconds.
624 Weight::from_parts(11_455_000, 3613)
625 .saturating_add(T::DbWeight::get().reads(1_u64))
626 }
627 /// Storage: `Assets::Asset` (r:1 w:0)
628 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
629 /// Storage: `Assets::Reserves` (r:0 w:1)
630 /// Proof: `Assets::Reserves` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`)
631 fn migration_v2_foreign_asset_set_reserve_weight() -> Weight {
632 // Proof Size summary in bytes:
633 // Measured: `256`
634 // Estimated: `3675`
635 // Minimum execution time: 9_427_000 picoseconds.
636 Weight::from_parts(10_145_000, 3675)
637 .saturating_add(T::DbWeight::get().reads(1_u64))
638 .saturating_add(T::DbWeight::get().writes(1_u64))
639 }
640 /// Storage: `Assets::Metadata` (r:1 w:0)
641 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
642 fn get_metadata() -> Weight {
643 // Proof Size summary in bytes:
644 // Measured: `344`
645 // Estimated: `3605`
646 // Minimum execution time: 10_101_000 picoseconds.
647 Weight::from_parts(10_699_000, 3605)
648 .saturating_add(T::DbWeight::get().reads(1_u64))
649 }
650}
651
652// For backwards compatibility and tests.
653impl WeightInfo for () {
654 /// Storage: `Assets::Asset` (r:1 w:1)
655 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
656 /// Storage: `Assets::NextAssetId` (r:1 w:0)
657 /// Proof: `Assets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
658 /// Storage: `System::Account` (r:1 w:1)
659 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
660 fn create() -> Weight {
661 // Proof Size summary in bytes:
662 // Measured: `359`
663 // Estimated: `3675`
664 // Minimum execution time: 37_320_000 picoseconds.
665 Weight::from_parts(38_406_000, 3675)
666 .saturating_add(RocksDbWeight::get().reads(3_u64))
667 .saturating_add(RocksDbWeight::get().writes(2_u64))
668 }
669 /// Storage: `Assets::Asset` (r:1 w:1)
670 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
671 /// Storage: `Assets::NextAssetId` (r:1 w:0)
672 /// Proof: `Assets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
673 fn force_create() -> Weight {
674 // Proof Size summary in bytes:
675 // Measured: `219`
676 // Estimated: `3675`
677 // Minimum execution time: 15_517_000 picoseconds.
678 Weight::from_parts(16_256_000, 3675)
679 .saturating_add(RocksDbWeight::get().reads(2_u64))
680 .saturating_add(RocksDbWeight::get().writes(1_u64))
681 }
682 /// Storage: `Assets::Asset` (r:1 w:1)
683 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
684 fn start_destroy() -> Weight {
685 // Proof Size summary in bytes:
686 // Measured: `451`
687 // Estimated: `3675`
688 // Minimum execution time: 18_207_000 picoseconds.
689 Weight::from_parts(19_253_000, 3675)
690 .saturating_add(RocksDbWeight::get().reads(1_u64))
691 .saturating_add(RocksDbWeight::get().writes(1_u64))
692 }
693 /// Storage: `Assets::Asset` (r:1 w:1)
694 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
695 /// Storage: `Assets::Account` (r:1001 w:1000)
696 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
697 /// Storage: `System::Account` (r:1000 w:1000)
698 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
699 /// The range of component `c` is `[0, 1000]`.
700 fn destroy_accounts(c: u32, ) -> Weight {
701 // Proof Size summary in bytes:
702 // Measured: `169 + c * (208 ±0)`
703 // Estimated: `3675 + c * (2609 ±0)`
704 // Minimum execution time: 20_177_000 picoseconds.
705 Weight::from_parts(20_589_000, 3675)
706 // Standard Error: 25_894
707 .saturating_add(Weight::from_parts(16_635_717, 0).saturating_mul(c.into()))
708 .saturating_add(RocksDbWeight::get().reads(2_u64))
709 .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(c.into())))
710 .saturating_add(RocksDbWeight::get().writes(1_u64))
711 .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(c.into())))
712 .saturating_add(Weight::from_parts(0, 2609).saturating_mul(c.into()))
713 }
714 /// Storage: `Assets::Asset` (r:1 w:1)
715 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
716 /// Storage: `Assets::Approvals` (r:1001 w:1000)
717 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
718 /// The range of component `a` is `[0, 1000]`.
719 fn destroy_approvals(a: u32, ) -> Weight {
720 // Proof Size summary in bytes:
721 // Measured: `588 + a * (86 ±0)`
722 // Estimated: `3675 + a * (2623 ±0)`
723 // Minimum execution time: 23_968_000 picoseconds.
724 Weight::from_parts(25_341_000, 3675)
725 // Standard Error: 18_610
726 .saturating_add(Weight::from_parts(18_802_362, 0).saturating_mul(a.into()))
727 .saturating_add(RocksDbWeight::get().reads(2_u64))
728 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(a.into())))
729 .saturating_add(RocksDbWeight::get().writes(1_u64))
730 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(a.into())))
731 .saturating_add(Weight::from_parts(0, 2623).saturating_mul(a.into()))
732 }
733 /// Storage: `Assets::Asset` (r:1 w:1)
734 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
735 /// Storage: `Assets::Metadata` (r:1 w:0)
736 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
737 /// Storage: `Assets::Reserves` (r:0 w:1)
738 /// Proof: `Assets::Reserves` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`)
739 fn finish_destroy() -> Weight {
740 // Proof Size summary in bytes:
741 // Measured: `417`
742 // Estimated: `3675`
743 // Minimum execution time: 18_216_000 picoseconds.
744 Weight::from_parts(19_185_000, 3675)
745 .saturating_add(RocksDbWeight::get().reads(2_u64))
746 .saturating_add(RocksDbWeight::get().writes(2_u64))
747 }
748 /// Storage: `Assets::Asset` (r:1 w:1)
749 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
750 /// Storage: `Assets::Account` (r:1 w:1)
751 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
752 fn mint() -> Weight {
753 // Proof Size summary in bytes:
754 // Measured: `417`
755 // Estimated: `3675`
756 // Minimum execution time: 28_835_000 picoseconds.
757 Weight::from_parts(30_240_000, 3675)
758 .saturating_add(RocksDbWeight::get().reads(2_u64))
759 .saturating_add(RocksDbWeight::get().writes(2_u64))
760 }
761 /// Storage: `Assets::Asset` (r:1 w:1)
762 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
763 /// Storage: `Assets::Account` (r:1 w:1)
764 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
765 fn burn() -> Weight {
766 // Proof Size summary in bytes:
767 // Measured: `525`
768 // Estimated: `3675`
769 // Minimum execution time: 40_615_000 picoseconds.
770 Weight::from_parts(42_976_000, 3675)
771 .saturating_add(RocksDbWeight::get().reads(2_u64))
772 .saturating_add(RocksDbWeight::get().writes(2_u64))
773 }
774 /// Storage: `Assets::Asset` (r:1 w:1)
775 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
776 /// Storage: `Assets::Account` (r:2 w:2)
777 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
778 /// Storage: `System::Account` (r:1 w:1)
779 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
780 fn transfer() -> Weight {
781 // Proof Size summary in bytes:
782 // Measured: `564`
783 // Estimated: `6208`
784 // Minimum execution time: 56_309_000 picoseconds.
785 Weight::from_parts(57_626_000, 6208)
786 .saturating_add(RocksDbWeight::get().reads(4_u64))
787 .saturating_add(RocksDbWeight::get().writes(4_u64))
788 }
789 /// Storage: `Assets::Asset` (r:1 w:1)
790 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
791 /// Storage: `Assets::Account` (r:2 w:2)
792 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
793 /// Storage: `System::Account` (r:1 w:1)
794 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
795 fn transfer_keep_alive() -> Weight {
796 // Proof Size summary in bytes:
797 // Measured: `564`
798 // Estimated: `6208`
799 // Minimum execution time: 50_789_000 picoseconds.
800 Weight::from_parts(52_276_000, 6208)
801 .saturating_add(RocksDbWeight::get().reads(4_u64))
802 .saturating_add(RocksDbWeight::get().writes(4_u64))
803 }
804 /// Storage: `Assets::Asset` (r:1 w:1)
805 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
806 /// Storage: `Assets::Account` (r:2 w:2)
807 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
808 /// Storage: `System::Account` (r:1 w:1)
809 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
810 fn force_transfer() -> Weight {
811 // Proof Size summary in bytes:
812 // Measured: `564`
813 // Estimated: `6208`
814 // Minimum execution time: 55_790_000 picoseconds.
815 Weight::from_parts(57_530_000, 6208)
816 .saturating_add(RocksDbWeight::get().reads(4_u64))
817 .saturating_add(RocksDbWeight::get().writes(4_u64))
818 }
819 /// Storage: `Assets::Asset` (r:1 w:0)
820 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
821 /// Storage: `Assets::Account` (r:1 w:1)
822 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
823 fn freeze() -> Weight {
824 // Proof Size summary in bytes:
825 // Measured: `525`
826 // Estimated: `3675`
827 // Minimum execution time: 23_353_000 picoseconds.
828 Weight::from_parts(24_340_000, 3675)
829 .saturating_add(RocksDbWeight::get().reads(2_u64))
830 .saturating_add(RocksDbWeight::get().writes(1_u64))
831 }
832 /// Storage: `Assets::Asset` (r:1 w:0)
833 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
834 /// Storage: `Assets::Account` (r:1 w:1)
835 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
836 fn thaw() -> Weight {
837 // Proof Size summary in bytes:
838 // Measured: `525`
839 // Estimated: `3675`
840 // Minimum execution time: 23_720_000 picoseconds.
841 Weight::from_parts(24_789_000, 3675)
842 .saturating_add(RocksDbWeight::get().reads(2_u64))
843 .saturating_add(RocksDbWeight::get().writes(1_u64))
844 }
845 /// Storage: `Assets::Asset` (r:1 w:1)
846 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
847 fn freeze_asset() -> Weight {
848 // Proof Size summary in bytes:
849 // Measured: `451`
850 // Estimated: `3675`
851 // Minimum execution time: 18_947_000 picoseconds.
852 Weight::from_parts(19_718_000, 3675)
853 .saturating_add(RocksDbWeight::get().reads(1_u64))
854 .saturating_add(RocksDbWeight::get().writes(1_u64))
855 }
856 /// Storage: `Assets::Asset` (r:1 w:1)
857 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
858 fn thaw_asset() -> Weight {
859 // Proof Size summary in bytes:
860 // Measured: `451`
861 // Estimated: `3675`
862 // Minimum execution time: 18_223_000 picoseconds.
863 Weight::from_parts(18_780_000, 3675)
864 .saturating_add(RocksDbWeight::get().reads(1_u64))
865 .saturating_add(RocksDbWeight::get().writes(1_u64))
866 }
867 /// Storage: `Assets::Asset` (r:1 w:1)
868 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
869 /// Storage: `Assets::Metadata` (r:1 w:0)
870 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
871 fn transfer_ownership() -> Weight {
872 // Proof Size summary in bytes:
873 // Measured: `417`
874 // Estimated: `3675`
875 // Minimum execution time: 17_714_000 picoseconds.
876 Weight::from_parts(18_202_000, 3675)
877 .saturating_add(RocksDbWeight::get().reads(2_u64))
878 .saturating_add(RocksDbWeight::get().writes(1_u64))
879 }
880 /// Storage: `Assets::Asset` (r:1 w:1)
881 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
882 fn set_team() -> Weight {
883 // Proof Size summary in bytes:
884 // Measured: `417`
885 // Estimated: `3675`
886 // Minimum execution time: 15_404_000 picoseconds.
887 Weight::from_parts(15_889_000, 3675)
888 .saturating_add(RocksDbWeight::get().reads(1_u64))
889 .saturating_add(RocksDbWeight::get().writes(1_u64))
890 }
891 /// Storage: `Assets::Asset` (r:1 w:0)
892 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
893 /// Storage: `Assets::Reserves` (r:0 w:1)
894 /// Proof: `Assets::Reserves` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`)
895 /// The range of component `n` is `[0, 5]`.
896 fn set_reserves(n: u32, ) -> Weight {
897 // Proof Size summary in bytes:
898 // Measured: `417`
899 // Estimated: `3675`
900 // Minimum execution time: 18_944_000 picoseconds.
901 Weight::from_parts(20_430_419, 3675)
902 // Standard Error: 8_201
903 .saturating_add(Weight::from_parts(108_305, 0).saturating_mul(n.into()))
904 .saturating_add(RocksDbWeight::get().reads(1_u64))
905 .saturating_add(RocksDbWeight::get().writes(1_u64))
906 }
907 /// Storage: `Assets::Asset` (r:1 w:0)
908 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
909 /// Storage: `Assets::Metadata` (r:1 w:1)
910 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
911 /// The range of component `n` is `[0, 50]`.
912 /// The range of component `s` is `[0, 50]`.
913 fn set_metadata(n: u32, s: u32, ) -> Weight {
914 // Proof Size summary in bytes:
915 // Measured: `417`
916 // Estimated: `3675`
917 // Minimum execution time: 36_344_000 picoseconds.
918 Weight::from_parts(38_278_706, 3675)
919 // Standard Error: 1_250
920 .saturating_add(Weight::from_parts(6_447, 0).saturating_mul(n.into()))
921 // Standard Error: 1_250
922 .saturating_add(Weight::from_parts(6_609, 0).saturating_mul(s.into()))
923 .saturating_add(RocksDbWeight::get().reads(2_u64))
924 .saturating_add(RocksDbWeight::get().writes(1_u64))
925 }
926 /// Storage: `Assets::Asset` (r:1 w:0)
927 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
928 /// Storage: `Assets::Metadata` (r:1 w:1)
929 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
930 fn clear_metadata() -> Weight {
931 // Proof Size summary in bytes:
932 // Measured: `581`
933 // Estimated: `3675`
934 // Minimum execution time: 36_302_000 picoseconds.
935 Weight::from_parts(38_178_000, 3675)
936 .saturating_add(RocksDbWeight::get().reads(2_u64))
937 .saturating_add(RocksDbWeight::get().writes(1_u64))
938 }
939 /// Storage: `Assets::Asset` (r:1 w:0)
940 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
941 /// Storage: `Assets::Metadata` (r:1 w:1)
942 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
943 /// The range of component `n` is `[0, 50]`.
944 /// The range of component `s` is `[0, 50]`.
945 fn force_set_metadata(n: u32, s: u32, ) -> Weight {
946 // Proof Size summary in bytes:
947 // Measured: `256`
948 // Estimated: `3675`
949 // Minimum execution time: 15_926_000 picoseconds.
950 Weight::from_parts(17_089_161, 3675)
951 // Standard Error: 670
952 .saturating_add(Weight::from_parts(96, 0).saturating_mul(n.into()))
953 // Standard Error: 670
954 .saturating_add(Weight::from_parts(2_057, 0).saturating_mul(s.into()))
955 .saturating_add(RocksDbWeight::get().reads(2_u64))
956 .saturating_add(RocksDbWeight::get().writes(1_u64))
957 }
958 /// Storage: `Assets::Asset` (r:1 w:0)
959 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
960 /// Storage: `Assets::Metadata` (r:1 w:1)
961 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
962 fn force_clear_metadata() -> Weight {
963 // Proof Size summary in bytes:
964 // Measured: `581`
965 // Estimated: `3675`
966 // Minimum execution time: 35_344_000 picoseconds.
967 Weight::from_parts(37_253_000, 3675)
968 .saturating_add(RocksDbWeight::get().reads(2_u64))
969 .saturating_add(RocksDbWeight::get().writes(1_u64))
970 }
971 /// Storage: `Assets::Asset` (r:1 w:1)
972 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
973 fn force_asset_status() -> Weight {
974 // Proof Size summary in bytes:
975 // Measured: `417`
976 // Estimated: `3675`
977 // Minimum execution time: 14_637_000 picoseconds.
978 Weight::from_parts(15_850_000, 3675)
979 .saturating_add(RocksDbWeight::get().reads(1_u64))
980 .saturating_add(RocksDbWeight::get().writes(1_u64))
981 }
982 /// Storage: `Assets::Asset` (r:1 w:1)
983 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
984 /// Storage: `Assets::Approvals` (r:1 w:1)
985 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
986 fn approve_transfer() -> Weight {
987 // Proof Size summary in bytes:
988 // Measured: `451`
989 // Estimated: `3675`
990 // Minimum execution time: 42_634_000 picoseconds.
991 Weight::from_parts(43_860_000, 3675)
992 .saturating_add(RocksDbWeight::get().reads(2_u64))
993 .saturating_add(RocksDbWeight::get().writes(2_u64))
994 }
995 /// Storage: `Assets::Asset` (r:1 w:1)
996 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
997 /// Storage: `Assets::Approvals` (r:1 w:1)
998 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
999 /// Storage: `Assets::Account` (r:2 w:2)
1000 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
1001 /// Storage: `System::Account` (r:1 w:1)
1002 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1003 fn transfer_approved() -> Weight {
1004 // Proof Size summary in bytes:
1005 // Measured: `734`
1006 // Estimated: `6208`
1007 // Minimum execution time: 80_342_000 picoseconds.
1008 Weight::from_parts(82_913_000, 6208)
1009 .saturating_add(RocksDbWeight::get().reads(5_u64))
1010 .saturating_add(RocksDbWeight::get().writes(5_u64))
1011 }
1012 /// Storage: `Assets::Asset` (r:1 w:1)
1013 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
1014 /// Storage: `Assets::Approvals` (r:1 w:1)
1015 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
1016 fn cancel_approval() -> Weight {
1017 // Proof Size summary in bytes:
1018 // Measured: `621`
1019 // Estimated: `3675`
1020 // Minimum execution time: 43_370_000 picoseconds.
1021 Weight::from_parts(44_987_000, 3675)
1022 .saturating_add(RocksDbWeight::get().reads(2_u64))
1023 .saturating_add(RocksDbWeight::get().writes(2_u64))
1024 }
1025 /// Storage: `Assets::Asset` (r:1 w:1)
1026 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
1027 /// Storage: `Assets::Approvals` (r:1 w:1)
1028 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
1029 fn force_cancel_approval() -> Weight {
1030 // Proof Size summary in bytes:
1031 // Measured: `621`
1032 // Estimated: `3675`
1033 // Minimum execution time: 43_084_000 picoseconds.
1034 Weight::from_parts(44_770_000, 3675)
1035 .saturating_add(RocksDbWeight::get().reads(2_u64))
1036 .saturating_add(RocksDbWeight::get().writes(2_u64))
1037 }
1038 /// Storage: `Assets::Asset` (r:1 w:1)
1039 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
1040 fn set_min_balance() -> Weight {
1041 // Proof Size summary in bytes:
1042 // Measured: `417`
1043 // Estimated: `3675`
1044 // Minimum execution time: 16_201_000 picoseconds.
1045 Weight::from_parts(16_747_000, 3675)
1046 .saturating_add(RocksDbWeight::get().reads(1_u64))
1047 .saturating_add(RocksDbWeight::get().writes(1_u64))
1048 }
1049 /// Storage: `Assets::Account` (r:1 w:1)
1050 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
1051 /// Storage: `Assets::Asset` (r:1 w:1)
1052 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
1053 /// Storage: `System::Account` (r:1 w:1)
1054 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1055 fn touch() -> Weight {
1056 // Proof Size summary in bytes:
1057 // Measured: `519`
1058 // Estimated: `3675`
1059 // Minimum execution time: 43_087_000 picoseconds.
1060 Weight::from_parts(44_948_000, 3675)
1061 .saturating_add(RocksDbWeight::get().reads(3_u64))
1062 .saturating_add(RocksDbWeight::get().writes(3_u64))
1063 }
1064 /// Storage: `Assets::Account` (r:1 w:1)
1065 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
1066 /// Storage: `Assets::Asset` (r:1 w:1)
1067 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
1068 fn touch_other() -> Weight {
1069 // Proof Size summary in bytes:
1070 // Measured: `417`
1071 // Estimated: `3675`
1072 // Minimum execution time: 41_273_000 picoseconds.
1073 Weight::from_parts(42_452_000, 3675)
1074 .saturating_add(RocksDbWeight::get().reads(2_u64))
1075 .saturating_add(RocksDbWeight::get().writes(2_u64))
1076 }
1077 /// Storage: `Assets::Account` (r:1 w:1)
1078 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
1079 /// Storage: `Assets::Asset` (r:1 w:1)
1080 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
1081 /// Storage: `System::Account` (r:1 w:1)
1082 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1083 fn refund() -> Weight {
1084 // Proof Size summary in bytes:
1085 // Measured: `645`
1086 // Estimated: `3675`
1087 // Minimum execution time: 40_785_000 picoseconds.
1088 Weight::from_parts(42_985_000, 3675)
1089 .saturating_add(RocksDbWeight::get().reads(3_u64))
1090 .saturating_add(RocksDbWeight::get().writes(3_u64))
1091 }
1092 /// Storage: `Assets::Account` (r:1 w:1)
1093 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
1094 /// Storage: `Assets::Asset` (r:1 w:1)
1095 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
1096 fn refund_other() -> Weight {
1097 // Proof Size summary in bytes:
1098 // Measured: `576`
1099 // Estimated: `3675`
1100 // Minimum execution time: 39_042_000 picoseconds.
1101 Weight::from_parts(39_947_000, 3675)
1102 .saturating_add(RocksDbWeight::get().reads(2_u64))
1103 .saturating_add(RocksDbWeight::get().writes(2_u64))
1104 }
1105 /// Storage: `Assets::Asset` (r:1 w:0)
1106 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
1107 /// Storage: `Assets::Account` (r:1 w:1)
1108 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
1109 fn block() -> Weight {
1110 // Proof Size summary in bytes:
1111 // Measured: `525`
1112 // Estimated: `3675`
1113 // Minimum execution time: 23_502_000 picoseconds.
1114 Weight::from_parts(24_752_000, 3675)
1115 .saturating_add(RocksDbWeight::get().reads(2_u64))
1116 .saturating_add(RocksDbWeight::get().writes(1_u64))
1117 }
1118 /// Storage: `Assets::Asset` (r:1 w:1)
1119 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
1120 /// Storage: `Assets::Account` (r:2 w:2)
1121 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
1122 /// Storage: `System::Account` (r:1 w:1)
1123 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1124 fn transfer_all() -> Weight {
1125 // Proof Size summary in bytes:
1126 // Measured: `564`
1127 // Estimated: `6208`
1128 // Minimum execution time: 67_955_000 picoseconds.
1129 Weight::from_parts(69_022_000, 6208)
1130 .saturating_add(RocksDbWeight::get().reads(4_u64))
1131 .saturating_add(RocksDbWeight::get().writes(4_u64))
1132 }
1133 /// Storage: `Assets::Asset` (r:1 w:0)
1134 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
1135 fn total_issuance() -> Weight {
1136 // Proof Size summary in bytes:
1137 // Measured: `451`
1138 // Estimated: `3675`
1139 // Minimum execution time: 10_794_000 picoseconds.
1140 Weight::from_parts(11_213_000, 3675)
1141 .saturating_add(RocksDbWeight::get().reads(1_u64))
1142 }
1143 /// Storage: `Assets::Account` (r:1 w:0)
1144 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
1145 fn balance() -> Weight {
1146 // Proof Size summary in bytes:
1147 // Measured: `288`
1148 // Estimated: `3599`
1149 // Minimum execution time: 7_933_000 picoseconds.
1150 Weight::from_parts(8_327_000, 3599)
1151 .saturating_add(RocksDbWeight::get().reads(1_u64))
1152 }
1153 /// Storage: `Assets::Approvals` (r:1 w:0)
1154 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
1155 fn allowance() -> Weight {
1156 // Proof Size summary in bytes:
1157 // Measured: `383`
1158 // Estimated: `3613`
1159 // Minimum execution time: 11_212_000 picoseconds.
1160 Weight::from_parts(11_455_000, 3613)
1161 .saturating_add(RocksDbWeight::get().reads(1_u64))
1162 }
1163 /// Storage: `Assets::Asset` (r:1 w:0)
1164 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
1165 /// Storage: `Assets::Reserves` (r:0 w:1)
1166 /// Proof: `Assets::Reserves` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`)
1167 fn migration_v2_foreign_asset_set_reserve_weight() -> Weight {
1168 // Proof Size summary in bytes:
1169 // Measured: `256`
1170 // Estimated: `3675`
1171 // Minimum execution time: 9_427_000 picoseconds.
1172 Weight::from_parts(10_145_000, 3675)
1173 .saturating_add(RocksDbWeight::get().reads(1_u64))
1174 .saturating_add(RocksDbWeight::get().writes(1_u64))
1175 }
1176 /// Storage: `Assets::Metadata` (r:1 w:0)
1177 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
1178 fn get_metadata() -> Weight {
1179 // Proof Size summary in bytes:
1180 // Measured: `344`
1181 // Estimated: `3605`
1182 // Minimum execution time: 10_101_000 picoseconds.
1183 Weight::from_parts(10_699_000, 3605)
1184 .saturating_add(RocksDbWeight::get().reads(1_u64))
1185 }
1186}