git.delta.rocks / unique-network / refs/commits / b3ebe07cdd5d

difftreelog

source

pallets/fungible/src/weights.rs4.4 KiBsourcehistory
1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_fungible4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2021-10-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 12889// Executed Command:10// target/release/unique-collator11// benchmark12// --pallet13// pallet-fungible14// --wasm-execution15// compiled16// --extrinsic17// *18// --template19// .maintain/frame-weight-template.hbs20// --steps=5021// --repeat=2022// --output=./pallets/fungible/src/weights.rs232425#![cfg_attr(rustfmt, rustfmt_skip)]26#![allow(unused_parens)]27#![allow(unused_imports)]28#![allow(clippy::unnecessary_cast)]2930use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};31use sp_std::marker::PhantomData;3233/// Weight functions needed for pallet_fungible.34pub trait WeightInfo {35	fn create_item() -> Weight;36	fn burn_item() -> Weight;37	fn transfer() -> Weight;38	fn approve() -> Weight;39	fn transfer_from() -> Weight;40	fn burn_from() -> Weight;41}4243/// Weights for pallet_fungible using the Substrate node and recommended hardware.44pub struct SubstrateWeight<T>(PhantomData<T>);45impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {46	// Storage: Fungible Balance (r:1 w:1)47	// Storage: Fungible TotalSupply (r:0 w:1)48	fn create_item() -> Weight {49		(12_069_000 as Weight)50			.saturating_add(T::DbWeight::get().reads(1 as Weight))51			.saturating_add(T::DbWeight::get().writes(2 as Weight))52	}53	// Storage: Fungible TotalSupply (r:1 w:1)54	// Storage: Fungible Balance (r:1 w:1)55	fn burn_item() -> Weight {56		(14_096_000 as Weight)57			.saturating_add(T::DbWeight::get().reads(2 as Weight))58			.saturating_add(T::DbWeight::get().writes(2 as Weight))59	}60	// Storage: Fungible Balance (r:2 w:2)61	fn transfer() -> Weight {62		(15_436_000 as Weight)63			.saturating_add(T::DbWeight::get().reads(2 as Weight))64			.saturating_add(T::DbWeight::get().writes(2 as Weight))65	}66	// Storage: Fungible Balance (r:1 w:0)67	// Storage: Fungible Allowance (r:0 w:1)68	fn approve() -> Weight {69		(12_867_000 as Weight)70			.saturating_add(T::DbWeight::get().reads(1 as Weight))71			.saturating_add(T::DbWeight::get().writes(1 as Weight))72	}73	// Storage: Fungible Allowance (r:1 w:1)74	// Storage: Fungible Balance (r:2 w:2)75	fn transfer_from() -> Weight {76		(21_462_000 as Weight)77			.saturating_add(T::DbWeight::get().reads(3 as Weight))78			.saturating_add(T::DbWeight::get().writes(3 as Weight))79	}80	// Storage: Fungible Allowance (r:1 w:1)81	// Storage: Fungible TotalSupply (r:1 w:1)82	// Storage: Fungible Balance (r:1 w:1)83	fn burn_from() -> Weight {84		(55_874_000 as Weight)85			.saturating_add(T::DbWeight::get().reads(3 as Weight))86			.saturating_add(T::DbWeight::get().writes(3 as Weight))87	}88}8990// For backwards compatibility and tests91impl WeightInfo for () {92	// Storage: Fungible Balance (r:1 w:1)93	// Storage: Fungible TotalSupply (r:0 w:1)94	fn create_item() -> Weight {95		(12_069_000 as Weight)96			.saturating_add(RocksDbWeight::get().reads(1 as Weight))97			.saturating_add(RocksDbWeight::get().writes(2 as Weight))98	}99	// Storage: Fungible TotalSupply (r:1 w:1)100	// Storage: Fungible Balance (r:1 w:1)101	fn burn_item() -> Weight {102		(14_096_000 as Weight)103			.saturating_add(RocksDbWeight::get().reads(2 as Weight))104			.saturating_add(RocksDbWeight::get().writes(2 as Weight))105	}106	// Storage: Fungible Balance (r:2 w:2)107	fn transfer() -> Weight {108		(15_436_000 as Weight)109			.saturating_add(RocksDbWeight::get().reads(2 as Weight))110			.saturating_add(RocksDbWeight::get().writes(2 as Weight))111	}112	// Storage: Fungible Balance (r:1 w:0)113	// Storage: Fungible Allowance (r:0 w:1)114	fn approve() -> Weight {115		(12_867_000 as Weight)116			.saturating_add(RocksDbWeight::get().reads(1 as Weight))117			.saturating_add(RocksDbWeight::get().writes(1 as Weight))118	}119	// Storage: Fungible Allowance (r:1 w:1)120	// Storage: Fungible Balance (r:2 w:2)121	fn transfer_from() -> Weight {122		(21_462_000 as Weight)123			.saturating_add(RocksDbWeight::get().reads(3 as Weight))124			.saturating_add(RocksDbWeight::get().writes(3 as Weight))125	}126	// Storage: Fungible Allowance (r:1 w:1)127	// Storage: Fungible TotalSupply (r:1 w:1)128	// Storage: Fungible Balance (r:1 w:1)129	fn burn_from() -> Weight {130		(55_874_000 as Weight)131			.saturating_add(RocksDbWeight::get().reads(3 as Weight))132			.saturating_add(RocksDbWeight::get().writes(3 as Weight))133	}134}