Documentation ¶
Index ¶
- func HandleBlock(height int64, blockVals *tmctypes.ResultValidators, ...) error
- func HandleGenesis(appState map[string]json.RawMessage, cdc codec.Marshaler, db *database.Db) error
- func HandleMsg(tx *juno.Tx, index int, msg sdk.Msg, govClient govtypes.QueryClient, ...) error
- type Module
- func (m *Module) HandleBlock(b *tmctypes.ResultBlock, _ []*types.Tx, vals *tmctypes.ResultValidators) error
- func (m *Module) HandleGenesis(_ *tmtypes.GenesisDoc, appState map[string]json.RawMessage) error
- func (m *Module) HandleMsg(index int, msg sdk.Msg, tx *types.Tx) error
- func (m *Module) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleBlock ¶
func HandleBlock( height int64, blockVals *tmctypes.ResultValidators, govClient govtypes.QueryClient, bankClient banktypes.QueryClient, stakingClient stakingtypes.QueryClient, cdc codec.Marshaler, db *database.Db, ) error
HandleBlock handles a new block by updating any eventually open proposal's status and tally result
func HandleGenesis ¶
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module represent x/gov module
func NewModule ¶
func NewModule( bankClient banktypes.QueryClient, govClient govtypes.QueryClient, stakingClient stakingtypes.QueryClient, encodingConfig *params.EncodingConfig, db *database.Db, ) *Module
NewModule returns a new Module instance
func (*Module) HandleBlock ¶
func (m *Module) HandleBlock(b *tmctypes.ResultBlock, _ []*types.Tx, vals *tmctypes.ResultValidators) error
HandleBlock implements modules.BlockModule
func (*Module) HandleGenesis ¶
func (m *Module) HandleGenesis(_ *tmtypes.GenesisDoc, appState map[string]json.RawMessage) error
HandleGenesis implements modules.Module
Click to show internal directories.
Click to hide internal directories.