referrerpolicy=no-referrer-when-downgrade

pallet_staking_async_parachain_runtime/weights/
pallet_nft_fractionalization.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//! Autogenerated weights for `pallet_nft_fractionalization`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21//! DATE: 2023-07-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `runner-ynta1nyy-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
24//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-next-westend-dev")`, DB CACHE: 1024
25
26// Executed Command:
27// ./target/production/polkadot-parachain
28// benchmark
29// pallet
30// --chain=asset-hub-next-westend-dev
31// --wasm-execution=compiled
32// --pallet=pallet_nft_fractionalization
33// --no-storage-info
34// --no-median-slopes
35// --no-min-squares
36// --extrinsic=*
37// --steps=50
38// --repeat=20
39// --json
40// --header=./file_header.txt
41// --output=./parachains/runtimes/assets/asset-hub-next-westend/src/weights/
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `pallet_nft_fractionalization`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_nft_fractionalization::WeightInfo for WeightInfo<T> {
54	/// Storage: `Nfts::Item` (r:1 w:0)
55	/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
56	/// Storage: `Balances::Holds` (r:1 w:1)
57	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
58	/// Storage: `Nfts::Attribute` (r:1 w:1)
59	/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
60	/// Storage: `Nfts::Collection` (r:1 w:1)
61	/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
62	/// Storage: `Assets::Asset` (r:1 w:1)
63	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
64	/// Storage: `Assets::Account` (r:1 w:1)
65	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
66	/// Storage: `System::Account` (r:1 w:1)
67	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
68	/// Storage: `Assets::Metadata` (r:1 w:1)
69	/// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
70	/// Storage: `NftFractionalization::NftToAsset` (r:0 w:1)
71	/// Proof: `NftFractionalization::NftToAsset` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
72	fn fractionalize() -> Weight {
73		// Proof Size summary in bytes:
74		//  Measured:  `462`
75		//  Estimated: `4326`
76		// Minimum execution time: 174_312_000 picoseconds.
77		Weight::from_parts(177_275_000, 0)
78			.saturating_add(Weight::from_parts(0, 4326))
79			.saturating_add(T::DbWeight::get().reads(8))
80			.saturating_add(T::DbWeight::get().writes(8))
81	}
82	/// Storage: `NftFractionalization::NftToAsset` (r:1 w:1)
83	/// Proof: `NftFractionalization::NftToAsset` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
84	/// Storage: `Assets::Asset` (r:1 w:1)
85	/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
86	/// Storage: `Assets::Account` (r:1 w:1)
87	/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
88	/// Storage: `Nfts::Attribute` (r:1 w:1)
89	/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
90	/// Storage: `Nfts::Collection` (r:1 w:1)
91	/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
92	/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
93	/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
94	/// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
95	/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
96	/// Storage: `Nfts::Item` (r:1 w:1)
97	/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
98	/// Storage: `Balances::Holds` (r:1 w:1)
99	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
100	/// Storage: `Nfts::Account` (r:0 w:1)
101	/// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
102	/// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
103	/// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
104	/// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
105	/// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
106	fn unify() -> Weight {
107		// Proof Size summary in bytes:
108		//  Measured:  `1275`
109		//  Estimated: `4326`
110		// Minimum execution time: 123_635_000 picoseconds.
111		Weight::from_parts(126_975_000, 0)
112			.saturating_add(Weight::from_parts(0, 4326))
113			.saturating_add(T::DbWeight::get().reads(9))
114			.saturating_add(T::DbWeight::get().writes(10))
115	}
116}