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 QuerierRouter ¶
func NewQuerier ¶
func NewQuerier(queriers map[string]Querier) QuerierRouter
func (QuerierRouter) QueryCustom ¶
func (q QuerierRouter) QueryCustom(ctx sdk.Context, data json.RawMessage) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.