|
|
|
@@ -39,7 +39,7 @@
|
|
|
|
|
#![allow(unused_parens)]
|
|
|
|
|
#![allow(unused_imports)]
|
|
|
|
|
|
|
|
|
|
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
|
|
|
|
use frame_support::{traits::Get, weights::{RefTimeWeight, Weight, constants::RocksDbWeight}};
|
|
|
|
|
use sp_std::marker::PhantomData;
|
|
|
|
|
|
|
|
|
|
/// Weight functions needed for pallet_balances.
|
|
|
|
@@ -58,45 +58,45 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
|
|
|
|
|
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|
|
|
|
// Storage: System Account (r:1 w:1)
|
|
|
|
|
fn transfer() -> Weight {
|
|
|
|
|
(41_860_000 as Weight)
|
|
|
|
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
|
|
|
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
|
|
|
|
Weight::from_ref_time(41_860_000 as RefTimeWeight)
|
|
|
|
|
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
|
|
|
|
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
|
|
|
|
}
|
|
|
|
|
// Storage: System Account (r:1 w:1)
|
|
|
|
|
fn transfer_keep_alive() -> Weight {
|
|
|
|
|
(32_760_000 as Weight)
|
|
|
|
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
|
|
|
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
|
|
|
|
Weight::from_ref_time(32_760_000 as RefTimeWeight)
|
|
|
|
|
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
|
|
|
|
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
|
|
|
|
}
|
|
|
|
|
// Storage: System Account (r:1 w:1)
|
|
|
|
|
fn set_balance_creating() -> Weight {
|
|
|
|
|
(22_279_000 as Weight)
|
|
|
|
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
|
|
|
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
|
|
|
|
Weight::from_ref_time(22_279_000 as RefTimeWeight)
|
|
|
|
|
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
|
|
|
|
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
|
|
|
|
}
|
|
|
|
|
// Storage: System Account (r:1 w:1)
|
|
|
|
|
fn set_balance_killing() -> Weight {
|
|
|
|
|
(25_488_000 as Weight)
|
|
|
|
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
|
|
|
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
|
|
|
|
Weight::from_ref_time(25_488_000 as RefTimeWeight)
|
|
|
|
|
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
|
|
|
|
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
|
|
|
|
}
|
|
|
|
|
// Storage: System Account (r:2 w:2)
|
|
|
|
|
fn force_transfer() -> Weight {
|
|
|
|
|
(42_190_000 as Weight)
|
|
|
|
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
|
|
|
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
|
|
|
|
Weight::from_ref_time(42_190_000 as RefTimeWeight)
|
|
|
|
|
.saturating_add(T::DbWeight::get().reads(2 as RefTimeWeight))
|
|
|
|
|
.saturating_add(T::DbWeight::get().writes(2 as RefTimeWeight))
|
|
|
|
|
}
|
|
|
|
|
// Storage: System Account (r:1 w:1)
|
|
|
|
|
fn transfer_all() -> Weight {
|
|
|
|
|
(37_789_000 as Weight)
|
|
|
|
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
|
|
|
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
|
|
|
|
Weight::from_ref_time(37_789_000 as RefTimeWeight)
|
|
|
|
|
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
|
|
|
|
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
|
|
|
|
}
|
|
|
|
|
// Storage: System Account (r:1 w:1)
|
|
|
|
|
fn force_unreserve() -> Weight {
|
|
|
|
|
(20_056_000 as Weight)
|
|
|
|
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
|
|
|
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
|
|
|
|
Weight::from_ref_time(20_056_000 as RefTimeWeight)
|
|
|
|
|
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
|
|
|
|
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -104,44 +104,44 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|
|
|
|
impl WeightInfo for () {
|
|
|
|
|
// Storage: System Account (r:1 w:1)
|
|
|
|
|
fn transfer() -> Weight {
|
|
|
|
|
(41_860_000 as Weight)
|
|
|
|
|
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
|
|
|
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
|
|
|
|
Weight::from_ref_time(41_860_000 as RefTimeWeight)
|
|
|
|
|
.saturating_add(RocksDbWeight::get().reads(1 as RefTimeWeight))
|
|
|
|
|
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
|
|
|
|
}
|
|
|
|
|
// Storage: System Account (r:1 w:1)
|
|
|
|
|
fn transfer_keep_alive() -> Weight {
|
|
|
|
|
(32_760_000 as Weight)
|
|
|
|
|
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
|
|
|
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
|
|
|
|
Weight::from_ref_time(32_760_000 as RefTimeWeight)
|
|
|
|
|
.saturating_add(RocksDbWeight::get().reads(1 as RefTimeWeight))
|
|
|
|
|
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
|
|
|
|
}
|
|
|
|
|
// Storage: System Account (r:1 w:1)
|
|
|
|
|
fn set_balance_creating() -> Weight {
|
|
|
|
|
(22_279_000 as Weight)
|
|
|
|
|
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
|
|
|
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
|
|
|
|
Weight::from_ref_time(22_279_000 as RefTimeWeight)
|
|
|
|
|
.saturating_add(RocksDbWeight::get().reads(1 as RefTimeWeight))
|
|
|
|
|
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
|
|
|
|
}
|
|
|
|
|
// Storage: System Account (r:1 w:1)
|
|
|
|
|
fn set_balance_killing() -> Weight {
|
|
|
|
|
(25_488_000 as Weight)
|
|
|
|
|
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
|
|
|
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
|
|
|
|
Weight::from_ref_time(25_488_000 as RefTimeWeight)
|
|
|
|
|
.saturating_add(RocksDbWeight::get().reads(1 as RefTimeWeight))
|
|
|
|
|
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
|
|
|
|
}
|
|
|
|
|
// Storage: System Account (r:2 w:2)
|
|
|
|
|
fn force_transfer() -> Weight {
|
|
|
|
|
(42_190_000 as Weight)
|
|
|
|
|
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
|
|
|
|
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
|
|
|
|
Weight::from_ref_time(42_190_000 as RefTimeWeight)
|
|
|
|
|
.saturating_add(RocksDbWeight::get().reads(2 as RefTimeWeight))
|
|
|
|
|
.saturating_add(RocksDbWeight::get().writes(2 as RefTimeWeight))
|
|
|
|
|
}
|
|
|
|
|
// Storage: System Account (r:1 w:1)
|
|
|
|
|
fn transfer_all() -> Weight {
|
|
|
|
|
(37_789_000 as Weight)
|
|
|
|
|
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
|
|
|
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
|
|
|
|
Weight::from_ref_time(37_789_000 as RefTimeWeight)
|
|
|
|
|
.saturating_add(RocksDbWeight::get().reads(1 as RefTimeWeight))
|
|
|
|
|
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
|
|
|
|
}
|
|
|
|
|
// Storage: System Account (r:1 w:1)
|
|
|
|
|
fn force_unreserve() -> Weight {
|
|
|
|
|
(20_056_000 as Weight)
|
|
|
|
|
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
|
|
|
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
|
|
|
|
Weight::from_ref_time(20_056_000 as RefTimeWeight)
|
|
|
|
|
.saturating_add(RocksDbWeight::get().reads(1 as RefTimeWeight))
|
|
|
|
|
.saturating_add(RocksDbWeight::get().writes(1 as RefTimeWeight))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|