Documentation ¶
Index ¶
- type Database
- type Module
- func (m *Module) GetReaction(height int64, subspaceID uint64, postID uint64, reactionID uint32) (types.Reaction, error)
- func (m *Module) GetReactionID(tx *juno.Tx, index int) (uint32, error)
- func (m *Module) HandleGenesis(doc *tmtypes.GenesisDoc, appState map[string]json.RawMessage) error
- func (m *Module) HandleMsg(index int, msg sdk.Msg, tx *juno.Tx) error
- func (m *Module) HandleMsgExec(index int, _ *authz.MsgExec, _ int, executedMsg sdk.Msg, tx *juno.Tx) error
- func (m *Module) Name() string
- func (m *Module) RefreshParamsData(height int64, subspaceID uint64) error
- func (m *Module) RefreshReactionsData(height int64, subspaceID uint64, postID uint64) error
- func (m *Module) RefreshRegisteredReactionsData(height int64, subspaceID uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { HasPost(height int64, subspaceID uint64, postID uint64) (bool, error) SaveReaction(reaction types.Reaction) error DeleteReaction(height int64, subspaceID uint64, postID uint64, reactionID uint32) error DeleteAllReactions(height int64, subspaceID uint64, postID uint64) error SaveRegisteredReaction(reaction types.RegisteredReaction) error DeleteRegisteredReaction(height int64, subspaceID uint64, reactionID uint32) error DeleteAllRegisteredReactions(height int64, subspaceID uint64) error SaveReactionParams(params types.ReactionParams) error }
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module represents the x/fees module handler
func NewModule ¶
func NewModule(node node.Node, grpcConnection *grpc.ClientConn, cdc codec.Codec, db Database) *Module
NewModule allows to build a new Module instance
func (*Module) GetReaction ¶
func (*Module) GetReactionID ¶
func (*Module) HandleGenesis ¶
func (m *Module) HandleGenesis(doc *tmtypes.GenesisDoc, appState map[string]json.RawMessage) error
HandleGenesis implements modules.GenesisModule
func (*Module) HandleMsgExec ¶
func (m *Module) HandleMsgExec(index int, _ *authz.MsgExec, _ int, executedMsg sdk.Msg, tx *juno.Tx) error
HandleMsgExec implements modules.AuthzMessageModule
func (*Module) RefreshParamsData ¶
RefreshParamsData refreshes the reactions params for the given subspace
func (*Module) RefreshReactionsData ¶
RefreshReactionsData refreshes the reactions data for the given post
Click to show internal directories.
Click to hide internal directories.