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: 2025-05-18, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `c47a012f15ca`, 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_metadata(n: u32, s: u32, ) -> Weight;
92 fn clear_metadata() -> Weight;
93 fn force_set_metadata(n: u32, s: u32, ) -> Weight;
94 fn force_clear_metadata() -> Weight;
95 fn force_asset_status() -> Weight;
96 fn approve_transfer() -> Weight;
97 fn transfer_approved() -> Weight;
98 fn cancel_approval() -> Weight;
99 fn force_cancel_approval() -> Weight;
100 fn set_min_balance() -> Weight;
101 fn touch() -> Weight;
102 fn touch_other() -> Weight;
103 fn refund() -> Weight;
104 fn refund_other() -> Weight;
105 fn block() -> Weight;
106 fn transfer_all() -> Weight;
107 fn total_issuance() -> Weight;
108 fn balance() -> Weight;
109 fn allowance() -> Weight;
110 fn set_reserves() -> Weight;
111 fn migration_v2_foreign_asset_set_reserve_weight() -> Weight {
112 // disabled by default, force explicit benchmarking
113 Weight::MAX
114 }
115}
116
117/// Weights for `pallet_assets` using the Substrate node and recommended hardware.
118pub struct SubstrateWeight<T>(PhantomData<T>);
119impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
120 /// Storage: `Assets::Asset` (r:1 w:1)
121 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
122 /// Storage: `Assets::NextAssetId` (r:1 w:0)
123 /// Proof: `Assets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
124 /// Storage: `System::Account` (r:1 w:1)
125 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
126 fn create() -> Weight {
127 // Proof Size summary in bytes:
128 // Measured: `326`
129 // Estimated: `3675`
130 // Minimum execution time: 30_517_000 picoseconds.
131 Weight::from_parts(31_518_000, 3675)
132 .saturating_add(T::DbWeight::get().reads(3_u64))
133 .saturating_add(T::DbWeight::get().writes(2_u64))
134 }
135 /// Storage: `Assets::Asset` (r:1 w:1)
136 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
137 /// Storage: `Assets::NextAssetId` (r:1 w:0)
138 /// Proof: `Assets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
139 fn force_create() -> Weight {
140 // Proof Size summary in bytes:
141 // Measured: `186`
142 // Estimated: `3675`
143 // Minimum execution time: 12_469_000 picoseconds.
144 Weight::from_parts(13_002_000, 3675)
145 .saturating_add(T::DbWeight::get().reads(2_u64))
146 .saturating_add(T::DbWeight::get().writes(1_u64))
147 }
148 /// Storage: `Assets::Asset` (r:1 w:1)
149 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
150 fn start_destroy() -> Weight {
151 // Proof Size summary in bytes:
152 // Measured: `418`
153 // Estimated: `3675`
154 // Minimum execution time: 14_767_000 picoseconds.
155 Weight::from_parts(15_425_000, 3675)
156 .saturating_add(T::DbWeight::get().reads(1_u64))
157 .saturating_add(T::DbWeight::get().writes(1_u64))
158 }
159 /// Storage: `Assets::Asset` (r:1 w:1)
160 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
161 /// Storage: `Assets::Account` (r:1001 w:1000)
162 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
163 /// Storage: `System::Account` (r:1000 w:1000)
164 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
165 /// The range of component `c` is `[0, 1000]`.
166 fn destroy_accounts(c: u32, ) -> Weight {
167 // Proof Size summary in bytes:
168 // Measured: `104 + c * (208 ±0)`
169 // Estimated: `3675 + c * (2609 ±0)`
170 // Minimum execution time: 18_900_000 picoseconds.
171 Weight::from_parts(19_222_000, 3675)
172 // Standard Error: 25_984
173 .saturating_add(Weight::from_parts(15_436_025, 0).saturating_mul(c.into()))
174 .saturating_add(T::DbWeight::get().reads(2_u64))
175 .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into())))
176 .saturating_add(T::DbWeight::get().writes(1_u64))
177 .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(c.into())))
178 .saturating_add(Weight::from_parts(0, 2609).saturating_mul(c.into()))
179 }
180 /// Storage: `Assets::Asset` (r:1 w:1)
181 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
182 /// Storage: `Assets::Approvals` (r:1001 w:1000)
183 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
184 /// The range of component `a` is `[0, 1000]`.
185 fn destroy_approvals(a: u32, ) -> Weight {
186 // Proof Size summary in bytes:
187 // Measured: `555 + a * (86 ±0)`
188 // Estimated: `3675 + a * (2623 ±0)`
189 // Minimum execution time: 19_685_000 picoseconds.
190 Weight::from_parts(20_138_000, 3675)
191 // Standard Error: 10_401
192 .saturating_add(Weight::from_parts(15_779_729, 0).saturating_mul(a.into()))
193 .saturating_add(T::DbWeight::get().reads(2_u64))
194 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into())))
195 .saturating_add(T::DbWeight::get().writes(1_u64))
196 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(a.into())))
197 .saturating_add(Weight::from_parts(0, 2623).saturating_mul(a.into()))
198 }
199 /// Storage: `Assets::Asset` (r:1 w:1)
200 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
201 /// Storage: `Assets::Metadata` (r:1 w:0)
202 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
203 fn finish_destroy() -> Weight {
204 // Proof Size summary in bytes:
205 // Measured: `384`
206 // Estimated: `3675`
207 // Minimum execution time: 15_652_000 picoseconds.
208 Weight::from_parts(16_159_000, 3675)
209 .saturating_add(T::DbWeight::get().reads(2_u64))
210 .saturating_add(T::DbWeight::get().writes(1_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: `384`
219 // Estimated: `3675`
220 // Minimum execution time: 25_446_000 picoseconds.
221 Weight::from_parts(26_623_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: `492`
232 // Estimated: `3675`
233 // Minimum execution time: 33_608_000 picoseconds.
234 Weight::from_parts(34_662_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: `531`
247 // Estimated: `6208`
248 // Minimum execution time: 46_426_000 picoseconds.
249 Weight::from_parts(47_772_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: `531`
262 // Estimated: `6208`
263 // Minimum execution time: 42_162_000 picoseconds.
264 Weight::from_parts(42_964_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: `531`
277 // Estimated: `6208`
278 // Minimum execution time: 46_399_000 picoseconds.
279 Weight::from_parts(47_580_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: `492`
290 // Estimated: `3675`
291 // Minimum execution time: 19_369_000 picoseconds.
292 Weight::from_parts(19_799_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: `492`
303 // Estimated: `3675`
304 // Minimum execution time: 19_145_000 picoseconds.
305 Weight::from_parts(19_873_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: `418`
314 // Estimated: `3675`
315 // Minimum execution time: 14_728_000 picoseconds.
316 Weight::from_parts(15_405_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: `418`
325 // Estimated: `3675`
326 // Minimum execution time: 14_730_000 picoseconds.
327 Weight::from_parts(15_284_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: `384`
338 // Estimated: `3675`
339 // Minimum execution time: 16_247_000 picoseconds.
340 Weight::from_parts(16_890_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: `384`
349 // Estimated: `3675`
350 // Minimum execution time: 14_206_000 picoseconds.
351 Weight::from_parts(14_856_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::Metadata` (r:1 w:1)
358 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
359 /// The range of component `n` is `[0, 50]`.
360 /// The range of component `s` is `[0, 50]`.
361 fn set_metadata(_n: u32, s: u32, ) -> Weight {
362 // Proof Size summary in bytes:
363 // Measured: `384`
364 // Estimated: `3675`
365 // Minimum execution time: 30_217_000 picoseconds.
366 Weight::from_parts(31_869_256, 3675)
367 // Standard Error: 1_165
368 .saturating_add(Weight::from_parts(826, 0).saturating_mul(s.into()))
369 .saturating_add(T::DbWeight::get().reads(2_u64))
370 .saturating_add(T::DbWeight::get().writes(1_u64))
371 }
372 /// Storage: `Assets::Asset` (r:1 w:0)
373 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
374 /// Storage: `Assets::Metadata` (r:1 w:1)
375 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
376 fn clear_metadata() -> Weight {
377 // Proof Size summary in bytes:
378 // Measured: `548`
379 // Estimated: `3675`
380 // Minimum execution time: 29_914_000 picoseconds.
381 Weight::from_parts(30_680_000, 3675)
382 .saturating_add(T::DbWeight::get().reads(2_u64))
383 .saturating_add(T::DbWeight::get().writes(1_u64))
384 }
385 /// Storage: `Assets::Asset` (r:1 w:0)
386 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
387 /// Storage: `Assets::Metadata` (r:1 w:1)
388 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
389 /// The range of component `n` is `[0, 50]`.
390 /// The range of component `s` is `[0, 50]`.
391 fn force_set_metadata(n: u32, s: u32, ) -> Weight {
392 // Proof Size summary in bytes:
393 // Measured: `223`
394 // Estimated: `3675`
395 // Minimum execution time: 13_045_000 picoseconds.
396 Weight::from_parts(13_680_991, 3675)
397 // Standard Error: 528
398 .saturating_add(Weight::from_parts(3_162, 0).saturating_mul(n.into()))
399 // Standard Error: 528
400 .saturating_add(Weight::from_parts(2_931, 0).saturating_mul(s.into()))
401 .saturating_add(T::DbWeight::get().reads(2_u64))
402 .saturating_add(T::DbWeight::get().writes(1_u64))
403 }
404 /// Storage: `Assets::Asset` (r:1 w:0)
405 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
406 /// Storage: `Assets::Metadata` (r:1 w:1)
407 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
408 fn force_clear_metadata() -> Weight {
409 // Proof Size summary in bytes:
410 // Measured: `548`
411 // Estimated: `3675`
412 // Minimum execution time: 29_440_000 picoseconds.
413 Weight::from_parts(30_302_000, 3675)
414 .saturating_add(T::DbWeight::get().reads(2_u64))
415 .saturating_add(T::DbWeight::get().writes(1_u64))
416 }
417 /// Storage: `Assets::Asset` (r:1 w:1)
418 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
419 fn force_asset_status() -> Weight {
420 // Proof Size summary in bytes:
421 // Measured: `384`
422 // Estimated: `3675`
423 // Minimum execution time: 14_175_000 picoseconds.
424 Weight::from_parts(14_802_000, 3675)
425 .saturating_add(T::DbWeight::get().reads(1_u64))
426 .saturating_add(T::DbWeight::get().writes(1_u64))
427 }
428 /// Storage: `Assets::Asset` (r:1 w:1)
429 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
430 /// Storage: `Assets::Approvals` (r:1 w:1)
431 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
432 fn approve_transfer() -> Weight {
433 // Proof Size summary in bytes:
434 // Measured: `418`
435 // Estimated: `3675`
436 // Minimum execution time: 34_027_000 picoseconds.
437 Weight::from_parts(34_976_000, 3675)
438 .saturating_add(T::DbWeight::get().reads(2_u64))
439 .saturating_add(T::DbWeight::get().writes(2_u64))
440 }
441 /// Storage: `Assets::Asset` (r:1 w:1)
442 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
443 /// Storage: `Assets::Approvals` (r:1 w:1)
444 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
445 /// Storage: `Assets::Account` (r:2 w:2)
446 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
447 /// Storage: `System::Account` (r:1 w:1)
448 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
449 fn transfer_approved() -> Weight {
450 // Proof Size summary in bytes:
451 // Measured: `701`
452 // Estimated: `6208`
453 // Minimum execution time: 66_073_000 picoseconds.
454 Weight::from_parts(69_478_000, 6208)
455 .saturating_add(T::DbWeight::get().reads(5_u64))
456 .saturating_add(T::DbWeight::get().writes(5_u64))
457 }
458 /// Storage: `Assets::Asset` (r:1 w:1)
459 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
460 /// Storage: `Assets::Approvals` (r:1 w:1)
461 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
462 fn cancel_approval() -> Weight {
463 // Proof Size summary in bytes:
464 // Measured: `588`
465 // Estimated: `3675`
466 // Minimum execution time: 35_452_000 picoseconds.
467 Weight::from_parts(36_883_000, 3675)
468 .saturating_add(T::DbWeight::get().reads(2_u64))
469 .saturating_add(T::DbWeight::get().writes(2_u64))
470 }
471 /// Storage: `Assets::Asset` (r:1 w:1)
472 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
473 /// Storage: `Assets::Approvals` (r:1 w:1)
474 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
475 fn force_cancel_approval() -> Weight {
476 // Proof Size summary in bytes:
477 // Measured: `588`
478 // Estimated: `3675`
479 // Minimum execution time: 35_154_000 picoseconds.
480 Weight::from_parts(36_578_000, 3675)
481 .saturating_add(T::DbWeight::get().reads(2_u64))
482 .saturating_add(T::DbWeight::get().writes(2_u64))
483 }
484 /// Storage: `Assets::Asset` (r:1 w:1)
485 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
486 fn set_min_balance() -> Weight {
487 // Proof Size summary in bytes:
488 // Measured: `384`
489 // Estimated: `3675`
490 // Minimum execution time: 14_904_000 picoseconds.
491 Weight::from_parts(15_505_000, 3675)
492 .saturating_add(T::DbWeight::get().reads(1_u64))
493 .saturating_add(T::DbWeight::get().writes(1_u64))
494 }
495 /// Storage: `Assets::Account` (r:1 w:1)
496 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
497 /// Storage: `Assets::Asset` (r:1 w:1)
498 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
499 /// Storage: `System::Account` (r:1 w:1)
500 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
501 fn touch() -> Weight {
502 // Proof Size summary in bytes:
503 // Measured: `486`
504 // Estimated: `3675`
505 // Minimum execution time: 35_434_000 picoseconds.
506 Weight::from_parts(36_636_000, 3675)
507 .saturating_add(T::DbWeight::get().reads(3_u64))
508 .saturating_add(T::DbWeight::get().writes(3_u64))
509 }
510 /// Storage: `Assets::Account` (r:1 w:1)
511 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
512 /// Storage: `Assets::Asset` (r:1 w:1)
513 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
514 fn touch_other() -> Weight {
515 // Proof Size summary in bytes:
516 // Measured: `384`
517 // Estimated: `3675`
518 // Minimum execution time: 33_361_000 picoseconds.
519 Weight::from_parts(34_522_000, 3675)
520 .saturating_add(T::DbWeight::get().reads(2_u64))
521 .saturating_add(T::DbWeight::get().writes(2_u64))
522 }
523 /// Storage: `Assets::Account` (r:1 w:1)
524 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
525 /// Storage: `Assets::Asset` (r:1 w:1)
526 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
527 /// Storage: `System::Account` (r:1 w:1)
528 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
529 fn refund() -> Weight {
530 // Proof Size summary in bytes:
531 // Measured: `612`
532 // Estimated: `3675`
533 // Minimum execution time: 33_977_000 picoseconds.
534 Weight::from_parts(34_979_000, 3675)
535 .saturating_add(T::DbWeight::get().reads(3_u64))
536 .saturating_add(T::DbWeight::get().writes(3_u64))
537 }
538 /// Storage: `Assets::Account` (r:1 w:1)
539 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
540 /// Storage: `Assets::Asset` (r:1 w:1)
541 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
542 fn refund_other() -> Weight {
543 // Proof Size summary in bytes:
544 // Measured: `543`
545 // Estimated: `3675`
546 // Minimum execution time: 31_928_000 picoseconds.
547 Weight::from_parts(33_214_000, 3675)
548 .saturating_add(T::DbWeight::get().reads(2_u64))
549 .saturating_add(T::DbWeight::get().writes(2_u64))
550 }
551 /// Storage: `Assets::Asset` (r:1 w:0)
552 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
553 /// Storage: `Assets::Account` (r:1 w:1)
554 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
555 fn block() -> Weight {
556 // Proof Size summary in bytes:
557 // Measured: `492`
558 // Estimated: `3675`
559 // Minimum execution time: 19_186_000 picoseconds.
560 Weight::from_parts(20_104_000, 3675)
561 .saturating_add(T::DbWeight::get().reads(2_u64))
562 .saturating_add(T::DbWeight::get().writes(1_u64))
563 }
564 /// Storage: `Assets::Asset` (r:1 w:1)
565 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
566 /// Storage: `Assets::Account` (r:2 w:2)
567 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
568 /// Storage: `System::Account` (r:1 w:1)
569 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
570 fn transfer_all() -> Weight {
571 // Proof Size summary in bytes:
572 // Measured: `531`
573 // Estimated: `6208`
574 // Minimum execution time: 55_413_000 picoseconds.
575 Weight::from_parts(56_798_000, 6208)
576 .saturating_add(T::DbWeight::get().reads(4_u64))
577 .saturating_add(T::DbWeight::get().writes(4_u64))
578 }
579 /// Storage: `Assets::Asset` (r:1 w:0)
580 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
581 fn total_issuance() -> Weight {
582 // Proof Size summary in bytes:
583 // Measured: `418`
584 // Estimated: `3675`
585 // Minimum execution time: 8_792_000 picoseconds.
586 Weight::from_parts(9_095_000, 3675)
587 .saturating_add(T::DbWeight::get().reads(1_u64))
588 }
589 /// Storage: `Assets::Account` (r:1 w:0)
590 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
591 fn balance() -> Weight {
592 // Proof Size summary in bytes:
593 // Measured: `255`
594 // Estimated: `3599`
595 // Minimum execution time: 8_924_000 picoseconds.
596 Weight::from_parts(9_407_000, 3599)
597 .saturating_add(T::DbWeight::get().reads(1_u64))
598 }
599 /// Storage: `Assets::Approvals` (r:1 w:0)
600 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
601 fn allowance() -> Weight {
602 // Proof Size summary in bytes:
603 // Measured: `350`
604 // Estimated: `3613`
605 // Minimum execution time: 11_348_000 picoseconds.
606 Weight::from_parts(11_882_000, 3613)
607 .saturating_add(T::DbWeight::get().reads(1_u64))
608 }
609 fn set_reserves() -> Weight {
610 Weight::from_parts(31_972_000, 3675)
611 .saturating_add(RocksDbWeight::get().reads(1_u64))
612 .saturating_add(RocksDbWeight::get().writes(1_u64))
613 }
614}
615
616// For backwards compatibility and tests.
617impl WeightInfo for () {
618 /// Storage: `Assets::Asset` (r:1 w:1)
619 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
620 /// Storage: `Assets::NextAssetId` (r:1 w:0)
621 /// Proof: `Assets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
622 /// Storage: `System::Account` (r:1 w:1)
623 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
624 fn create() -> Weight {
625 // Proof Size summary in bytes:
626 // Measured: `326`
627 // Estimated: `3675`
628 // Minimum execution time: 30_517_000 picoseconds.
629 Weight::from_parts(31_518_000, 3675)
630 .saturating_add(RocksDbWeight::get().reads(3_u64))
631 .saturating_add(RocksDbWeight::get().writes(2_u64))
632 }
633 /// Storage: `Assets::Asset` (r:1 w:1)
634 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
635 /// Storage: `Assets::NextAssetId` (r:1 w:0)
636 /// Proof: `Assets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
637 fn force_create() -> Weight {
638 // Proof Size summary in bytes:
639 // Measured: `186`
640 // Estimated: `3675`
641 // Minimum execution time: 12_469_000 picoseconds.
642 Weight::from_parts(13_002_000, 3675)
643 .saturating_add(RocksDbWeight::get().reads(2_u64))
644 .saturating_add(RocksDbWeight::get().writes(1_u64))
645 }
646 /// Storage: `Assets::Asset` (r:1 w:1)
647 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
648 fn start_destroy() -> Weight {
649 // Proof Size summary in bytes:
650 // Measured: `418`
651 // Estimated: `3675`
652 // Minimum execution time: 14_767_000 picoseconds.
653 Weight::from_parts(15_425_000, 3675)
654 .saturating_add(RocksDbWeight::get().reads(1_u64))
655 .saturating_add(RocksDbWeight::get().writes(1_u64))
656 }
657 /// Storage: `Assets::Asset` (r:1 w:1)
658 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
659 /// Storage: `Assets::Account` (r:1001 w:1000)
660 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
661 /// Storage: `System::Account` (r:1000 w:1000)
662 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
663 /// The range of component `c` is `[0, 1000]`.
664 fn destroy_accounts(c: u32, ) -> Weight {
665 // Proof Size summary in bytes:
666 // Measured: `104 + c * (208 ±0)`
667 // Estimated: `3675 + c * (2609 ±0)`
668 // Minimum execution time: 18_900_000 picoseconds.
669 Weight::from_parts(19_222_000, 3675)
670 // Standard Error: 25_984
671 .saturating_add(Weight::from_parts(15_436_025, 0).saturating_mul(c.into()))
672 .saturating_add(RocksDbWeight::get().reads(2_u64))
673 .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(c.into())))
674 .saturating_add(RocksDbWeight::get().writes(1_u64))
675 .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(c.into())))
676 .saturating_add(Weight::from_parts(0, 2609).saturating_mul(c.into()))
677 }
678 /// Storage: `Assets::Asset` (r:1 w:1)
679 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
680 /// Storage: `Assets::Approvals` (r:1001 w:1000)
681 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
682 /// The range of component `a` is `[0, 1000]`.
683 fn destroy_approvals(a: u32, ) -> Weight {
684 // Proof Size summary in bytes:
685 // Measured: `555 + a * (86 ±0)`
686 // Estimated: `3675 + a * (2623 ±0)`
687 // Minimum execution time: 19_685_000 picoseconds.
688 Weight::from_parts(20_138_000, 3675)
689 // Standard Error: 10_401
690 .saturating_add(Weight::from_parts(15_779_729, 0).saturating_mul(a.into()))
691 .saturating_add(RocksDbWeight::get().reads(2_u64))
692 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(a.into())))
693 .saturating_add(RocksDbWeight::get().writes(1_u64))
694 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(a.into())))
695 .saturating_add(Weight::from_parts(0, 2623).saturating_mul(a.into()))
696 }
697 /// Storage: `Assets::Asset` (r:1 w:1)
698 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
699 /// Storage: `Assets::Metadata` (r:1 w:0)
700 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
701 fn finish_destroy() -> Weight {
702 // Proof Size summary in bytes:
703 // Measured: `384`
704 // Estimated: `3675`
705 // Minimum execution time: 15_652_000 picoseconds.
706 Weight::from_parts(16_159_000, 3675)
707 .saturating_add(RocksDbWeight::get().reads(2_u64))
708 .saturating_add(RocksDbWeight::get().writes(1_u64))
709 }
710 /// Storage: `Assets::Asset` (r:1 w:1)
711 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
712 /// Storage: `Assets::Account` (r:1 w:1)
713 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
714 fn mint() -> Weight {
715 // Proof Size summary in bytes:
716 // Measured: `384`
717 // Estimated: `3675`
718 // Minimum execution time: 25_446_000 picoseconds.
719 Weight::from_parts(26_623_000, 3675)
720 .saturating_add(RocksDbWeight::get().reads(2_u64))
721 .saturating_add(RocksDbWeight::get().writes(2_u64))
722 }
723 /// Storage: `Assets::Asset` (r:1 w:1)
724 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
725 /// Storage: `Assets::Account` (r:1 w:1)
726 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
727 fn burn() -> Weight {
728 // Proof Size summary in bytes:
729 // Measured: `492`
730 // Estimated: `3675`
731 // Minimum execution time: 33_608_000 picoseconds.
732 Weight::from_parts(34_662_000, 3675)
733 .saturating_add(RocksDbWeight::get().reads(2_u64))
734 .saturating_add(RocksDbWeight::get().writes(2_u64))
735 }
736 /// Storage: `Assets::Asset` (r:1 w:1)
737 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
738 /// Storage: `Assets::Account` (r:2 w:2)
739 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
740 /// Storage: `System::Account` (r:1 w:1)
741 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
742 fn transfer() -> Weight {
743 // Proof Size summary in bytes:
744 // Measured: `531`
745 // Estimated: `6208`
746 // Minimum execution time: 46_426_000 picoseconds.
747 Weight::from_parts(47_772_000, 6208)
748 .saturating_add(RocksDbWeight::get().reads(4_u64))
749 .saturating_add(RocksDbWeight::get().writes(4_u64))
750 }
751 /// Storage: `Assets::Asset` (r:1 w:1)
752 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
753 /// Storage: `Assets::Account` (r:2 w:2)
754 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
755 /// Storage: `System::Account` (r:1 w:1)
756 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
757 fn transfer_keep_alive() -> Weight {
758 // Proof Size summary in bytes:
759 // Measured: `531`
760 // Estimated: `6208`
761 // Minimum execution time: 42_162_000 picoseconds.
762 Weight::from_parts(42_964_000, 6208)
763 .saturating_add(RocksDbWeight::get().reads(4_u64))
764 .saturating_add(RocksDbWeight::get().writes(4_u64))
765 }
766 /// Storage: `Assets::Asset` (r:1 w:1)
767 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
768 /// Storage: `Assets::Account` (r:2 w:2)
769 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
770 /// Storage: `System::Account` (r:1 w:1)
771 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
772 fn force_transfer() -> Weight {
773 // Proof Size summary in bytes:
774 // Measured: `531`
775 // Estimated: `6208`
776 // Minimum execution time: 46_399_000 picoseconds.
777 Weight::from_parts(47_580_000, 6208)
778 .saturating_add(RocksDbWeight::get().reads(4_u64))
779 .saturating_add(RocksDbWeight::get().writes(4_u64))
780 }
781 /// Storage: `Assets::Asset` (r:1 w:0)
782 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
783 /// Storage: `Assets::Account` (r:1 w:1)
784 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
785 fn freeze() -> Weight {
786 // Proof Size summary in bytes:
787 // Measured: `492`
788 // Estimated: `3675`
789 // Minimum execution time: 19_369_000 picoseconds.
790 Weight::from_parts(19_799_000, 3675)
791 .saturating_add(RocksDbWeight::get().reads(2_u64))
792 .saturating_add(RocksDbWeight::get().writes(1_u64))
793 }
794 /// Storage: `Assets::Asset` (r:1 w:0)
795 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
796 /// Storage: `Assets::Account` (r:1 w:1)
797 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
798 fn thaw() -> Weight {
799 // Proof Size summary in bytes:
800 // Measured: `492`
801 // Estimated: `3675`
802 // Minimum execution time: 19_145_000 picoseconds.
803 Weight::from_parts(19_873_000, 3675)
804 .saturating_add(RocksDbWeight::get().reads(2_u64))
805 .saturating_add(RocksDbWeight::get().writes(1_u64))
806 }
807 /// Storage: `Assets::Asset` (r:1 w:1)
808 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
809 fn freeze_asset() -> Weight {
810 // Proof Size summary in bytes:
811 // Measured: `418`
812 // Estimated: `3675`
813 // Minimum execution time: 14_728_000 picoseconds.
814 Weight::from_parts(15_405_000, 3675)
815 .saturating_add(RocksDbWeight::get().reads(1_u64))
816 .saturating_add(RocksDbWeight::get().writes(1_u64))
817 }
818 /// Storage: `Assets::Asset` (r:1 w:1)
819 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
820 fn thaw_asset() -> Weight {
821 // Proof Size summary in bytes:
822 // Measured: `418`
823 // Estimated: `3675`
824 // Minimum execution time: 14_730_000 picoseconds.
825 Weight::from_parts(15_284_000, 3675)
826 .saturating_add(RocksDbWeight::get().reads(1_u64))
827 .saturating_add(RocksDbWeight::get().writes(1_u64))
828 }
829 /// Storage: `Assets::Asset` (r:1 w:1)
830 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
831 /// Storage: `Assets::Metadata` (r:1 w:0)
832 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
833 fn transfer_ownership() -> Weight {
834 // Proof Size summary in bytes:
835 // Measured: `384`
836 // Estimated: `3675`
837 // Minimum execution time: 16_247_000 picoseconds.
838 Weight::from_parts(16_890_000, 3675)
839 .saturating_add(RocksDbWeight::get().reads(2_u64))
840 .saturating_add(RocksDbWeight::get().writes(1_u64))
841 }
842 /// Storage: `Assets::Asset` (r:1 w:1)
843 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
844 fn set_team() -> Weight {
845 // Proof Size summary in bytes:
846 // Measured: `384`
847 // Estimated: `3675`
848 // Minimum execution time: 14_206_000 picoseconds.
849 Weight::from_parts(14_856_000, 3675)
850 .saturating_add(RocksDbWeight::get().reads(1_u64))
851 .saturating_add(RocksDbWeight::get().writes(1_u64))
852 }
853 /// Storage: `Assets::Asset` (r:1 w:0)
854 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
855 /// Storage: `Assets::Metadata` (r:1 w:1)
856 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
857 /// The range of component `n` is `[0, 50]`.
858 /// The range of component `s` is `[0, 50]`.
859 fn set_metadata(_n: u32, s: u32, ) -> Weight {
860 // Proof Size summary in bytes:
861 // Measured: `384`
862 // Estimated: `3675`
863 // Minimum execution time: 30_217_000 picoseconds.
864 Weight::from_parts(31_869_256, 3675)
865 // Standard Error: 1_165
866 .saturating_add(Weight::from_parts(826, 0).saturating_mul(s.into()))
867 .saturating_add(RocksDbWeight::get().reads(2_u64))
868 .saturating_add(RocksDbWeight::get().writes(1_u64))
869 }
870 /// Storage: `Assets::Asset` (r:1 w:0)
871 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
872 /// Storage: `Assets::Metadata` (r:1 w:1)
873 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
874 fn clear_metadata() -> Weight {
875 // Proof Size summary in bytes:
876 // Measured: `548`
877 // Estimated: `3675`
878 // Minimum execution time: 29_914_000 picoseconds.
879 Weight::from_parts(30_680_000, 3675)
880 .saturating_add(RocksDbWeight::get().reads(2_u64))
881 .saturating_add(RocksDbWeight::get().writes(1_u64))
882 }
883 /// Storage: `Assets::Asset` (r:1 w:0)
884 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
885 /// Storage: `Assets::Metadata` (r:1 w:1)
886 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
887 /// The range of component `n` is `[0, 50]`.
888 /// The range of component `s` is `[0, 50]`.
889 fn force_set_metadata(n: u32, s: u32, ) -> Weight {
890 // Proof Size summary in bytes:
891 // Measured: `223`
892 // Estimated: `3675`
893 // Minimum execution time: 13_045_000 picoseconds.
894 Weight::from_parts(13_680_991, 3675)
895 // Standard Error: 528
896 .saturating_add(Weight::from_parts(3_162, 0).saturating_mul(n.into()))
897 // Standard Error: 528
898 .saturating_add(Weight::from_parts(2_931, 0).saturating_mul(s.into()))
899 .saturating_add(RocksDbWeight::get().reads(2_u64))
900 .saturating_add(RocksDbWeight::get().writes(1_u64))
901 }
902 /// Storage: `Assets::Asset` (r:1 w:0)
903 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
904 /// Storage: `Assets::Metadata` (r:1 w:1)
905 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
906 fn force_clear_metadata() -> Weight {
907 // Proof Size summary in bytes:
908 // Measured: `548`
909 // Estimated: `3675`
910 // Minimum execution time: 29_440_000 picoseconds.
911 Weight::from_parts(30_302_000, 3675)
912 .saturating_add(RocksDbWeight::get().reads(2_u64))
913 .saturating_add(RocksDbWeight::get().writes(1_u64))
914 }
915 /// Storage: `Assets::Asset` (r:1 w:1)
916 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
917 fn force_asset_status() -> Weight {
918 // Proof Size summary in bytes:
919 // Measured: `384`
920 // Estimated: `3675`
921 // Minimum execution time: 14_175_000 picoseconds.
922 Weight::from_parts(14_802_000, 3675)
923 .saturating_add(RocksDbWeight::get().reads(1_u64))
924 .saturating_add(RocksDbWeight::get().writes(1_u64))
925 }
926 /// Storage: `Assets::Asset` (r:1 w:1)
927 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
928 /// Storage: `Assets::Approvals` (r:1 w:1)
929 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
930 fn approve_transfer() -> Weight {
931 // Proof Size summary in bytes:
932 // Measured: `418`
933 // Estimated: `3675`
934 // Minimum execution time: 34_027_000 picoseconds.
935 Weight::from_parts(34_976_000, 3675)
936 .saturating_add(RocksDbWeight::get().reads(2_u64))
937 .saturating_add(RocksDbWeight::get().writes(2_u64))
938 }
939 /// Storage: `Assets::Asset` (r:1 w:1)
940 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
941 /// Storage: `Assets::Approvals` (r:1 w:1)
942 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
943 /// Storage: `Assets::Account` (r:2 w:2)
944 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
945 /// Storage: `System::Account` (r:1 w:1)
946 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
947 fn transfer_approved() -> Weight {
948 // Proof Size summary in bytes:
949 // Measured: `701`
950 // Estimated: `6208`
951 // Minimum execution time: 66_073_000 picoseconds.
952 Weight::from_parts(69_478_000, 6208)
953 .saturating_add(RocksDbWeight::get().reads(5_u64))
954 .saturating_add(RocksDbWeight::get().writes(5_u64))
955 }
956 /// Storage: `Assets::Asset` (r:1 w:1)
957 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
958 /// Storage: `Assets::Approvals` (r:1 w:1)
959 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
960 fn cancel_approval() -> Weight {
961 // Proof Size summary in bytes:
962 // Measured: `588`
963 // Estimated: `3675`
964 // Minimum execution time: 35_452_000 picoseconds.
965 Weight::from_parts(36_883_000, 3675)
966 .saturating_add(RocksDbWeight::get().reads(2_u64))
967 .saturating_add(RocksDbWeight::get().writes(2_u64))
968 }
969 /// Storage: `Assets::Asset` (r:1 w:1)
970 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
971 /// Storage: `Assets::Approvals` (r:1 w:1)
972 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
973 fn force_cancel_approval() -> Weight {
974 // Proof Size summary in bytes:
975 // Measured: `588`
976 // Estimated: `3675`
977 // Minimum execution time: 35_154_000 picoseconds.
978 Weight::from_parts(36_578_000, 3675)
979 .saturating_add(RocksDbWeight::get().reads(2_u64))
980 .saturating_add(RocksDbWeight::get().writes(2_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 fn set_min_balance() -> Weight {
985 // Proof Size summary in bytes:
986 // Measured: `384`
987 // Estimated: `3675`
988 // Minimum execution time: 14_904_000 picoseconds.
989 Weight::from_parts(15_505_000, 3675)
990 .saturating_add(RocksDbWeight::get().reads(1_u64))
991 .saturating_add(RocksDbWeight::get().writes(1_u64))
992 }
993 /// Storage: `Assets::Account` (r:1 w:1)
994 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
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: `System::Account` (r:1 w:1)
998 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
999 fn touch() -> Weight {
1000 // Proof Size summary in bytes:
1001 // Measured: `486`
1002 // Estimated: `3675`
1003 // Minimum execution time: 35_434_000 picoseconds.
1004 Weight::from_parts(36_636_000, 3675)
1005 .saturating_add(RocksDbWeight::get().reads(3_u64))
1006 .saturating_add(RocksDbWeight::get().writes(3_u64))
1007 }
1008 /// Storage: `Assets::Account` (r:1 w:1)
1009 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
1010 /// Storage: `Assets::Asset` (r:1 w:1)
1011 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
1012 fn touch_other() -> Weight {
1013 // Proof Size summary in bytes:
1014 // Measured: `384`
1015 // Estimated: `3675`
1016 // Minimum execution time: 33_361_000 picoseconds.
1017 Weight::from_parts(34_522_000, 3675)
1018 .saturating_add(RocksDbWeight::get().reads(2_u64))
1019 .saturating_add(RocksDbWeight::get().writes(2_u64))
1020 }
1021 /// Storage: `Assets::Account` (r:1 w:1)
1022 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
1023 /// Storage: `Assets::Asset` (r:1 w:1)
1024 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
1025 /// Storage: `System::Account` (r:1 w:1)
1026 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1027 fn refund() -> Weight {
1028 // Proof Size summary in bytes:
1029 // Measured: `612`
1030 // Estimated: `3675`
1031 // Minimum execution time: 33_977_000 picoseconds.
1032 Weight::from_parts(34_979_000, 3675)
1033 .saturating_add(RocksDbWeight::get().reads(3_u64))
1034 .saturating_add(RocksDbWeight::get().writes(3_u64))
1035 }
1036 /// Storage: `Assets::Account` (r:1 w:1)
1037 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
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 refund_other() -> Weight {
1041 // Proof Size summary in bytes:
1042 // Measured: `543`
1043 // Estimated: `3675`
1044 // Minimum execution time: 31_928_000 picoseconds.
1045 Weight::from_parts(33_214_000, 3675)
1046 .saturating_add(RocksDbWeight::get().reads(2_u64))
1047 .saturating_add(RocksDbWeight::get().writes(2_u64))
1048 }
1049 /// Storage: `Assets::Asset` (r:1 w:0)
1050 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
1051 /// Storage: `Assets::Account` (r:1 w:1)
1052 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
1053 fn block() -> Weight {
1054 // Proof Size summary in bytes:
1055 // Measured: `492`
1056 // Estimated: `3675`
1057 // Minimum execution time: 19_186_000 picoseconds.
1058 Weight::from_parts(20_104_000, 3675)
1059 .saturating_add(RocksDbWeight::get().reads(2_u64))
1060 .saturating_add(RocksDbWeight::get().writes(1_u64))
1061 }
1062 /// Storage: `Assets::Asset` (r:1 w:1)
1063 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
1064 /// Storage: `Assets::Account` (r:2 w:2)
1065 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
1066 /// Storage: `System::Account` (r:1 w:1)
1067 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1068 fn transfer_all() -> Weight {
1069 // Proof Size summary in bytes:
1070 // Measured: `531`
1071 // Estimated: `6208`
1072 // Minimum execution time: 55_413_000 picoseconds.
1073 Weight::from_parts(56_798_000, 6208)
1074 .saturating_add(RocksDbWeight::get().reads(4_u64))
1075 .saturating_add(RocksDbWeight::get().writes(4_u64))
1076 }
1077 /// Storage: `Assets::Asset` (r:1 w:0)
1078 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
1079 fn total_issuance() -> Weight {
1080 // Proof Size summary in bytes:
1081 // Measured: `418`
1082 // Estimated: `3675`
1083 // Minimum execution time: 8_792_000 picoseconds.
1084 Weight::from_parts(9_095_000, 3675)
1085 .saturating_add(RocksDbWeight::get().reads(1_u64))
1086 }
1087 /// Storage: `Assets::Account` (r:1 w:0)
1088 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
1089 fn balance() -> Weight {
1090 // Proof Size summary in bytes:
1091 // Measured: `255`
1092 // Estimated: `3599`
1093 // Minimum execution time: 8_924_000 picoseconds.
1094 Weight::from_parts(9_407_000, 3599)
1095 .saturating_add(RocksDbWeight::get().reads(1_u64))
1096 }
1097 /// Storage: `Assets::Approvals` (r:1 w:0)
1098 /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
1099 fn allowance() -> Weight {
1100 // Proof Size summary in bytes:
1101 // Measured: `350`
1102 // Estimated: `3613`
1103 // Minimum execution time: 11_348_000 picoseconds.
1104 Weight::from_parts(11_882_000, 3613)
1105 .saturating_add(RocksDbWeight::get().reads(1_u64))
1106 }
1107 fn set_reserves() -> Weight {
1108 Weight::from_parts(31_972_000, 3675)
1109 .saturating_add(RocksDbWeight::get().reads(1_u64))
1110 .saturating_add(RocksDbWeight::get().writes(1_u64))
1111 }
1112}