Skip to main content

Crate reth_e2e_test_utils

Crate reth_e2e_test_utils 

Source
Expand description

Utilities for end-to-end tests.

Modules§

node
Wrapper type to create test nodes
receipt
Helpers for awaiting the receipts of transactions sent through alloy providers.
setup_import
Helper for setting up nodes with pre-imported chain data Setup utilities for importing RLP chain data before starting nodes.
test_rlp_utils
Utilities for creating and writing RLP test data Utilities for creating and writing RLP test data
testsuite
Utilities for running e2e tests against a node or a network of nodes.
transaction
Helper for transaction operations
trie
Helpers for verifying the persisted state and trie representation Helpers for verifying the persisted state and trie representation of test nodes.
wait
Helpers for waiting on conditions of test nodes.
wallet
Helper type to yield accounts from mnemonic

Structs§

E2ETestSetupBuilder
Builder for configuring and launching test node setups.

Traits§

E2ETestSetupExt
Extension trait to create an E2ETestSetupBuilder from a node type.
NodeBuilderHelper
Helper trait to simplify the bounds of nodes launched by E2ETestSetupBuilder.

Functions§

eth_payload_attributes
Creates Ethereum [PayloadAttributes] that are valid for the hardforks active in chain_spec at timestamp.
test_chain_spec
Returns the test chain spec with every hardfork up to and including fork active at genesis.
test_chain_spec_builder
Returns a ChainSpecBuilder for the mainnet chain id with the test_genesis and no hardforks activated.
test_genesis
Returns the genesis of the test chain.

Type Aliases§

Adapter
Type alias for a NodeAdapter
NodeHelperType
Type alias for a type of NodeHelper
TmpDB
Testing database