Versions in this module Expand all Collapse all v0 v0.0.5 Jul 24, 2021 v0.0.4 Jul 4, 2021 v0.0.3 Jul 3, 2021 v0.0.2 Jul 3, 2021 v0.0.1 Jul 3, 2021 Changes in this version + const AttributeKeyAddress + const AttributeKeyHeight + const AttributeKeyJailed + const AttributeKeyMissedBlocks + const AttributeKeyPower + const AttributeKeyProposer + const AttributeKeyReason + const AttributeKeySlashInfoBytes + const AttributeKeySlashedAmount + const AttributeKeyValID + const AttributeValueCategory + const AttributeValueDoubleSign + const AttributeValueMissingSignature + const DefaultDowntimeJailDuration + const DefaultParamspace + const DefaultSignedBlocksWindow + const EventTypeLiveness + const EventTypeSlash + const EventTypeSlashLimit + const EventTypeTickAck + const EventTypeTickConfirm + const EventTypeUnjail + const ModuleName + const QuerierRoute + const QueryParameters + const QuerySigningInfo + const QuerySigningInfos + const QuerySlashingInfo + const QuerySlashingInfoBytes + const QuerySlashingInfos + const QuerySlashingSequence + const QueryTickCount + const QueryTickSlashingInfos + const RouteEquivocation + const RouterKey + const StoreKey + const TypeEquivocation + var AddrPubkeyRelationKey = []byte + var BufferValSlashingInfoKey = []byte + var DefaultEnableSlashing = false + var DefaultJailFractionLimit = sdk.NewDec(1).Quo(sdk.NewDec(3)) + var DefaultMaxEvidenceAge = 60 * 2 * time.Second + var DefaultMinSignedPerWindow = sdk.NewDecWithPrec(5, 1) + var DefaultSlashFractionDoubleSign = sdk.NewDec(1).Quo(sdk.NewDec(20)) + var DefaultSlashFractionDowntime = sdk.NewDec(1).Quo(sdk.NewDec(100)) + var DefaultSlashFractionLimit = sdk.NewDec(1).Quo(sdk.NewDec(3)) + var DefaultValue = []byte + var KeyDowntimeJailDuration = []byte("DowntimeJailDuration") + var KeyEnableSlashing = []byte("EnableSlashing") + var KeyJailFractionLimit = []byte("JailFractionLimit") + var KeyMaxEvidenceAge = []byte("MaxEvidenceAge") + var KeyMinSignedPerWindow = []byte("MinSignedPerWindow") + var KeySignedBlocksWindow = []byte("SignedBlocksWindow") + var KeySlashFractionDoubleSign = []byte("SlashFractionDoubleSign") + var KeySlashFractionDowntime = []byte("SlashFractionDowntime") + var KeySlashFractionLimit = []byte("SlashFractionLimit") + var ModuleCdc *codec.Codec + var SlashingSequenceKey = []byte + var TickCountKey = []byte + var TickValSlashingInfoKey = []byte + var TotalSlashedAmountKey = []byte + var ValidatorMissedBlockBitArrayKey = []byte + var ValidatorSigningInfoKey = []byte + func GetBufferValSlashingInfoKey(id []byte) []byte + func GetSlashingSequenceKey(sequence string) []byte + func GetTickValSlashingInfoKey(id []byte) []byte + func GetValidatorMissedBlockBitArrayKey(valID []byte, i int64) []byte + func GetValidatorMissedBlockBitArrayPrefixKey(valID []byte) []byte + func GetValidatorSigningInfoKey(valID []byte) []byte + func ParamKeyTable() subspace.KeyTable + func RLPDecodeSlashInfos(encodedSlashInfo []byte) ([]*hmTypes.ValidatorSlashingInfo, error) + func RegisterCodec(cdc *codec.Codec) + func SetGenesisStateToAppState(appState map[string]json.RawMessage, ...) (map[string]json.RawMessage, error) + func SortAndRLPEncodeSlashInfos(slashingInfos []*hmTypes.ValidatorSlashingInfo) ([]byte, error) + func ValidateGenesis(data GenesisState) error + type Equivocation struct + ConsensusAddress []byte + Height int64 + Power int64 + Time time.Time + func (e Equivocation) GetConsensusAddress() sdk.ConsAddress + func (e Equivocation) GetHeight() int64 + func (e Equivocation) GetTime() time.Time + func (e Equivocation) GetTotalPower() int64 + func (e Equivocation) GetValidatorPower() int64 + func (e Equivocation) Hash() []byte + func (e Equivocation) Route() string + func (e Equivocation) String() string + func (e Equivocation) Type() string + func (e Equivocation) ValidateBasic() error + type Evidence interface + GetConsensusAddress func() sdk.ConsAddress + GetHeight func() int64 + GetTotalPower func() int64 + GetValidatorPower func() int64 + Hash func() []byte + Route func() string + String func() string + Type func() string + ValidateBasic func() error + func ConvertDuplicateVoteEvidence(dupVote abci.Evidence) Evidence + type GenesisState struct + BufferValSlashingInfo []*hmTypes.ValidatorSlashingInfo + MissedBlocks map[string][]MissedBlock + Params Params + SigningInfos map[string]hmTypes.ValidatorSigningInfo + TickCount uint64 + TickValSlashingInfo []*hmTypes.ValidatorSlashingInfo + func DefaultGenesisState() GenesisState + func GetGenesisStateFromAppState(appState map[string]json.RawMessage) GenesisState + func NewGenesisState(params Params, signingInfos map[string]hmTypes.ValidatorSigningInfo, ...) GenesisState + type MissedBlock struct + Index int64 + Missed bool + func NewMissedBlock(index int64, missed bool) MissedBlock + type ModifiedSlashInfo struct + ID hmTypes.ValidatorID + IsJailed []byte + SlashedAmount *big.Int + type MsgSubmitEvidence interface + GetEvidence func() Evidence + GetSubmitter func() sdk.AccAddress + type MsgTick struct + ID uint64 + Proposer types.HeimdallAddress + SlashingInfoBytes types.HexBytes + func NewMsgTick(id uint64, proposer types.HeimdallAddress, slashingInfoBytes types.HexBytes) MsgTick + func (msg MsgTick) GetSideSignBytes() []byte + func (msg MsgTick) GetSignBytes() []byte + func (msg MsgTick) GetSigners() []sdk.AccAddress + func (msg MsgTick) Route() string + func (msg MsgTick) Type() string + func (msg MsgTick) ValidateBasic() sdk.Error + type MsgTickAck struct + BlockNumber uint64 + From types.HeimdallAddress + ID uint64 + LogIndex uint64 + SlashedAmount uint64 + TxHash types.HeimdallHash + func NewMsgTickAck(from types.HeimdallAddress, id uint64, slashedAmount uint64, ...) MsgTickAck + func (msg MsgTickAck) GetLogIndex() uint64 + func (msg MsgTickAck) GetSideSignBytes() []byte + func (msg MsgTickAck) GetSignBytes() []byte + func (msg MsgTickAck) GetSigners() []sdk.AccAddress + func (msg MsgTickAck) GetTxHash() types.HeimdallHash + func (msg MsgTickAck) Route() string + func (msg MsgTickAck) Type() string + func (msg MsgTickAck) ValidateBasic() sdk.Error + type MsgUnjail struct + BlockNumber uint64 + From types.HeimdallAddress + ID hmTypes.ValidatorID + LogIndex uint64 + TxHash types.HeimdallHash + func NewMsgUnjail(from types.HeimdallAddress, id uint64, txHash types.HeimdallHash, ...) MsgUnjail + func (msg MsgUnjail) GetSignBytes() []byte + func (msg MsgUnjail) GetSigners() []sdk.AccAddress + func (msg MsgUnjail) Route() string + func (msg MsgUnjail) Type() string + func (msg MsgUnjail) ValidateBasic() sdk.Error + type Params struct + DowntimeJailDuration time.Duration + EnableSlashing bool + JailFractionLimit sdk.Dec + MaxEvidenceAge time.Duration + MinSignedPerWindow sdk.Dec + SignedBlocksWindow int64 + SlashFractionDoubleSign sdk.Dec + SlashFractionDowntime sdk.Dec + SlashFractionLimit sdk.Dec + func DefaultParams() Params + func NewParams(signedBlocksWindow int64, minSignedPerWindow sdk.Dec, ...) Params + func (p *Params) ParamSetPairs() subspace.ParamSetPairs + func (p Params) String() string + type QuerySigningInfoParams struct + ValidatorID hmTypes.ValidatorID + func NewQuerySigningInfoParams(valID hmTypes.ValidatorID) QuerySigningInfoParams + type QuerySigningInfosParams struct + Limit int + Page int + func NewQuerySigningInfosParams(page, limit int) QuerySigningInfosParams + type QuerySlashingInfoParams struct + ValidatorID hmTypes.ValidatorID + func NewQuerySlashingInfoParams(valID hmTypes.ValidatorID) QuerySlashingInfoParams + type QuerySlashingInfosParams struct + Limit int + Page int + func NewQuerySlashingInfosParams(page, limit int) QuerySlashingInfosParams + type QuerySlashingSequenceParams struct + LogIndex uint64 + TxHash string + func NewQuerySlashingSequenceParams(txHash string, logIndex uint64) QuerySlashingSequenceParams + type QueryTickSlashingInfosParams struct + Limit int + Page int + func NewQueryTickSlashingInfosParams(page, limit int) QueryTickSlashingInfosParams