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

difftreelog

source

pallets/fungible/src/weights.rs3.8 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/nft11// 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)]2829use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};30use sp_std::marker::PhantomData;3132/// Weight functions needed for pallet_fungible.33pub trait WeightInfo {34	fn create_item() -> Weight;35	fn burn_item() -> Weight;36	fn transfer() -> Weight;37	fn approve() -> Weight;38	fn transfer_from() -> Weight;39}4041/// Weights for pallet_fungible using the Substrate node and recommended hardware.42pub struct SubstrateWeight<T>(PhantomData<T>);43impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {44	// Storage: Fungible Balance (r:1 w:1)45	// Storage: Fungible TotalSupply (r:0 w:1)46	fn create_item() -> Weight {47		(12_069_000 as Weight)48			.saturating_add(T::DbWeight::get().reads(1 as Weight))49			.saturating_add(T::DbWeight::get().writes(2 as Weight))50	}51	// Storage: Fungible TotalSupply (r:1 w:1)52	// Storage: Fungible Balance (r:1 w:1)53	fn burn_item() -> Weight {54		(14_096_000 as Weight)55			.saturating_add(T::DbWeight::get().reads(2 as Weight))56			.saturating_add(T::DbWeight::get().writes(2 as Weight))57	}58	// Storage: Fungible Balance (r:2 w:2)59	fn transfer() -> Weight {60		(15_436_000 as Weight)61			.saturating_add(T::DbWeight::get().reads(2 as Weight))62			.saturating_add(T::DbWeight::get().writes(2 as Weight))63	}64	// Storage: Fungible Balance (r:1 w:0)65	// Storage: Fungible Allowance (r:0 w:1)66	fn approve() -> Weight {67		(12_867_000 as Weight)68			.saturating_add(T::DbWeight::get().reads(1 as Weight))69			.saturating_add(T::DbWeight::get().writes(1 as Weight))70	}71	// Storage: Fungible Allowance (r:1 w:1)72	// Storage: Fungible Balance (r:2 w:2)73	fn transfer_from() -> Weight {74		(21_462_000 as Weight)75			.saturating_add(T::DbWeight::get().reads(3 as Weight))76			.saturating_add(T::DbWeight::get().writes(3 as Weight))77	}78}7980// For backwards compatibility and tests81impl WeightInfo for () {82	// Storage: Fungible Balance (r:1 w:1)83	// Storage: Fungible TotalSupply (r:0 w:1)84	fn create_item() -> Weight {85		(12_069_000 as Weight)86			.saturating_add(RocksDbWeight::get().reads(1 as Weight))87			.saturating_add(RocksDbWeight::get().writes(2 as Weight))88	}89	// Storage: Fungible TotalSupply (r:1 w:1)90	// Storage: Fungible Balance (r:1 w:1)91	fn burn_item() -> Weight {92		(14_096_000 as Weight)93			.saturating_add(RocksDbWeight::get().reads(2 as Weight))94			.saturating_add(RocksDbWeight::get().writes(2 as Weight))95	}96	// Storage: Fungible Balance (r:2 w:2)97	fn transfer() -> Weight {98		(15_436_000 as Weight)99			.saturating_add(RocksDbWeight::get().reads(2 as Weight))100			.saturating_add(RocksDbWeight::get().writes(2 as Weight))101	}102	// Storage: Fungible Balance (r:1 w:0)103	// Storage: Fungible Allowance (r:0 w:1)104	fn approve() -> Weight {105		(12_867_000 as Weight)106			.saturating_add(RocksDbWeight::get().reads(1 as Weight))107			.saturating_add(RocksDbWeight::get().writes(1 as Weight))108	}109	// Storage: Fungible Allowance (r:1 w:1)110	// Storage: Fungible Balance (r:2 w:2)111	fn transfer_from() -> Weight {112		(21_462_000 as Weight)113			.saturating_add(RocksDbWeight::get().reads(3 as Weight))114			.saturating_add(RocksDbWeight::get().writes(3 as Weight))115	}116}