referrerpolicy=no-referrer-when-downgrade

pallet_psm/
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_psm`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2026-11-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `14b016172809`, 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_psm
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/psm/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_psm`.
73pub trait WeightInfo {
74	fn mint(n: u32, ) -> Weight;
75	fn redeem() -> Weight;
76	fn set_minting_fee() -> Weight;
77	fn set_redemption_fee() -> Weight;
78	fn set_max_debt() -> Weight;
79	fn set_asset_status() -> Weight;
80	fn set_asset_ceiling_weight() -> Weight;
81	fn add_external_asset() -> Weight;
82	fn remove_external_asset() -> Weight;
83	fn create_psm() -> Weight;
84	fn remove_psm() -> Weight;
85	fn set_full_admin() -> Weight;
86	fn set_emergency_admin() -> Weight;
87}
88
89/// Weights for `pallet_psm` using the Substrate node and recommended hardware.
90pub struct SubstrateWeight<T>(PhantomData<T>);
91impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
92	/// Storage: `Psm::Psm` (r:1 w:0)
93	/// Proof: `Psm::Psm` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
94	/// Storage: `Psm::ExternalAssets` (r:1 w:0)
95	/// Proof: `Psm::ExternalAssets` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
96	/// Storage: `Psm::MintingFee` (r:1 w:0)
97	/// Proof: `Psm::MintingFee` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
98	/// Storage: `Assets::Asset` (r:2 w:2)
99	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
100	/// Storage: `Assets::Account` (r:3 w:3)
101	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
102	/// Storage: `Psm::PsmDebt` (r:11 w:1)
103	/// Proof: `Psm::PsmDebt` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
104	/// Storage: `Psm::AssetCeilingWeight` (r:11 w:0)
105	/// Proof: `Psm::AssetCeilingWeight` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
106	/// Storage: `System::Account` (r:1 w:1)
107	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
108	/// The range of component `n` is `[1, 10]`.
109	fn mint(n: u32, ) -> Weight {
110		// Proof Size summary in bytes:
111		//  Measured:  `1324 + n * (88 ±0)`
112		//  Estimated: `8817 + n * (2531 ±0)`
113		// Minimum execution time: 133_493_000 picoseconds.
114		Weight::from_parts(133_687_562, 8817)
115			// Standard Error: 13_362
116			.saturating_add(Weight::from_parts(8_347_859, 0).saturating_mul(n.into()))
117			.saturating_add(T::DbWeight::get().reads(11_u64))
118			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into())))
119			.saturating_add(T::DbWeight::get().writes(7_u64))
120			.saturating_add(Weight::from_parts(0, 2531).saturating_mul(n.into()))
121	}
122	/// Storage: `Psm::Psm` (r:1 w:0)
123	/// Proof: `Psm::Psm` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
124	/// Storage: `Psm::ExternalAssets` (r:1 w:0)
125	/// Proof: `Psm::ExternalAssets` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
126	/// Storage: `Psm::RedemptionFee` (r:1 w:0)
127	/// Proof: `Psm::RedemptionFee` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
128	/// Storage: `Assets::Asset` (r:2 w:2)
129	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
130	/// Storage: `Assets::Account` (r:3 w:3)
131	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
132	/// Storage: `Psm::PsmDebt` (r:1 w:1)
133	/// Proof: `Psm::PsmDebt` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
134	fn redeem() -> Weight {
135		// Proof Size summary in bytes:
136		//  Measured:  `1538`
137		//  Estimated: `8817`
138		// Minimum execution time: 120_850_000 picoseconds.
139		Weight::from_parts(127_010_000, 8817)
140			.saturating_add(T::DbWeight::get().reads(9_u64))
141			.saturating_add(T::DbWeight::get().writes(6_u64))
142	}
143	/// Storage: `Psm::PsmAdmin` (r:1 w:0)
144	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
145	/// Storage: `Psm::ExternalAssets` (r:1 w:0)
146	/// Proof: `Psm::ExternalAssets` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
147	/// Storage: `Psm::MintingFee` (r:1 w:1)
148	/// Proof: `Psm::MintingFee` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
149	fn set_minting_fee() -> Weight {
150		// Proof Size summary in bytes:
151		//  Measured:  `512`
152		//  Estimated: `3602`
153		// Minimum execution time: 24_623_000 picoseconds.
154		Weight::from_parts(26_280_000, 3602)
155			.saturating_add(T::DbWeight::get().reads(3_u64))
156			.saturating_add(T::DbWeight::get().writes(1_u64))
157	}
158	/// Storage: `Psm::PsmAdmin` (r:1 w:0)
159	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
160	/// Storage: `Psm::ExternalAssets` (r:1 w:0)
161	/// Proof: `Psm::ExternalAssets` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
162	/// Storage: `Psm::RedemptionFee` (r:1 w:1)
163	/// Proof: `Psm::RedemptionFee` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
164	fn set_redemption_fee() -> Weight {
165		// Proof Size summary in bytes:
166		//  Measured:  `512`
167		//  Estimated: `3602`
168		// Minimum execution time: 24_538_000 picoseconds.
169		Weight::from_parts(26_197_000, 3602)
170			.saturating_add(T::DbWeight::get().reads(3_u64))
171			.saturating_add(T::DbWeight::get().writes(1_u64))
172	}
173	/// Storage: `Psm::PsmAdmin` (r:1 w:0)
174	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
175	/// Storage: `Psm::Psm` (r:1 w:1)
176	/// Proof: `Psm::Psm` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
177	fn set_max_debt() -> Weight {
178		// Proof Size summary in bytes:
179		//  Measured:  `495`
180		//  Estimated: `3602`
181		// Minimum execution time: 19_748_000 picoseconds.
182		Weight::from_parts(21_040_000, 3602)
183			.saturating_add(T::DbWeight::get().reads(2_u64))
184			.saturating_add(T::DbWeight::get().writes(1_u64))
185	}
186	/// Storage: `Psm::PsmAdmin` (r:1 w:0)
187	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
188	/// Storage: `Psm::ExternalAssets` (r:1 w:1)
189	/// Proof: `Psm::ExternalAssets` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
190	fn set_asset_status() -> Weight {
191		// Proof Size summary in bytes:
192		//  Measured:  `512`
193		//  Estimated: `3602`
194		// Minimum execution time: 20_882_000 picoseconds.
195		Weight::from_parts(22_418_000, 3602)
196			.saturating_add(T::DbWeight::get().reads(2_u64))
197			.saturating_add(T::DbWeight::get().writes(1_u64))
198	}
199	/// Storage: `Psm::PsmAdmin` (r:1 w:0)
200	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
201	/// Storage: `Psm::ExternalAssets` (r:1 w:0)
202	/// Proof: `Psm::ExternalAssets` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
203	/// Storage: `Psm::AssetCeilingWeight` (r:1 w:1)
204	/// Proof: `Psm::AssetCeilingWeight` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
205	fn set_asset_ceiling_weight() -> Weight {
206		// Proof Size summary in bytes:
207		//  Measured:  `580`
208		//  Estimated: `3602`
209		// Minimum execution time: 26_656_000 picoseconds.
210		Weight::from_parts(28_484_000, 3602)
211			.saturating_add(T::DbWeight::get().reads(3_u64))
212			.saturating_add(T::DbWeight::get().writes(1_u64))
213	}
214	/// Storage: `Psm::PsmAdmin` (r:1 w:0)
215	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
216	/// Storage: `Psm::Psm` (r:1 w:1)
217	/// Proof: `Psm::Psm` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
218	/// Storage: `Psm::ExternalAssets` (r:1 w:1)
219	/// Proof: `Psm::ExternalAssets` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
220	/// Storage: `Assets::Asset` (r:1 w:0)
221	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
222	/// Storage: `Assets::Metadata` (r:1 w:0)
223	/// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
224	/// Storage: `Assets::Account` (r:1 w:0)
225	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
226	/// Storage: `System::Account` (r:1 w:0)
227	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
228	fn add_external_asset() -> Weight {
229		// Proof Size summary in bytes:
230		//  Measured:  `1122`
231		//  Estimated: `3675`
232		// Minimum execution time: 48_862_000 picoseconds.
233		Weight::from_parts(51_922_000, 3675)
234			.saturating_add(T::DbWeight::get().reads(7_u64))
235			.saturating_add(T::DbWeight::get().writes(2_u64))
236	}
237	/// Storage: `Psm::PsmAdmin` (r:1 w:0)
238	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
239	/// Storage: `Psm::Psm` (r:1 w:1)
240	/// Proof: `Psm::Psm` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
241	/// Storage: `Psm::ExternalAssets` (r:1 w:1)
242	/// Proof: `Psm::ExternalAssets` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
243	/// Storage: `Psm::PsmDebt` (r:1 w:1)
244	/// Proof: `Psm::PsmDebt` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
245	/// Storage: `Psm::AssetCeilingWeight` (r:0 w:1)
246	/// Proof: `Psm::AssetCeilingWeight` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
247	/// Storage: `Psm::MintingFee` (r:0 w:1)
248	/// Proof: `Psm::MintingFee` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
249	/// Storage: `Psm::RedemptionFee` (r:0 w:1)
250	/// Proof: `Psm::RedemptionFee` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
251	fn remove_external_asset() -> Weight {
252		// Proof Size summary in bytes:
253		//  Measured:  `623`
254		//  Estimated: `3602`
255		// Minimum execution time: 38_222_000 picoseconds.
256		Weight::from_parts(40_624_000, 3602)
257			.saturating_add(T::DbWeight::get().reads(4_u64))
258			.saturating_add(T::DbWeight::get().writes(6_u64))
259	}
260	/// Storage: `Assets::Asset` (r:1 w:0)
261	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
262	/// Storage: `Psm::Psm` (r:1 w:1)
263	/// Proof: `Psm::Psm` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
264	/// Storage: `Balances::Holds` (r:1 w:1)
265	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(589), added: 3064, mode: `MaxEncodedLen`)
266	/// Storage: `Assets::Metadata` (r:1 w:0)
267	/// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
268	/// Storage: `Psm::PsmAdmin` (r:0 w:1)
269	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
270	fn create_psm() -> Weight {
271		// Proof Size summary in bytes:
272		//  Measured:  `751`
273		//  Estimated: `4054`
274		// Minimum execution time: 67_745_000 picoseconds.
275		Weight::from_parts(71_663_000, 4054)
276			.saturating_add(T::DbWeight::get().reads(4_u64))
277			.saturating_add(T::DbWeight::get().writes(3_u64))
278	}
279	/// Storage: `Psm::PsmAdmin` (r:1 w:1)
280	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
281	/// Storage: `Psm::Psm` (r:1 w:1)
282	/// Proof: `Psm::Psm` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
283	/// Storage: `Psm::PsmDebt` (r:1 w:0)
284	/// Proof: `Psm::PsmDebt` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
285	/// Storage: `Balances::Holds` (r:1 w:1)
286	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(589), added: 3064, mode: `MaxEncodedLen`)
287	fn remove_psm() -> Weight {
288		// Proof Size summary in bytes:
289		//  Measured:  `588`
290		//  Estimated: `4054`
291		// Minimum execution time: 61_853_000 picoseconds.
292		Weight::from_parts(65_152_000, 4054)
293			.saturating_add(T::DbWeight::get().reads(4_u64))
294			.saturating_add(T::DbWeight::get().writes(3_u64))
295	}
296	/// Storage: `Psm::PsmAdmin` (r:1 w:1)
297	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
298	fn set_full_admin() -> Weight {
299		// Proof Size summary in bytes:
300		//  Measured:  `415`
301		//  Estimated: `3602`
302		// Minimum execution time: 18_281_000 picoseconds.
303		Weight::from_parts(19_687_000, 3602)
304			.saturating_add(T::DbWeight::get().reads(1_u64))
305			.saturating_add(T::DbWeight::get().writes(1_u64))
306	}
307	/// Storage: `Psm::PsmAdmin` (r:1 w:1)
308	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
309	fn set_emergency_admin() -> Weight {
310		// Proof Size summary in bytes:
311		//  Measured:  `415`
312		//  Estimated: `3602`
313		// Minimum execution time: 18_297_000 picoseconds.
314		Weight::from_parts(19_731_000, 3602)
315			.saturating_add(T::DbWeight::get().reads(1_u64))
316			.saturating_add(T::DbWeight::get().writes(1_u64))
317	}
318}
319
320// For backwards compatibility and tests.
321impl WeightInfo for () {
322	/// Storage: `Psm::Psm` (r:1 w:0)
323	/// Proof: `Psm::Psm` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
324	/// Storage: `Psm::ExternalAssets` (r:1 w:0)
325	/// Proof: `Psm::ExternalAssets` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
326	/// Storage: `Psm::MintingFee` (r:1 w:0)
327	/// Proof: `Psm::MintingFee` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
328	/// Storage: `Assets::Asset` (r:2 w:2)
329	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
330	/// Storage: `Assets::Account` (r:3 w:3)
331	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
332	/// Storage: `Psm::PsmDebt` (r:11 w:1)
333	/// Proof: `Psm::PsmDebt` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
334	/// Storage: `Psm::AssetCeilingWeight` (r:11 w:0)
335	/// Proof: `Psm::AssetCeilingWeight` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
336	/// Storage: `System::Account` (r:1 w:1)
337	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
338	/// The range of component `n` is `[1, 10]`.
339	fn mint(n: u32, ) -> Weight {
340		// Proof Size summary in bytes:
341		//  Measured:  `1324 + n * (88 ±0)`
342		//  Estimated: `8817 + n * (2531 ±0)`
343		// Minimum execution time: 133_493_000 picoseconds.
344		Weight::from_parts(133_687_562, 8817)
345			// Standard Error: 13_362
346			.saturating_add(Weight::from_parts(8_347_859, 0).saturating_mul(n.into()))
347			.saturating_add(RocksDbWeight::get().reads(11_u64))
348			.saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(n.into())))
349			.saturating_add(RocksDbWeight::get().writes(7_u64))
350			.saturating_add(Weight::from_parts(0, 2531).saturating_mul(n.into()))
351	}
352	/// Storage: `Psm::Psm` (r:1 w:0)
353	/// Proof: `Psm::Psm` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
354	/// Storage: `Psm::ExternalAssets` (r:1 w:0)
355	/// Proof: `Psm::ExternalAssets` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
356	/// Storage: `Psm::RedemptionFee` (r:1 w:0)
357	/// Proof: `Psm::RedemptionFee` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
358	/// Storage: `Assets::Asset` (r:2 w:2)
359	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
360	/// Storage: `Assets::Account` (r:3 w:3)
361	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
362	/// Storage: `Psm::PsmDebt` (r:1 w:1)
363	/// Proof: `Psm::PsmDebt` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
364	fn redeem() -> Weight {
365		// Proof Size summary in bytes:
366		//  Measured:  `1538`
367		//  Estimated: `8817`
368		// Minimum execution time: 120_850_000 picoseconds.
369		Weight::from_parts(127_010_000, 8817)
370			.saturating_add(RocksDbWeight::get().reads(9_u64))
371			.saturating_add(RocksDbWeight::get().writes(6_u64))
372	}
373	/// Storage: `Psm::PsmAdmin` (r:1 w:0)
374	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
375	/// Storage: `Psm::ExternalAssets` (r:1 w:0)
376	/// Proof: `Psm::ExternalAssets` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
377	/// Storage: `Psm::MintingFee` (r:1 w:1)
378	/// Proof: `Psm::MintingFee` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
379	fn set_minting_fee() -> Weight {
380		// Proof Size summary in bytes:
381		//  Measured:  `512`
382		//  Estimated: `3602`
383		// Minimum execution time: 24_623_000 picoseconds.
384		Weight::from_parts(26_280_000, 3602)
385			.saturating_add(RocksDbWeight::get().reads(3_u64))
386			.saturating_add(RocksDbWeight::get().writes(1_u64))
387	}
388	/// Storage: `Psm::PsmAdmin` (r:1 w:0)
389	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
390	/// Storage: `Psm::ExternalAssets` (r:1 w:0)
391	/// Proof: `Psm::ExternalAssets` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
392	/// Storage: `Psm::RedemptionFee` (r:1 w:1)
393	/// Proof: `Psm::RedemptionFee` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
394	fn set_redemption_fee() -> Weight {
395		// Proof Size summary in bytes:
396		//  Measured:  `512`
397		//  Estimated: `3602`
398		// Minimum execution time: 24_538_000 picoseconds.
399		Weight::from_parts(26_197_000, 3602)
400			.saturating_add(RocksDbWeight::get().reads(3_u64))
401			.saturating_add(RocksDbWeight::get().writes(1_u64))
402	}
403	/// Storage: `Psm::PsmAdmin` (r:1 w:0)
404	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
405	/// Storage: `Psm::Psm` (r:1 w:1)
406	/// Proof: `Psm::Psm` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
407	fn set_max_debt() -> Weight {
408		// Proof Size summary in bytes:
409		//  Measured:  `495`
410		//  Estimated: `3602`
411		// Minimum execution time: 19_748_000 picoseconds.
412		Weight::from_parts(21_040_000, 3602)
413			.saturating_add(RocksDbWeight::get().reads(2_u64))
414			.saturating_add(RocksDbWeight::get().writes(1_u64))
415	}
416	/// Storage: `Psm::PsmAdmin` (r:1 w:0)
417	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
418	/// Storage: `Psm::ExternalAssets` (r:1 w:1)
419	/// Proof: `Psm::ExternalAssets` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
420	fn set_asset_status() -> Weight {
421		// Proof Size summary in bytes:
422		//  Measured:  `512`
423		//  Estimated: `3602`
424		// Minimum execution time: 20_882_000 picoseconds.
425		Weight::from_parts(22_418_000, 3602)
426			.saturating_add(RocksDbWeight::get().reads(2_u64))
427			.saturating_add(RocksDbWeight::get().writes(1_u64))
428	}
429	/// Storage: `Psm::PsmAdmin` (r:1 w:0)
430	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
431	/// Storage: `Psm::ExternalAssets` (r:1 w:0)
432	/// Proof: `Psm::ExternalAssets` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
433	/// Storage: `Psm::AssetCeilingWeight` (r:1 w:1)
434	/// Proof: `Psm::AssetCeilingWeight` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
435	fn set_asset_ceiling_weight() -> Weight {
436		// Proof Size summary in bytes:
437		//  Measured:  `580`
438		//  Estimated: `3602`
439		// Minimum execution time: 26_656_000 picoseconds.
440		Weight::from_parts(28_484_000, 3602)
441			.saturating_add(RocksDbWeight::get().reads(3_u64))
442			.saturating_add(RocksDbWeight::get().writes(1_u64))
443	}
444	/// Storage: `Psm::PsmAdmin` (r:1 w:0)
445	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
446	/// Storage: `Psm::Psm` (r:1 w:1)
447	/// Proof: `Psm::Psm` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
448	/// Storage: `Psm::ExternalAssets` (r:1 w:1)
449	/// Proof: `Psm::ExternalAssets` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
450	/// Storage: `Assets::Asset` (r:1 w:0)
451	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
452	/// Storage: `Assets::Metadata` (r:1 w:0)
453	/// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
454	/// Storage: `Assets::Account` (r:1 w:0)
455	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
456	/// Storage: `System::Account` (r:1 w:0)
457	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
458	fn add_external_asset() -> Weight {
459		// Proof Size summary in bytes:
460		//  Measured:  `1122`
461		//  Estimated: `3675`
462		// Minimum execution time: 48_862_000 picoseconds.
463		Weight::from_parts(51_922_000, 3675)
464			.saturating_add(RocksDbWeight::get().reads(7_u64))
465			.saturating_add(RocksDbWeight::get().writes(2_u64))
466	}
467	/// Storage: `Psm::PsmAdmin` (r:1 w:0)
468	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
469	/// Storage: `Psm::Psm` (r:1 w:1)
470	/// Proof: `Psm::Psm` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
471	/// Storage: `Psm::ExternalAssets` (r:1 w:1)
472	/// Proof: `Psm::ExternalAssets` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
473	/// Storage: `Psm::PsmDebt` (r:1 w:1)
474	/// Proof: `Psm::PsmDebt` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
475	/// Storage: `Psm::AssetCeilingWeight` (r:0 w:1)
476	/// Proof: `Psm::AssetCeilingWeight` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
477	/// Storage: `Psm::MintingFee` (r:0 w:1)
478	/// Proof: `Psm::MintingFee` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
479	/// Storage: `Psm::RedemptionFee` (r:0 w:1)
480	/// Proof: `Psm::RedemptionFee` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
481	fn remove_external_asset() -> Weight {
482		// Proof Size summary in bytes:
483		//  Measured:  `623`
484		//  Estimated: `3602`
485		// Minimum execution time: 38_222_000 picoseconds.
486		Weight::from_parts(40_624_000, 3602)
487			.saturating_add(RocksDbWeight::get().reads(4_u64))
488			.saturating_add(RocksDbWeight::get().writes(6_u64))
489	}
490	/// Storage: `Assets::Asset` (r:1 w:0)
491	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
492	/// Storage: `Psm::Psm` (r:1 w:1)
493	/// Proof: `Psm::Psm` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
494	/// Storage: `Balances::Holds` (r:1 w:1)
495	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(589), added: 3064, mode: `MaxEncodedLen`)
496	/// Storage: `Assets::Metadata` (r:1 w:0)
497	/// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
498	/// Storage: `Psm::PsmAdmin` (r:0 w:1)
499	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
500	fn create_psm() -> Weight {
501		// Proof Size summary in bytes:
502		//  Measured:  `751`
503		//  Estimated: `4054`
504		// Minimum execution time: 67_745_000 picoseconds.
505		Weight::from_parts(71_663_000, 4054)
506			.saturating_add(RocksDbWeight::get().reads(4_u64))
507			.saturating_add(RocksDbWeight::get().writes(3_u64))
508	}
509	/// Storage: `Psm::PsmAdmin` (r:1 w:1)
510	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
511	/// Storage: `Psm::Psm` (r:1 w:1)
512	/// Proof: `Psm::Psm` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
513	/// Storage: `Psm::PsmDebt` (r:1 w:0)
514	/// Proof: `Psm::PsmDebt` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
515	/// Storage: `Balances::Holds` (r:1 w:1)
516	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(589), added: 3064, mode: `MaxEncodedLen`)
517	fn remove_psm() -> Weight {
518		// Proof Size summary in bytes:
519		//  Measured:  `588`
520		//  Estimated: `4054`
521		// Minimum execution time: 61_853_000 picoseconds.
522		Weight::from_parts(65_152_000, 4054)
523			.saturating_add(RocksDbWeight::get().reads(4_u64))
524			.saturating_add(RocksDbWeight::get().writes(3_u64))
525	}
526	/// Storage: `Psm::PsmAdmin` (r:1 w:1)
527	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
528	fn set_full_admin() -> Weight {
529		// Proof Size summary in bytes:
530		//  Measured:  `415`
531		//  Estimated: `3602`
532		// Minimum execution time: 18_281_000 picoseconds.
533		Weight::from_parts(19_687_000, 3602)
534			.saturating_add(RocksDbWeight::get().reads(1_u64))
535			.saturating_add(RocksDbWeight::get().writes(1_u64))
536	}
537	/// Storage: `Psm::PsmAdmin` (r:1 w:1)
538	/// Proof: `Psm::PsmAdmin` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
539	fn set_emergency_admin() -> Weight {
540		// Proof Size summary in bytes:
541		//  Measured:  `415`
542		//  Estimated: `3602`
543		// Minimum execution time: 18_297_000 picoseconds.
544		Weight::from_parts(19_731_000, 3602)
545			.saturating_add(RocksDbWeight::get().reads(1_u64))
546			.saturating_add(RocksDbWeight::get().writes(1_u64))
547	}
548}