wasm

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgParser added in v1.2.0

type MsgParser struct{}

MsgParser - wasm msg parser for staking msgs

func NewWasmMsgParser

func NewWasmMsgParser() MsgParser

NewWasmMsgParser returns staking wasm msg parser

func (MsgParser) Parse added in v1.2.0

func (parser MsgParser) Parse(contractAddr sdk.AccAddress, wasmMsg wasmvmtypes.CosmosMsg) (msgs sdk.Msg, err error)

Parse implements wasm staking msg parser

func (MsgParser) ParseCustom added in v1.2.0

func (parser MsgParser) ParseCustom(contractAddr sdk.AccAddress, data json.RawMessage) (sdk.Msg, error)

ParseCustom implements custom parser

type Querier added in v1.2.0

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

Querier - staking query interface for wasm contract

func NewWasmQuerier

func NewWasmQuerier(stakingKeeper stakingkeeper.Keeper, distrKeeper distrkeeper.Keeper) Querier

NewWasmQuerier returns staking wasm querier

func (Querier) Query added in v1.2.0

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

Query - implement query function

func (Querier) QueryCustom added in v1.2.0

func (Querier) 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