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

difftreelog

source

pallets/structure/src/weights.rs1.7 KiBsourcehistory
1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_structure4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2022-08-15, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 102489// Executed Command:10// target/release/unique-collator11// benchmark12// pallet13// --pallet14// pallet-structure15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/structure/src/weights.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(clippy::unnecessary_cast)]3031use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use sp_std::marker::PhantomData;3334/// Weight functions needed for pallet_structure.35pub trait WeightInfo {36	fn find_parent() -> Weight;37}3839/// Weights for pallet_structure using the Substrate node and recommended hardware.40pub struct SubstrateWeight<T>(PhantomData<T>);41impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {42	// Storage: Common CollectionById (r:1 w:0)43	// Storage: Nonfungible TokenData (r:1 w:0)44	fn find_parent() -> Weight {45		Weight::from_ref_time(7_180_000)46			.saturating_add(T::DbWeight::get().reads(2 as u64))47	}48}4950// For backwards compatibility and tests51impl WeightInfo for () {52	// Storage: Common CollectionById (r:1 w:0)53	// Storage: Nonfungible TokenData (r:1 w:0)54	fn find_parent() -> Weight {55		Weight::from_ref_time(7_180_000)56			.saturating_add(RocksDbWeight::get().reads(2 as u64))57	}58}