systest

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FEATURES = "staking"
)

Variables

This section is empty.

Functions

func NewCoins

func NewCoins(amount uint64, denom string) []types.Coin

TODO: move this into wasmvm at some point

Types

type Instance

type Instance struct {
	Wasmer   *wasmvm.VM
	CodeID   []byte
	GasLimit uint64
	GasMeter wasmvm.GasMeter
	Store    *mocks.Lookup
	Api      *mocks.GoAPI
	Querier  mocks.Querier
}

func NewInstance

func NewInstance(t *testing.T, contractPath string, gasLimit uint64, funds []types.Coin) Instance

func (*Instance) Execute

func (i *Instance) Execute(env types.Env, info types.MessageInfo, handleMsg json.Marshaler) (*types.Response, uint64, error)

func (*Instance) Instantiate

func (i *Instance) Instantiate(env types.Env, info types.MessageInfo, initMsg json.Marshaler) (*types.Response, uint64, error)

func (*Instance) Migrate added in v0.3.0

func (i *Instance) Migrate(env types.Env, migrateMsg json.Marshaler) (*types.Response, uint64, error)

func (*Instance) Query

func (i *Instance) Query(env types.Env, queryMsg json.Marshaler) ([]byte, uint64, error)

func (*Instance) SetQuerierBalance

func (i *Instance) SetQuerierBalance(addr string, balance []types.Coin)

Jump to

Keyboard shortcuts

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