anvil

Module config

Source

Structs§

Enums§

  • Fork delimiter used to specify which block or transaction to fork from

Constants§

Functions§

  • Returns the path to anvil dir ~/.foundry/anvil
  • Returns the root path to anvil’s temporary storage ~/.foundry/anvil/
  • If the fork choice is a block number, simply return it with an empty list of transactions. If the fork choice is a transaction hash, determine the block that the transaction was mined in, and return the block number before the fork block along with all transactions in the fork block that are before (and including) the fork transaction.
  • Finds the latest appropriate block to fork