Expand description
Execution utilities for ERC20 gas payment transactions
Re-exportsยง
use crate::handler::Erc20MainnetHandler;๐use revm::context_interface::result::EVMError;๐use revm::context_interface::result::ExecutionResult;๐use revm::context_interface::result::HaltReason;๐use revm::context_interface::result::InvalidTransaction;๐use revm::context_interface::ContextTr;๐use revm::context_interface::JournalTr;๐use revm::database_interface::DatabaseCommit;๐use revm::handler::instructions::InstructionProvider;๐use revm::handler::ContextTrDbError;๐use revm::handler::EthFrame;๐use revm::handler::EvmTr;๐use revm::handler::Handler;๐use revm::handler::PrecompileProvider;๐use revm::interpreter::interpreter::EthInterpreter;๐use revm::interpreter::InterpreterResult;๐use revm::state::EvmState;๐
Functionsยง
- transact_
erc20evm - Executes a transaction using ERC20 tokens for gas payment. Returns the execution result and the finalized state changes. This function does not commit the state to the database.
- transact_
erc20evm_ commit - Executes a transaction using ERC20 tokens for gas payment and commits the state. This is a convenience function that runs the transaction and immediately commits the resulting state changes to the database.
Type Aliasesยง
- Erc20
Error ๐