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 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.