Skip to main content

Module config

Module config 

Source

StructsΒ§

AccountGenerator
Can create dev accounts
ForkTransactionReplay πŸ”’
One-shot source data for a transaction-hash fork replay.
NodeConfig
Configurations of the EVM node
PruneStateHistoryConfig

EnumsΒ§

ForkChoice
Fork delimiter used to specify which block or transaction to fork from.

ConstantsΒ§

BANNER πŸ”’
CHAIN_ID
Default chain id of the node
DEFAULT_GAS_LIMIT
The default gas limit for all transactions
DEFAULT_IPC_ENDPOINT
The default IPC endpoint
DEFAULT_MNEMONIC
Default mnemonic for dev accounts
DEFAULT_SLOTS_IN_AN_EPOCH
The default number of slots in an epoch used for safe/finalized block tags.
NODE_PORT
Default port the rpc will open
VERSION_MESSAGE
The short version message information for the Foundry CLI.

FunctionsΒ§

anvil_dir
Returns the path to anvil dir ~/.foundry/anvil
anvil_tmp_dir
Returns the root path to anvil’s temporary storage ~/.foundry/anvil/
derive_block_and_replay πŸ”’
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.
find_latest_fork_block πŸ”’
Finds the latest appropriate block to fork
tempo_default_base_fee πŸ”’
validate_fork_transaction_replay πŸ”’