use frame_support::weights::{constants::RocksDbWeight, Weight};
pub trait WeightInfo {
fn add_pool() -> Weight;
fn add_tranche() -> Weight;
fn update_token_price() -> Weight;
fn update_member() -> Weight;
fn transfer() -> Weight;
fn set_domain_router() -> Weight;
fn add_currency() -> Weight;
fn allow_investment_currency() -> Weight;
fn disallow_investment_currency() -> Weight;
fn schedule_upgrade() -> Weight;
fn cancel_upgrade() -> Weight;
fn update_tranche_token_metadata() -> Weight;
fn freeze_investor() -> Weight;
fn unfreeze_investor() -> Weight;
fn update_tranche_hook() -> Weight;
}
const N: u64 = 4;
fn default_defensive_weight() -> Weight {
Weight::from_parts(124_979_771, 19974)
.saturating_add(Weight::from_parts(58_136_652, 0).saturating_mul(N))
.saturating_add(RocksDbWeight::get().reads(8))
.saturating_add(RocksDbWeight::get().reads((7_u64).saturating_mul(N)))
.saturating_add(RocksDbWeight::get().writes(8))
.saturating_add(RocksDbWeight::get().writes((6_u64).saturating_mul(N)))
.saturating_add(Weight::from_parts(0, 17774).saturating_mul(N))
}
impl WeightInfo for () {
fn set_domain_router() -> Weight {
default_defensive_weight()
}
fn add_pool() -> Weight {
default_defensive_weight()
}
fn add_tranche() -> Weight {
default_defensive_weight()
}
fn update_token_price() -> Weight {
default_defensive_weight()
}
fn update_member() -> Weight {
default_defensive_weight()
}
fn transfer() -> Weight {
default_defensive_weight()
}
fn schedule_upgrade() -> Weight {
default_defensive_weight()
}
fn cancel_upgrade() -> Weight {
default_defensive_weight()
}
fn update_tranche_token_metadata() -> Weight {
default_defensive_weight()
}
fn freeze_investor() -> Weight {
default_defensive_weight()
}
fn unfreeze_investor() -> Weight {
default_defensive_weight()
}
fn add_currency() -> Weight {
RocksDbWeight::get().reads_writes(2, 2)
}
fn allow_investment_currency() -> Weight {
RocksDbWeight::get().reads_writes(2, 2)
}
fn disallow_investment_currency() -> Weight {
RocksDbWeight::get().reads_writes(2, 2)
}
fn update_tranche_hook() -> Weight {
RocksDbWeight::get().reads_writes(3, 2)
}
}