Trait pallet_evm::Config[][src]

pub trait Config: Config + Config {
    type FeeCalculator: FeeCalculator;
    type GasWeightMapping: GasWeightMapping;
    type CallOrigin: EnsureAddressOrigin<Self::Origin>;
    type WithdrawOrigin: EnsureAddressOrigin<Self::Origin, Success = Self::AccountId>;
    type AddressMapping: AddressMapping<Self::AccountId>;
    type Currency: Currency<Self::AccountId>;
    type Event: From<Event<Self>> + Into<Self::Event>;
    type Precompiles: PrecompileSet;
    type ChainId: Get<u64>;
    type BlockGasLimit: Get<U256>;
    type Runner: Runner<Self>;
    type OnChargeTransaction: OnChargeEVMTransaction<Self>;
    fn config() -> &'static EvmConfig { ... }
}

EVM module trait

Associated Types

type FeeCalculator: FeeCalculator[src]

Calculator for current gas price.

type GasWeightMapping: GasWeightMapping[src]

Maps Ethereum gas to Substrate weight.

type CallOrigin: EnsureAddressOrigin<Self::Origin>[src]

Allow the origin to call on behalf of given address.

type WithdrawOrigin: EnsureAddressOrigin<Self::Origin, Success = Self::AccountId>[src]

Allow the origin to withdraw on behalf of given address.

type AddressMapping: AddressMapping<Self::AccountId>[src]

Mapping from address to account id.

type Currency: Currency<Self::AccountId>[src]

Currency type for withdraw and balance storage.

type Event: From<Event<Self>> + Into<Self::Event>[src]

The overarching event type.

type Precompiles: PrecompileSet[src]

Precompiles associated with this EVM engine.

type ChainId: Get<u64>[src]

Chain ID of EVM.

type BlockGasLimit: Get<U256>[src]

The block gas limit. Can be a simple constant, or an adjustment algorithm in another pallet.

type Runner: Runner<Self>[src]

EVM execution runner.

type OnChargeTransaction: OnChargeEVMTransaction<Self>[src]

To handle fee deduction for EVM transactions. An example is this pallet being used by pallet_ethereum where the chain implementing pallet_ethereum should be able to configure what happens to the fees Similar to OnChargeTransaction of pallet_transaction_payment

Loading content...

Provided methods

fn config() -> &'static EvmConfig[src]

EVM config used in the module.

Loading content...

Implementors

Loading content...