test

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT, MIT Imports: 10 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 RandomL2Payload added in v1.21.0

func RandomL2Payload(rng *rand.Rand, txCount int, chainID *big.Int, timestamp uint64) *eth.ExecutionPayload

RandomL2Payload returns a random L2 execution payload with the given timestamp. Its first transaction is a random pre-Ecotone upgrade L1 Info Deposit transaction, followed by txCount random user transactions signed for chainID. BlockHash commits to the payload, so a caller that changes a header field must recompute it.

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