mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-07 22:28:02 +00:00
4a7a2a85b2
* Remove RefTimeWeight
* [ci] Apply cargo-fmt
* update lockfile for {"substrate", "polkadot"}
Co-authored-by: paritytech-ci <paritytech-ci@parity.io>
Co-authored-by: parity-processbot <>
49 lines
1.4 KiB
Rust
49 lines
1.4 KiB
Rust
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
|
|
use frame_support::{
|
|
traits::Get,
|
|
weights::{constants::RocksDbWeight, Weight},
|
|
};
|
|
use sp_std::marker::PhantomData;
|
|
|
|
// Implemented by autogenerated benchmarking code.
|
|
pub trait WeightInfo {
|
|
fn set_config_with_u32() -> Weight;
|
|
fn set_config_with_weight() -> Weight;
|
|
}
|
|
|
|
pub struct SubstrateWeight<T>(PhantomData<T>);
|
|
|
|
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|
// Storage: XcmpQueue QueueConfig (r:1 w:1)
|
|
fn set_config_with_u32() -> Weight {
|
|
Weight::from_ref_time(2_717_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
|
|
// Storage: XcmpQueue QueueConfig (r:1 w:1)
|
|
fn set_config_with_weight() -> Weight {
|
|
Weight::from_ref_time(2_717_000 as u64)
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
}
|
|
|
|
impl WeightInfo for () {
|
|
// Storage: XcmpQueue QueueConfig (r:1 w:1)
|
|
fn set_config_with_u32() -> Weight {
|
|
Weight::from_ref_time(2_717_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
|
}
|
|
|
|
// Storage: XcmpQueue QueueConfig (r:1 w:1)
|
|
fn set_config_with_weight() -> Weight {
|
|
Weight::from_ref_time(2_717_000 as u64)
|
|
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
|
}
|
|
}
|