mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-06 16:08:08 +00:00
558502345f
* Migrate to from_parts Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix remaining files Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * cargo update -p polkadot-primitives Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * cargo update -p sp-io Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use Master Cargo.lock Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * cargo update -p polkadot-primitives Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * cargo update -p sp-io Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
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_parts(2_717_000 as u64, 0)
|
|
.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_parts(2_717_000 as u64, 0)
|
|
.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_parts(2_717_000 as u64, 0)
|
|
.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_parts(2_717_000 as u64, 0)
|
|
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
|
}
|
|
}
|