referrerpolicy=no-referrer-when-downgrade

asset_hub_westend_runtime/weights/
pallet_ah_ops.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Cumulus.
3// SPDX-License-Identifier: Apache-2.0
4
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// 	http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
17//! Autogenerated weights for `pallet_ah_ops`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-04-28, STEPS: `50`, REPEAT: `2`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `cob`, CPU: `<UNKNOWN>`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
24
25// Executed Command:
26// frame-omni-bencher
27// v1
28// benchmark
29// pallet
30// --runtime=target/production/wbuild/asset-hub-polkadot-runtime/asset_hub_polkadot_runtime.wasm
31// --pallet
32// pallet-ah-ops
33// --extrinsic
34// *
35// --output=./pallets/ah-ops/src/weights_1.rs
36// --template=./../../paritytech/polkadot-sdk/substrate/.maintain/frame-weight-template.hbs
37// --no-median-slopes
38// --no-min-squares
39// --repeat=2
40// --steps=50
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
50pub struct WeightInfo<T>(PhantomData<T>);
51impl<T: frame_system::Config> pallet_ah_ops::WeightInfo for WeightInfo<T> {
52	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
53	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
54	/// Storage: `ParachainSystem::LastRelayChainBlockNumber` (r:1 w:0)
55	/// Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
56	/// Storage: `AhOps::RcLeaseReserve` (r:1 w:1)
57	/// Proof: `AhOps::RcLeaseReserve` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
58	/// Storage: `System::Account` (r:1 w:1)
59	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
60	fn unreserve_lease_deposit() -> Weight {
61		// Proof Size summary in bytes:
62		//  Measured:  `365`
63		//  Estimated: `3593`
64		// Minimum execution time: 30_000_000 picoseconds.
65		Weight::from_parts(33_000_000, 3593)
66			.saturating_add(T::DbWeight::get().reads(4_u64))
67			.saturating_add(T::DbWeight::get().writes(2_u64))
68	}
69	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
70	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
71	/// Storage: `ParachainSystem::LastRelayChainBlockNumber` (r:1 w:0)
72	/// Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
73	/// Storage: `AhOps::RcCrowdloanContribution` (r:1 w:1)
74	/// Proof: `AhOps::RcCrowdloanContribution` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
75	/// Storage: `AhOps::RcLeaseReserve` (r:1 w:1)
76	/// Proof: `AhOps::RcLeaseReserve` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
77	/// Storage: `System::Account` (r:2 w:2)
78	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
79	fn withdraw_crowdloan_contribution() -> Weight {
80		// Proof Size summary in bytes:
81		//  Measured:  `538`
82		//  Estimated: `6196`
83		// Minimum execution time: 64_000_000 picoseconds.
84		Weight::from_parts(65_000_000, 6196)
85			.saturating_add(T::DbWeight::get().reads(6_u64))
86			.saturating_add(T::DbWeight::get().writes(4_u64))
87	}
88	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
89	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
90	/// Storage: `ParachainSystem::LastRelayChainBlockNumber` (r:1 w:0)
91	/// Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
92	/// Storage: `AhOps::RcCrowdloanContribution` (r:1 w:0)
93	/// Proof: `AhOps::RcCrowdloanContribution` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
94	/// Storage: `AhOps::RcCrowdloanReserve` (r:1 w:1)
95	/// Proof: `AhOps::RcCrowdloanReserve` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
96	/// Storage: `System::Account` (r:1 w:1)
97	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
98	fn unreserve_crowdloan_reserve() -> Weight {
99		// Proof Size summary in bytes:
100		//  Measured:  `365`
101		//  Estimated: `3593`
102		// Minimum execution time: 32_000_000 picoseconds.
103		Weight::from_parts(62_000_000, 3593)
104			.saturating_add(T::DbWeight::get().reads(5_u64))
105			.saturating_add(T::DbWeight::get().writes(2_u64))
106	}
107}