Documentation ¶
Index ¶
- type Database
- type Module
- func (m *Module) HandleGenesis(doc *tmtypes.GenesisDoc, appState map[string]json.RawMessage) error
- func (m *Module) HandleMsg(_ 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) RefreshRelationshipsData(height int64, subspaceID uint64) error
- func (m *Module) RefreshUserBlocksData(height int64, subspaceID uint64) error
- type ProfilesModule
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) HandleMsgExec ¶
func (m *Module) HandleMsgExec(index int, _ *authz.MsgExec, _ int, executedMsg sdk.Msg, tx *juno.Tx) error
HandleMsgExec implements modules.AuthzMessageModule
func (*Module) RefreshRelationshipsData ¶
RefreshRelationshipsData refreshes all the relationships data for the given subspace
type ProfilesModule ¶
Click to show internal directories.
Click to hide internal directories.