mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-15 09:05:42 +00:00
92d2977292
* Force base weights to be the minimum only when the intercept is negative; emit minimum execution times * Add an `assert` making sure the intercept is zero when it's supposed to be zero * Fix template Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/bench-bot.sh" pallet dev pallet_assets * ".git/.scripts/bench-bot.sh" pallet dev pallet_uniques Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: command-bot <>
564 lines
22 KiB
Rust
564 lines
22 KiB
Rust
// This file is part of Substrate.
|
|
|
|
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
//! Autogenerated weights for pallet_uniques
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2022-10-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// /home/benchbot/cargo_target_dir/production/substrate
|
|
// benchmark
|
|
// pallet
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/substrate/.git/.artifacts/bench.json
|
|
// --pallet=pallet_uniques
|
|
// --chain=dev
|
|
// --output=./frame/uniques/src/weights.rs
|
|
// --template=./.maintain/frame-weight-template.hbs
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
|
|
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
|
use sp_std::marker::PhantomData;
|
|
|
|
/// Weight functions needed for pallet_uniques.
|
|
pub trait WeightInfo {
|
|
fn create() -> Weight;
|
|
fn force_create() -> Weight;
|
|
fn destroy(n: u32, m: u32, a: u32, ) -> Weight;
|
|
fn mint() -> Weight;
|
|
fn burn() -> Weight;
|
|
fn transfer() -> Weight;
|
|
fn redeposit(i: u32, ) -> Weight;
|
|
fn freeze() -> Weight;
|
|
fn thaw() -> Weight;
|
|
fn freeze_collection() -> Weight;
|
|
fn thaw_collection() -> Weight;
|
|
fn transfer_ownership() -> Weight;
|
|
fn set_team() -> Weight;
|
|
fn force_item_status() -> Weight;
|
|
fn set_attribute() -> Weight;
|
|
fn clear_attribute() -> Weight;
|
|
fn set_metadata() -> Weight;
|
|
fn clear_metadata() -> Weight;
|
|
fn set_collection_metadata() -> Weight;
|
|
fn clear_collection_metadata() -> Weight;
|
|
fn approve_transfer() -> Weight;
|
|
fn cancel_approval() -> Weight;
|
|
fn set_accept_ownership() -> Weight;
|
|
fn set_collection_max_supply() -> Weight;
|
|
fn set_price() -> Weight;
|
|
fn buy_item() -> Weight;
|
|
}
|
|
|
|
/// Weights for pallet_uniques using the Substrate node and recommended hardware.
|
|
pub struct SubstrateWeight<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques ClassAccount (r:0 w:1)
|
|
fn create() -> Weight {
|
|
// Minimum execution time: 32_901 nanoseconds.
|
|
Weight::from_ref_time(33_628_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques ClassAccount (r:0 w:1)
|
|
fn force_create() -> Weight {
|
|
// Minimum execution time: 21_633 nanoseconds.
|
|
Weight::from_ref_time(22_380_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques Asset (r:1 w:0)
|
|
// Storage: Uniques ClassAccount (r:0 w:1)
|
|
// Storage: Uniques Attribute (r:0 w:1000)
|
|
// Storage: Uniques ClassMetadataOf (r:0 w:1)
|
|
// Storage: Uniques InstanceMetadataOf (r:0 w:1000)
|
|
// Storage: Uniques CollectionMaxSupply (r:0 w:1)
|
|
// Storage: Uniques Account (r:0 w:20)
|
|
/// The range of component `n` is `[0, 1000]`.
|
|
/// The range of component `m` is `[0, 1000]`.
|
|
/// The range of component `a` is `[0, 1000]`.
|
|
fn destroy(n: u32, m: u32, a: u32, ) -> Weight {
|
|
// Minimum execution time: 2_429_508 nanoseconds.
|
|
Weight::from_ref_time(2_446_263_000 as u64)
|
|
// Standard Error: 28_236
|
|
.saturating_add(Weight::from_ref_time(8_477_090 as u64).saturating_mul(n as u64))
|
|
// Standard Error: 28_236
|
|
.saturating_add(Weight::from_ref_time(314_268 as u64).saturating_mul(m as u64))
|
|
// Standard Error: 28_236
|
|
.saturating_add(Weight::from_ref_time(249_624 as u64).saturating_mul(a as u64))
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(n as u64)))
|
|
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
|
.saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(n as u64)))
|
|
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(m as u64)))
|
|
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(a as u64)))
|
|
}
|
|
// Storage: Uniques Asset (r:1 w:1)
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques CollectionMaxSupply (r:1 w:0)
|
|
// Storage: Uniques Account (r:0 w:1)
|
|
fn mint() -> Weight {
|
|
// Minimum execution time: 41_938 nanoseconds.
|
|
Weight::from_ref_time(42_814_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques Asset (r:1 w:1)
|
|
// Storage: Uniques Account (r:0 w:1)
|
|
// Storage: Uniques ItemPriceOf (r:0 w:1)
|
|
fn burn() -> Weight {
|
|
// Minimum execution time: 43_593 nanoseconds.
|
|
Weight::from_ref_time(44_420_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:0)
|
|
// Storage: Uniques Asset (r:1 w:1)
|
|
// Storage: Uniques Account (r:0 w:2)
|
|
// Storage: Uniques ItemPriceOf (r:0 w:1)
|
|
fn transfer() -> Weight {
|
|
// Minimum execution time: 34_037 nanoseconds.
|
|
Weight::from_ref_time(34_848_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques Asset (r:102 w:102)
|
|
/// The range of component `i` is `[0, 5000]`.
|
|
fn redeposit(i: u32, ) -> Weight {
|
|
// Minimum execution time: 23_295 nanoseconds.
|
|
Weight::from_ref_time(23_482_000 as u64)
|
|
// Standard Error: 9_490
|
|
.saturating_add(Weight::from_ref_time(10_899_320 as u64).saturating_mul(i as u64))
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(i as u64)))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
|
|
}
|
|
// Storage: Uniques Asset (r:1 w:1)
|
|
// Storage: Uniques Class (r:1 w:0)
|
|
fn freeze() -> Weight {
|
|
// Minimum execution time: 27_005 nanoseconds.
|
|
Weight::from_ref_time(27_344_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques Asset (r:1 w:1)
|
|
// Storage: Uniques Class (r:1 w:0)
|
|
fn thaw() -> Weight {
|
|
// Minimum execution time: 26_815 nanoseconds.
|
|
Weight::from_ref_time(27_400_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
fn freeze_collection() -> Weight {
|
|
// Minimum execution time: 21_988 nanoseconds.
|
|
Weight::from_ref_time(22_596_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
fn thaw_collection() -> Weight {
|
|
// Minimum execution time: 21_886 nanoseconds.
|
|
Weight::from_ref_time(22_617_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques OwnershipAcceptance (r:1 w:1)
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques ClassAccount (r:0 w:2)
|
|
fn transfer_ownership() -> Weight {
|
|
// Minimum execution time: 30_241 nanoseconds.
|
|
Weight::from_ref_time(30_677_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
fn set_team() -> Weight {
|
|
// Minimum execution time: 23_011 nanoseconds.
|
|
Weight::from_ref_time(23_796_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques ClassAccount (r:0 w:1)
|
|
fn force_item_status() -> Weight {
|
|
// Minimum execution time: 25_739 nanoseconds.
|
|
Weight::from_ref_time(26_572_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
|
// Storage: Uniques Attribute (r:1 w:1)
|
|
fn set_attribute() -> Weight {
|
|
// Minimum execution time: 48_486 nanoseconds.
|
|
Weight::from_ref_time(49_029_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
|
// Storage: Uniques Attribute (r:1 w:1)
|
|
fn clear_attribute() -> Weight {
|
|
// Minimum execution time: 47_408 nanoseconds.
|
|
Weight::from_ref_time(48_753_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
|
fn set_metadata() -> Weight {
|
|
// Minimum execution time: 40_085 nanoseconds.
|
|
Weight::from_ref_time(40_625_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
|
fn clear_metadata() -> Weight {
|
|
// Minimum execution time: 40_546 nanoseconds.
|
|
Weight::from_ref_time(41_113_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
|
fn set_collection_metadata() -> Weight {
|
|
// Minimum execution time: 39_902 nanoseconds.
|
|
Weight::from_ref_time(40_599_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:0)
|
|
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
|
fn clear_collection_metadata() -> Weight {
|
|
// Minimum execution time: 37_597 nanoseconds.
|
|
Weight::from_ref_time(37_964_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:0)
|
|
// Storage: Uniques Asset (r:1 w:1)
|
|
fn approve_transfer() -> Weight {
|
|
// Minimum execution time: 28_719 nanoseconds.
|
|
Weight::from_ref_time(29_213_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:0)
|
|
// Storage: Uniques Asset (r:1 w:1)
|
|
fn cancel_approval() -> Weight {
|
|
// Minimum execution time: 27_608 nanoseconds.
|
|
Weight::from_ref_time(28_096_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques OwnershipAcceptance (r:1 w:1)
|
|
fn set_accept_ownership() -> Weight {
|
|
// Minimum execution time: 25_568 nanoseconds.
|
|
Weight::from_ref_time(26_098_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques CollectionMaxSupply (r:1 w:1)
|
|
// Storage: Uniques Class (r:1 w:0)
|
|
fn set_collection_max_supply() -> Weight {
|
|
// Minimum execution time: 24_521 nanoseconds.
|
|
Weight::from_ref_time(25_062_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques Asset (r:1 w:0)
|
|
// Storage: Uniques ItemPriceOf (r:0 w:1)
|
|
fn set_price() -> Weight {
|
|
// Minimum execution time: 25_337 nanoseconds.
|
|
Weight::from_ref_time(25_902_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques Asset (r:1 w:1)
|
|
// Storage: Uniques ItemPriceOf (r:1 w:1)
|
|
// Storage: Uniques Class (r:1 w:0)
|
|
// Storage: Uniques Account (r:0 w:2)
|
|
fn buy_item() -> Weight {
|
|
// Minimum execution time: 46_736 nanoseconds.
|
|
Weight::from_ref_time(47_264_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
|
}
|
|
}
|
|
|
|
// For backwards compatibility and tests
|
|
impl WeightInfo for () {
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques ClassAccount (r:0 w:1)
|
|
fn create() -> Weight {
|
|
// Minimum execution time: 32_901 nanoseconds.
|
|
Weight::from_ref_time(33_628_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques ClassAccount (r:0 w:1)
|
|
fn force_create() -> Weight {
|
|
// Minimum execution time: 21_633 nanoseconds.
|
|
Weight::from_ref_time(22_380_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques Asset (r:1 w:0)
|
|
// Storage: Uniques ClassAccount (r:0 w:1)
|
|
// Storage: Uniques Attribute (r:0 w:1000)
|
|
// Storage: Uniques ClassMetadataOf (r:0 w:1)
|
|
// Storage: Uniques InstanceMetadataOf (r:0 w:1000)
|
|
// Storage: Uniques CollectionMaxSupply (r:0 w:1)
|
|
// Storage: Uniques Account (r:0 w:20)
|
|
/// The range of component `n` is `[0, 1000]`.
|
|
/// The range of component `m` is `[0, 1000]`.
|
|
/// The range of component `a` is `[0, 1000]`.
|
|
fn destroy(n: u32, m: u32, a: u32, ) -> Weight {
|
|
// Minimum execution time: 2_429_508 nanoseconds.
|
|
Weight::from_ref_time(2_446_263_000 as u64)
|
|
// Standard Error: 28_236
|
|
.saturating_add(Weight::from_ref_time(8_477_090 as u64).saturating_mul(n as u64))
|
|
// Standard Error: 28_236
|
|
.saturating_add(Weight::from_ref_time(314_268 as u64).saturating_mul(m as u64))
|
|
// Standard Error: 28_236
|
|
.saturating_add(Weight::from_ref_time(249_624 as u64).saturating_mul(a as u64))
|
|
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
|
.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(n as u64)))
|
|
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes((2 as u64).saturating_mul(n as u64)))
|
|
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(m as u64)))
|
|
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(a as u64)))
|
|
}
|
|
// Storage: Uniques Asset (r:1 w:1)
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques CollectionMaxSupply (r:1 w:0)
|
|
// Storage: Uniques Account (r:0 w:1)
|
|
fn mint() -> Weight {
|
|
// Minimum execution time: 41_938 nanoseconds.
|
|
Weight::from_ref_time(42_814_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques Asset (r:1 w:1)
|
|
// Storage: Uniques Account (r:0 w:1)
|
|
// Storage: Uniques ItemPriceOf (r:0 w:1)
|
|
fn burn() -> Weight {
|
|
// Minimum execution time: 43_593 nanoseconds.
|
|
Weight::from_ref_time(44_420_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:0)
|
|
// Storage: Uniques Asset (r:1 w:1)
|
|
// Storage: Uniques Account (r:0 w:2)
|
|
// Storage: Uniques ItemPriceOf (r:0 w:1)
|
|
fn transfer() -> Weight {
|
|
// Minimum execution time: 34_037 nanoseconds.
|
|
Weight::from_ref_time(34_848_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques Asset (r:102 w:102)
|
|
/// The range of component `i` is `[0, 5000]`.
|
|
fn redeposit(i: u32, ) -> Weight {
|
|
// Minimum execution time: 23_295 nanoseconds.
|
|
Weight::from_ref_time(23_482_000 as u64)
|
|
// Standard Error: 9_490
|
|
.saturating_add(Weight::from_ref_time(10_899_320 as u64).saturating_mul(i as u64))
|
|
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
|
.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(i as u64)))
|
|
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
|
|
}
|
|
// Storage: Uniques Asset (r:1 w:1)
|
|
// Storage: Uniques Class (r:1 w:0)
|
|
fn freeze() -> Weight {
|
|
// Minimum execution time: 27_005 nanoseconds.
|
|
Weight::from_ref_time(27_344_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques Asset (r:1 w:1)
|
|
// Storage: Uniques Class (r:1 w:0)
|
|
fn thaw() -> Weight {
|
|
// Minimum execution time: 26_815 nanoseconds.
|
|
Weight::from_ref_time(27_400_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
fn freeze_collection() -> Weight {
|
|
// Minimum execution time: 21_988 nanoseconds.
|
|
Weight::from_ref_time(22_596_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
fn thaw_collection() -> Weight {
|
|
// Minimum execution time: 21_886 nanoseconds.
|
|
Weight::from_ref_time(22_617_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques OwnershipAcceptance (r:1 w:1)
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques ClassAccount (r:0 w:2)
|
|
fn transfer_ownership() -> Weight {
|
|
// Minimum execution time: 30_241 nanoseconds.
|
|
Weight::from_ref_time(30_677_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
fn set_team() -> Weight {
|
|
// Minimum execution time: 23_011 nanoseconds.
|
|
Weight::from_ref_time(23_796_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques ClassAccount (r:0 w:1)
|
|
fn force_item_status() -> Weight {
|
|
// Minimum execution time: 25_739 nanoseconds.
|
|
Weight::from_ref_time(26_572_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
|
// Storage: Uniques Attribute (r:1 w:1)
|
|
fn set_attribute() -> Weight {
|
|
// Minimum execution time: 48_486 nanoseconds.
|
|
Weight::from_ref_time(49_029_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
|
// Storage: Uniques Attribute (r:1 w:1)
|
|
fn clear_attribute() -> Weight {
|
|
// Minimum execution time: 47_408 nanoseconds.
|
|
Weight::from_ref_time(48_753_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
|
fn set_metadata() -> Weight {
|
|
// Minimum execution time: 40_085 nanoseconds.
|
|
Weight::from_ref_time(40_625_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
|
fn clear_metadata() -> Weight {
|
|
// Minimum execution time: 40_546 nanoseconds.
|
|
Weight::from_ref_time(41_113_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:1)
|
|
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
|
fn set_collection_metadata() -> Weight {
|
|
// Minimum execution time: 39_902 nanoseconds.
|
|
Weight::from_ref_time(40_599_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:0)
|
|
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
|
fn clear_collection_metadata() -> Weight {
|
|
// Minimum execution time: 37_597 nanoseconds.
|
|
Weight::from_ref_time(37_964_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:0)
|
|
// Storage: Uniques Asset (r:1 w:1)
|
|
fn approve_transfer() -> Weight {
|
|
// Minimum execution time: 28_719 nanoseconds.
|
|
Weight::from_ref_time(29_213_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques Class (r:1 w:0)
|
|
// Storage: Uniques Asset (r:1 w:1)
|
|
fn cancel_approval() -> Weight {
|
|
// Minimum execution time: 27_608 nanoseconds.
|
|
Weight::from_ref_time(28_096_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques OwnershipAcceptance (r:1 w:1)
|
|
fn set_accept_ownership() -> Weight {
|
|
// Minimum execution time: 25_568 nanoseconds.
|
|
Weight::from_ref_time(26_098_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques CollectionMaxSupply (r:1 w:1)
|
|
// Storage: Uniques Class (r:1 w:0)
|
|
fn set_collection_max_supply() -> Weight {
|
|
// Minimum execution time: 24_521 nanoseconds.
|
|
Weight::from_ref_time(25_062_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques Asset (r:1 w:0)
|
|
// Storage: Uniques ItemPriceOf (r:0 w:1)
|
|
fn set_price() -> Weight {
|
|
// Minimum execution time: 25_337 nanoseconds.
|
|
Weight::from_ref_time(25_902_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Uniques Asset (r:1 w:1)
|
|
// Storage: Uniques ItemPriceOf (r:1 w:1)
|
|
// Storage: Uniques Class (r:1 w:0)
|
|
// Storage: Uniques Account (r:0 w:2)
|
|
fn buy_item() -> Weight {
|
|
// Minimum execution time: 46_736 nanoseconds.
|
|
Weight::from_ref_time(47_264_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
|
}
|
|
}
|