Documentation ¶
Index ¶
- type AuthModule
- type DistrModule
- type MintModule
- type Module
- func (m *Module) HandleBlock(b *tmctypes.ResultBlock, _ *tmctypes.ResultBlockResults, _ []*juno.Tx, ...) error
- 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) Name() string
- func (m *Module) UpdateParams(height int64) error
- func (m *Module) UpdateProposal(height int64, blockVals *tmctypes.ResultValidators, id uint64) error
- type SlashingModule
- type StakingModule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthModule ¶
type DistrModule ¶
type MintModule ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module represent x/gov module
func NewModule ¶
func NewModule( source govsource.Source, authModule AuthModule, distrModule DistrModule, mintModule MintModule, slashingModule SlashingModule, stakingModule StakingModule, cdc codec.Marshaler, db *database.Db, ) *Module
NewModule returns a new Module instance
func (*Module) HandleBlock ¶
func (m *Module) HandleBlock( b *tmctypes.ResultBlock, _ *tmctypes.ResultBlockResults, _ []*juno.Tx, vals *tmctypes.ResultValidators, ) error
HandleBlock implements modules.BlockModule
func (*Module) HandleGenesis ¶
func (m *Module) HandleGenesis(doc *tmtypes.GenesisDoc, appState map[string]json.RawMessage) error
HandleGenesis implements modules.Module
func (*Module) UpdateParams ¶
UpdateParams updates the governance parameters for the given height
func (*Module) UpdateProposal ¶
type SlashingModule ¶
type StakingModule ¶
type StakingModule interface { GetStakingPool(height int64) (*types.Pool, error) GetValidatorsWithStatus(height int64, status string) ([]stakingtypes.Validator, []types.Validator, error) GetValidatorsVotingPowers(height int64, vals *tmctypes.ResultValidators) ([]types.ValidatorVotingPower, error) GetValidatorsStatuses(height int64, validators []stakingtypes.Validator) ([]types.ValidatorStatus, error) UpdateParams(height int64) error }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.