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 49.1.0
23//! DATE: 2026-06-09, 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: `None`, DB CACHE: 1024
27
28// Executed Command:
29// frame-omni-bencher
30// v1
31// benchmark
32// pallet
33// --runtime=./target/release/wbuild/shiden-runtime/shiden_runtime.compact.compressed.wasm
34// --steps=50
35// --repeat=20
36// --pallet=xcm_benchmarks_fungible
37// --extrinsic=*
38// --wasm-execution=compiled
39// --heap-pages=4096
40// --output=./benchmark-results/shiden/runtime/benchmarks_fungible_weights.rs
41// --template=./scripts/templates/runtime-weight-template.hbs
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47#![allow(dead_code)]
48
49use frame_support::{traits::Get, weights::Weight};
50use core::marker::PhantomData;
51
52/// Weight functions for `xcm_benchmarks_fungible`.
53pub struct SubstrateWeight<T>(PhantomData<T>);
54impl<T: frame_system::Config> SubstrateWeight<T> {
55 /// Storage: `XcAssetConfig::AssetLocationToId` (r:1 w:0)
56 /// Proof: `XcAssetConfig::AssetLocationToId` (`max_values`: None, `max_size`: None, mode: `Measured`)
57 /// Storage: `Assets::Asset` (r:1 w:1)
58 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(222), added: 2697, mode: `MaxEncodedLen`)
59 /// Storage: `Assets::Account` (r:2 w:2)
60 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
61 /// Storage: `System::Account` (r:1 w:1)
62 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
63 pub fn transfer_asset() -> Weight {
64 // Proof Size summary in bytes:
65 // Measured: `508`
66 // Estimated: `6232`
67 // Minimum execution time: 48_424_000 picoseconds.
68 Weight::from_parts(49_176_000, 0)
69 .saturating_add(Weight::from_parts(0, 6232))
70 .saturating_add(T::DbWeight::get().reads(5))
71 .saturating_add(T::DbWeight::get().writes(4))
72 }
73 /// Storage: `XcAssetConfig::AssetLocationToId` (r:1 w:0)
74 /// Proof: `XcAssetConfig::AssetLocationToId` (`max_values`: None, `max_size`: None, mode: `Measured`)
75 /// Storage: `Assets::Asset` (r:1 w:1)
76 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(222), added: 2697, mode: `MaxEncodedLen`)
77 /// Storage: `Assets::Account` (r:2 w:2)
78 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
79 /// Storage: `System::Account` (r:1 w:1)
80 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
81 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
82 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
83 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
84 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
85 /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
86 /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
87 /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
88 /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
89 /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
90 /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(131106), added: 133581, mode: `MaxEncodedLen`)
91 pub fn transfer_reserve_asset() -> Weight {
92 // Proof Size summary in bytes:
93 // Measured: `815`
94 // Estimated: `6232`
95 // Minimum execution time: 74_943_000 picoseconds.
96 Weight::from_parts(75_771_000, 0)
97 .saturating_add(Weight::from_parts(0, 6232))
98 .saturating_add(T::DbWeight::get().reads(9))
99 .saturating_add(T::DbWeight::get().writes(6))
100 }
101 /// Storage: `Benchmark::Override` (r:0 w:0)
102 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
103 pub fn receive_teleported_asset() -> Weight {
104 // Proof Size summary in bytes:
105 // Measured: `0`
106 // Estimated: `0`
107 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
108 Weight::from_parts(18_446_744_073_709_551_000, 0)
109 .saturating_add(Weight::from_parts(0, 0))
110 }
111 /// Storage: `Benchmark::Override` (r:0 w:0)
112 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
113 pub fn initiate_teleport() -> Weight {
114 // Proof Size summary in bytes:
115 // Measured: `0`
116 // Estimated: `0`
117 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
118 Weight::from_parts(18_446_744_073_709_551_000, 0)
119 .saturating_add(Weight::from_parts(0, 0))
120 }
121 /// Storage: `XcAssetConfig::AssetLocationToId` (r:1 w:0)
122 /// Proof: `XcAssetConfig::AssetLocationToId` (`max_values`: None, `max_size`: None, mode: `Measured`)
123 /// Storage: `Assets::Asset` (r:1 w:1)
124 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(222), added: 2697, mode: `MaxEncodedLen`)
125 /// Storage: `Assets::Account` (r:1 w:1)
126 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
127 /// Storage: `System::Account` (r:1 w:1)
128 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
129 pub fn withdraw_asset() -> Weight {
130 // Proof Size summary in bytes:
131 // Measured: `1954`
132 // Estimated: `5419`
133 // Minimum execution time: 53_615_000 picoseconds.
134 Weight::from_parts(54_357_000, 0)
135 .saturating_add(Weight::from_parts(0, 5419))
136 .saturating_add(T::DbWeight::get().reads(4))
137 .saturating_add(T::DbWeight::get().writes(3))
138 }
139 pub fn reserve_asset_deposited() -> Weight {
140 // Proof Size summary in bytes:
141 // Measured: `0`
142 // Estimated: `0`
143 // Minimum execution time: 1_315_000 picoseconds.
144 Weight::from_parts(1_402_000, 0)
145 .saturating_add(Weight::from_parts(0, 0))
146 }
147 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
148 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
149 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
150 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
151 /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
152 /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
153 /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
154 /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
155 /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
156 /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(131106), added: 133581, mode: `MaxEncodedLen`)
157 pub fn initiate_reserve_withdraw() -> Weight {
158 // Proof Size summary in bytes:
159 // Measured: `307`
160 // Estimated: `3772`
161 // Minimum execution time: 91_645_000 picoseconds.
162 Weight::from_parts(92_396_000, 0)
163 .saturating_add(Weight::from_parts(0, 3772))
164 .saturating_add(T::DbWeight::get().reads(4))
165 .saturating_add(T::DbWeight::get().writes(2))
166 }
167 /// Storage: `XcAssetConfig::AssetLocationToId` (r:1 w:0)
168 /// Proof: `XcAssetConfig::AssetLocationToId` (`max_values`: None, `max_size`: None, mode: `Measured`)
169 /// Storage: `Assets::Asset` (r:1 w:1)
170 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(222), added: 2697, mode: `MaxEncodedLen`)
171 /// Storage: `Assets::Account` (r:1 w:1)
172 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
173 /// Storage: `System::Account` (r:1 w:1)
174 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
175 pub fn deposit_asset() -> Weight {
176 // Proof Size summary in bytes:
177 // Measured: `1694`
178 // Estimated: `5159`
179 // Minimum execution time: 45_631_000 picoseconds.
180 Weight::from_parts(46_414_000, 0)
181 .saturating_add(Weight::from_parts(0, 5159))
182 .saturating_add(T::DbWeight::get().reads(4))
183 .saturating_add(T::DbWeight::get().writes(3))
184 }
185 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
186 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
187 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
188 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
189 /// Storage: `XcAssetConfig::AssetLocationToId` (r:1 w:0)
190 /// Proof: `XcAssetConfig::AssetLocationToId` (`max_values`: None, `max_size`: None, mode: `Measured`)
191 /// Storage: `Assets::Asset` (r:1 w:1)
192 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(222), added: 2697, mode: `MaxEncodedLen`)
193 /// Storage: `Assets::Account` (r:1 w:1)
194 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
195 /// Storage: `System::Account` (r:1 w:1)
196 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
197 /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
198 /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
199 /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
200 /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
201 /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
202 /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(131106), added: 133581, mode: `MaxEncodedLen`)
203 pub fn deposit_reserve_asset() -> Weight {
204 // Proof Size summary in bytes:
205 // Measured: `2001`
206 // Estimated: `5466`
207 // Minimum execution time: 81_582_000 picoseconds.
208 Weight::from_parts(82_630_000, 0)
209 .saturating_add(Weight::from_parts(0, 5466))
210 .saturating_add(T::DbWeight::get().reads(8))
211 .saturating_add(T::DbWeight::get().writes(5))
212 }
213 /// Storage: `XcAssetConfig::AssetLocationToId` (r:1 w:0)
214 /// Proof: `XcAssetConfig::AssetLocationToId` (`max_values`: None, `max_size`: None, mode: `Measured`)
215 /// Storage: `Assets::Asset` (r:1 w:1)
216 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(222), added: 2697, mode: `MaxEncodedLen`)
217 /// Storage: `Assets::Account` (r:1 w:1)
218 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
219 /// Storage: `System::Account` (r:1 w:1)
220 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
221 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
222 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
223 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
224 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
225 /// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
226 /// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
227 /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
228 /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
229 /// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
230 /// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(131106), added: 133581, mode: `MaxEncodedLen`)
231 pub fn initiate_transfer() -> Weight {
232 // Proof Size summary in bytes:
233 // Measured: `2001`
234 // Estimated: `5466`
235 // Minimum execution time: 80_884_000 picoseconds.
236 Weight::from_parts(81_536_000, 0)
237 .saturating_add(Weight::from_parts(0, 5466))
238 .saturating_add(T::DbWeight::get().reads(8))
239 .saturating_add(T::DbWeight::get().writes(5))
240 }
241}