asset_hub_rococo_runtime/weights/pallet_assets_pool.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Autogenerated weights for `pallet_assets`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-05-18, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `c47a012f15ca`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
23
24// Executed Command:
25// frame-omni-bencher
26// v1
27// benchmark
28// pallet
29// --extrinsic=*
30// --runtime=target/production/wbuild/asset-hub-rococo-runtime/asset_hub_rococo_runtime.wasm
31// --pallet=pallet_assets
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --no-storage-info
39// --no-min-squares
40// --no-median-slopes
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `pallet_assets`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
53 /// Storage: `PoolAssets::Asset` (r:1 w:1)
54 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
55 /// Storage: `PoolAssets::NextAssetId` (r:1 w:0)
56 /// Proof: `PoolAssets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
57 fn create() -> Weight {
58 // Proof Size summary in bytes:
59 // Measured: `42`
60 // Estimated: `3675`
61 // Minimum execution time: 11_176_000 picoseconds.
62 Weight::from_parts(11_708_000, 0)
63 .saturating_add(Weight::from_parts(0, 3675))
64 .saturating_add(T::DbWeight::get().reads(2))
65 .saturating_add(T::DbWeight::get().writes(1))
66 }
67 /// Storage: `PoolAssets::Asset` (r:1 w:1)
68 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
69 /// Storage: `PoolAssets::NextAssetId` (r:1 w:0)
70 /// Proof: `PoolAssets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
71 fn force_create() -> Weight {
72 // Proof Size summary in bytes:
73 // Measured: `42`
74 // Estimated: `3675`
75 // Minimum execution time: 11_139_000 picoseconds.
76 Weight::from_parts(11_425_000, 0)
77 .saturating_add(Weight::from_parts(0, 3675))
78 .saturating_add(T::DbWeight::get().reads(2))
79 .saturating_add(T::DbWeight::get().writes(1))
80 }
81 /// Storage: `PoolAssets::Asset` (r:1 w:1)
82 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
83 /// Storage: `PoolAssetsFreezer::Freezes` (r:1 w:0)
84 /// Proof: `PoolAssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`)
85 fn start_destroy() -> Weight {
86 // Proof Size summary in bytes:
87 // Measured: `465`
88 // Estimated: `3675`
89 // Minimum execution time: 16_818_000 picoseconds.
90 Weight::from_parts(17_574_000, 0)
91 .saturating_add(Weight::from_parts(0, 3675))
92 .saturating_add(T::DbWeight::get().reads(2))
93 .saturating_add(T::DbWeight::get().writes(1))
94 }
95 /// Storage: `PoolAssets::Asset` (r:1 w:1)
96 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
97 /// Storage: `PoolAssets::Account` (r:1001 w:1000)
98 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
99 /// Storage: `PoolAssetsFreezer::FrozenBalances` (r:1000 w:1000)
100 /// Proof: `PoolAssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
101 /// Storage: `System::Account` (r:1000 w:1000)
102 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
103 /// Storage: `PoolAssetsFreezer::Freezes` (r:1000 w:1000)
104 /// Proof: `PoolAssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`)
105 /// The range of component `c` is `[0, 1000]`.
106 /// The range of component `c` is `[0, 1000]`.
107 /// The range of component `c` is `[0, 1000]`.
108 fn destroy_accounts(c: u32, ) -> Weight {
109 // Proof Size summary in bytes:
110 // Measured: `0 + c * (208 ±0)`
111 // Estimated: `3675 + c * (2609 ±0)`
112 // Minimum execution time: 15_399_000 picoseconds.
113 Weight::from_parts(15_922_000, 0)
114 .saturating_add(Weight::from_parts(0, 3675))
115 // Standard Error: 20_120
116 .saturating_add(Weight::from_parts(24_799_452, 0).saturating_mul(c.into()))
117 .saturating_add(T::DbWeight::get().reads(2))
118 .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(c.into())))
119 .saturating_add(T::DbWeight::get().writes(1))
120 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(c.into())))
121 .saturating_add(Weight::from_parts(0, 2609).saturating_mul(c.into()))
122 }
123 /// Storage: `PoolAssets::Asset` (r:1 w:1)
124 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
125 /// Storage: `PoolAssets::Approvals` (r:1001 w:1000)
126 /// Proof: `PoolAssets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
127 /// The range of component `a` is `[0, 1000]`.
128 /// The range of component `a` is `[0, 1000]`.
129 /// The range of component `a` is `[0, 1000]`.
130 fn destroy_approvals(a: u32, ) -> Weight {
131 // Proof Size summary in bytes:
132 // Measured: `451 + a * (86 ±0)`
133 // Estimated: `3675 + a * (2623 ±0)`
134 // Minimum execution time: 16_199_000 picoseconds.
135 Weight::from_parts(16_470_000, 0)
136 .saturating_add(Weight::from_parts(0, 3675))
137 // Standard Error: 4_361
138 .saturating_add(Weight::from_parts(15_336_713, 0).saturating_mul(a.into()))
139 .saturating_add(T::DbWeight::get().reads(2))
140 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into())))
141 .saturating_add(T::DbWeight::get().writes(1))
142 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(a.into())))
143 .saturating_add(Weight::from_parts(0, 2623).saturating_mul(a.into()))
144 }
145 /// Storage: `PoolAssets::Asset` (r:1 w:1)
146 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
147 /// Storage: `PoolAssets::Metadata` (r:1 w:0)
148 /// Proof: `PoolAssets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
149 fn finish_destroy() -> Weight {
150 // Proof Size summary in bytes:
151 // Measured: `280`
152 // Estimated: `3675`
153 // Minimum execution time: 12_959_000 picoseconds.
154 Weight::from_parts(13_382_000, 0)
155 .saturating_add(Weight::from_parts(0, 3675))
156 .saturating_add(T::DbWeight::get().reads(2))
157 .saturating_add(T::DbWeight::get().writes(1))
158 }
159 /// Storage: `PoolAssets::Asset` (r:1 w:1)
160 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
161 /// Storage: `PoolAssets::Account` (r:1 w:1)
162 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
163 fn mint() -> Weight {
164 // Proof Size summary in bytes:
165 // Measured: `280`
166 // Estimated: `3675`
167 // Minimum execution time: 22_225_000 picoseconds.
168 Weight::from_parts(23_117_000, 0)
169 .saturating_add(Weight::from_parts(0, 3675))
170 .saturating_add(T::DbWeight::get().reads(2))
171 .saturating_add(T::DbWeight::get().writes(2))
172 }
173 /// Storage: `PoolAssets::Asset` (r:1 w:1)
174 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
175 /// Storage: `PoolAssets::Account` (r:1 w:1)
176 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
177 /// Storage: `PoolAssetsFreezer::FrozenBalances` (r:1 w:1)
178 /// Proof: `PoolAssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
179 /// Storage: `PoolAssetsFreezer::Freezes` (r:1 w:1)
180 /// Proof: `PoolAssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`)
181 fn burn() -> Weight {
182 // Proof Size summary in bytes:
183 // Measured: `430`
184 // Estimated: `3675`
185 // Minimum execution time: 47_719_000 picoseconds.
186 Weight::from_parts(49_655_000, 0)
187 .saturating_add(Weight::from_parts(0, 3675))
188 .saturating_add(T::DbWeight::get().reads(4))
189 .saturating_add(T::DbWeight::get().writes(4))
190 }
191 /// Storage: `PoolAssets::Asset` (r:1 w:1)
192 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
193 /// Storage: `PoolAssets::Account` (r:2 w:2)
194 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
195 /// Storage: `PoolAssetsFreezer::FrozenBalances` (r:1 w:1)
196 /// Proof: `PoolAssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
197 /// Storage: `System::Account` (r:1 w:1)
198 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
199 /// Storage: `PoolAssetsFreezer::Freezes` (r:1 w:1)
200 /// Proof: `PoolAssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`)
201 fn transfer() -> Weight {
202 // Proof Size summary in bytes:
203 // Measured: `430`
204 // Estimated: `6208`
205 // Minimum execution time: 59_349_000 picoseconds.
206 Weight::from_parts(60_869_000, 0)
207 .saturating_add(Weight::from_parts(0, 6208))
208 .saturating_add(T::DbWeight::get().reads(6))
209 .saturating_add(T::DbWeight::get().writes(6))
210 }
211 /// Storage: `PoolAssets::Asset` (r:1 w:1)
212 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
213 /// Storage: `PoolAssets::Account` (r:2 w:2)
214 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
215 /// Storage: `PoolAssetsFreezer::FrozenBalances` (r:1 w:0)
216 /// Proof: `PoolAssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
217 /// Storage: `System::Account` (r:1 w:1)
218 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
219 fn transfer_keep_alive() -> Weight {
220 // Proof Size summary in bytes:
221 // Measured: `430`
222 // Estimated: `6208`
223 // Minimum execution time: 45_905_000 picoseconds.
224 Weight::from_parts(47_017_000, 0)
225 .saturating_add(Weight::from_parts(0, 6208))
226 .saturating_add(T::DbWeight::get().reads(5))
227 .saturating_add(T::DbWeight::get().writes(4))
228 }
229 /// Storage: `PoolAssets::Asset` (r:1 w:1)
230 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
231 /// Storage: `PoolAssets::Account` (r:2 w:2)
232 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
233 /// Storage: `PoolAssetsFreezer::FrozenBalances` (r:1 w:1)
234 /// Proof: `PoolAssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
235 /// Storage: `System::Account` (r:1 w:1)
236 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
237 /// Storage: `PoolAssetsFreezer::Freezes` (r:1 w:1)
238 /// Proof: `PoolAssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`)
239 fn force_transfer() -> Weight {
240 // Proof Size summary in bytes:
241 // Measured: `430`
242 // Estimated: `6208`
243 // Minimum execution time: 59_187_000 picoseconds.
244 Weight::from_parts(60_814_000, 0)
245 .saturating_add(Weight::from_parts(0, 6208))
246 .saturating_add(T::DbWeight::get().reads(6))
247 .saturating_add(T::DbWeight::get().writes(6))
248 }
249 /// Storage: `PoolAssets::Asset` (r:1 w:0)
250 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
251 /// Storage: `PoolAssets::Account` (r:1 w:1)
252 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
253 fn freeze() -> Weight {
254 // Proof Size summary in bytes:
255 // Measured: `388`
256 // Estimated: `3675`
257 // Minimum execution time: 16_306_000 picoseconds.
258 Weight::from_parts(16_893_000, 0)
259 .saturating_add(Weight::from_parts(0, 3675))
260 .saturating_add(T::DbWeight::get().reads(2))
261 .saturating_add(T::DbWeight::get().writes(1))
262 }
263 /// Storage: `PoolAssets::Asset` (r:1 w:0)
264 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
265 /// Storage: `PoolAssets::Account` (r:1 w:1)
266 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
267 fn thaw() -> Weight {
268 // Proof Size summary in bytes:
269 // Measured: `388`
270 // Estimated: `3675`
271 // Minimum execution time: 16_090_000 picoseconds.
272 Weight::from_parts(16_832_000, 0)
273 .saturating_add(Weight::from_parts(0, 3675))
274 .saturating_add(T::DbWeight::get().reads(2))
275 .saturating_add(T::DbWeight::get().writes(1))
276 }
277 /// Storage: `PoolAssets::Asset` (r:1 w:1)
278 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
279 fn freeze_asset() -> Weight {
280 // Proof Size summary in bytes:
281 // Measured: `314`
282 // Estimated: `3675`
283 // Minimum execution time: 11_493_000 picoseconds.
284 Weight::from_parts(12_065_000, 0)
285 .saturating_add(Weight::from_parts(0, 3675))
286 .saturating_add(T::DbWeight::get().reads(1))
287 .saturating_add(T::DbWeight::get().writes(1))
288 }
289 /// Storage: `PoolAssets::Asset` (r:1 w:1)
290 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
291 fn thaw_asset() -> Weight {
292 // Proof Size summary in bytes:
293 // Measured: `314`
294 // Estimated: `3675`
295 // Minimum execution time: 11_673_000 picoseconds.
296 Weight::from_parts(12_059_000, 0)
297 .saturating_add(Weight::from_parts(0, 3675))
298 .saturating_add(T::DbWeight::get().reads(1))
299 .saturating_add(T::DbWeight::get().writes(1))
300 }
301 /// Storage: `PoolAssets::Asset` (r:1 w:1)
302 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
303 /// Storage: `PoolAssets::Metadata` (r:1 w:0)
304 /// Proof: `PoolAssets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
305 fn transfer_ownership() -> Weight {
306 // Proof Size summary in bytes:
307 // Measured: `280`
308 // Estimated: `3675`
309 // Minimum execution time: 13_512_000 picoseconds.
310 Weight::from_parts(13_977_000, 0)
311 .saturating_add(Weight::from_parts(0, 3675))
312 .saturating_add(T::DbWeight::get().reads(2))
313 .saturating_add(T::DbWeight::get().writes(1))
314 }
315 /// Storage: `PoolAssets::Asset` (r:1 w:1)
316 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
317 fn set_team() -> Weight {
318 // Proof Size summary in bytes:
319 // Measured: `280`
320 // Estimated: `3675`
321 // Minimum execution time: 11_669_000 picoseconds.
322 Weight::from_parts(11_898_000, 0)
323 .saturating_add(Weight::from_parts(0, 3675))
324 .saturating_add(T::DbWeight::get().reads(1))
325 .saturating_add(T::DbWeight::get().writes(1))
326 }
327 /// Storage: `PoolAssets::Asset` (r:1 w:0)
328 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
329 /// Storage: `PoolAssets::Metadata` (r:1 w:1)
330 /// Proof: `PoolAssets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
331 /// The range of component `n` is `[0, 50]`.
332 /// The range of component `s` is `[0, 50]`.
333 /// The range of component `n` is `[0, 50]`.
334 /// The range of component `s` is `[0, 50]`.
335 /// The range of component `n` is `[0, 50]`.
336 /// The range of component `s` is `[0, 50]`.
337 fn set_metadata(n: u32, _s: u32, ) -> Weight {
338 // Proof Size summary in bytes:
339 // Measured: `280`
340 // Estimated: `3675`
341 // Minimum execution time: 13_910_000 picoseconds.
342 Weight::from_parts(14_908_493, 0)
343 .saturating_add(Weight::from_parts(0, 3675))
344 // Standard Error: 931
345 .saturating_add(Weight::from_parts(409, 0).saturating_mul(n.into()))
346 .saturating_add(T::DbWeight::get().reads(2))
347 .saturating_add(T::DbWeight::get().writes(1))
348 }
349 /// Storage: `PoolAssets::Asset` (r:1 w:0)
350 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
351 /// Storage: `PoolAssets::Metadata` (r:1 w:1)
352 /// Proof: `PoolAssets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
353 fn clear_metadata() -> Weight {
354 // Proof Size summary in bytes:
355 // Measured: `444`
356 // Estimated: `3675`
357 // Minimum execution time: 15_016_000 picoseconds.
358 Weight::from_parts(15_808_000, 0)
359 .saturating_add(Weight::from_parts(0, 3675))
360 .saturating_add(T::DbWeight::get().reads(2))
361 .saturating_add(T::DbWeight::get().writes(1))
362 }
363 /// Storage: `PoolAssets::Asset` (r:1 w:0)
364 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
365 /// Storage: `PoolAssets::Metadata` (r:1 w:1)
366 /// Proof: `PoolAssets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
367 /// The range of component `n` is `[0, 50]`.
368 /// The range of component `s` is `[0, 50]`.
369 /// The range of component `n` is `[0, 50]`.
370 /// The range of component `s` is `[0, 50]`.
371 /// The range of component `n` is `[0, 50]`.
372 /// The range of component `s` is `[0, 50]`.
373 fn force_set_metadata(_n: u32, s: u32, ) -> Weight {
374 // Proof Size summary in bytes:
375 // Measured: `119`
376 // Estimated: `3675`
377 // Minimum execution time: 12_162_000 picoseconds.
378 Weight::from_parts(12_966_962, 0)
379 .saturating_add(Weight::from_parts(0, 3675))
380 // Standard Error: 397
381 .saturating_add(Weight::from_parts(289, 0).saturating_mul(s.into()))
382 .saturating_add(T::DbWeight::get().reads(2))
383 .saturating_add(T::DbWeight::get().writes(1))
384 }
385 /// Storage: `PoolAssets::Asset` (r:1 w:0)
386 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
387 /// Storage: `PoolAssets::Metadata` (r:1 w:1)
388 /// Proof: `PoolAssets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
389 fn force_clear_metadata() -> Weight {
390 // Proof Size summary in bytes:
391 // Measured: `444`
392 // Estimated: `3675`
393 // Minimum execution time: 14_885_000 picoseconds.
394 Weight::from_parts(15_220_000, 0)
395 .saturating_add(Weight::from_parts(0, 3675))
396 .saturating_add(T::DbWeight::get().reads(2))
397 .saturating_add(T::DbWeight::get().writes(1))
398 }
399 /// Storage: `PoolAssets::Asset` (r:1 w:1)
400 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
401 fn force_asset_status() -> Weight {
402 // Proof Size summary in bytes:
403 // Measured: `280`
404 // Estimated: `3675`
405 // Minimum execution time: 11_115_000 picoseconds.
406 Weight::from_parts(11_652_000, 0)
407 .saturating_add(Weight::from_parts(0, 3675))
408 .saturating_add(T::DbWeight::get().reads(1))
409 .saturating_add(T::DbWeight::get().writes(1))
410 }
411 /// Storage: `PoolAssets::Asset` (r:1 w:1)
412 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
413 /// Storage: `PoolAssets::Approvals` (r:1 w:1)
414 /// Proof: `PoolAssets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
415 fn approve_transfer() -> Weight {
416 // Proof Size summary in bytes:
417 // Measured: `314`
418 // Estimated: `3675`
419 // Minimum execution time: 30_537_000 picoseconds.
420 Weight::from_parts(31_792_000, 0)
421 .saturating_add(Weight::from_parts(0, 3675))
422 .saturating_add(T::DbWeight::get().reads(2))
423 .saturating_add(T::DbWeight::get().writes(2))
424 }
425 /// Storage: `PoolAssets::Asset` (r:1 w:1)
426 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
427 /// Storage: `PoolAssets::Approvals` (r:1 w:1)
428 /// Proof: `PoolAssets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
429 /// Storage: `PoolAssets::Account` (r:2 w:2)
430 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
431 /// Storage: `PoolAssetsFreezer::FrozenBalances` (r:1 w:1)
432 /// Proof: `PoolAssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
433 /// Storage: `System::Account` (r:1 w:1)
434 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
435 /// Storage: `PoolAssetsFreezer::Freezes` (r:1 w:1)
436 /// Proof: `PoolAssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`)
437 fn transfer_approved() -> Weight {
438 // Proof Size summary in bytes:
439 // Measured: `600`
440 // Estimated: `6208`
441 // Minimum execution time: 79_178_000 picoseconds.
442 Weight::from_parts(83_473_000, 0)
443 .saturating_add(Weight::from_parts(0, 6208))
444 .saturating_add(T::DbWeight::get().reads(7))
445 .saturating_add(T::DbWeight::get().writes(7))
446 }
447 /// Storage: `PoolAssets::Asset` (r:1 w:1)
448 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
449 /// Storage: `PoolAssets::Approvals` (r:1 w:1)
450 /// Proof: `PoolAssets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
451 fn cancel_approval() -> Weight {
452 // Proof Size summary in bytes:
453 // Measured: `484`
454 // Estimated: `3675`
455 // Minimum execution time: 33_185_000 picoseconds.
456 Weight::from_parts(33_940_000, 0)
457 .saturating_add(Weight::from_parts(0, 3675))
458 .saturating_add(T::DbWeight::get().reads(2))
459 .saturating_add(T::DbWeight::get().writes(2))
460 }
461 /// Storage: `PoolAssets::Asset` (r:1 w:1)
462 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
463 /// Storage: `PoolAssets::Approvals` (r:1 w:1)
464 /// Proof: `PoolAssets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
465 fn force_cancel_approval() -> Weight {
466 // Proof Size summary in bytes:
467 // Measured: `484`
468 // Estimated: `3675`
469 // Minimum execution time: 32_692_000 picoseconds.
470 Weight::from_parts(33_486_000, 0)
471 .saturating_add(Weight::from_parts(0, 3675))
472 .saturating_add(T::DbWeight::get().reads(2))
473 .saturating_add(T::DbWeight::get().writes(2))
474 }
475 /// Storage: `PoolAssets::Asset` (r:1 w:1)
476 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
477 fn set_min_balance() -> Weight {
478 // Proof Size summary in bytes:
479 // Measured: `280`
480 // Estimated: `3675`
481 // Minimum execution time: 12_301_000 picoseconds.
482 Weight::from_parts(12_727_000, 0)
483 .saturating_add(Weight::from_parts(0, 3675))
484 .saturating_add(T::DbWeight::get().reads(1))
485 .saturating_add(T::DbWeight::get().writes(1))
486 }
487 /// Storage: `PoolAssets::Account` (r:1 w:1)
488 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
489 /// Storage: `PoolAssets::Asset` (r:1 w:1)
490 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
491 fn touch() -> Weight {
492 // Proof Size summary in bytes:
493 // Measured: `280`
494 // Estimated: `3675`
495 // Minimum execution time: 17_321_000 picoseconds.
496 Weight::from_parts(17_943_000, 0)
497 .saturating_add(Weight::from_parts(0, 3675))
498 .saturating_add(T::DbWeight::get().reads(2))
499 .saturating_add(T::DbWeight::get().writes(2))
500 }
501 /// Storage: `PoolAssets::Account` (r:1 w:1)
502 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
503 /// Storage: `PoolAssets::Asset` (r:1 w:1)
504 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
505 fn touch_other() -> Weight {
506 // Proof Size summary in bytes:
507 // Measured: `280`
508 // Estimated: `3675`
509 // Minimum execution time: 17_306_000 picoseconds.
510 Weight::from_parts(17_911_000, 0)
511 .saturating_add(Weight::from_parts(0, 3675))
512 .saturating_add(T::DbWeight::get().reads(2))
513 .saturating_add(T::DbWeight::get().writes(2))
514 }
515 /// Storage: `PoolAssets::Account` (r:1 w:1)
516 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
517 /// Storage: `PoolAssets::Asset` (r:1 w:1)
518 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
519 /// Storage: `PoolAssetsFreezer::FrozenBalances` (r:1 w:1)
520 /// Proof: `PoolAssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
521 /// Storage: `PoolAssetsFreezer::Freezes` (r:1 w:1)
522 /// Proof: `PoolAssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`)
523 fn refund() -> Weight {
524 // Proof Size summary in bytes:
525 // Measured: `448`
526 // Estimated: `3675`
527 // Minimum execution time: 27_522_000 picoseconds.
528 Weight::from_parts(28_593_000, 0)
529 .saturating_add(Weight::from_parts(0, 3675))
530 .saturating_add(T::DbWeight::get().reads(4))
531 .saturating_add(T::DbWeight::get().writes(4))
532 }
533 /// Storage: `PoolAssets::Account` (r:1 w:1)
534 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
535 /// Storage: `PoolAssets::Asset` (r:1 w:1)
536 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
537 /// Storage: `PoolAssetsFreezer::FrozenBalances` (r:1 w:1)
538 /// Proof: `PoolAssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
539 /// Storage: `PoolAssetsFreezer::Freezes` (r:1 w:1)
540 /// Proof: `PoolAssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`)
541 fn refund_other() -> Weight {
542 // Proof Size summary in bytes:
543 // Measured: `481`
544 // Estimated: `3675`
545 // Minimum execution time: 29_602_000 picoseconds.
546 Weight::from_parts(30_397_000, 0)
547 .saturating_add(Weight::from_parts(0, 3675))
548 .saturating_add(T::DbWeight::get().reads(4))
549 .saturating_add(T::DbWeight::get().writes(4))
550 }
551 /// Storage: `PoolAssets::Asset` (r:1 w:0)
552 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
553 /// Storage: `PoolAssets::Account` (r:1 w:1)
554 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
555 fn block() -> Weight {
556 // Proof Size summary in bytes:
557 // Measured: `388`
558 // Estimated: `3675`
559 // Minimum execution time: 16_076_000 picoseconds.
560 Weight::from_parts(16_614_000, 0)
561 .saturating_add(Weight::from_parts(0, 3675))
562 .saturating_add(T::DbWeight::get().reads(2))
563 .saturating_add(T::DbWeight::get().writes(1))
564 }
565 /// Storage: `PoolAssets::Asset` (r:1 w:1)
566 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
567 /// Storage: `PoolAssets::Account` (r:2 w:2)
568 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
569 /// Storage: `PoolAssetsFreezer::FrozenBalances` (r:1 w:1)
570 /// Proof: `PoolAssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
571 /// Storage: `PoolAssetsFreezer::Freezes` (r:1 w:1)
572 /// Proof: `PoolAssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`)
573 /// Storage: `System::Account` (r:1 w:1)
574 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
575 fn transfer_all() -> Weight {
576 // Proof Size summary in bytes:
577 // Measured: `430`
578 // Estimated: `6208`
579 // Minimum execution time: 71_751_000 picoseconds.
580 Weight::from_parts(74_070_000, 0)
581 .saturating_add(Weight::from_parts(0, 6208))
582 .saturating_add(T::DbWeight::get().reads(6))
583 .saturating_add(T::DbWeight::get().writes(6))
584 }
585 /// Storage: `PoolAssets::Asset` (r:1 w:0)
586 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
587 fn total_issuance() -> Weight {
588 // Proof Size summary in bytes:
589 // Measured: `314`
590 // Estimated: `3675`
591 // Minimum execution time: 5_676_000 picoseconds.
592 Weight::from_parts(5_922_000, 0)
593 .saturating_add(Weight::from_parts(0, 3675))
594 .saturating_add(T::DbWeight::get().reads(1))
595 }
596 /// Storage: `PoolAssets::Account` (r:1 w:0)
597 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
598 fn balance() -> Weight {
599 // Proof Size summary in bytes:
600 // Measured: `188`
601 // Estimated: `3599`
602 // Minimum execution time: 6_525_000 picoseconds.
603 Weight::from_parts(6_982_000, 0)
604 .saturating_add(Weight::from_parts(0, 3599))
605 .saturating_add(T::DbWeight::get().reads(1))
606 }
607 /// Storage: `PoolAssets::Approvals` (r:1 w:0)
608 /// Proof: `PoolAssets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
609 fn allowance() -> Weight {
610 // Proof Size summary in bytes:
611 // Measured: `283`
612 // Estimated: `3613`
613 // Minimum execution time: 9_208_000 picoseconds.
614 Weight::from_parts(9_558_000, 0)
615 .saturating_add(Weight::from_parts(0, 3613))
616 .saturating_add(T::DbWeight::get().reads(1))
617 }
618}