Trait gear_common::GasPrice

source ·
pub trait GasPrice {
    type Balance: BaseArithmetic + From<u32> + Copy + Unsigned;
    type GasToBalanceMultiplier: Get<Self::Balance>;

    // Provided method
    fn gas_price(gas: u64) -> Self::Balance { ... }
}

Required Associated Types§

source

type Balance: BaseArithmetic + From<u32> + Copy + Unsigned

source

type GasToBalanceMultiplier: Get<Self::Balance>

Provided Methods§

source

fn gas_price(gas: u64) -> Self::Balance

A price for the gas amount of gas. In general case, this doesn’t necessarily has to be constant.

Implementors§