testutil

package
v1.19.6 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 19 Imported by: 0

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