wasm

package
v0.4.2-rc0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WasmMsgParser

type WasmMsgParser struct{}

WasmMsgParser - wasm msg parser for staking msgs

func NewWasmMsgParser

func NewWasmMsgParser() WasmMsgParser

NewWasmMsgParser returns staking wasm msg parser

func (WasmMsgParser) Parse

func (parser WasmMsgParser) Parse(contractAddr sdk.AccAddress, wasmMsg wasmTypes.CosmosMsg) (msgs []sdk.Msg, err error)

Parse implements wasm staking msg parser

func (WasmMsgParser) ParseCustom

func (parser WasmMsgParser) ParseCustom(contractAddr sdk.AccAddress, data json.RawMessage) ([]sdk.Msg, error)

ParseCustom implements custom parser

type WasmQuerier

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

WasmQuerier - staking query interface for wasm contract

func NewWasmQuerier

func NewWasmQuerier(keeper staking.Keeper) WasmQuerier

NewWasmQuerier returns staking wasm querier

func (WasmQuerier) Query

func (querier WasmQuerier) Query(ctx sdk.Context, request wasmTypes.QueryRequest) ([]byte, error)

Query - implement query function

func (WasmQuerier) QueryCustom

func (WasmQuerier) QueryCustom(ctx sdk.Context, data json.RawMessage) ([]byte, error)

QueryCustom implements custom query interface

Jump to

Keyboard shortcuts

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