arwen

package
v1.0.101 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatHexNumber

func FormatHexNumber(number uint64) string

FormatHexNumber -

func GetBytecode

func GetBytecode(relativePath string) ([]byte, error)

GetBytecode -

Types

type TestContext

type TestContext struct {
	T *testing.T

	Round uint64

	Owner testParticipant
	Alice testParticipant
	Bob   testParticipant
	Carol testParticipant

	ScAddress    []byte
	Accounts     *state.AccountsDB
	TxProcessor  process.TransactionProcessor
	QueryService external.SCQueryService
}

TestContext -

func SetupTestContext

func SetupTestContext(t *testing.T) TestContext

SetupTestContext -

func (*TestContext) DeploySC

func (context *TestContext) DeploySC(wasmPath string, parametersString string)

DeploySC -

func (*TestContext) ExecuteSC

func (context *TestContext) ExecuteSC(sender *testParticipant, txData string)

ExecuteSC -

func (*TestContext) QuerySCInt

func (context *TestContext) QuerySCInt(function string, args [][]byte) uint64

QuerySCInt -

Jump to

Keyboard shortcuts

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