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
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.