Documentation ¶
Index ¶
- func HandleGenesis(appState map[string]json.RawMessage, cdc codec.Marshaler, ...) error
- func HandleMsg(tx *juno.Tx, msg sdk.Msg, govClient govtypes.QueryClient, ...) error
- func UpdateProposal(id uint64, govClient govtypes.QueryClient, db *database.BigDipperDb) func()
- type Module
- func (m *Module) HandleBlock(*tmctypes.ResultBlock, []*types.Tx, *tmctypes.ResultValidators) error
- func (m *Module) HandleGenesis(_ *tmtypes.GenesisDoc, appState map[string]json.RawMessage) error
- func (m *Module) HandleMsg(_ int, msg sdk.Msg, tx *types.Tx) error
- func (m *Module) HandleTx(*types.Tx) error
- func (m *Module) Name() string
- func (m *Module) RegisterPeriodicOperations(*gocron.Scheduler) error
- func (m *Module) RunAdditionalOperations() error
- func (m *Module) RunAsyncOperations()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleGenesis ¶
func HandleGenesis( appState map[string]json.RawMessage, cdc codec.Marshaler, govClient govtypes.QueryClient, db *database.BigDipperDb, ) error
func HandleMsg ¶
func HandleMsg( tx *juno.Tx, msg sdk.Msg, govClient govtypes.QueryClient, authClient authtypes.QueryClient, bankClient banktypes.QueryClient, cdc codec.Marshaler, db *database.BigDipperDb, ) error
HandleMsg allows to handle the different messages related to the staking module
func UpdateProposal ¶
func UpdateProposal(id uint64, govClient govtypes.QueryClient, db *database.BigDipperDb) func()
UpdateProposal return a function for time.AfterFunc() to update the proposal status on a given time
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module represent x/gov module
func NewModule ¶
func NewModule(encodingConfig *params.EncodingConfig, grpcConnection *grpc.ClientConn, db *database.BigDipperDb) *Module
NewModule returns a new Module instance
func (*Module) HandleBlock ¶
func (m *Module) HandleBlock(*tmctypes.ResultBlock, []*types.Tx, *tmctypes.ResultValidators) error
HandleBlock implements modules.Module
func (*Module) HandleGenesis ¶
func (m *Module) HandleGenesis(_ *tmtypes.GenesisDoc, appState map[string]json.RawMessage) error
HandleGenesis implements modules.Module
func (*Module) RegisterPeriodicOperations ¶
RegisterPeriodicOperations implements modules.Module
func (*Module) RunAdditionalOperations ¶
RunAdditionalOperations implements modules.Module
func (*Module) RunAsyncOperations ¶
func (m *Module) RunAsyncOperations()
RunAsyncOperations implements modules.Module
Click to show internal directories.
Click to hide internal directories.