Trait FeeCalculator

Source
pub trait FeeCalculator {
    // Required method
    fn min_gas_price() -> (U256, Weight);
}
Expand description

Trait that outputs the current transaction gas price.

Required Methods§

Source

fn min_gas_price() -> (U256, Weight)

Return the minimal required gas price.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FeeCalculator for ()

Source§

fn min_gas_price() -> (U256, Weight)

Implementors§

impl<T: Config> FeeCalculator for Pallet<T>

impl<T: Config> FeeCalculator for Pallet<T>