Documentation
¶
Index ¶
- Constants
- func NewCoins(amount uint64, denom string) []types.Coin
- func SetupWasmer(t *testing.T, contractPath string) (*wasmvm.VM, []byte)
- func StoreCode(t *testing.T, wasmer *wasmvm.VM, contractPath string) []byte
- type Instance
- func (i *Instance) Execute(env types.Env, info types.MessageInfo, handleMsg []byte) (*types.Response, uint64, error)
- func (i *Instance) Instantiate(env types.Env, info types.MessageInfo, initMsg []byte) (*types.Response, uint64, error)
- func (i *Instance) Migrate(env types.Env, migrateMsg []byte) (*types.Response, uint64, error)
- func (i *Instance) Query(env types.Env, queryMsg []byte) ([]byte, uint64, error)
- func (i *Instance) SetQuerierBalance(addr string, balance []types.Coin)
Constants ¶
View Source
const FEATURES = "staking"
Variables ¶
This section is empty.
Functions ¶
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 (*Instance) Instantiate ¶
Click to show internal directories.
Click to hide internal directories.