cosmwasm

package
v6.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 11 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 {
	Profiles      *json.RawMessage `json:"profiles"`
	Subspaces     *json.RawMessage `json:"subspaces"`
	Relationships *json.RawMessage `json:"relationships"`
	Posts         *json.RawMessage `json:"posts"`
	Reports       *json.RawMessage `json:"reports"`
	Reactions     *json.RawMessage `json:"reactions"`
}

type CustomQuery

type CustomQuery struct {
	Profiles      *json.RawMessage `json:"profiles"`
	Subspaces     *json.RawMessage `json:"subspaces"`
	Relationships *json.RawMessage `json:"relationships"`
	Posts         *json.RawMessage `json:"posts"`
	Reports       *json.RawMessage `json:"reports"`
	Reactions     *json.RawMessage `json:"reactions"`
}

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