shibuya_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("shibuya-dev")`, DB CACHE: 1024
27
28// Executed Command:
29// ./target/release/astar-collator
30// benchmark
31// pallet
32// --chain=shibuya-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/shibuya-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: `612`
65 // Estimated: `6232`
66 // Minimum execution time: 49_024_000 picoseconds.
67 Weight::from_parts(49_695_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: `846`
91 // Estimated: `6232`
92 // Minimum execution time: 70_022_000 picoseconds.
93 Weight::from_parts(70_900_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 /// Storage: `UnifiedAccounts::NativeToEvm` (r:1 w:0)
127 /// Proof: `UnifiedAccounts::NativeToEvm` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
128 pub fn withdraw_asset() -> Weight {
129 // Proof Size summary in bytes:
130 // Measured: `2062`
131 // Estimated: `5527`
132 // Minimum execution time: 63_796_000 picoseconds.
133 Weight::from_parts(64_485_000, 0)
134 .saturating_add(Weight::from_parts(0, 5527))
135 .saturating_add(T::DbWeight::get().reads(5))
136 .saturating_add(T::DbWeight::get().writes(3))
137 }
138 pub fn reserve_asset_deposited() -> Weight {
139 // Proof Size summary in bytes:
140 // Measured: `0`
141 // Estimated: `0`
142 // Minimum execution time: 1_265_000 picoseconds.
143 Weight::from_parts(1_299_000, 0)
144 .saturating_add(Weight::from_parts(0, 0))
145 }
146 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
147 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
148 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
149 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
150 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
151 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
152 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
153 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
154 pub fn initiate_reserve_withdraw() -> Weight {
155 // Proof Size summary in bytes:
156 // Measured: `234`
157 // Estimated: `3699`
158 // Minimum execution time: 85_835_000 picoseconds.
159 Weight::from_parts(86_880_000, 0)
160 .saturating_add(Weight::from_parts(0, 3699))
161 .saturating_add(T::DbWeight::get().reads(4))
162 .saturating_add(T::DbWeight::get().writes(1))
163 }
164 /// Storage: `XcAssetConfig::AssetLocationToId` (r:1 w:0)
165 /// Proof: `XcAssetConfig::AssetLocationToId` (`max_values`: None, `max_size`: None, mode: `Measured`)
166 /// Storage: `Assets::Asset` (r:1 w:1)
167 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(222), added: 2697, mode: `MaxEncodedLen`)
168 /// Storage: `Assets::Account` (r:1 w:1)
169 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
170 /// Storage: `System::Account` (r:1 w:1)
171 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
172 pub fn deposit_asset() -> Weight {
173 // Proof Size summary in bytes:
174 // Measured: `1798`
175 // Estimated: `5263`
176 // Minimum execution time: 47_586_000 picoseconds.
177 Weight::from_parts(48_429_000, 0)
178 .saturating_add(Weight::from_parts(0, 5263))
179 .saturating_add(T::DbWeight::get().reads(4))
180 .saturating_add(T::DbWeight::get().writes(3))
181 }
182 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
183 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
184 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
185 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
186 /// Storage: `XcAssetConfig::AssetLocationToId` (r:1 w:0)
187 /// Proof: `XcAssetConfig::AssetLocationToId` (`max_values`: None, `max_size`: None, mode: `Measured`)
188 /// Storage: `Assets::Asset` (r:1 w:1)
189 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(222), added: 2697, mode: `MaxEncodedLen`)
190 /// Storage: `Assets::Account` (r:1 w:1)
191 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
192 /// Storage: `System::Account` (r:1 w:1)
193 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
194 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
195 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
196 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
197 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
198 pub fn deposit_reserve_asset() -> Weight {
199 // Proof Size summary in bytes:
200 // Measured: `2032`
201 // Estimated: `5497`
202 // Minimum execution time: 77_265_000 picoseconds.
203 Weight::from_parts(77_763_000, 0)
204 .saturating_add(Weight::from_parts(0, 5497))
205 .saturating_add(T::DbWeight::get().reads(8))
206 .saturating_add(T::DbWeight::get().writes(4))
207 }
208 /// Storage: `XcAssetConfig::AssetLocationToId` (r:1 w:0)
209 /// Proof: `XcAssetConfig::AssetLocationToId` (`max_values`: None, `max_size`: None, mode: `Measured`)
210 /// Storage: `Assets::Asset` (r:1 w:1)
211 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(222), added: 2697, mode: `MaxEncodedLen`)
212 /// Storage: `Assets::Account` (r:1 w:1)
213 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(146), added: 2621, mode: `MaxEncodedLen`)
214 /// Storage: `System::Account` (r:1 w:1)
215 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
216 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
217 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
218 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
219 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
220 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
221 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
222 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
223 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
224 pub fn initiate_transfer() -> Weight {
225 // Proof Size summary in bytes:
226 // Measured: `2032`
227 // Estimated: `5497`
228 // Minimum execution time: 75_766_000 picoseconds.
229 Weight::from_parts(76_240_000, 0)
230 .saturating_add(Weight::from_parts(0, 5497))
231 .saturating_add(T::DbWeight::get().reads(8))
232 .saturating_add(T::DbWeight::get().writes(4))
233 }
234}