Skip to content
Snippets Groups Projects
default_weight.rs 462 B
Newer Older
  • Learn to ignore specific revisions
  • zjb0807's avatar
    zjb0807 committed
    //! Weights for the Auction Module
    
    use frame_support::weights::{constants::RocksDbWeight as DbWeight, Weight};
    
    impl crate::WeightInfo for () {
    	fn feed_values(values_len: usize) -> Weight {
    		(101600000 as Weight)
    			.saturating_add(DbWeight::get().reads(3 as Weight))
    			.saturating_add(DbWeight::get().writes((1 + values_len * 2) as Weight))
    	}
    
    	fn on_initialize() -> Weight {
    		(18400000 as Weight).saturating_add(DbWeight::get().writes(1) as Weight)
    	}
    }