utils

package
v1.1.18 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOwnerAddr

func CheckOwnerAddr(t *testing.T, testContext *vm.VMTestContext, scAddr []byte, owner []byte)

CheckOwnerAddr -

func CleanAccumulatedIntermediateTransactions

func CleanAccumulatedIntermediateTransactions(t *testing.T, testContext *vm.VMTestContext)

CleanAccumulatedIntermediateTransactions -

func DoDeploy

func DoDeploy(t *testing.T, testContext *vm.VMTestContext, pathToContract string) (scAddr []byte, owner []byte)

DoDeploy -

func PrepareRelayerTxData

func PrepareRelayerTxData(innerTx *transaction.Transaction) []byte

PrepareRelayerTxData -

func ProcessSCRResult

func ProcessSCRResult(
	t *testing.T,
	testContext *vm.VMTestContext,
	tx data.TransactionHandler,
	expectedCode vmcommon.ReturnCode,
	expectedErr error,
)

ProcessSCRResult -

func TestAccount

func TestAccount(
	t *testing.T,
	accnts state.AccountsAdapter,
	senderAddressBytes []byte,
	expectedNonce uint64,
	expectedBalance *big.Int,
) *big.Int

TestAccount -

Types

This section is empty.

Jump to

Keyboard shortcuts

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