Expand description
Custom handler implementation for ERC20 gas payment
Re-exportsยง
use revm::context::journaled_state::account::JournaledAccountTr;๐use revm::context::Cfg;๐use revm::context_interface::result::HaltReason;๐use revm::context_interface::Block;๐use revm::context_interface::ContextTr;๐use revm::context_interface::JournalTr;๐use revm::context_interface::Transaction;๐use revm::handler::pre_execution::calculate_caller_fee;๐use revm::handler::pre_execution::validate_account_nonce_and_code_with_components;๐use revm::handler::EvmTr;๐use revm::handler::EvmTrError;๐use revm::handler::FrameResult;๐use revm::handler::FrameTr;๐use revm::handler::Handler;๐use revm::interpreter::interpreter_action::FrameInit;๐use revm::interpreter::InitialAndFloorGas;๐use revm::primitives::hardfork::SpecId;๐use revm::primitives::U256;๐use revm::state::EvmState;๐use crate::erc_address_storage;๐use crate::TOKEN;๐
Structsยง
- Erc20
Mainnet Handler - Custom handler that implements ERC20 token gas payment. Instead of paying gas in ETH, transactions pay gas using ERC20 tokens. The tokens are transferred from the transaction sender to a treasury address.