[][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>;
    pub fn config() -> &'static Config { ... }
}

EVM module trait

Associated Types

type FeeCalculator: FeeCalculator[src]

Calculator for current gas price.

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: Precompiles[src]

Precompiles associated with this EVM engine.

type ChainId: Get<u64>[src]

Chain ID of EVM.

Loading content...

Provided methods

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

EVM config used in the module.

Loading content...

Implementors

Loading content...