Versions in this module Expand all Collapse all v0 v0.20.0 Jul 10, 2018 Changes in this version + type Validator struct + Address sdk.AccAddress + Power sdk.Rat + func (v Validator) GetBondHeight() int64 + func (v Validator) GetDelegatorShares() sdk.Rat + func (v Validator) GetMoniker() string + func (v Validator) GetOwner() sdk.AccAddress + func (v Validator) GetPower() sdk.Rat + func (v Validator) GetPubKey() crypto.PubKey + func (v Validator) GetRevoked() bool + func (v Validator) GetStatus() sdk.BondStatus + type ValidatorSet struct + Validators []Validator + func (vs *ValidatorSet) AddValidator(val Validator) + func (vs *ValidatorSet) IterateValidators(ctx sdk.Context, fn func(index int64, Validator sdk.Validator) bool) + func (vs *ValidatorSet) IterateValidatorsBonded(ctx sdk.Context, fn func(index int64, Validator sdk.Validator) bool) + func (vs *ValidatorSet) RemoveValidator(addr sdk.AccAddress) + func (vs *ValidatorSet) Revoke(ctx sdk.Context, pubkey crypto.PubKey) + func (vs *ValidatorSet) Slash(ctx sdk.Context, pubkey crypto.PubKey, height int64, power int64, amt sdk.Rat) + func (vs *ValidatorSet) TotalPower(ctx sdk.Context) sdk.Rat + func (vs *ValidatorSet) Unrevoke(ctx sdk.Context, pubkey crypto.PubKey) + func (vs *ValidatorSet) Validator(ctx sdk.Context, addr sdk.AccAddress) sdk.Validator