mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
c03fd43b11
Co-authored-by: paritytech-ci <paritytech-ci@parity.io> Co-authored-by: Paritytech CI <52199148+paritytech-ci@users.noreply.github.com> Co-authored-by: paritytech-ci <paritytech-ci@parity.io>
234 lines
9.0 KiB
Rust
234 lines
9.0 KiB
Rust
// Copyright 2021 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_assets`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2022-09-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westmint-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./artifacts/polkadot-parachain
|
|
// benchmark
|
|
// pallet
|
|
// --chain=westmint-dev
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --pallet=pallet_assets
|
|
// --extrinsic=*
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --json
|
|
// --header=./file_header.txt
|
|
// --output=./parachains/runtimes/assets/westmint/src/weights/pallet_assets.rs
|
|
|
|
#![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 `pallet_assets`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
fn create() -> Weight {
|
|
Weight::from_ref_time(31_293_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
fn force_create() -> Weight {
|
|
Weight::from_ref_time(18_434_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
// Storage: Assets Account (r:5002 w:5001)
|
|
// Storage: System Account (r:5000 w:5000)
|
|
// Storage: Assets Metadata (r:1 w:0)
|
|
// Storage: Assets Approvals (r:501 w:500)
|
|
/// The range of component `c` is `[0, 5000]`.
|
|
/// The range of component `s` is `[0, 5000]`.
|
|
/// The range of component `a` is `[0, 500]`.
|
|
fn destroy(c: u32, s: u32, a: u32, ) -> Weight {
|
|
Weight::from_ref_time(0 as u64)
|
|
// Standard Error: 70_000
|
|
.saturating_add(Weight::from_ref_time(17_625_000 as u64).saturating_mul(c as u64))
|
|
// Standard Error: 70_000
|
|
.saturating_add(Weight::from_ref_time(18_034_000 as u64).saturating_mul(s as u64))
|
|
// Standard Error: 700_000
|
|
.saturating_add(Weight::from_ref_time(16_396_000 as u64).saturating_mul(a as u64))
|
|
.saturating_add(T::DbWeight::get().reads(5 as u64))
|
|
.saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(c as u64)))
|
|
.saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(s as u64)))
|
|
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(a as u64)))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(c as u64)))
|
|
.saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(s as u64)))
|
|
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(a as u64)))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
// Storage: Assets Account (r:1 w:1)
|
|
fn mint() -> Weight {
|
|
Weight::from_ref_time(38_154_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
// Storage: Assets Account (r:1 w:1)
|
|
fn burn() -> Weight {
|
|
Weight::from_ref_time(41_980_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
// Storage: Assets Account (r:2 w:2)
|
|
// Storage: System Account (r:1 w:1)
|
|
fn transfer() -> Weight {
|
|
Weight::from_ref_time(54_531_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
// Storage: Assets Account (r:2 w:2)
|
|
// Storage: System Account (r:1 w:1)
|
|
fn transfer_keep_alive() -> Weight {
|
|
Weight::from_ref_time(47_282_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
// Storage: Assets Account (r:2 w:2)
|
|
// Storage: System Account (r:1 w:1)
|
|
fn force_transfer() -> Weight {
|
|
Weight::from_ref_time(54_238_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:0)
|
|
// Storage: Assets Account (r:1 w:1)
|
|
fn freeze() -> Weight {
|
|
Weight::from_ref_time(26_977_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:0)
|
|
// Storage: Assets Account (r:1 w:1)
|
|
fn thaw() -> Weight {
|
|
Weight::from_ref_time(26_731_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
fn freeze_asset() -> Weight {
|
|
Weight::from_ref_time(23_480_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
fn thaw_asset() -> Weight {
|
|
Weight::from_ref_time(22_840_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
// Storage: Assets Metadata (r:1 w:0)
|
|
fn transfer_ownership() -> Weight {
|
|
Weight::from_ref_time(25_506_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
fn set_team() -> Weight {
|
|
Weight::from_ref_time(24_610_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:0)
|
|
// Storage: Assets Metadata (r:1 w:1)
|
|
/// The range of component `n` is `[0, 50]`.
|
|
/// The range of component `s` is `[0, 50]`.
|
|
fn set_metadata(_n: u32, _s: u32, ) -> Weight {
|
|
Weight::from_ref_time(38_251_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:0)
|
|
// Storage: Assets Metadata (r:1 w:1)
|
|
fn clear_metadata() -> Weight {
|
|
Weight::from_ref_time(41_601_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:0)
|
|
// Storage: Assets Metadata (r:1 w:1)
|
|
/// The range of component `n` is `[0, 50]`.
|
|
/// The range of component `s` is `[0, 50]`.
|
|
fn force_set_metadata(_n: u32, s: u32, ) -> Weight {
|
|
Weight::from_ref_time(25_607_000 as u64)
|
|
// Standard Error: 0
|
|
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(s as u64))
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:0)
|
|
// Storage: Assets Metadata (r:1 w:1)
|
|
fn force_clear_metadata() -> Weight {
|
|
Weight::from_ref_time(41_226_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
fn force_asset_status() -> Weight {
|
|
Weight::from_ref_time(23_750_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
// Storage: Assets Approvals (r:1 w:1)
|
|
fn approve_transfer() -> Weight {
|
|
Weight::from_ref_time(40_582_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Assets Approvals (r:1 w:1)
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
// Storage: Assets Account (r:2 w:2)
|
|
// Storage: System Account (r:1 w:1)
|
|
fn transfer_approved() -> Weight {
|
|
Weight::from_ref_time(71_770_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(5 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(5 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
// Storage: Assets Approvals (r:1 w:1)
|
|
fn cancel_approval() -> Weight {
|
|
Weight::from_ref_time(43_552_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Assets Asset (r:1 w:1)
|
|
// Storage: Assets Approvals (r:1 w:1)
|
|
fn force_cancel_approval() -> Weight {
|
|
Weight::from_ref_time(43_189_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
}
|