-
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.
- Loading branch information
1 parent
da2cab7
commit ba708fc
Showing
7 changed files
with
185 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
//! Autogenerated weights for `ternoa_nft` | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
//! DATE: 2022-06-14, STEPS: `5`, REPEAT: 2, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("alphanet-dev"), DB CACHE: 1024 | ||
// Executed Command: | ||
// ./target/release/ternoa | ||
// benchmark | ||
// --chain | ||
// alphanet-dev | ||
// --steps=5 | ||
// --repeat=2 | ||
// --extrinsic=* | ||
// --execution=wasm | ||
// --wasm-execution=compiled | ||
// --heap-pages=4096 | ||
// --output=./weights/ | ||
// --pallet=ternoa_nft | ||
|
||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
|
||
use frame_support::{traits::Get, weights::Weight}; | ||
use sp_std::marker::PhantomData; | ||
|
||
/// Weight functions for `ternoa_nft`. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> ternoa_nft::WeightInfo for WeightInfo<T> { | ||
// Storage: NFT NftMintFee (r:1 w:0) | ||
// Storage: System Account (r:1 w:1) | ||
// Storage: NFT Collections (r:1 w:1) | ||
// Storage: NFT NextNFTId (r:1 w:1) | ||
// Storage: NFT Nfts (r:0 w:1) | ||
fn create_nft(s: u32) -> Weight { | ||
(0 as Weight) | ||
// Standard Error: 9_000 | ||
.saturating_add((87_000 as Weight).saturating_mul(s as Weight)) | ||
.saturating_add(T::DbWeight::get().reads(4 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(4 as Weight)) | ||
} | ||
// Storage: NFT Nfts (r:1 w:1) | ||
// Storage: NFT Collections (r:1 w:1) | ||
fn burn_nft(s: u32) -> Weight { | ||
(0 as Weight) | ||
// Standard Error: 141_000 | ||
.saturating_add((280_000 as Weight).saturating_mul(s 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) | ||
fn transfer_nft() -> Weight { | ||
(100_170_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: NFT Nfts (r:1 w:1) | ||
// Storage: NFT DelegatedNFTs (r:0 w:1) | ||
fn delegate_nft() -> Weight { | ||
(56_698_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
// Storage: NFT Nfts (r:1 w:1) | ||
fn set_royalty() -> Weight { | ||
(71_745_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: NFT NftMintFee (r:0 w:1) | ||
fn set_nft_mint_fee() -> Weight { | ||
(41_820_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: NFT NextCollectionId (r:1 w:1) | ||
// Storage: NFT Collections (r:0 w:1) | ||
fn create_collection() -> Weight { | ||
(56_326_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
// Storage: NFT Collections (r:1 w:1) | ||
fn burn_collection() -> Weight { | ||
(64_291_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: NFT Collections (r:1 w:1) | ||
fn close_collection() -> Weight { | ||
(58_941_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: NFT Collections (r:1 w:1) | ||
fn limit_collection() -> Weight { | ||
(56_847_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: NFT Collections (r:1 w:1) | ||
// Storage: NFT Nfts (r:1 w:1) | ||
fn add_nft_to_collection(s: u32) -> Weight { | ||
(0 as Weight) | ||
// Standard Error: 155_000 | ||
.saturating_add((483_000 as Weight).saturating_mul(s as Weight)) | ||
.saturating_add(T::DbWeight::get().reads(2 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
} |