Trait darwinia_evm::pallet::Config
source · [−]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
type FeeCalculator: FeeCalculator
type FeeCalculator: FeeCalculator
Calculator for current gas price.
Maps Ethereum gas to Substrate weight.
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 CallOrigin: EnsureAddressOrigin<Self::Origin>
type CallOrigin: EnsureAddressOrigin<Self::Origin>
Allow the origin to call on behalf of given address.
type IntoAccountId: DeriveSubstrateAddress<Self::AccountId>
type IntoAccountId: DeriveSubstrateAddress<Self::AccountId>
Convert from H160 to account id.
Block number to block hash.
type FindAuthor: FindAuthor<H160>
type FindAuthor: FindAuthor<H160>
Find author for the current block.
type RingBalanceAdapter: CurrencyAdapt<Self>
type RingBalanceAdapter: CurrencyAdapt<Self>
RING balance adapter for decimal convert
type KtonBalanceAdapter: CurrencyAdapt<Self>
type KtonBalanceAdapter: CurrencyAdapt<Self>
KTON balance adapter for decimal convert
type PrecompilesType: PrecompileSet
type PrecompilesType: PrecompileSet
Precompiles associated with this EVM engine.
type PrecompilesValue: Get<Self::PrecompilesType>
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