#![allow(unused_parens)]
#![allow(unused_imports)]
use frame_support::{
traits::Get,
weights::{constants::RocksDbWeight, Weight},
};
use sp_std::marker::PhantomData;
pub trait WeightInfo {
fn create_business() -> Weight;
fn update_business() -> Weight;
fn delete_business() -> Weight;
fn create_offering() -> Weight;
fn update_offering() -> Weight;
fn delete_offering() -> Weight;
}
pub struct EncointerWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for EncointerWeight<T> {
fn create_business() -> Weight {
Weight::from_parts(67_200_000, 0)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
fn update_business() -> Weight {
Weight::from_parts(64_500_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
fn delete_business() -> Weight {
Weight::from_parts(71_700_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
fn create_offering() -> Weight {
Weight::from_parts(74_100_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
fn update_offering() -> Weight {
Weight::from_parts(63_200_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
fn delete_offering() -> Weight {
Weight::from_parts(61_100_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
}
impl WeightInfo for () {
fn create_business() -> Weight {
Weight::from_parts(67_200_000, 0)
.saturating_add(RocksDbWeight::get().reads(2))
.saturating_add(RocksDbWeight::get().writes(1))
}
fn update_business() -> Weight {
Weight::from_parts(64_500_000, 0)
.saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1))
}
fn delete_business() -> Weight {
Weight::from_parts(71_700_000, 0)
.saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1))
}
fn create_offering() -> Weight {
Weight::from_parts(74_100_000, 0)
.saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(2))
}
fn update_offering() -> Weight {
Weight::from_parts(63_200_000, 0)
.saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1))
}
fn delete_offering() -> Weight {
Weight::from_parts(61_100_000, 0)
.saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1))
}
}