This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NFT Fractionalization on AssetHub Kusama (#2769)
* Add nft-fractionalization pallet to AssetHub Kusama * Update Cargo.lock * Update parachains/runtimes/assets/asset-hub-kusama/src/lib.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> * Set MaxHolds = 10 * Change MaxHolds back to 1 --------- Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
- Loading branch information
1 parent
3216964
commit 0602c76
Showing
7 changed files
with
158 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 113 additions & 0 deletions
113
parachains/runtimes/assets/asset-hub-kusama/src/weights/pallet_nft_fractionalization.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
// Copyright Parity Technologies (UK) Ltd. | ||
// This file is part of Cumulus. | ||
|
||
// Cumulus is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
|
||
// Cumulus is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
|
||
// You should have received a copy of the GNU General Public License | ||
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
//! Autogenerated weights for `pallet_nft_fractionalization` | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
//! DATE: 2023-05-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! WORST CASE MAP SIZE: `1000000` | ||
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` | ||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("asset-hub-kusama-dev"), DB CACHE: 1024 | ||
// Executed Command: | ||
// ./artifacts/polkadot-parachain | ||
// benchmark | ||
// pallet | ||
// --chain=asset-hub-kusama-dev | ||
// --execution=wasm | ||
// --wasm-execution=compiled | ||
// --pallet=pallet_nft_fractionalization | ||
// --extrinsic=* | ||
// --steps=50 | ||
// --repeat=20 | ||
// --json | ||
// --header=./file_header.txt | ||
// --output=./parachains/runtimes/assets/asset-hub-kusama/src/weights/pallet_nft_fractionalization.rs | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
#![allow(missing_docs)] | ||
|
||
use frame_support::{traits::Get, weights::Weight}; | ||
use core::marker::PhantomData; | ||
|
||
/// Weight functions for `pallet_nft_fractionalization`. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> pallet_nft_fractionalization::WeightInfo for WeightInfo<T> { | ||
/// Storage: Nfts Item (r:1 w:0) | ||
/// Proof: Nfts Item (max_values: None, max_size: Some(861), added: 3336, mode: MaxEncodedLen) | ||
/// Storage: Balances Holds (r:1 w:1) | ||
/// Proof: Balances Holds (max_values: None, max_size: Some(66), added: 2541, mode: MaxEncodedLen) | ||
/// Storage: Nfts Collection (r:1 w:1) | ||
/// Proof: Nfts Collection (max_values: None, max_size: Some(84), added: 2559, mode: MaxEncodedLen) | ||
/// Storage: Nfts Attribute (r:1 w:1) | ||
/// Proof: Nfts Attribute (max_values: None, max_size: Some(479), added: 2954, mode: MaxEncodedLen) | ||
/// Storage: Assets Asset (r:1 w:1) | ||
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen) | ||
/// Storage: Assets Account (r:1 w:1) | ||
/// Proof: Assets Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen) | ||
/// Storage: System Account (r:1 w:1) | ||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) | ||
/// Storage: Assets Metadata (r:1 w:1) | ||
/// Proof: Assets Metadata (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) | ||
/// Storage: NftFractionalization NftToAsset (r:0 w:1) | ||
/// Proof: NftFractionalization NftToAsset (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen) | ||
fn fractionalize() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `462` | ||
// Estimated: `4326` | ||
// Minimum execution time: 167_532_000 picoseconds. | ||
Weight::from_parts(168_850_000, 0) | ||
.saturating_add(Weight::from_parts(0, 4326)) | ||
.saturating_add(T::DbWeight::get().reads(8)) | ||
.saturating_add(T::DbWeight::get().writes(8)) | ||
} | ||
/// Storage: NftFractionalization NftToAsset (r:1 w:1) | ||
/// Proof: NftFractionalization NftToAsset (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen) | ||
/// Storage: Assets Asset (r:1 w:1) | ||
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen) | ||
/// Storage: Assets Account (r:1 w:1) | ||
/// Proof: Assets Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen) | ||
/// Storage: Nfts Attribute (r:1 w:1) | ||
/// Proof: Nfts Attribute (max_values: None, max_size: Some(479), added: 2954, mode: MaxEncodedLen) | ||
/// Storage: Nfts Collection (r:1 w:1) | ||
/// Proof: Nfts Collection (max_values: None, max_size: Some(84), added: 2559, mode: MaxEncodedLen) | ||
/// Storage: Nfts CollectionConfigOf (r:1 w:0) | ||
/// Proof: Nfts CollectionConfigOf (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen) | ||
/// Storage: Nfts ItemConfigOf (r:1 w:0) | ||
/// Proof: Nfts ItemConfigOf (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) | ||
/// Storage: Nfts Item (r:1 w:1) | ||
/// Proof: Nfts Item (max_values: None, max_size: Some(861), added: 3336, mode: MaxEncodedLen) | ||
/// Storage: Balances Holds (r:1 w:1) | ||
/// Proof: Balances Holds (max_values: None, max_size: Some(66), added: 2541, mode: MaxEncodedLen) | ||
/// Storage: Nfts Account (r:0 w:1) | ||
/// Proof: Nfts Account (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) | ||
/// Storage: Nfts ItemPriceOf (r:0 w:1) | ||
/// Proof: Nfts ItemPriceOf (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) | ||
/// Storage: Nfts PendingSwapOf (r:0 w:1) | ||
/// Proof: Nfts PendingSwapOf (max_values: None, max_size: Some(71), added: 2546, mode: MaxEncodedLen) | ||
fn unify() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `1274` | ||
// Estimated: `4326` | ||
// Minimum execution time: 122_877_000 picoseconds. | ||
Weight::from_parts(124_095_000, 0) | ||
.saturating_add(Weight::from_parts(0, 4326)) | ||
.saturating_add(T::DbWeight::get().reads(9)) | ||
.saturating_add(T::DbWeight::get().writes(10)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters