cosmwasm

package
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WasmMsgParserRouteProfiles      = profilestypes.ModuleName
	WasmMsgParserRouteSubspaces     = subspacestypes.ModuleName
	WasmMsgParserRouteRelationships = relationshipstypes.ModuleName
	WasmMsgParserRoutePosts         = poststypes.ModuleName
	WasmMsgParserRouteReports       = reportstypes.ModuleName
	WasmMsgParserRouteReactions     = reactionstypes.ModuleName
)
View Source
const (
	QueryRouteProfiles      = profiletypes.ModuleName
	QueryRouteSubspaces     = subspacestypes.ModuleName
	QueryRouteRelationships = relationshipstypes.ModuleName
	QueryRoutePosts         = poststypes.ModuleName
	QueryRouteReports       = reportstypes.ModuleName
	QueryRouteReactions     = reactionstypes.ModuleName
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomMsg

type CustomMsg struct {
	Route   string          `json:"route"`
	MsgData json.RawMessage `json:"msg_data"`
}

type CustomQuery

type CustomQuery struct {
	Route     string          `json:"route"`
	QueryData json.RawMessage `json:"query_data"`
}

type MsgParserInterface

type MsgParserInterface interface {
	ParseCustomMsgs(contractAddr sdk.AccAddress, data json.RawMessage) ([]sdk.Msg, error)
}

type ParserRouter

type ParserRouter struct {
	Parsers map[string]MsgParserInterface
}

func NewParserRouter

func NewParserRouter() ParserRouter

func (ParserRouter) ParseCustom

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

type Querier

type Querier interface {
	QueryCustom(ctx sdk.Context, data json.RawMessage) ([]byte, error)
}

type QuerierRouter

type QuerierRouter struct {
	Queriers map[string]Querier
}

func NewQuerier

func NewQuerier(queriers map[string]Querier) QuerierRouter

func (QuerierRouter) QueryCustom

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

Jump to

Keyboard shortcuts

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