1234567891011121314151617181920212223242526#![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;343536pub 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}454647pub struct SubstrateWeight<T>(PhantomData<T>);48impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {49 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 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 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 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 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 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 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}858687impl WeightInfo for () {88 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 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 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 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 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 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 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}