[][src]Trait pallet_evm::Trait

pub trait Trait: Trait + Trait {
    type FeeCalculator: FeeCalculator;
    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: Precompiles;
    type ChainId: Get<u64>;
    fn config() -> &'static Config { ... }
}

EVM module trait

Associated Types

type FeeCalculator: FeeCalculator

Calculator for current gas price.

type CallOrigin: EnsureAddressOrigin<Self::Origin>

Allow the origin to call on behalf of given address.

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

Allow the origin to withdraw on behalf of given address.

type AddressMapping: AddressMapping<Self::AccountId>

Mapping from address to account id.

type Currency: Currency<Self::AccountId>

Currency type for withdraw and balance storage.

type Event: From<Event<Self>> + Into<Self::Event>

The overarching event type.

type Precompiles: Precompiles

Precompiles associated with this EVM engine.

type ChainId: Get<u64>

Chain ID of EVM.

Loading content...

Provided methods

fn config() -> &'static Config

EVM config used in the module.

Loading content...

Implementors

Loading content...