foundry_evm_core

Module backend

Source
Expand description

Foundry’s main executor backend abstraction and implementation.

Modules§

Structs§

Enums§

Constants§

Traits§

  • An extension trait that allows us to easily extend the revm::Inspector capabilities

Functions§

  • Applies the changeset of a transaction to the active journaled state and also commits it in the forked db
  • Executes the given transaction and commits state changes to the database and the journaled state, with an inspector.
  • Returns true of the address is a contract
  • Clones the data of the given accounts from the active database into the fork_db This includes the data held in storage (CacheDB) and kept in the JournaledState.
  • Clones the account data from the active db into the ForkDB
  • Clones the account data from the active_journaled_state into the fork_journaled_state
  • This updates the currently used env with the fork’s environment
  • update_env_block πŸ”’
    Updates the env’s block with the block’s data
  • Helper method which updates data in the state with the data from the database. Does not change state for persistent accounts (for roll fork to transaction and transact).

Type Aliases§