Versions in this module Expand all Collapse all v0 v0.9.3 Nov 20, 2020 v0.9.0 Oct 19, 2020 Changes in this version + func NewQuerier(k Keeper) sdk.Querier + type Keeper struct + func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, paramSpace types.ParamSubspace, ...) Keeper + func (k *Keeper) BehaviourSlashFraction(ctx sdk.Context, behaviourName string) (res sdk.Dec) + func (k *Keeper) BehaviourWindow(ctx sdk.Context, behaviourName string) (res int64) + func (k *Keeper) MaxMisbehaviourCount(ctx sdk.Context, behaviourName string) (res int64) + func (k *Keeper) SetRouter(rtr types.Router) + func (k *Keeper) SetValidatorBehaviourBitArray(ctx sdk.Context, behaviourName string, address sdk.ValAddress, index int64, ...) + func (k Keeper) GetAllEvidence(ctx sdk.Context) (evidence []exported.Evidence) + func (k Keeper) GetBehaviourParams(ctx sdk.Context, behaviourName string) (params types.BehaviourParams) + func (k Keeper) GetEvidence(ctx sdk.Context, hash tmbytes.HexBytes) (exported.Evidence, bool) + func (k Keeper) GetEvidenceHandler(evidenceRoute string) (types.Handler, error) + func (k Keeper) GetValidatorBehaviour(ctx sdk.Context, behaviourName string, address sdk.ValAddress) (validatorBehaviour types.ValidatorBehaviour) + func (k Keeper) GetValidatorBehaviourBitArray(ctx sdk.Context, behaviourName string, address sdk.ValAddress, index int64) (mis bool) + func (k Keeper) HandleBehaviour(ctx sdk.Context, behaviourKey string, validator sdk.ValAddress, height uint64, ...) + func (k Keeper) IterateEvidence(ctx sdk.Context, cb func(exported.Evidence) bool) + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) MarshalEvidence(evidenceI exported.Evidence) ([]byte, error) + func (k Keeper) MustMarshalEvidence(evidence exported.Evidence) []byte + func (k Keeper) MustUnmarshalEvidence(bz []byte) exported.Evidence + func (k Keeper) RecordMisbehaviourVoter(ctx sdk.Context) + func (k Keeper) SetBehaviourParams(ctx sdk.Context, behaviourName string, params types.BehaviourParams) + func (k Keeper) SetEvidence(ctx sdk.Context, evidence exported.Evidence) + func (k Keeper) SetValidatorBehaviour(ctx sdk.Context, behaviourName string, address sdk.ValAddress, ...) + func (k Keeper) SubmitEvidence(ctx sdk.Context, evidence exported.Evidence) sdk.Error + func (k Keeper) UnmarshalEvidence(bz []byte) (exported.Evidence, error) + func (k Keeper) Vote(ctx sdk.Context, voteID string, voter sdk.CUAddress, vote exported.Vote, ...) (bool, bool, []*exported.VoteItem) + func (k Keeper) VoteWithCustomBox(ctx sdk.Context, voteID string, voter sdk.CUAddress, vote exported.Vote, ...) (bool, bool, []*exported.VoteItem)