#![allow(unused_parens)]
#![allow(unused_imports)]
use frame_support::{
traits::Get,
weights::{constants::RocksDbWeight, Weight},
};
use sp_std::marker::PhantomData;
pub trait WeightInfo {
fn add_new_gateway() -> Weight;
fn update_ttl() -> Weight;
fn purge_gateway() -> Weight;
fn reboot_self_gateway() -> Weight;
fn best_available() -> Weight;
}
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn add_new_gateway() -> Weight {
Weight::from_parts(72_795_000_u64, 0u64)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
fn update_ttl() -> Weight {
Weight::from_parts(73_255_000_u64, 0u64)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
fn purge_gateway() -> Weight {
Weight::from_parts(58_912_000_u64, 0u64)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
fn best_available() -> Weight {
Weight::from_parts(25_265_000_u64, 0u64).saturating_add(T::DbWeight::get().reads(1_u64))
}
fn reboot_self_gateway() -> Weight {
Weight::from_parts(72_795_000_u64, 0u64)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}
impl WeightInfo for () {
fn add_new_gateway() -> Weight {
Weight::from_parts(72_795_000_u64, 0u64)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
fn update_ttl() -> Weight {
Weight::from_parts(73_255_000_u64, 0u64)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
fn purge_gateway() -> Weight {
Weight::from_parts(58_912_000_u64, 0u64)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
fn best_available() -> Weight {
Weight::from_parts(25_265_000_u64, 0u64).saturating_add(RocksDbWeight::get().reads(1_u64))
}
fn reboot_self_gateway() -> Weight {
Weight::from_parts(72_795_000_u64, 0u64)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
}