shiden_runtime/weights/xcm/
fungible.rs

1
2// This file is part of Astar.
3
4// Copyright (C) Stake Technologies Pte.Ltd.
5// SPDX-License-Identifier: GPL-3.0-or-later
6
7// Astar is free software: you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation, either version 3 of the License, or
10// (at your option) any later version.
11
12// Astar is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15// GNU General Public License for more details.
16
17// You should have received a copy of the GNU General Public License
18// along with Astar. If not, see <http://www.gnu.org/licenses/>.
19
20//! Autogenerated weights for `xcm_benchmarks_fungible`
21//!
22//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 46.1.0
23//! DATE: 2025-05-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
24//! WORST CASE MAP SIZE: `1000000`
25//! HOSTNAME: `gh-runner-01-ovh`, CPU: `Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz`
26//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("shiden-dev")`, DB CACHE: 1024
27
28// Executed Command:
29// ./target/release/astar-collator
30// benchmark
31// pallet
32// --chain=shiden-dev
33// --steps=50
34// --repeat=20
35// --pallet=xcm_benchmarks_fungible
36// --extrinsic=*
37// --wasm-execution=compiled
38// --heap-pages=4096
39// --output=./benchmark-results/shiden-dev/benchmarks_fungible_weights.rs
40// --template=./scripts/templates/weight-template.hbs
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46#![allow(dead_code)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `xcm_benchmarks_fungible`.
52pub struct SubstrateWeight<T>(PhantomData<T>);
53impl<T: frame_system::Config> SubstrateWeight<T> {
54	/// Storage: `XcAssetConfig::AssetLocationToId` (r:1 w:0)
55	/// Proof: `XcAssetConfig::AssetLocationToId` (`max_values`: None, `max_size`: None, mode: `Measured`)
56	/// Storage: `Assets::Asset` (r:1 w:1)
57	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(222), added: 2697, mode: `MaxEncodedLen`)
58	/// Storage: `Assets::Account` (r:2 w:2)
59	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
60	/// Storage: `System::Account` (r:1 w:1)
61	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
62	pub fn  transfer_asset() -> Weight {
63		// Proof Size summary in bytes:
64		//  Measured:  `542`
65		//  Estimated: `6232`
66		// Minimum execution time: 75_371_000 picoseconds.
67		Weight::from_parts(75_845_000, 0)
68			.saturating_add(Weight::from_parts(0, 6232))
69			.saturating_add(T::DbWeight::get().reads(5))
70			.saturating_add(T::DbWeight::get().writes(4))
71	}
72	/// Storage: `XcAssetConfig::AssetLocationToId` (r:1 w:0)
73	/// Proof: `XcAssetConfig::AssetLocationToId` (`max_values`: None, `max_size`: None, mode: `Measured`)
74	/// Storage: `Assets::Asset` (r:1 w:1)
75	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(222), added: 2697, mode: `MaxEncodedLen`)
76	/// Storage: `Assets::Account` (r:2 w:2)
77	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
78	/// Storage: `System::Account` (r:1 w:1)
79	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
80	/// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
81	/// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
82	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
83	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
84	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
85	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
86	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
87	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
88	pub fn  transfer_reserve_asset() -> Weight {
89		// Proof Size summary in bytes:
90		//  Measured:  `710`
91		//  Estimated: `6232`
92		// Minimum execution time: 67_185_000 picoseconds.
93		Weight::from_parts(68_016_000, 0)
94			.saturating_add(Weight::from_parts(0, 6232))
95			.saturating_add(T::DbWeight::get().reads(9))
96			.saturating_add(T::DbWeight::get().writes(5))
97	}
98	/// Storage: `Benchmark::Override` (r:0 w:0)
99	/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
100	pub fn  receive_teleported_asset() -> Weight {
101		// Proof Size summary in bytes:
102		//  Measured:  `0`
103		//  Estimated: `0`
104		// Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
105		Weight::from_parts(18_446_744_073_709_551_000, 0)
106			.saturating_add(Weight::from_parts(0, 0))
107	}
108	/// Storage: `Benchmark::Override` (r:0 w:0)
109	/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
110	pub fn  initiate_teleport() -> Weight {
111		// Proof Size summary in bytes:
112		//  Measured:  `0`
113		//  Estimated: `0`
114		// Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
115		Weight::from_parts(18_446_744_073_709_551_000, 0)
116			.saturating_add(Weight::from_parts(0, 0))
117	}
118	/// Storage: `XcAssetConfig::AssetLocationToId` (r:1 w:0)
119	/// Proof: `XcAssetConfig::AssetLocationToId` (`max_values`: None, `max_size`: None, mode: `Measured`)
120	/// Storage: `Assets::Asset` (r:1 w:1)
121	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(222), added: 2697, mode: `MaxEncodedLen`)
122	/// Storage: `Assets::Account` (r:1 w:1)
123	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
124	/// Storage: `System::Account` (r:1 w:1)
125	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
126	pub fn  withdraw_asset() -> Weight {
127		// Proof Size summary in bytes:
128		//  Measured:  `1988`
129		//  Estimated: `5453`
130		// Minimum execution time: 59_321_000 picoseconds.
131		Weight::from_parts(59_901_000, 0)
132			.saturating_add(Weight::from_parts(0, 5453))
133			.saturating_add(T::DbWeight::get().reads(4))
134			.saturating_add(T::DbWeight::get().writes(3))
135	}
136	pub fn  reserve_asset_deposited() -> Weight {
137		// Proof Size summary in bytes:
138		//  Measured:  `0`
139		//  Estimated: `0`
140		// Minimum execution time: 1_191_000 picoseconds.
141		Weight::from_parts(1_237_000, 0)
142			.saturating_add(Weight::from_parts(0, 0))
143	}
144	/// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
145	/// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
146	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
147	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
148	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
149	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
150	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
151	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
152	pub fn  initiate_reserve_withdraw() -> Weight {
153		// Proof Size summary in bytes:
154		//  Measured:  `168`
155		//  Estimated: `3633`
156		// Minimum execution time: 84_507_000 picoseconds.
157		Weight::from_parts(85_590_000, 0)
158			.saturating_add(Weight::from_parts(0, 3633))
159			.saturating_add(T::DbWeight::get().reads(4))
160			.saturating_add(T::DbWeight::get().writes(1))
161	}
162	/// Storage: `XcAssetConfig::AssetLocationToId` (r:1 w:0)
163	/// Proof: `XcAssetConfig::AssetLocationToId` (`max_values`: None, `max_size`: None, mode: `Measured`)
164	/// Storage: `Assets::Asset` (r:1 w:1)
165	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(222), added: 2697, mode: `MaxEncodedLen`)
166	/// Storage: `Assets::Account` (r:1 w:1)
167	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
168	/// Storage: `System::Account` (r:1 w:1)
169	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
170	pub fn  deposit_asset() -> Weight {
171		// Proof Size summary in bytes:
172		//  Measured:  `1728`
173		//  Estimated: `5193`
174		// Minimum execution time: 45_992_000 picoseconds.
175		Weight::from_parts(46_647_000, 0)
176			.saturating_add(Weight::from_parts(0, 5193))
177			.saturating_add(T::DbWeight::get().reads(4))
178			.saturating_add(T::DbWeight::get().writes(3))
179	}
180	/// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
181	/// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
182	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
183	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
184	/// Storage: `XcAssetConfig::AssetLocationToId` (r:1 w:0)
185	/// Proof: `XcAssetConfig::AssetLocationToId` (`max_values`: None, `max_size`: None, mode: `Measured`)
186	/// Storage: `Assets::Asset` (r:1 w:1)
187	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(222), added: 2697, mode: `MaxEncodedLen`)
188	/// Storage: `Assets::Account` (r:1 w:1)
189	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
190	/// Storage: `System::Account` (r:1 w:1)
191	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
192	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
193	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
194	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
195	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
196	pub fn  deposit_reserve_asset() -> Weight {
197		// Proof Size summary in bytes:
198		//  Measured:  `1896`
199		//  Estimated: `5361`
200		// Minimum execution time: 75_514_000 picoseconds.
201		Weight::from_parts(77_554_000, 0)
202			.saturating_add(Weight::from_parts(0, 5361))
203			.saturating_add(T::DbWeight::get().reads(8))
204			.saturating_add(T::DbWeight::get().writes(4))
205	}
206	/// Storage: `XcAssetConfig::AssetLocationToId` (r:1 w:0)
207	/// Proof: `XcAssetConfig::AssetLocationToId` (`max_values`: None, `max_size`: None, mode: `Measured`)
208	/// Storage: `Assets::Asset` (r:1 w:1)
209	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(222), added: 2697, mode: `MaxEncodedLen`)
210	/// Storage: `Assets::Account` (r:1 w:1)
211	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
212	/// Storage: `System::Account` (r:1 w:1)
213	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
214	/// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
215	/// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
216	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
217	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
218	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
219	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
220	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
221	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
222	pub fn  initiate_transfer() -> Weight {
223		// Proof Size summary in bytes:
224		//  Measured:  `1896`
225		//  Estimated: `5361`
226		// Minimum execution time: 74_874_000 picoseconds.
227		Weight::from_parts(75_314_000, 0)
228			.saturating_add(Weight::from_parts(0, 5361))
229			.saturating_add(T::DbWeight::get().reads(8))
230			.saturating_add(T::DbWeight::get().writes(4))
231	}
232}