reports

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 18 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 {
	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) 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) RefreshReasonsData

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

RefreshReasonsData refreshes all the reasons data for the given subspace

func (*Module) RefreshReportsData

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

RefreshReportsData refreshes all the reports data for the given subspace

func (*Module) RegisterPeriodicOperations

func (m *Module) RegisterPeriodicOperations(scheduler *gocron.Scheduler) error

RegisterPeriodicOperations implements modules.PeriodicOperationsModule

Jump to

Keyboard shortcuts

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