datagenerator

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCallMsg added in v0.4.0

func CreateCallMsg() *ethereum.CallMsg

CreateCallMsg Creates a dummy ethereum.CallMsg for testing

func CreateL2Tx

func CreateL2Tx() *common.L2Tx

CreateL2Tx Creates a dummy L2Tx for testing

func CreateL2TxData

func CreateL2TxData() *types.LegacyTx

CreateL2TxData Creates a dummy types.LegacyTx for testing

func RandomAddress

func RandomAddress() gethcommon.Address

func RandomBatch added in v0.8.0

func RandomBatch(block *types.Block) common.ExtBatch

RandomBatch - block is needed in order to pass the smart contract check when submitting cross chain messages.

func RandomBytes

func RandomBytes(length int) []byte

func RandomRollup

func RandomRollup(_ *types.Block) common.ExtRollup

RandomRollup - block is needed in order to pass the smart contract check when submitting cross chain messages.

func RandomUInt64 added in v0.8.0

func RandomUInt64() uint64

func RandomWallet

func RandomWallet(chainID int64) wallet.Wallet

RandomWallet returns a wallet with a random private key

Types

This section is empty.

Jump to

Keyboard shortcuts

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