systest

package
v0.0.0-...-aa68697 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 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) IBCChannelClose

func (i *Instance) IBCChannelClose(env types.Env, closeMsg types.IBCChannelCloseMsg) (*types.IBCBasicResponse, uint64, error)

func (*Instance) IBCChannelConnect

func (i *Instance) IBCChannelConnect(env types.Env, connectMsg types.IBCChannelConnectMsg) (*types.IBCBasicResponse, uint64, error)

func (*Instance) IBCChannelOpen

func (i *Instance) IBCChannelOpen(env types.Env, openMsg types.IBCChannelOpenMsg) (uint64, error)

func (*Instance) IBCPacketAck

func (i *Instance) IBCPacketAck(env types.Env, ackMsg types.IBCPacketAckMsg) (*types.IBCBasicResponse, uint64, error)

func (*Instance) IBCPacketReceive

func (i *Instance) IBCPacketReceive(env types.Env, receiveMsg types.IBCPacketReceiveMsg) (*types.IBCReceiveResult, uint64, error)

func (*Instance) IBCPacketTimeout

func (i *Instance) IBCPacketTimeout(env types.Env, timeoutMsg types.IBCPacketTimeoutMsg) (*types.IBCBasicResponse, 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

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) Reply

func (i *Instance) Reply(env types.Env, replyMsg types.Reply) (*types.Response, uint64, error)

func (*Instance) SetQuerierBalance

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

func (*Instance) Sudo

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

Jump to

Keyboard shortcuts

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