wasm

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 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 bank wasm msg parser

func (WasmMsgParser) Parse

func (WasmMsgParser) Parse(contractAddr sdk.AccAddress, wasmMsg wasmvmtypes.CosmosMsg) (sdk.Msg, error)

Parse implements wasm staking msg parser

func (WasmMsgParser) ParseCustom

func (WasmMsgParser) ParseCustom(_ sdk.AccAddress, _ 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 keeper.Keeper) WasmQuerier

NewWasmQuerier return bank wasm query interface

func (WasmQuerier) Query

func (querier WasmQuerier) Query(ctx sdk.Context, request wasmvmtypes.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