#![allow(unused_parens)]
#![allow(unused_imports)]
use frame_support::{
traits::Get,
weights::{constants::RocksDbWeight, Weight},
};
use sp_std::marker::PhantomData;
pub trait WeightInfo {
fn propose_new_fee() -> Weight;
fn apply_new_fee(n: u32) -> Weight;
fn remove_fee(n: u32) -> Weight;
fn charge_fee(n: u32) -> Weight;
fn uncharge_fee(n: u32) -> Weight;
fn update_portfolio_valuation(n: u32) -> Weight;
}
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn propose_new_fee() -> Weight {
Weight::from_parts(43_301_000, 0)
.saturating_add(Weight::from_parts(0, 4278))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(2))
}
fn apply_new_fee(n: u32) -> Weight {
Weight::from_parts(55_397_177, 0)
.saturating_add(Weight::from_parts(0, 17508))
.saturating_add(Weight::from_parts(289_076, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(4))
}
fn remove_fee(n: u32) -> Weight {
Weight::from_parts(38_370_638, 0)
.saturating_add(Weight::from_parts(0, 17508))
.saturating_add(Weight::from_parts(411_219, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
fn charge_fee(n: u32) -> Weight {
Weight::from_parts(27_231_143, 0)
.saturating_add(Weight::from_parts(0, 17508))
.saturating_add(Weight::from_parts(259_721, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
fn uncharge_fee(n: u32) -> Weight {
Weight::from_parts(26_250_765, 0)
.saturating_add(Weight::from_parts(0, 17508))
.saturating_add(Weight::from_parts(260_625, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
fn update_portfolio_valuation(n: u32) -> Weight {
Weight::from_parts(42_962_181, 0)
.saturating_add(Weight::from_parts(0, 17508))
.saturating_add(Weight::from_parts(5_880_090, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(2))
}
}
impl WeightInfo for () {
fn propose_new_fee() -> Weight {
Weight::from_parts(43_301_000, 0)
.saturating_add(Weight::from_parts(0, 4278))
.saturating_add(RocksDbWeight::get().reads(4))
.saturating_add(RocksDbWeight::get().writes(2))
}
fn apply_new_fee(n: u32) -> Weight {
Weight::from_parts(55_397_177, 0)
.saturating_add(Weight::from_parts(0, 17508))
.saturating_add(Weight::from_parts(289_076, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(5))
.saturating_add(RocksDbWeight::get().writes(4))
}
fn remove_fee(n: u32) -> Weight {
Weight::from_parts(38_370_638, 0)
.saturating_add(Weight::from_parts(0, 17508))
.saturating_add(Weight::from_parts(411_219, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(3))
.saturating_add(RocksDbWeight::get().writes(3))
}
fn charge_fee(n: u32) -> Weight {
Weight::from_parts(27_231_143, 0)
.saturating_add(Weight::from_parts(0, 17508))
.saturating_add(Weight::from_parts(259_721, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(2))
.saturating_add(RocksDbWeight::get().writes(1))
}
fn uncharge_fee(n: u32) -> Weight {
Weight::from_parts(26_250_765, 0)
.saturating_add(Weight::from_parts(0, 17508))
.saturating_add(Weight::from_parts(260_625, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(2))
.saturating_add(RocksDbWeight::get().writes(1))
}
fn update_portfolio_valuation(n: u32) -> Weight {
Weight::from_parts(42_962_181, 0)
.saturating_add(Weight::from_parts(0, 17508))
.saturating_add(Weight::from_parts(5_880_090, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(5))
.saturating_add(RocksDbWeight::get().writes(2))
}
}