libtest

package
v0.0.0-...-2ac5be2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultEthDerivationPath = "m/44'/60'/0'/0/0"
View Source
const (
	DefaultTimeout = 5
)

Variables

View Source
var (
	ErrNoMessages = fmt.Errorf("No message after waiting %d seconds!", DefaultTimeout)
)

Functions

func AssertNotZero

func AssertNotZero(t *testing.T, num misc.BigInt, msg ...interface{})

func RandomAddress

func RandomAddress() typesEth.Address

func RandomGethAddress

func RandomGethAddress() ethCommon.Address

func RandomHash

func RandomHash() typesEth.Hash

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func LogMessages

func LogMessages(topic string) Logger

func (*Logger) GetMessage

func (r *Logger) GetMessage(into interface{}) error

type Wallet

type Wallet struct {
	// contains filtered or unexported fields
}

func NewWalletFromSeed

func NewWalletFromSeed(seed string) Wallet

func (*Wallet) Next

func (w *Wallet) Next() accounts.Account

func (*Wallet) PrivateKey

func (w *Wallet) PrivateKey(account accounts.Account) (*ecdsa.PrivateKey, error)

Jump to

Keyboard shortcuts

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