restapi

package
v0.0.0-...-b6e5bca Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDestAddr

func GetDestAddr(t *testing.T, testClient libgoal.Client, addresses []string, someAddress string, wh []byte) (toAddress string)

GetDestAddr returns an address that is not someAddress

func GetMaxBalAddr

func GetMaxBalAddr(t *testing.T, testClient libgoal.Client, addresses []string) (someBal uint64, someAddress string)

GetMaxBalAddr returns the address with the highest balance

func RandomString

func RandomString(len int) string

RandomString helper generates a random string snippet credit to many places, one such place is https://medium.com/@kpbird/golang-generate-fixed-size-random-string-dd6dbd5e63c0

func WaitForRoundOne

func WaitForRoundOne(t *testing.T, testClient libgoal.Client)

WaitForRoundOne waits for round 1

func WaitForTransaction

func WaitForTransaction(t *testing.T, testClient libgoal.Client, txID string, timeout time.Duration) (tx v2.PreEncodedTxInfo, err error)

WaitForTransaction waits for a transaction to be confirmed

Types

This section is empty.

Jump to

Keyboard shortcuts

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