Documentation
¶
Index ¶
- Constants
- func NewCoins(amount uint64, denom string) []types.Coin
- func SetupWasmer(t *testing.T, contractPath string) (*cosmwasm.Wasmer, []byte)
- func StoreCode(t *testing.T, wasmer *cosmwasm.Wasmer, contractPath string) []byte
- type Instance
- func (i *Instance) Handle(env types.Env, info types.MessageInfo, handleMsg []byte) (*types.HandleResponse, uint64, error)
- func (i *Instance) Init(env types.Env, info types.MessageInfo, initMsg []byte) (*types.InitResponse, 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 *cosmwasm.Wasmer CodeID []byte GasLimit uint64 GasMeter cosmwasm.GasMeter Store *mocks.Lookup Api *mocks.GoAPI Querier mocks.Querier }
func NewInstance ¶
func (*Instance) Handle ¶
func (i *Instance) Handle(env types.Env, info types.MessageInfo, handleMsg []byte) (*types.HandleResponse, uint64, error)
func (*Instance) Init ¶
func (i *Instance) Init(env types.Env, info types.MessageInfo, initMsg []byte) (*types.InitResponse, uint64, error)
Click to show internal directories.
Click to hide internal directories.