relationships

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 {
	SaveRelationship(relationship types.Relationship) error
	DeleteRelationship(relationship types.Relationship) error
	DeleteAllRelationships(height int64, subspaceID uint64) error
	SaveUserBlock(block types.Blockage) error
	DeleteBlockage(block types.Blockage) error
	DeleteAllUserBlocks(height int64, subspaceID uint64) error
}

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module represents the x/profiles module handler

func NewModule

func NewModule(profilesModule ProfilesModule, grpcConnection *grpc.ClientConn, cdc codec.Codec, db Database) *Module

NewModule allows to build a new Module instance

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(_ 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) RefreshRelationshipsData

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

RefreshRelationshipsData refreshes all the relationships data for the given subspace

func (*Module) RefreshUserBlocksData

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

RefreshUserBlocksData refreshes all the user blocks data for the given subspace

type ProfilesModule

type ProfilesModule interface {
	UpdateProfiles(height int64, addresses []string) error
}

Jump to

Keyboard shortcuts

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