git.delta.rocks / unique-network / refs/commits / 4dff934f02cf

difftreelog

source

pallets/configuration/src/weights.rs4.8 KiBsourcehistory
1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_configuration4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2022-12-28, 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-configuration15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/configuration/src/weights.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(missing_docs)]30#![allow(clippy::unnecessary_cast)]3132use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};33use sp_std::marker::PhantomData;3435/// Weight functions needed for pallet_configuration.36pub trait WeightInfo {37	fn set_weight_to_fee_coefficient_override() -> Weight;38	fn set_min_gas_price_override() -> Weight;39	fn set_xcm_allowed_locations() -> Weight;40	fn set_app_promotion_configuration_override() -> Weight;41	fn set_collator_selection_desired_collators() -> Weight;42	fn set_collator_selection_license_bond() -> Weight;43	fn set_collator_selection_kick_threshold() -> Weight;44}4546/// Weights for pallet_configuration using the Substrate node and recommended hardware.47pub struct SubstrateWeight<T>(PhantomData<T>);48impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {49	// Storage: Configuration WeightToFeeCoefficientOverride (r:0 w:1)50	fn set_weight_to_fee_coefficient_override() -> Weight {51		Weight::from_ref_time(5_691_000 as u64)52			.saturating_add(T::DbWeight::get().writes(1 as u64))53	}54	// Storage: Configuration MinGasPriceOverride (r:0 w:1)55	fn set_min_gas_price_override() -> Weight {56		Weight::from_ref_time(5_521_000 as u64)57			.saturating_add(T::DbWeight::get().writes(1 as u64))58	}59	// Storage: Configuration XcmAllowedLocationsOverride (r:0 w:1)60	fn set_xcm_allowed_locations() -> Weight {61		Weight::from_ref_time(6_091_000 as u64)62			.saturating_add(T::DbWeight::get().writes(1 as u64))63	}64	// Storage: Configuration AppPromomotionConfigurationOverride (r:0 w:1)65	fn set_app_promotion_configuration_override() -> Weight {66		Weight::from_ref_time(6_241_000 as u64)67			.saturating_add(T::DbWeight::get().writes(1 as u64))68	}69	// Storage: Configuration CollatorSelectionDesiredCollatorsOverride (r:0 w:1)70	fn set_collator_selection_desired_collators() -> Weight {71		Weight::from_ref_time(25_298_000 as u64)72			.saturating_add(T::DbWeight::get().writes(1 as u64))73	}74	// Storage: Configuration CollatorSelectionLicenseBondOverride (r:0 w:1)75	fn set_collator_selection_license_bond() -> Weight {76		Weight::from_ref_time(18_675_000 as u64)77			.saturating_add(T::DbWeight::get().writes(1 as u64))78	}79	// Storage: Configuration CollatorSelectionKickThresholdOverride (r:0 w:1)80	fn set_collator_selection_kick_threshold() -> Weight {81		Weight::from_ref_time(18_044_000 as u64)82			.saturating_add(T::DbWeight::get().writes(1 as u64))83	}84}8586// For backwards compatibility and tests87impl WeightInfo for () {88	// Storage: Configuration WeightToFeeCoefficientOverride (r:0 w:1)89	fn set_weight_to_fee_coefficient_override() -> Weight {90		Weight::from_ref_time(5_691_000 as u64)91			.saturating_add(RocksDbWeight::get().writes(1 as u64))92	}93	// Storage: Configuration MinGasPriceOverride (r:0 w:1)94	fn set_min_gas_price_override() -> Weight {95		Weight::from_ref_time(5_521_000 as u64)96			.saturating_add(RocksDbWeight::get().writes(1 as u64))97	}98	// Storage: Configuration XcmAllowedLocationsOverride (r:0 w:1)99	fn set_xcm_allowed_locations() -> Weight {100		Weight::from_ref_time(6_091_000 as u64)101			.saturating_add(RocksDbWeight::get().writes(1 as u64))102	}103	// Storage: Configuration AppPromomotionConfigurationOverride (r:0 w:1)104	fn set_app_promotion_configuration_override() -> Weight {105		Weight::from_ref_time(6_241_000 as u64)106			.saturating_add(RocksDbWeight::get().writes(1 as u64))107	}108	// Storage: Configuration CollatorSelectionDesiredCollatorsOverride (r:0 w:1)109	fn set_collator_selection_desired_collators() -> Weight {110		Weight::from_ref_time(25_298_000 as u64)111			.saturating_add(RocksDbWeight::get().writes(1 as u64))112	}113	// Storage: Configuration CollatorSelectionLicenseBondOverride (r:0 w:1)114	fn set_collator_selection_license_bond() -> Weight {115		Weight::from_ref_time(18_675_000 as u64)116			.saturating_add(RocksDbWeight::get().writes(1 as u64))117	}118	// Storage: Configuration CollatorSelectionKickThresholdOverride (r:0 w:1)119	fn set_collator_selection_kick_threshold() -> Weight {120		Weight::from_ref_time(18_044_000 as u64)121			.saturating_add(RocksDbWeight::get().writes(1 as u64))122	}123}