Documentation
¶
Index ¶
- func RandomL2Block(rng *rand.Rand, txCount int, t time.Time) (*types.Block, []*types.Receipt)
- func RandomL2BlockWithChainId(rng *rand.Rand, txCount int, chainId *big.Int) *types.Block
- func RandomL2BlockWithChainIdAndTime(rng *rand.Rand, txCount int, chainId *big.Int, t time.Time) *types.Block
- func RandomSingularBatch(rng *rand.Rand, txCount int, chainID *big.Int) *derive.SingularBatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomL2Block ¶
RandomL2Block returns a random block whose first transaction is a random pre-Ecotone upgrade L1 Info Deposit transaction.
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.