Versions in this module Expand all Collapse all v0 v0.1.3 Nov 25, 2021 v0.1.1 Nov 25, 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 + const TypeMsgUnjail + var AddrPubkeyRelationKeyPrefix = []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, 3, "validator does not exist for that address") + var ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrMissingSelfDelegation = sdkerrors.Register(ModuleName, 6, "validator has no self-delegation; cannot be unjailed") + var ErrNoSigningInfoFound = sdkerrors.Register(ModuleName, 8, "no validator signing info found") + var ErrNoValidatorForAddress = sdkerrors.Register(ModuleName, 2, "address is not associated with any known validator") + var ErrSelfDelegationTooLowToUnjail = sdkerrors.Register(ModuleName, 7, ...) + var ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + var ErrValidatorJailed = sdkerrors.Register(ModuleName, 4, "validator still jailed; cannot be unjailed") + var ErrValidatorNotJailed = sdkerrors.Register(ModuleName, 5, "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.NewHybridCodec(amino, types.NewInterfaceRegistry()) + var ValidatorMissedBlockBitArrayKeyPrefix = []byte + var ValidatorSigningInfoKeyPrefix = []byte + func AddrPubkeyRelationKey(address []byte) []byte + func ParamKeyTable() paramtypes.KeyTable + func RegisterCodec(cdc *codec.Codec) + func ValidateGenesis(data GenesisState) error + func ValidatorMissedBlockBitArrayKey(v sdk.ConsAddress, i int64) []byte + func ValidatorMissedBlockBitArrayPrefixKey(v sdk.ConsAddress) []byte + func ValidatorSigningInfoAddress(key []byte) (v sdk.ConsAddress) + func ValidatorSigningInfoKey(v sdk.ConsAddress) []byte + type AccountKeeper interface + GetAccount func(ctx sdk.Context, addr sdk.AccAddress) auth.AccountI + IterateAccounts func(ctx sdk.Context, process func(auth.AccountI) (stop bool)) + type BankKeeper interface + GetAllBalances func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + GetBalance func(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin + LockedCoins func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + SetBalances func(ctx sdk.Context, addr sdk.AccAddress, balances sdk.Coins) error + SpendableCoins func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + 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 github_com_cosmos_cosmos_sdk_types.ValAddress + func NewMsgUnjail(validatorAddr sdk.ValAddress) MsgUnjail + func (*MsgUnjail) Descriptor() ([]byte, []int) + func (*MsgUnjail) ProtoMessage() + func (m *MsgUnjail) GetValidatorAddr() github_com_cosmos_cosmos_sdk_types.ValAddress + func (m *MsgUnjail) Marshal() (dAtA []byte, err error) + func (m *MsgUnjail) MarshalTo(dAtA []byte) (int, error) + func (m *MsgUnjail) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgUnjail) Reset() + func (m *MsgUnjail) Size() (n int) + func (m *MsgUnjail) String() string + func (m *MsgUnjail) Unmarshal(dAtA []byte) error + func (m *MsgUnjail) XXX_DiscardUnknown() + func (m *MsgUnjail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgUnjail) XXX_Merge(src proto.Message) + func (m *MsgUnjail) XXX_Size() int + func (m *MsgUnjail) XXX_Unmarshal(b []byte) error + 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 + func (this *MsgUnjail) Equal(that interface{}) bool + type ParamSubspace interface + Get func(ctx sdk.Context, key []byte, ptr interface{}) + GetParamSet func(ctx sdk.Context, ps paramtypes.ParamSet) + HasKeyTable func() bool + SetParamSet func(ctx sdk.Context, ps paramtypes.ParamSet) + WithKeyTable func(table paramtypes.KeyTable) paramtypes.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() paramtypes.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) uint32 + 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 github_com_cosmos_cosmos_sdk_types.ConsAddress + IndexOffset int64 + JailedUntil time.Time + MissedBlocksCounter int64 + StartHeight int64 + Tombstoned bool + func NewValidatorSigningInfo(condAddr sdk.ConsAddress, startHeight, indexOffset int64, ...) ValidatorSigningInfo + func UnmarshalValSigningInfo(cdc codec.Marshaler, value []byte) (signingInfo ValidatorSigningInfo, err error) + func (*ValidatorSigningInfo) Descriptor() ([]byte, []int) + func (*ValidatorSigningInfo) ProtoMessage() + func (i ValidatorSigningInfo) String() string + func (m *ValidatorSigningInfo) GetAddress() github_com_cosmos_cosmos_sdk_types.ConsAddress + func (m *ValidatorSigningInfo) GetIndexOffset() int64 + func (m *ValidatorSigningInfo) GetJailedUntil() time.Time + func (m *ValidatorSigningInfo) GetMissedBlocksCounter() int64 + func (m *ValidatorSigningInfo) GetStartHeight() int64 + func (m *ValidatorSigningInfo) GetTombstoned() bool + func (m *ValidatorSigningInfo) Marshal() (dAtA []byte, err error) + func (m *ValidatorSigningInfo) MarshalTo(dAtA []byte) (int, error) + func (m *ValidatorSigningInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ValidatorSigningInfo) Reset() + func (m *ValidatorSigningInfo) Size() (n int) + func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error + func (m *ValidatorSigningInfo) XXX_DiscardUnknown() + func (m *ValidatorSigningInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ValidatorSigningInfo) XXX_Merge(src proto.Message) + func (m *ValidatorSigningInfo) XXX_Size() int + func (m *ValidatorSigningInfo) XXX_Unmarshal(b []byte) error + func (this *ValidatorSigningInfo) Equal(that interface{}) bool