Documentation ¶
Index ¶
- type Database
- type Module
- 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) RefreshReasonsData(height int64, subspaceID uint64) error
- func (m *Module) RefreshReportsData(height int64, subspaceID uint64) error
- func (m *Module) RegisterPeriodicOperations(scheduler *gocron.Scheduler) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { SaveReport(report types.Report) error DeleteReport(height int64, subspaceID uint64, reportID uint64) error DeleteAllReports(height int64, subspaceID uint64) error SaveReason(reason types.Reason) error DeleteReason(height int64, subspaceID uint64, reasonID uint32) error DeleteAllReasons(height int64, subspaceID uint64) error SaveReportsParams(params types.ReportsParams) 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) 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) RefreshReasonsData ¶
RefreshReasonsData refreshes all the reasons data for the given subspace
func (*Module) RefreshReportsData ¶
RefreshReportsData refreshes all the reports data for the given subspace
Click to show internal directories.
Click to hide internal directories.