test

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT, MIT Imports: 11 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

This section is empty.

Variables

This section is empty.

Functions

func RandomL2Block

func RandomL2Block(rng *rand.Rand, txCount int, t time.Time) (*types.Block, []*types.Receipt)

RandomL2Block returns a random block whose first transaction is a random pre-Ecotone upgrade L1 Info Deposit transaction.

func RandomL2BlockWithChainId

func RandomL2BlockWithChainId(rng *rand.Rand, txCount int, chainId *big.Int) *types.Block

func RandomL2BlockWithChainIdAndTime

func RandomL2BlockWithChainIdAndTime(rng *rand.Rand, txCount int, chainId *big.Int, t time.Time) *types.Block

func RandomSingularBatch added in v1.19.10

func RandomSingularBatch(rng *rand.Rand, txCount int, chainID *big.Int) *derive.SingularBatch

RandomSingularBatch returns a batch of randomly generated transactions, all signed for chainID.

It lives here rather than in derive itself so that derive's production build stays clear of op-service/testutils, whose closure reaches op-service/apis and the libp2p stack. derive's own tests use an equivalent helper in batch_test_utils_test.go, which cannot be shared with this package without an import cycle.

Types

This section is empty.

Jump to

Keyboard shortcuts

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