Versions in this module Expand all Collapse all v0 v0.1.1 May 14, 2023 Changes in this version + const AttributeKeyEvidenceHash + const AttributeValueCategory + const BaseEvidenceError + const DefaultMaxEvidenceAge + const DefaultParamspace + const EventTypeSubmitEvidence + const ModuleName + const QuerierRoute + const QueryAllEvidence + const QueryEvidence + const QueryParameters + const RouteEquivocation + const RouterKey + const StoreKey + const TestEvidenceRouteEquivocation + const TestEvidenceTypeEquivocation + const TypeEquivocation + const TypeMsgSubmitEvidence + var DoubleSignJailEndTime = time.Unix(253402300799, 0) + var ErrEvidenceExists = sdkerrors.Register(ModuleName, BaseEvidenceError + 4, "evidence already exists") + var ErrInvalidEvidence = sdkerrors.Register(ModuleName, BaseEvidenceError + 2, "invalid evidence") + var ErrNoEvidenceExists = sdkerrors.Register(ModuleName, BaseEvidenceError + 3, "evidence does not exist") + var ErrNoEvidenceHandlerExists = sdkerrors.Register(ModuleName, BaseEvidenceError + 1, "unregistered handler for evidence type") + var KeyMaxEvidenceAge = []byte("MaxEvidenceAge") + var KeyPrefixEvidence = []byte + var ModuleCdc = codec.New() + var TestingCdc = codec.New() + func ConvertDuplicateVoteEvidence(dupVote abci.Evidence) exported.Evidence + func ParamKeyTable() params.KeyTable + func RegisterCodec(cdc *codec.Codec) + func RegisterEvidenceTypeCodec(o interface{}, name string) + type Equivocation struct + ConsensusAddress sdk.ConsAddress + 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() tmbytes.HexBytes + func (e Equivocation) Route() string + func (e Equivocation) String() string + func (e Equivocation) Type() string + func (e Equivocation) ValidateBasic() error + type GenesisState struct + Evidence []exported.Evidence + Params Params + func DefaultGenesisState() GenesisState + func NewGenesisState(p Params, e []exported.Evidence) GenesisState + func (gs GenesisState) Validate() error + type Handler func(sdk.Context, exported.Evidence) error + func TestEquivocationHandler(k interface{}) Handler + type MsgSubmitEvidence struct + Evidence exported.Evidence + Submitter sdk.AccAddress + func NewMsgSubmitEvidence(e exported.Evidence, s sdk.AccAddress) MsgSubmitEvidence + func (m MsgSubmitEvidence) GetSignBytes() []byte + func (m MsgSubmitEvidence) GetSigners() []sdk.AccAddress + func (m MsgSubmitEvidence) Route() string + func (m MsgSubmitEvidence) Type() string + func (m MsgSubmitEvidence) ValidateBasic() error + type Params struct + MaxEvidenceAge time.Duration + func DefaultParams() Params + func (p *Params) ParamSetPairs() params.ParamSetPairs + func (p Params) String() string + type QueryAllEvidenceParams struct + Limit int + Page int + func NewQueryAllEvidenceParams(page, limit int) QueryAllEvidenceParams + type QueryEvidenceParams struct + EvidenceHash string + func NewQueryEvidenceParams(hash string) QueryEvidenceParams + type Router interface + AddRoute func(r string, h Handler) Router + GetRoute func(path string) Handler + HasRoute func(r string) bool + Seal func() + Sealed func() bool + func NewRouter() Router + type SlashingKeeper interface + GetPubkey func(sdk.Context, crypto.Address) (crypto.PubKey, error) + HasValidatorSigningInfo func(sdk.Context, sdk.ConsAddress) bool + IsTombstoned func(sdk.Context, sdk.ConsAddress) bool + Jail func(sdk.Context, sdk.ConsAddress) + JailUntil func(sdk.Context, sdk.ConsAddress, time.Time) + Slash func(sdk.Context, sdk.ConsAddress, sdk.Dec, int64, int64) + SlashFractionDoubleSign func(sdk.Context) sdk.Dec + Tombstone func(sdk.Context, sdk.ConsAddress) + type StakingKeeper interface + AppendAbandonedValidatorAddrs func(ctx sdk.Context, ConsAddr sdk.ConsAddress) + ValidatorByConsAddr func(sdk.Context, sdk.ConsAddress) stakingexported.ValidatorI + type TestCanonicalVote struct + ChainID string + Height int64 + Round int64 + Timestamp time.Time + type TestEquivocationEvidence struct + Power int64 + PubKey crypto.PubKey + TotalPower int64 + VoteA TestVote + VoteB TestVote + func (e TestEquivocationEvidence) GetConsensusAddress() sdk.ConsAddress + func (e TestEquivocationEvidence) GetHeight() int64 + func (e TestEquivocationEvidence) GetTotalPower() int64 + func (e TestEquivocationEvidence) GetValidatorPower() int64 + func (e TestEquivocationEvidence) Hash() tmbytes.HexBytes + func (e TestEquivocationEvidence) Route() string + func (e TestEquivocationEvidence) String() string + func (e TestEquivocationEvidence) Type() string + func (e TestEquivocationEvidence) ValidateBasic() error + type TestVote struct + Height int64 + Round int64 + Signature []byte + Timestamp time.Time + ValidatorAddress tmbytes.HexBytes + func (v TestVote) SignBytes(chainID string) []byte