Versions in this module Expand all Collapse all v0 v0.1.3 Nov 25, 2021 Changes in this version + var Addrs = []sdk.ValAddress + var InitTokens = sdk.TokensFromConsensusPower(200) + var Pks = []crypto.PubKey + func NewQuerier(k Keeper) sdk.Querier + func NewTestMsgCreateValidator(address sdk.ValAddress, pubKey crypto.PubKey, amt sdk.Int) staking.MsgCreateValidator + func NewTestMsgDelegate(delAddr sdk.AccAddress, valAddr sdk.ValAddress, delAmount sdk.Int) staking.MsgDelegate + func TestParams() types.Params + type Hooks struct + func (h Hooks) AfterDelegationModified(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress) + func (h Hooks) AfterValidatorBeginUnbonding(_ sdk.Context, _ sdk.ConsAddress, _ sdk.ValAddress) + func (h Hooks) AfterValidatorBonded(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) + func (h Hooks) AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress) + func (h Hooks) AfterValidatorRemoved(ctx sdk.Context, consAddr sdk.ConsAddress, _ sdk.ValAddress) + func (h Hooks) BeforeDelegationCreated(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress) + func (h Hooks) BeforeDelegationRemoved(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress) + func (h Hooks) BeforeDelegationSharesModified(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress) + func (h Hooks) BeforeValidatorModified(_ sdk.Context, _ sdk.ValAddress) + func (h Hooks) BeforeValidatorSlashed(_ sdk.Context, _ sdk.ValAddress, _ sdk.Dec) + type Keeper struct + func CreateTestInput(t *testing.T, defaults types.Params) (sdk.Context, bank.Keeper, staking.Keeper, params.Subspace, Keeper) + func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, sk types.StakingKeeper, ...) Keeper + func (k Keeper) AddPubkey(ctx sdk.Context, pubkey crypto.PubKey) + func (k Keeper) AfterValidatorBonded(ctx sdk.Context, address sdk.ConsAddress, _ sdk.ValAddress) + func (k Keeper) AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress) + func (k Keeper) AfterValidatorRemoved(ctx sdk.Context, address sdk.ConsAddress) + func (k Keeper) DowntimeJailDuration(ctx sdk.Context) (res time.Duration) + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) GetPubkey(ctx sdk.Context, address crypto.Address) (crypto.PubKey, error) + func (k Keeper) GetValidatorMissedBlockBitArray(ctx sdk.Context, address sdk.ConsAddress, index int64) (missed bool) + func (k Keeper) GetValidatorSigningInfo(ctx sdk.Context, address sdk.ConsAddress) (info types.ValidatorSigningInfo, found bool) + func (k Keeper) HandleValidatorSignature(ctx sdk.Context, addr crypto.Address, power int64, signed bool) + func (k Keeper) HasValidatorSigningInfo(ctx sdk.Context, consAddr sdk.ConsAddress) bool + func (k Keeper) Hooks() Hooks + func (k Keeper) IsTombstoned(ctx sdk.Context, consAddr sdk.ConsAddress) bool + func (k Keeper) IterateValidatorMissedBlockBitArray(ctx sdk.Context, address sdk.ConsAddress, ...) + func (k Keeper) IterateValidatorSigningInfos(ctx sdk.Context, ...) + func (k Keeper) Jail(ctx sdk.Context, consAddr sdk.ConsAddress) + func (k Keeper) JailUntil(ctx sdk.Context, consAddr sdk.ConsAddress, jailTime time.Time) + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) MinSignedPerWindow(ctx sdk.Context) int64 + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) SetValidatorMissedBlockBitArray(ctx sdk.Context, address sdk.ConsAddress, index int64, missed bool) + func (k Keeper) SetValidatorSigningInfo(ctx sdk.Context, address sdk.ConsAddress, info types.ValidatorSigningInfo) + func (k Keeper) SignedBlocksWindow(ctx sdk.Context) (res int64) + func (k Keeper) Slash(ctx sdk.Context, consAddr sdk.ConsAddress, fraction sdk.Dec, ...) + func (k Keeper) SlashFractionDoubleSign(ctx sdk.Context) (res sdk.Dec) + func (k Keeper) SlashFractionDowntime(ctx sdk.Context) (res sdk.Dec) + func (k Keeper) Tombstone(ctx sdk.Context, consAddr sdk.ConsAddress) + func (k Keeper) Unjail(ctx sdk.Context, validatorAddr sdk.ValAddress) error