datagenerator

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCallMsg

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

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 RandomPrivateKey added in v0.24.0

func RandomPrivateKey() *ecdsa.PrivateKey

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

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