pub trait Config: Config + Config {
Show 16 associated items type FeeCalculator: FeeCalculator; type GasWeightMapping: GasWeightMapping; type BlockGasLimit: Get<U256>; type CallOrigin: EnsureAddressOrigin<Self::Origin>; type Event: From<Event<Self>> + IsType<<Self as Config>::Event>; type ChainId: Get<u64>; type IntoAccountId: DeriveSubstrateAddress<Self::AccountId>; type BlockHashMapping: BlockHashMapping; type FindAuthor: FindAuthor<H160>; type RingBalanceAdapter: CurrencyAdapt<Self>; type KtonBalanceAdapter: CurrencyAdapt<Self>; type PrecompilesType: PrecompileSet; type PrecompilesValue: Get<Self::PrecompilesType>; type Runner: Runner<Self>; type OnChargeTransaction: OnChargeEVMTransaction<Self>; fn config() -> &'static EvmConfig { ... }
}
Expand description

Configuration trait of this pallet.

Implement this type for a runtime in order to customize this pallet.

Required Associated Types

Calculator for current gas price.

Maps Ethereum gas to Substrate weight.

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

Allow the origin to call on behalf of given address.

The overarching event type.

Chain ID of EVM.

Convert from H160 to account id.

Block number to block hash.

Find author for the current block.

RING balance adapter for decimal convert

KTON balance adapter for decimal convert

Precompiles associated with this EVM engine.

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

Provided Methods

EVM config used in the Pallet.

Implementors