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.
type CallOrigin: EnsureAddressOrigin<Self::Origin>
type CallOrigin: EnsureAddressOrigin<Self::Origin>
Allow the origin to call on behalf of given address.
type WithdrawOrigin: EnsureAddressOrigin<Self::Origin, Success = Self::AccountId>
type WithdrawOrigin: EnsureAddressOrigin<Self::Origin, Success = Self::AccountId>
Allow the origin to withdraw on behalf of given address.
type AddressMapping: AddressMapping<Self::AccountId>
type AddressMapping: AddressMapping<Self::AccountId>
Mapping from address to account id.
Precompiles associated with this EVM engine.
type BlockGasLimit: Get<U256>
type BlockGasLimit: Get<U256>
The block gas limit. Can be a simple constant, or an adjustment algorithm in another pallet.
type OnChargeTransaction: OnChargeEVMTransaction<Self>
type OnChargeTransaction: OnChargeEVMTransaction<Self>
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
type FindAuthor: FindAuthor<H160>
type FindAuthor: FindAuthor<H160>
Find author for the current block.