mock

package
v0.0.0-...-b124b1e Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContractAccount      = "XC1111111111111111@xuper"
	ContractAccount2     = "XC2222222222222222@xuper"
	FeaturesContractName = "features"
)

Variables

This section is empty.

Functions

func GetMockContractConfig

func GetMockContractConfig() *base.ContractConfig

Types

type TestHelper

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

func NewTestHelper

func NewTestHelper(cfg *contractBase.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 contractBase.StateSandbox)

func (*TestHelper) Deploy

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

func (*TestHelper) Invoke

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

func (*TestHelper) Manager

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

func (*TestHelper) State

func (t *TestHelper) State() *sandbox.MemXModel

func (*TestHelper) UTXOState

func (t *TestHelper) UTXOState() *contractBase.UTXORWSet

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