Versions in this module Expand all Collapse all v2 v2.1.0 Mar 7, 2024 v2.0.0 Feb 2, 2024 Changes in this version + type Config struct + FirebaseCredentialsFilePath string + PersistHistory bool + func ParseConfig(bz []byte) (*Config, error) + type Database interface + GetUserTokens func(userAddress string) ([]types.NotificationToken, error) + SaveNotification func(recipient types.NotificationRecipient, notification types.NotificationData) error + SaveToken func(token types.NotificationToken) error + type Module struct + func NewModule(junoCfg config.Config, postsModule PostsModule, ...) *Module + func (m *Module) BuildMessage(recipient types.NotificationRecipient, config types.NotificationData) (types.NotificationMessage, 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) HandleTx(tx *juno.Tx) error + func (m *Module) Name() string + func (m *Module) SendAndStoreNotification(recipient types.NotificationRecipient, notification types.NotificationData) error + func (m *Module) SendPostNotifications(height int64, subspaceID uint64, postID uint64) error + func (m *Module) SendReactionNotifications(reaction types.Reaction) error + func (m *Module) SendRelationshipNotifications(relationship types.Relationship) error + func (m *Module) SendTransactionNotifications(tx *juno.Tx, user string) error + func (m *Module) WithMessagesBuilder(builder notificationsbuilder.MessagesBuilder) *Module + func (m *Module) WithNotificationSender(sender notificationssender.NotificationSender) *Module + func (m *Module) WithNotificationsBuilder(builder notificationsbuilder.NotificationsBuilder) *Module + type PostsModule interface + GetPost func(height int64, subspaceID uint64, postID uint64) (types.Post, error) + type ProfilesModule interface + GetUserProfile func(userAddress string) (*types.Profile, error) + type ReactionsModule interface + GetReaction func(height int64, subspaceID uint64, postID uint64, reactionID uint32) (types.Reaction, error) + GetReactionID func(tx *juno.Tx, index int) (uint32, error) Other modules containing this package github.com/desmos-labs/athena