-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add marketplace pallet * add benchmark to mainnet * add benchmark to mainnet * comment some benchmarks * add correct ternoa-marketplace weights
- Loading branch information
Showing
9 changed files
with
161 additions
and
24 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
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
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,88 @@ | ||
|
||
//! Autogenerated weights for `ternoa_marketplace` | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
//! DATE: 2022-07-06, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("mainnet-dev"), DB CACHE: 1024 | ||
// Executed Command: | ||
// ./target/release/ternoa | ||
// benchmark | ||
// --chain | ||
// mainnet-dev | ||
// --steps=50 | ||
// --repeat=20 | ||
// --extrinsic=* | ||
// --execution=wasm | ||
// --wasm-execution=compiled | ||
// --heap-pages=4096 | ||
// --output=./weights/ | ||
// --pallet=ternoa_marketplace | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
|
||
use frame_support::{traits::Get, weights::Weight}; | ||
use sp_std::marker::PhantomData; | ||
|
||
/// Weight functions for `ternoa_marketplace`. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> ternoa_marketplace::WeightInfo for WeightInfo<T> { | ||
// Storage: Marketplace MarketplaceMintFee (r:1 w:0) | ||
// Storage: System Account (r:1 w:1) | ||
// Storage: Marketplace NextMarketplaceId (r:1 w:1) | ||
// Storage: Marketplace Marketplaces (r:0 w:1) | ||
fn create_marketplace() -> Weight { | ||
(162_778_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(3 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(3 as Weight)) | ||
} | ||
// Storage: Marketplace Marketplaces (r:1 w:1) | ||
fn set_marketplace_owner() -> Weight { | ||
(56_567_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: Marketplace Marketplaces (r:1 w:1) | ||
fn set_marketplace_kind() -> Weight { | ||
(47_009_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: Marketplace Marketplaces (r:1 w:1) | ||
fn set_marketplace_configuration() -> Weight { | ||
(161_376_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: Marketplace MarketplaceMintFee (r:0 w:1) | ||
fn set_marketplace_mint_fee() -> Weight { | ||
(28_414_000 as Weight) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: NFT Nfts (r:1 w:1) | ||
// Storage: Marketplace Marketplaces (r:1 w:0) | ||
// Storage: Marketplace ListedNfts (r:0 w:1) | ||
fn list_nft() -> Weight { | ||
(63_599_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(2 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
// Storage: NFT Nfts (r:1 w:1) | ||
// Storage: Marketplace ListedNfts (r:1 w:1) | ||
fn unlist_nft() -> Weight { | ||
(61_156_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(2 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
// Storage: NFT Nfts (r:1 w:1) | ||
// Storage: Marketplace ListedNfts (r:1 w:1) | ||
// Storage: Marketplace Marketplaces (r:1 w:0) | ||
// Storage: System Account (r:2 w:2) | ||
fn buy_nft() -> Weight { | ||
(179_149_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(5 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(4 as Weight)) | ||
} | ||
} |
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