Skip to content

Commit

Permalink
[substrate-apply] humanode-runtime:weights:pallet_balances Deprecate …
Browse files Browse the repository at this point in the history
…Currency; introduce holds and freezing into fungible traits #12951
  • Loading branch information
dmitrylavrenov committed Dec 28, 2023
1 parent eab2ee3 commit af2e22b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crates/humanode-runtime/src/weights/pallet_balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use sp_std::marker::PhantomData;
/// Weight functions for `pallet_balances`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
fn transfer() -> Weight {
fn transfer_allow_death() -> Weight {
// Minimum execution time: 37_000 nanoseconds.
Weight::from_parts(37_000_000, 0)
.saturating_add(T::DbWeight::get().reads(2))
Expand All @@ -23,13 +23,13 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
fn set_balance_creating() -> Weight {
fn force_set_balance_creating() -> Weight {
// Minimum execution time: 20_000 nanoseconds.
Weight::from_parts(20_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
fn set_balance_killing() -> Weight {
fn force_set_balance_killing() -> Weight {
// Minimum execution time: 21_000 nanoseconds.
Weight::from_parts(21_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
Expand All @@ -53,4 +53,7 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
fn upgrade_accounts(u: u32, ) -> Weight {
todo!()
}
}

0 comments on commit af2e22b

Please sign in to comment.