utilities

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssetBalanceCheck

func AssetBalanceCheck(t *testing.T, expected, actualGo, actualScala int64, args ...interface{})

func ErrorMessageCheck

func ErrorMessageCheck(t *testing.T, expectedErrGo, expectedErrScala string, actualErrGo,
	actualErrScala error, args ...interface{})

func ExistenceTxInfoCheck

func ExistenceTxInfoCheck(t *testing.T, errGo, errScala error, args ...interface{})

func GetAccount

func GetAccount(suite *f.BaseSuite, i int) config.AccountInfo

func GetAssetBalance

func GetAssetBalance(suite *f.BaseSuite, address proto.WavesAddress, id []byte) (int64, int64)

func GetAssetBalanceGo

func GetAssetBalanceGo(suite *f.BaseSuite, address proto.WavesAddress, id []byte) int64

func GetAssetBalanceScala

func GetAssetBalanceScala(suite *f.BaseSuite, address proto.WavesAddress, id []byte) int64

func GetAvailableBalanceInWaves

func GetAvailableBalanceInWaves(suite *f.BaseSuite, address proto.WavesAddress) (int64, int64)

func GetAvailableBalanceInWavesGo

func GetAvailableBalanceInWavesGo(suite *f.BaseSuite, address proto.WavesAddress) int64

func GetAvailableBalanceInWavesScala

func GetAvailableBalanceInWavesScala(suite *f.BaseSuite, address proto.WavesAddress) int64

func GetCurrentTimestampInMs

func GetCurrentTimestampInMs() uint64

func GetTxIdsInBlockchain

func GetTxIdsInBlockchain(suite *f.BaseSuite, ids map[string]*crypto.Digest,
	timeout, tick time.Duration) map[string]string

func RandStringBytes

func RandStringBytes(n int) string

func SendAndWaitTransaction

func SendAndWaitTransaction(suite *f.BaseSuite, tx proto.Transaction, scheme proto.Scheme,
	timeout time.Duration) (error, error)

func StatusCodesCheck

func StatusCodesCheck(t *testing.T, b BroadcastedTransaction, goCode, scalaCode int, args ...interface{})

func WavesDiffBalanceCheck

func WavesDiffBalanceCheck(t *testing.T, expected, actualGo, actualScala int64, args ...interface{})

Types

type BroadcastedTransaction

type BroadcastedTransaction struct {
	TxID             crypto.Digest
	ResponseGo       *client.Response
	ErrorBrdCstGo    error
	ResponseScala    *client.Response
	ErrorBrdCstScala error
}

func BroadcastAndWaitTransaction

func BroadcastAndWaitTransaction(suite *f.BaseSuite, tx proto.Transaction, scheme proto.Scheme, timeout time.Duration) (
	BroadcastedTransaction, error, error)

func NewBroadcastedTransaction

func NewBroadcastedTransaction(txId crypto.Digest, responseGo *client.Response, errBrdCstGo error,
	responseScala *client.Response, errBrdCstScala error) *BroadcastedTransaction

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳