asset_hub_westend_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-westend-runtime/asset_hub_westend_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-westend/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_569_000 picoseconds.
62 Weight::from_parts(11_889_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_004_000 picoseconds.
76 Weight::from_parts(11_358_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: `499`
88 // Estimated: `3675`
89 // Minimum execution time: 16_849_000 picoseconds.
90 Weight::from_parts(17_412_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_443_000 picoseconds.
113 Weight::from_parts(15_900_000, 0)
114 .saturating_add(Weight::from_parts(0, 3675))
115 // Standard Error: 42_899
116 .saturating_add(Weight::from_parts(26_918_528, 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: 15_852_000 picoseconds.
135 Weight::from_parts(16_324_000, 0)
136 .saturating_add(Weight::from_parts(0, 3675))
137 // Standard Error: 7_240
138 .saturating_add(Weight::from_parts(6_025_177, 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: 13_087_000 picoseconds.
154 Weight::from_parts(13_717_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_607_000 picoseconds.
168 Weight::from_parts(23_394_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: `464`
184 // Estimated: `3675`
185 // Minimum execution time: 47_055_000 picoseconds.
186 Weight::from_parts(48_623_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: `464`
204 // Estimated: `6208`
205 // Minimum execution time: 59_079_000 picoseconds.
206 Weight::from_parts(61_112_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: `464`
222 // Estimated: `6208`
223 // Minimum execution time: 45_022_000 picoseconds.
224 Weight::from_parts(45_867_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: `464`
242 // Estimated: `6208`
243 // Minimum execution time: 58_841_000 picoseconds.
244 Weight::from_parts(60_287_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_231_000 picoseconds.
258 Weight::from_parts(16_669_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_306_000 picoseconds.
272 Weight::from_parts(16_822_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_570_000 picoseconds.
284 Weight::from_parts(12_166_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_566_000 picoseconds.
296 Weight::from_parts(11_968_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_350_000 picoseconds.
310 Weight::from_parts(13_761_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_563_000 picoseconds.
322 Weight::from_parts(12_002_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_982_000 picoseconds.
342 Weight::from_parts(14_938_292, 0)
343 .saturating_add(Weight::from_parts(0, 3675))
344 // Standard Error: 793
345 .saturating_add(Weight::from_parts(347, 0).saturating_mul(n.into()))
346 // Standard Error: 793
347 .saturating_add(Weight::from_parts(303, 0).saturating_mul(s.into()))
348 .saturating_add(T::DbWeight::get().reads(2))
349 .saturating_add(T::DbWeight::get().writes(1))
350 }
351 /// Storage: `PoolAssets::Asset` (r:1 w:0)
352 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
353 /// Storage: `PoolAssets::Metadata` (r:1 w:1)
354 /// Proof: `PoolAssets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
355 fn clear_metadata() -> Weight {
356 // Proof Size summary in bytes:
357 // Measured: `444`
358 // Estimated: `3675`
359 // Minimum execution time: 15_150_000 picoseconds.
360 Weight::from_parts(15_734_000, 0)
361 .saturating_add(Weight::from_parts(0, 3675))
362 .saturating_add(T::DbWeight::get().reads(2))
363 .saturating_add(T::DbWeight::get().writes(1))
364 }
365 /// Storage: `PoolAssets::Asset` (r:1 w:0)
366 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
367 /// Storage: `PoolAssets::Metadata` (r:1 w:1)
368 /// Proof: `PoolAssets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
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 /// The range of component `n` is `[0, 50]`.
374 /// The range of component `s` is `[0, 50]`.
375 fn force_set_metadata(n: u32, s: u32, ) -> Weight {
376 // Proof Size summary in bytes:
377 // Measured: `119`
378 // Estimated: `3675`
379 // Minimum execution time: 12_294_000 picoseconds.
380 Weight::from_parts(12_892_214, 0)
381 .saturating_add(Weight::from_parts(0, 3675))
382 // Standard Error: 363
383 .saturating_add(Weight::from_parts(1_449, 0).saturating_mul(n.into()))
384 // Standard Error: 363
385 .saturating_add(Weight::from_parts(949, 0).saturating_mul(s.into()))
386 .saturating_add(T::DbWeight::get().reads(2))
387 .saturating_add(T::DbWeight::get().writes(1))
388 }
389 /// Storage: `PoolAssets::Asset` (r:1 w:0)
390 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
391 /// Storage: `PoolAssets::Metadata` (r:1 w:1)
392 /// Proof: `PoolAssets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
393 fn force_clear_metadata() -> Weight {
394 // Proof Size summary in bytes:
395 // Measured: `444`
396 // Estimated: `3675`
397 // Minimum execution time: 14_637_000 picoseconds.
398 Weight::from_parts(15_381_000, 0)
399 .saturating_add(Weight::from_parts(0, 3675))
400 .saturating_add(T::DbWeight::get().reads(2))
401 .saturating_add(T::DbWeight::get().writes(1))
402 }
403 /// Storage: `PoolAssets::Asset` (r:1 w:1)
404 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
405 fn force_asset_status() -> Weight {
406 // Proof Size summary in bytes:
407 // Measured: `280`
408 // Estimated: `3675`
409 // Minimum execution time: 11_326_000 picoseconds.
410 Weight::from_parts(11_597_000, 0)
411 .saturating_add(Weight::from_parts(0, 3675))
412 .saturating_add(T::DbWeight::get().reads(1))
413 .saturating_add(T::DbWeight::get().writes(1))
414 }
415 /// Storage: `PoolAssets::Asset` (r:1 w:1)
416 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
417 /// Storage: `PoolAssets::Approvals` (r:1 w:1)
418 /// Proof: `PoolAssets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
419 fn approve_transfer() -> Weight {
420 // Proof Size summary in bytes:
421 // Measured: `314`
422 // Estimated: `3675`
423 // Minimum execution time: 17_983_000 picoseconds.
424 Weight::from_parts(18_855_000, 0)
425 .saturating_add(Weight::from_parts(0, 3675))
426 .saturating_add(T::DbWeight::get().reads(2))
427 .saturating_add(T::DbWeight::get().writes(2))
428 }
429 /// Storage: `PoolAssets::Asset` (r:1 w:1)
430 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
431 /// Storage: `PoolAssets::Approvals` (r:1 w:1)
432 /// Proof: `PoolAssets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
433 /// Storage: `PoolAssets::Account` (r:2 w:2)
434 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
435 /// Storage: `PoolAssetsFreezer::FrozenBalances` (r:1 w:1)
436 /// Proof: `PoolAssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
437 /// Storage: `System::Account` (r:1 w:1)
438 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
439 /// Storage: `PoolAssetsFreezer::Freezes` (r:1 w:1)
440 /// Proof: `PoolAssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`)
441 fn transfer_approved() -> Weight {
442 // Proof Size summary in bytes:
443 // Measured: `634`
444 // Estimated: `6208`
445 // Minimum execution time: 69_752_000 picoseconds.
446 Weight::from_parts(71_877_000, 0)
447 .saturating_add(Weight::from_parts(0, 6208))
448 .saturating_add(T::DbWeight::get().reads(7))
449 .saturating_add(T::DbWeight::get().writes(7))
450 }
451 /// Storage: `PoolAssets::Asset` (r:1 w:1)
452 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
453 /// Storage: `PoolAssets::Approvals` (r:1 w:1)
454 /// Proof: `PoolAssets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
455 fn cancel_approval() -> Weight {
456 // Proof Size summary in bytes:
457 // Measured: `484`
458 // Estimated: `3675`
459 // Minimum execution time: 20_653_000 picoseconds.
460 Weight::from_parts(21_557_000, 0)
461 .saturating_add(Weight::from_parts(0, 3675))
462 .saturating_add(T::DbWeight::get().reads(2))
463 .saturating_add(T::DbWeight::get().writes(2))
464 }
465 /// Storage: `PoolAssets::Asset` (r:1 w:1)
466 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
467 /// Storage: `PoolAssets::Approvals` (r:1 w:1)
468 /// Proof: `PoolAssets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
469 fn force_cancel_approval() -> Weight {
470 // Proof Size summary in bytes:
471 // Measured: `484`
472 // Estimated: `3675`
473 // Minimum execution time: 20_561_000 picoseconds.
474 Weight::from_parts(21_348_000, 0)
475 .saturating_add(Weight::from_parts(0, 3675))
476 .saturating_add(T::DbWeight::get().reads(2))
477 .saturating_add(T::DbWeight::get().writes(2))
478 }
479 /// Storage: `PoolAssets::Asset` (r:1 w:1)
480 /// Proof: `PoolAssets::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: `280`
484 // Estimated: `3675`
485 // Minimum execution time: 12_113_000 picoseconds.
486 Weight::from_parts(12_644_000, 0)
487 .saturating_add(Weight::from_parts(0, 3675))
488 .saturating_add(T::DbWeight::get().reads(1))
489 .saturating_add(T::DbWeight::get().writes(1))
490 }
491 /// Storage: `PoolAssets::Account` (r:1 w:1)
492 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
493 /// Storage: `PoolAssets::Asset` (r:1 w:1)
494 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
495 fn touch() -> Weight {
496 // Proof Size summary in bytes:
497 // Measured: `280`
498 // Estimated: `3675`
499 // Minimum execution time: 17_074_000 picoseconds.
500 Weight::from_parts(17_729_000, 0)
501 .saturating_add(Weight::from_parts(0, 3675))
502 .saturating_add(T::DbWeight::get().reads(2))
503 .saturating_add(T::DbWeight::get().writes(2))
504 }
505 /// Storage: `PoolAssets::Account` (r:1 w:1)
506 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
507 /// Storage: `PoolAssets::Asset` (r:1 w:1)
508 /// Proof: `PoolAssets::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: `280`
512 // Estimated: `3675`
513 // Minimum execution time: 17_410_000 picoseconds.
514 Weight::from_parts(17_968_000, 0)
515 .saturating_add(Weight::from_parts(0, 3675))
516 .saturating_add(T::DbWeight::get().reads(2))
517 .saturating_add(T::DbWeight::get().writes(2))
518 }
519 /// Storage: `PoolAssets::Account` (r:1 w:1)
520 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
521 /// Storage: `PoolAssets::Asset` (r:1 w:1)
522 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
523 /// Storage: `PoolAssetsFreezer::FrozenBalances` (r:1 w:1)
524 /// Proof: `PoolAssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
525 /// Storage: `PoolAssetsFreezer::Freezes` (r:1 w:1)
526 /// Proof: `PoolAssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`)
527 fn refund() -> Weight {
528 // Proof Size summary in bytes:
529 // Measured: `482`
530 // Estimated: `3675`
531 // Minimum execution time: 28_130_000 picoseconds.
532 Weight::from_parts(28_908_000, 0)
533 .saturating_add(Weight::from_parts(0, 3675))
534 .saturating_add(T::DbWeight::get().reads(4))
535 .saturating_add(T::DbWeight::get().writes(4))
536 }
537 /// Storage: `PoolAssets::Account` (r:1 w:1)
538 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
539 /// Storage: `PoolAssets::Asset` (r:1 w:1)
540 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
541 /// Storage: `PoolAssetsFreezer::FrozenBalances` (r:1 w:1)
542 /// Proof: `PoolAssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
543 /// Storage: `PoolAssetsFreezer::Freezes` (r:1 w:1)
544 /// Proof: `PoolAssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`)
545 fn refund_other() -> Weight {
546 // Proof Size summary in bytes:
547 // Measured: `515`
548 // Estimated: `3675`
549 // Minimum execution time: 29_928_000 picoseconds.
550 Weight::from_parts(30_744_000, 0)
551 .saturating_add(Weight::from_parts(0, 3675))
552 .saturating_add(T::DbWeight::get().reads(4))
553 .saturating_add(T::DbWeight::get().writes(4))
554 }
555 /// Storage: `PoolAssets::Asset` (r:1 w:0)
556 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
557 /// Storage: `PoolAssets::Account` (r:1 w:1)
558 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
559 fn block() -> Weight {
560 // Proof Size summary in bytes:
561 // Measured: `388`
562 // Estimated: `3675`
563 // Minimum execution time: 15_931_000 picoseconds.
564 Weight::from_parts(16_907_000, 0)
565 .saturating_add(Weight::from_parts(0, 3675))
566 .saturating_add(T::DbWeight::get().reads(2))
567 .saturating_add(T::DbWeight::get().writes(1))
568 }
569 /// Storage: `PoolAssets::Asset` (r:1 w:1)
570 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
571 /// Storage: `PoolAssets::Account` (r:2 w:2)
572 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
573 /// Storage: `PoolAssetsFreezer::FrozenBalances` (r:1 w:1)
574 /// Proof: `PoolAssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
575 /// Storage: `PoolAssetsFreezer::Freezes` (r:1 w:1)
576 /// Proof: `PoolAssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`)
577 /// Storage: `System::Account` (r:1 w:1)
578 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
579 fn transfer_all() -> Weight {
580 // Proof Size summary in bytes:
581 // Measured: `464`
582 // Estimated: `6208`
583 // Minimum execution time: 71_790_000 picoseconds.
584 Weight::from_parts(73_457_000, 0)
585 .saturating_add(Weight::from_parts(0, 6208))
586 .saturating_add(T::DbWeight::get().reads(6))
587 .saturating_add(T::DbWeight::get().writes(6))
588 }
589 /// Storage: `PoolAssets::Asset` (r:1 w:0)
590 /// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
591 fn total_issuance() -> Weight {
592 // Proof Size summary in bytes:
593 // Measured: `314`
594 // Estimated: `3675`
595 // Minimum execution time: 5_673_000 picoseconds.
596 Weight::from_parts(6_032_000, 0)
597 .saturating_add(Weight::from_parts(0, 3675))
598 .saturating_add(T::DbWeight::get().reads(1))
599 }
600 /// Storage: `PoolAssets::Account` (r:1 w:0)
601 /// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
602 fn balance() -> Weight {
603 // Proof Size summary in bytes:
604 // Measured: `188`
605 // Estimated: `3599`
606 // Minimum execution time: 6_746_000 picoseconds.
607 Weight::from_parts(7_190_000, 0)
608 .saturating_add(Weight::from_parts(0, 3599))
609 .saturating_add(T::DbWeight::get().reads(1))
610 }
611 /// Storage: `PoolAssets::Approvals` (r:1 w:0)
612 /// Proof: `PoolAssets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`)
613 fn allowance() -> Weight {
614 // Proof Size summary in bytes:
615 // Measured: `283`
616 // Estimated: `3613`
617 // Minimum execution time: 9_311_000 picoseconds.
618 Weight::from_parts(9_602_000, 0)
619 .saturating_add(Weight::from_parts(0, 3613))
620 .saturating_add(T::DbWeight::get().reads(1))
621 }
622}