Skip to main content

Module utils

Module utils 

Functions§

apply_chain_and_block_specific_env_changes
Depending on the configured chain id and block number this should apply any specific changes
block_env_from_header
Constructs a [BlockEnv] from a block header.
cold_path
Hints to the compiler that this is a cold path, i.e. unlikely to be taken.
get_blob_base_fee_update_fraction
Derive the blob base fee update fraction based on the chain and timestamp by checking the hardfork.
get_blob_base_fee_update_fraction_by_spec_id
Returns the blob base fee update fraction based on the spec id.
get_blob_params
Derives the active [BlobParams] based on the given timestamp.
get_function
Given an ABI and selector, it tries to find the respective function.

Type Aliases§

StateChangeset
EVM State is a mapping from addresses to accounts.