testutil

package
v1.20.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const AnvilDefaultPrivateKey = "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"

AnvilDefaultPrivateKey is the default private key for tests that need a funded account.

Variables

This section is empty.

Functions

func LocalArtifacts

func LocalArtifacts(t *testing.T) (*artifacts.Locator, foundry.StatDirFs)

func NeedsSuperchainConfigUpgrade

func NeedsSuperchainConfigUpgrade(
	ctx context.Context,
	client *ethclient.Client,
	currentProxy, targetImpl common.Address,
) (bool, error)

func NewForgeClient added in v1.19.5

func NewForgeClient(t *testing.T, workdir string) *forge.Client

NewForgeClient returns a forge client hardened for devnet tests: each invocation is bounded so a stuck forge fails the test instead of hanging until the CI job timeout, and broadcasts run with --slow.

The timeout only needs to be an order of magnitude below the 90-minute job watchdog, not tight: the worst healthy forge-using test on develop finishes in under 10 seconds, but the bound also has to absorb episodic CI host contention (documented multi-second-to-minute stalls), --slow broadcasts waiting on a receipt per tx, and a cold forge binary download, all of which a too-tight value would convert into new flakes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL