reactions

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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 (m *Module) GetReaction(height int64, subspaceID uint64, postID uint64, reactionID uint32) (types.Reaction, error)

func (*Module) GetReactionID

func (m *Module) GetReactionID(tx *juno.Tx, index int) (uint32, error)

func (*Module) HandleGenesis

func (m *Module) HandleGenesis(doc *tmtypes.GenesisDoc, appState map[string]json.RawMessage) error

HandleGenesis implements modules.GenesisModule

func (*Module) HandleMsg

func (m *Module) HandleMsg(index int, msg sdk.Msg, tx *juno.Tx) error

HandleMsg implements modules.MessageModule

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) Name

func (m *Module) Name() string

Name implements modules.Module

func (*Module) RefreshParamsData

func (m *Module) RefreshParamsData(height int64, subspaceID uint64) error

RefreshParamsData refreshes the reactions params for the given subspace

func (*Module) RefreshReactionsData

func (m *Module) RefreshReactionsData(height int64, subspaceID uint64, postID uint64) error

RefreshReactionsData refreshes the reactions data for the given post

func (*Module) RefreshRegisteredReactionsData

func (m *Module) RefreshRegisteredReactionsData(height int64, subspaceID uint64) error

RefreshRegisteredReactionsData refreshes the registered reactions data for the given subspace

Jump to

Keyboard shortcuts

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