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