mock

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ContractAccount = "XC1111111111111111@xuper"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TestHelper

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

func NewTestHelper

func NewTestHelper(cfg *contract.ContractConfig) *TestHelper

func (*TestHelper) Basedir

func (t *TestHelper) Basedir() string

func (*TestHelper) Close

func (t *TestHelper) Close()

func (*TestHelper) Commit

func (t *TestHelper) Commit(state contract.StateSandbox)

func (*TestHelper) Deploy

func (t *TestHelper) Deploy(module, lang, contractName string, bin []byte, args map[string][]byte) (*contract.Response, error)

func (*TestHelper) Invoke

func (t *TestHelper) Invoke(module, contractName, method string, args map[string][]byte) (*contract.Response, error)

func (*TestHelper) Manager

func (t *TestHelper) Manager() contract.Manager

func (*TestHelper) State

func (t *TestHelper) State() ledger.XMReader

func (*TestHelper) Upgrade

func (t *TestHelper) Upgrade(contractName string, bin []byte) error

Jump to

Keyboard shortcuts

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