Trait common_runtime::fees::WeightToFee
pub trait WeightToFee {
type Balance: BaseArithmetic + From<u32> + Copy + Unsigned;
// Required method
fn weight_to_fee(weight: &Weight) -> Self::Balance;
}
Expand description
A trait that describes the weight to fee calculation.
Required Associated Types§
Required Methods§
fn weight_to_fee(weight: &Weight) -> Self::Balance
fn weight_to_fee(weight: &Weight) -> Self::Balance
Calculates the fee from the passed weight
.
Object Safety§
This trait is not object safe.
Implementors§
source§impl<Balance, Runtime, Target> WeightToFee for LengthToFeeImpl<Balance, Runtime, Target>
impl<Balance, Runtime, Target> WeightToFee for LengthToFeeImpl<Balance, Runtime, Target>
Trait implementation for converting transaction length to fee.