1234567891011121314151617181920212223242526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(clippy::unnecessary_cast)]3031use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use sp_std::marker::PhantomData;333435pub trait WeightInfo {36 fn set_collection_properties(b: u32, ) -> Weight;37 fn delete_collection_properties(b: u32, ) -> Weight;38}394041pub struct SubstrateWeight<T>(PhantomData<T>);42impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {43 44 fn set_collection_properties(b: u32, ) -> Weight {45 (0 as Weight)46 47 .saturating_add((2_786_252_000 as Weight).saturating_mul(b as Weight))48 .saturating_add(T::DbWeight::get().reads(1 as Weight))49 .saturating_add(T::DbWeight::get().writes(1 as Weight))50 }51 52 fn delete_collection_properties(b: u32, ) -> Weight {53 (0 as Weight)54 55 .saturating_add((2_739_521_000 as Weight).saturating_mul(b as Weight))56 .saturating_add(T::DbWeight::get().reads(1 as Weight))57 .saturating_add(T::DbWeight::get().writes(1 as Weight))58 }59}606162impl WeightInfo for () {63 64 fn set_collection_properties(b: u32, ) -> Weight {65 (0 as Weight)66 67 .saturating_add((2_786_252_000 as Weight).saturating_mul(b as Weight))68 .saturating_add(RocksDbWeight::get().reads(1 as Weight))69 .saturating_add(RocksDbWeight::get().writes(1 as Weight))70 }71 72 fn delete_collection_properties(b: u32, ) -> Weight {73 (0 as Weight)74 75 .saturating_add((2_739_521_000 as Weight).saturating_mul(b as Weight))76 .saturating_add(RocksDbWeight::get().reads(1 as Weight))77 .saturating_add(RocksDbWeight::get().writes(1 as Weight))78 }79}