Trait polkadot_service::runtime_traits::Convert
source · pub trait Convert<A, B> {
fn convert(a: A) -> B;
}
Expand description
Extensible conversion trait. Generic over both source and destination types.
Required Methods§
Implementations on Foreign Types§
source§impl<T> Convert<<T as Config>::AccountId, Option<<T as Config>::AccountId>> for StashOf<T>where
T: Config,
impl<T> Convert<<T as Config>::AccountId, Option<<T as Config>::AccountId>> for StashOf<T>where
T: Config,
source§impl<T> Convert<<T as Config>::AccountId, Option<Exposure<<T as Config>::AccountId, <T as Config>::CurrencyBalance>>> for ExposureOf<T>where
T: Config,
impl<T> Convert<<T as Config>::AccountId, Option<Exposure<<T as Config>::AccountId, <T as Config>::CurrencyBalance>>> for ExposureOf<T>where
T: Config,
source§impl<T, S, V, M> Convert<FixedU128, FixedU128> for TargetedFeeAdjustment<T, S, V, M>where
T: Config,
S: Get<Perquintill>,
V: Get<FixedU128>,
M: Get<FixedU128>,
impl<T, S, V, M> Convert<FixedU128, FixedU128> for TargetedFeeAdjustment<T, S, V, M>where
T: Config,
S: Get<Perquintill>,
V: Get<FixedU128>,
M: Get<FixedU128>,
source§impl<T> Convert<Weight, <<T as Config>::OnChargeTransaction as OnChargeTransaction<T>>::Balance> for Pallet<T>where
T: Config,
<<T as Config>::OnChargeTransaction as OnChargeTransaction<T>>::Balance: FixedPointOperand,
impl<T> Convert<Weight, <<T as Config>::OnChargeTransaction as OnChargeTransaction<T>>::Balance> for Pallet<T>where
T: Config,
<<T as Config>::OnChargeTransaction as OnChargeTransaction<T>>::Balance: FixedPointOperand,
source§fn convert(
weight: Weight
) -> <<T as Config>::OnChargeTransaction as OnChargeTransaction<T>>::Balance
fn convert(
weight: Weight
) -> <<T as Config>::OnChargeTransaction as OnChargeTransaction<T>>::Balance
Compute the fee for the specified weight.
This fee is already adjusted by the per block fee adjustment factor and is therefore the share that the weight contributes to the overall fee of a transaction. It is mainly for informational purposes and not used in the actual fee calculation.