Versions in this module Expand all Collapse all v0 v0.0.4 Nov 25, 2021 v0.0.3 Nov 25, 2021 v0.0.2 Nov 25, 2021 v0.0.1 Nov 24, 2021 Changes in this version + const AttributeKeyAddress + const AttributeKeyHeight + const AttributeKeyJailed + const AttributeKeyMissedBlocks + const AttributeKeyPower + const AttributeKeyReason + const AttributeValueCategory + const AttributeValueDoubleSign + const AttributeValueMissingSignature + const DefaultDowntimeJailDuration + const DefaultParamspace + const DefaultSignedBlocksWindow + const EventTypeLiveness + const EventTypeSlash + const ModuleName + const QuerierRoute + const QueryParameters + const QuerySigningInfo + const QuerySigningInfos + const RouterKey + const StoreKey + var AddrPubkeyRelationKey = []byte + 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 ErrBadValidatorAddr = sdkerrors.Register(ModuleName, 2, "validator does not exist for that address") + var ErrMissingSelfDelegation = sdkerrors.Register(ModuleName, 5, "validator has no self-delegation; cannot be unjailed") + var ErrNoSigningInfoFound = sdkerrors.Register(ModuleName, 7, "no validator signing info found") + var ErrNoValidatorForAddress = sdkerrors.Register(ModuleName, 1, "address is not associated with any known validator") + var ErrSelfDelegationTooLowToUnjail = sdkerrors.Register(ModuleName, 6, ...) + var ErrValidatorJailed = sdkerrors.Register(ModuleName, 3, "validator still jailed; cannot be unjailed") + var ErrValidatorNotJailed = sdkerrors.Register(ModuleName, 4, "validator not jailed; cannot be unjailed") + var KeyDowntimeJailDuration = []byte("DowntimeJailDuration") + var KeyMinSignedPerWindow = []byte("MinSignedPerWindow") + var KeySignedBlocksWindow = []byte("SignedBlocksWindow") + var KeySlashFractionDoubleSign = []byte("SlashFractionDoubleSign") + var KeySlashFractionDowntime = []byte("SlashFractionDowntime") + var ModuleCdc *codec.Codec + var ValidatorMissedBlockBitArrayKey = []byte + var ValidatorSigningInfoKey = []byte + func GetAddrPubkeyRelationKey(address []byte) []byte + func GetValidatorMissedBlockBitArrayKey(v sdk.ConsAddress, i int64) []byte + func GetValidatorMissedBlockBitArrayPrefixKey(v sdk.ConsAddress) []byte + func GetValidatorSigningInfoAddress(key []byte) (v sdk.ConsAddress) + func GetValidatorSigningInfoKey(v sdk.ConsAddress) []byte + func ParamKeyTable() params.KeyTable + func RegisterCodec(cdc *codec.Codec) + func ValidateGenesis(data GenesisState) error + type AccountKeeper interface + GetAccount func(ctx sdk.Context, addr sdk.AccAddress) authexported.Account + IterateAccounts func(ctx sdk.Context, process func(authexported.Account) (stop bool)) + type GenesisState struct + MissedBlocks map[string][]MissedBlock + Params Params + SigningInfos map[string]ValidatorSigningInfo + func DefaultGenesisState() GenesisState + func NewGenesisState(params Params, signingInfos map[string]ValidatorSigningInfo, ...) GenesisState + type MissedBlock struct + Index int64 + Missed bool + func NewMissedBlock(index int64, missed bool) MissedBlock + type MsgUnjail struct + ValidatorAddr sdk.ValAddress + func NewMsgUnjail(validatorAddr sdk.ValAddress) 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() error + type ParamSubspace interface + Get func(ctx sdk.Context, key []byte, ptr interface{}) + GetParamSet func(ctx sdk.Context, ps params.ParamSet) + SetParamSet func(ctx sdk.Context, ps params.ParamSet) + WithKeyTable func(table params.KeyTable) params.Subspace + type Params struct + DowntimeJailDuration time.Duration + MinSignedPerWindow sdk.Dec + SignedBlocksWindow int64 + SlashFractionDoubleSign sdk.Dec + SlashFractionDowntime sdk.Dec + func DefaultParams() Params + func NewParams(signedBlocksWindow int64, minSignedPerWindow sdk.Dec, ...) Params + func (p *Params) ParamSetPairs() params.ParamSetPairs + func (p Params) String() string + type QuerySigningInfoParams struct + ConsAddress sdk.ConsAddress + func NewQuerySigningInfoParams(consAddr sdk.ConsAddress) QuerySigningInfoParams + type QuerySigningInfosParams struct + Limit int + Page int + func NewQuerySigningInfosParams(page, limit int) QuerySigningInfosParams + type StakingHooks interface + AfterValidatorBonded func(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) + AfterValidatorCreated func(ctx sdk.Context, valAddr sdk.ValAddress) + AfterValidatorRemoved func(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) + type StakingKeeper interface + Delegation func(sdk.Context, sdk.AccAddress, sdk.ValAddress) stakingexported.DelegationI + IterateValidators func(sdk.Context, ...) + Jail func(sdk.Context, sdk.ConsAddress) + MaxValidators func(sdk.Context) uint16 + Slash func(sdk.Context, sdk.ConsAddress, int64, int64, sdk.Dec) + Unjail func(sdk.Context, sdk.ConsAddress) + Validator func(sdk.Context, sdk.ValAddress) stakingexported.ValidatorI + ValidatorByConsAddr func(sdk.Context, sdk.ConsAddress) stakingexported.ValidatorI + type ValidatorSigningInfo struct + Address sdk.ConsAddress + IndexOffset int64 + JailedUntil time.Time + MissedBlocksCounter int64 + StartHeight int64 + Tombstoned bool + func NewValidatorSigningInfo(condAddr sdk.ConsAddress, startHeight, indexOffset int64, ...) ValidatorSigningInfo + func (i ValidatorSigningInfo) String() string