Trait pallet_evm::Config[][src]

pub trait Config: Config + Config {
Show 15 associated items type FeeCalculator: FeeCalculator; type GasWeightMapping: GasWeightMapping; type BlockHashMapping: BlockHashMapping; 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 as Config>::Event>; type Precompiles: PrecompileSet; type ChainId: Get<u64>; type BlockGasLimit: Get<U256>; type Runner: Runner<Self>; type OnChargeTransaction: OnChargeEVMTransaction<Self>; type FindAuthor: FindAuthor<H160>; fn config() -> &'static EvmConfig { ... }
}
Expand description

EVM module trait

Associated Types

Calculator for current gas price.

Maps Ethereum gas to Substrate weight.

Block number to block hash.

Allow the origin to call on behalf of given address.

Allow the origin to withdraw on behalf of given address.

Mapping from address to account id.

Currency type for withdraw and balance storage.

The overarching event type.

Precompiles associated with this EVM engine.

Chain ID of EVM.

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

EVM execution runner.

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

Find author for the current block.

Provided methods

EVM config used in the module.

Implementors