Versions in this module Expand all Collapse all v1 v1.0.0 Dec 18, 2019 Changes in this version + const AttributeKeyCommissionRate + const AttributeKeyCompletionTime + const AttributeKeyDelegator + const AttributeKeyDstValidator + const AttributeKeyMinSelfDelegation + const AttributeKeySrcValidator + const AttributeKeyValidator + const AttributeValueCategory + const BondedPoolName + const DefaultMaxEntries + const DefaultMaxValidators + const DefaultUnbondingTime + const DoNotModifyDesc + const EventTypeCompleteRedelegation + const EventTypeCompleteUnbonding + const EventTypeCreateValidator + const EventTypeDelegate + const EventTypeEditValidator + const EventTypeRedelegate + const EventTypeUnbond + const MaxDetailsLength + const MaxIdentityLength + const MaxMonikerLength + const MaxWebsiteLength + const ModuleName + const NotBondedPoolName + const QuerierRoute + const QueryDelegation + const QueryDelegatorDelegations + const QueryDelegatorUnbondingDelegations + const QueryDelegatorValidator + const QueryDelegatorValidators + const QueryParameters + const QueryPool + const QueryRedelegations + const QueryUnbondingDelegation + const QueryValidator + const QueryValidatorDelegations + const QueryValidatorRedelegations + const QueryValidatorUnbondingDelegations + const QueryValidators + const RouterKey + const StoreKey + const TStoreKey + var DelegationKey = []byte + var KeyBondDenom = []byte("BondDenom") + var KeyMaxEntries = []byte("KeyMaxEntries") + var KeyMaxValidators = []byte("MaxValidators") + var KeyUnbondingTime = []byte("UnbondingTime") + var LastTotalPowerKey = []byte + var LastValidatorPowerKey = []byte + var ModuleCdc *codec.Codec + var RedelegationByValDstIndexKey = []byte + var RedelegationByValSrcIndexKey = []byte + var RedelegationKey = []byte + var RedelegationQueueKey = []byte + var UnbondingDelegationByValIndexKey = []byte + var UnbondingDelegationKey = []byte + var UnbondingQueueKey = []byte + var ValidatorQueueKey = []byte + var ValidatorsByConsAddrKey = []byte + var ValidatorsByPowerIndexKey = []byte + var ValidatorsKey = []byte + func AddressFromLastValidatorPowerKey(key []byte) []byte + func ErrBadDelegationAddr(codespace sdk.CodespaceType) sdk.Error + func ErrBadDelegationAmount(codespace sdk.CodespaceType) sdk.Error + func ErrBadDelegatorAddr(codespace sdk.CodespaceType) sdk.Error + func ErrBadDenom(codespace sdk.CodespaceType) sdk.Error + func ErrBadRedelegationAddr(codespace sdk.CodespaceType) sdk.Error + func ErrBadRedelegationDst(codespace sdk.CodespaceType) sdk.Error + func ErrBadRemoveValidator(codespace sdk.CodespaceType) sdk.Error + func ErrBadSharesAmount(codespace sdk.CodespaceType) sdk.Error + func ErrBadSharesPercent(codespace sdk.CodespaceType) sdk.Error + func ErrBadValidatorAddr(codespace sdk.CodespaceType) sdk.Error + func ErrBothShareMsgsGiven(codespace sdk.CodespaceType) sdk.Error + func ErrCommissionChangeRateGTMaxRate(codespace sdk.CodespaceType) sdk.Error + func ErrCommissionChangeRateNegative(codespace sdk.CodespaceType) sdk.Error + func ErrCommissionGTMaxChangeRate(codespace sdk.CodespaceType) sdk.Error + func ErrCommissionGTMaxRate(codespace sdk.CodespaceType) sdk.Error + func ErrCommissionHuge(codespace sdk.CodespaceType) sdk.Error + func ErrCommissionNegative(codespace sdk.CodespaceType) sdk.Error + func ErrCommissionUpdateTime(codespace sdk.CodespaceType) sdk.Error + func ErrDelegationValidatorEmpty(codespace sdk.CodespaceType) sdk.Error + func ErrDelegatorShareExRateInvalid(codespace sdk.CodespaceType) sdk.Error + func ErrDescriptionLength(codespace sdk.CodespaceType, descriptor string, got, max int) sdk.Error + func ErrInsufficientShares(codespace sdk.CodespaceType) sdk.Error + func ErrMaxRedelegationEntries(codespace sdk.CodespaceType) sdk.Error + func ErrMaxUnbondingDelegationEntries(codespace sdk.CodespaceType) sdk.Error + func ErrMinSelfDelegationDecreased(codespace sdk.CodespaceType) sdk.Error + func ErrMinSelfDelegationInvalid(codespace sdk.CodespaceType) sdk.Error + func ErrMissingSignature(codespace sdk.CodespaceType) sdk.Error + func ErrNeitherShareMsgsGiven(codespace sdk.CodespaceType) sdk.Error + func ErrNilDelegatorAddr(codespace sdk.CodespaceType) sdk.Error + func ErrNilValidatorAddr(codespace sdk.CodespaceType) sdk.Error + func ErrNoDelegation(codespace sdk.CodespaceType) sdk.Error + func ErrNoDelegatorForAddress(codespace sdk.CodespaceType) sdk.Error + func ErrNoRedelegation(codespace sdk.CodespaceType) sdk.Error + func ErrNoUnbondingDelegation(codespace sdk.CodespaceType) sdk.Error + func ErrNoValidatorFound(codespace sdk.CodespaceType) sdk.Error + func ErrNotEnoughDelegationShares(codespace sdk.CodespaceType, shares string) sdk.Error + func ErrNotMature(codespace sdk.CodespaceType, operation, descriptor string, got, min time.Time) sdk.Error + func ErrSelfDelegationBelowMinimum(codespace sdk.CodespaceType) sdk.Error + func ErrSelfRedelegation(codespace sdk.CodespaceType) sdk.Error + func ErrTransitiveRedelegation(codespace sdk.CodespaceType) sdk.Error + func ErrValidatorJailed(codespace sdk.CodespaceType) sdk.Error + func ErrValidatorOwnerExists(codespace sdk.CodespaceType) sdk.Error + func ErrValidatorPubKeyExists(codespace sdk.CodespaceType) sdk.Error + func ErrValidatorPubKeyTypeNotSupported(codespace sdk.CodespaceType, keyType string, supportedTypes []string) sdk.Error + func ErrVerySmallRedelegation(codespace sdk.CodespaceType) sdk.Error + func GetDelegationKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte + func GetDelegationsKey(delAddr sdk.AccAddress) []byte + func GetLastValidatorPowerKey(operator sdk.ValAddress) []byte + func GetREDByValDstIndexKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte + func GetREDByValSrcIndexKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte + func GetREDKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte + func GetREDKeyFromValDstIndexKey(indexKey []byte) []byte + func GetREDKeyFromValSrcIndexKey(indexKey []byte) []byte + func GetREDsByDelToValDstIndexKey(delAddr sdk.AccAddress, valDstAddr sdk.ValAddress) []byte + func GetREDsFromValSrcIndexKey(valSrcAddr sdk.ValAddress) []byte + func GetREDsKey(delAddr sdk.AccAddress) []byte + func GetREDsToValDstIndexKey(valDstAddr sdk.ValAddress) []byte + func GetRedelegationTimeKey(timestamp time.Time) []byte + func GetUBDByValIndexKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte + func GetUBDKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte + func GetUBDKeyFromValIndexKey(IndexKey []byte) []byte + func GetUBDsByValIndexKey(valAddr sdk.ValAddress) []byte + func GetUBDsKey(delAddr sdk.AccAddress) []byte + func GetUnbondingDelegationTimeKey(timestamp time.Time) []byte + func GetValidatorByConsAddrKey(addr sdk.ConsAddress) []byte + func GetValidatorKey(operatorAddr sdk.ValAddress) []byte + func GetValidatorQueueTimeKey(timestamp time.Time) []byte + func GetValidatorsByPowerIndexKey(validator Validator) []byte + func MustMarshalDelegation(cdc *codec.Codec, delegation Delegation) []byte + func MustMarshalRED(cdc *codec.Codec, red Redelegation) []byte + func MustMarshalUBD(cdc *codec.Codec, ubd UnbondingDelegation) []byte + func MustMarshalValidator(cdc *codec.Codec, validator Validator) []byte + func ParseValidatorPowerRankKey(key []byte) (operAddr []byte) + func RegisterCodec(cdc *codec.Codec) + type AccountKeeper interface + IterateAccounts func(ctx sdk.Context, process func(authexported.Account) (stop bool)) + type CodeType = sdk.CodeType + const CodeInternal + const CodeInvalidAddress + const CodeInvalidDelegation + const CodeInvalidInput + const CodeInvalidValidator + const CodeUnauthorized + const CodeUnknownRequest + const CodeValidatorJailed + const DefaultCodespace + type Commission struct + UpdateTime time.Time + func NewCommission(rate, maxRate, maxChangeRate sdk.Dec) Commission + func NewCommissionWithTime(rate, maxRate, maxChangeRate sdk.Dec, updatedAt time.Time) Commission + func (c Commission) Equal(c2 Commission) bool + func (c Commission) String() string + func (c Commission) ValidateNewRate(newRate sdk.Dec, blockTime time.Time) sdk.Error + type CommissionRates struct + MaxChangeRate sdk.Dec + MaxRate sdk.Dec + Rate sdk.Dec + func NewCommissionRates(rate, maxRate, maxChangeRate sdk.Dec) CommissionRates + func (c CommissionRates) Validate() sdk.Error + type DVPair struct + DelegatorAddress sdk.AccAddress + ValidatorAddress sdk.ValAddress + type DVVTriplet struct + DelegatorAddress sdk.AccAddress + ValidatorDstAddress sdk.ValAddress + ValidatorSrcAddress sdk.ValAddress + type Delegation struct + DelegatorAddress sdk.AccAddress + Shares sdk.Dec + ValidatorAddress sdk.ValAddress + func MustUnmarshalDelegation(cdc *codec.Codec, value []byte) Delegation + func NewDelegation(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, shares sdk.Dec) Delegation + func UnmarshalDelegation(cdc *codec.Codec, value []byte) (delegation Delegation, err error) + func (d Delegation) Equal(d2 Delegation) bool + func (d Delegation) GetDelegatorAddr() sdk.AccAddress + func (d Delegation) GetShares() sdk.Dec + func (d Delegation) GetValidatorAddr() sdk.ValAddress + func (d Delegation) String() string + type DelegationResponse struct + Balance sdk.Int + func NewDelegationResp(d sdk.AccAddress, v sdk.ValAddress, s sdk.Dec, b sdk.Int) DelegationResponse + func (d *DelegationResponse) UnmarshalJSON(bz []byte) error + func (d DelegationResponse) MarshalJSON() ([]byte, error) + func (d DelegationResponse) String() string + type DelegationResponses []DelegationResponse + func (d DelegationResponses) String() (out string) + type DelegationSet interface + GetValidatorSet func() ValidatorSet + IterateDelegations func(ctx sdk.Context, delegator sdk.AccAddress, ...) + type Delegations []Delegation + func (d Delegations) String() (out string) + type Description struct + Details string + Identity string + Moniker string + Website string + func NewDescription(moniker, identity, website, details string) Description + func (d Description) EnsureLength() (Description, sdk.Error) + func (d Description) UpdateDescription(d2 Description) (Description, sdk.Error) + type DistributionKeeper interface + GetFeePoolCommunityCoins func(ctx sdk.Context) sdk.DecCoins + GetValidatorOutstandingRewardsCoins func(ctx sdk.Context, val sdk.ValAddress) sdk.DecCoins + type GenesisState struct + Delegations Delegations + Exported bool + LastTotalPower sdk.Int + LastValidatorPowers []LastValidatorPower + Params Params + Redelegations []Redelegation + UnbondingDelegations []UnbondingDelegation + Validators Validators + func DefaultGenesisState() GenesisState + func NewGenesisState(params Params, validators []Validator, delegations []Delegation) GenesisState + type LastValidatorPower struct + Address sdk.ValAddress + Power int64 + type MsgBeginRedelegate struct + Amount sdk.Coin + DelegatorAddress sdk.AccAddress + ValidatorDstAddress sdk.ValAddress + ValidatorSrcAddress sdk.ValAddress + func NewMsgBeginRedelegate(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress, amount sdk.Coin) MsgBeginRedelegate + func (msg MsgBeginRedelegate) GetSignBytes() []byte + func (msg MsgBeginRedelegate) GetSigners() []sdk.AccAddress + func (msg MsgBeginRedelegate) Route() string + func (msg MsgBeginRedelegate) Type() string + func (msg MsgBeginRedelegate) ValidateBasic() sdk.Error + type MsgCreateValidator struct + Commission CommissionRates + DelegatorAddress sdk.AccAddress + Description Description + MinSelfDelegation sdk.Int + PubKey crypto.PubKey + ValidatorAddress sdk.ValAddress + Value sdk.Coin + func NewMsgCreateValidator(valAddr sdk.ValAddress, pubKey crypto.PubKey, selfDelegation sdk.Coin, ...) MsgCreateValidator + func (msg *MsgCreateValidator) UnmarshalJSON(bz []byte) error + func (msg MsgCreateValidator) GetSignBytes() []byte + func (msg MsgCreateValidator) GetSigners() []sdk.AccAddress + func (msg MsgCreateValidator) MarshalJSON() ([]byte, error) + func (msg MsgCreateValidator) Route() string + func (msg MsgCreateValidator) Type() string + func (msg MsgCreateValidator) ValidateBasic() sdk.Error + type MsgDelegate struct + Amount sdk.Coin + DelegatorAddress sdk.AccAddress + ValidatorAddress sdk.ValAddress + func NewMsgDelegate(delAddr sdk.AccAddress, valAddr sdk.ValAddress, amount sdk.Coin) MsgDelegate + func (msg MsgDelegate) GetSignBytes() []byte + func (msg MsgDelegate) GetSigners() []sdk.AccAddress + func (msg MsgDelegate) Route() string + func (msg MsgDelegate) Type() string + func (msg MsgDelegate) ValidateBasic() sdk.Error + type MsgEditValidator struct + CommissionRate *sdk.Dec + MinSelfDelegation *sdk.Int + ValidatorAddress sdk.ValAddress + func NewMsgEditValidator(valAddr sdk.ValAddress, description Description, newRate *sdk.Dec, ...) MsgEditValidator + func (msg MsgEditValidator) GetSignBytes() []byte + func (msg MsgEditValidator) GetSigners() []sdk.AccAddress + func (msg MsgEditValidator) Route() string + func (msg MsgEditValidator) Type() string + func (msg MsgEditValidator) ValidateBasic() sdk.Error + type MsgUndelegate struct + Amount sdk.Coin + DelegatorAddress sdk.AccAddress + ValidatorAddress sdk.ValAddress + func NewMsgUndelegate(delAddr sdk.AccAddress, valAddr sdk.ValAddress, amount sdk.Coin) MsgUndelegate + func (msg MsgUndelegate) GetSignBytes() []byte + func (msg MsgUndelegate) GetSigners() []sdk.AccAddress + func (msg MsgUndelegate) Route() string + func (msg MsgUndelegate) Type() string + func (msg MsgUndelegate) ValidateBasic() sdk.Error + type MultiStakingHooks []StakingHooks + func NewMultiStakingHooks(hooks ...StakingHooks) MultiStakingHooks + func (h MultiStakingHooks) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) + func (h MultiStakingHooks) AfterValidatorBeginUnbonding(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) + func (h MultiStakingHooks) AfterValidatorBonded(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) + func (h MultiStakingHooks) AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress) + func (h MultiStakingHooks) AfterValidatorRemoved(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) + func (h MultiStakingHooks) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) + func (h MultiStakingHooks) BeforeDelegationRemoved(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) + func (h MultiStakingHooks) BeforeDelegationSharesModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) + func (h MultiStakingHooks) BeforeValidatorModified(ctx sdk.Context, valAddr sdk.ValAddress) + func (h MultiStakingHooks) BeforeValidatorSlashed(ctx sdk.Context, valAddr sdk.ValAddress, fraction sdk.Dec) + type Params struct + BondDenom string + MaxEntries uint16 + MaxValidators uint16 + UnbondingTime time.Duration + func DefaultParams() Params + func MustUnmarshalParams(cdc *codec.Codec, value []byte) Params + func NewParams(unbondingTime time.Duration, maxValidators, maxEntries uint16, ...) Params + func UnmarshalParams(cdc *codec.Codec, value []byte) (params Params, err error) + func (p *Params) ParamSetPairs() params.ParamSetPairs + func (p Params) Equal(p2 Params) bool + func (p Params) String() string + func (p Params) Validate() error + type Pool struct + BondedTokens sdk.Int + NotBondedTokens sdk.Int + func NewPool(notBonded, bonded sdk.Int) Pool + func (p Pool) String() string + type QueryBondsParams struct + DelegatorAddr sdk.AccAddress + ValidatorAddr sdk.ValAddress + func NewQueryBondsParams(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress) QueryBondsParams + type QueryDelegatorParams struct + DelegatorAddr sdk.AccAddress + func NewQueryDelegatorParams(delegatorAddr sdk.AccAddress) QueryDelegatorParams + type QueryRedelegationParams struct + DelegatorAddr sdk.AccAddress + DstValidatorAddr sdk.ValAddress + SrcValidatorAddr sdk.ValAddress + func NewQueryRedelegationParams(delegatorAddr sdk.AccAddress, ...) QueryRedelegationParams + type QueryValidatorParams struct + ValidatorAddr sdk.ValAddress + func NewQueryValidatorParams(validatorAddr sdk.ValAddress) QueryValidatorParams + type QueryValidatorsParams struct + Limit int + Page int + Status string + func NewQueryValidatorsParams(page, limit int, status string) QueryValidatorsParams + type Redelegation struct + DelegatorAddress sdk.AccAddress + Entries []RedelegationEntry + ValidatorDstAddress sdk.ValAddress + ValidatorSrcAddress sdk.ValAddress + func MustUnmarshalRED(cdc *codec.Codec, value []byte) Redelegation + func NewRedelegation(delegatorAddr sdk.AccAddress, ...) Redelegation + func UnmarshalRED(cdc *codec.Codec, value []byte) (red Redelegation, err error) + func (d *Redelegation) AddEntry(creationHeight int64, minTime time.Time, balance sdk.Int, sharesDst sdk.Dec) + func (d *Redelegation) RemoveEntry(i int64) + func (d Redelegation) Equal(d2 Redelegation) bool + func (d Redelegation) String() string + type RedelegationEntry struct + CompletionTime time.Time + CreationHeight int64 + InitialBalance sdk.Int + SharesDst sdk.Dec + func NewRedelegationEntry(creationHeight int64, completionTime time.Time, balance sdk.Int, ...) RedelegationEntry + func (e RedelegationEntry) IsMature(currentTime time.Time) bool + type RedelegationEntryResponse struct + Balance sdk.Int + func NewRedelegationEntryResponse(ch int64, ct time.Time, s sdk.Dec, ib, b sdk.Int) RedelegationEntryResponse + type RedelegationResponse struct + Entries []RedelegationEntryResponse + func NewRedelegationResponse(d sdk.AccAddress, vSrc, vDst sdk.ValAddress, ...) RedelegationResponse + func (r *RedelegationResponse) UnmarshalJSON(bz []byte) error + func (r RedelegationResponse) MarshalJSON() ([]byte, error) + func (r RedelegationResponse) String() string + type RedelegationResponses []RedelegationResponse + func (r RedelegationResponses) String() (out string) + type Redelegations []Redelegation + func (d Redelegations) String() (out string) + type StakingHooks interface + AfterDelegationModified func(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) + AfterValidatorBeginUnbonding func(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) + 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) + BeforeDelegationCreated func(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) + BeforeDelegationRemoved func(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) + BeforeDelegationSharesModified func(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) + BeforeValidatorModified func(ctx sdk.Context, valAddr sdk.ValAddress) + BeforeValidatorSlashed func(ctx sdk.Context, valAddr sdk.ValAddress, fraction sdk.Dec) + type SupplyKeeper interface + BurnCoins func(ctx sdk.Context, name string, amt sdk.Coins) sdk.Error + DelegateCoinsFromAccountToModule func(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) sdk.Error + GetModuleAccount func(ctx sdk.Context, moduleName string) supplyexported.ModuleAccountI + GetModuleAddress func(name string) sdk.AccAddress + GetSupply func(ctx sdk.Context) supplyexported.SupplyI + SendCoinsFromModuleToModule func(ctx sdk.Context, senderPool, recipientPool string, amt sdk.Coins) sdk.Error + SetModuleAccount func(sdk.Context, supplyexported.ModuleAccountI) + UndelegateCoinsFromModuleToAccount func(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) sdk.Error + type UnbondingDelegation struct + DelegatorAddress sdk.AccAddress + Entries []UnbondingDelegationEntry + ValidatorAddress sdk.ValAddress + func MustUnmarshalUBD(cdc *codec.Codec, value []byte) UnbondingDelegation + func NewUnbondingDelegation(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, ...) UnbondingDelegation + func UnmarshalUBD(cdc *codec.Codec, value []byte) (ubd UnbondingDelegation, err error) + func (d *UnbondingDelegation) AddEntry(creationHeight int64, minTime time.Time, balance sdk.Int) + func (d *UnbondingDelegation) RemoveEntry(i int64) + func (d UnbondingDelegation) Equal(d2 UnbondingDelegation) bool + func (d UnbondingDelegation) String() string + type UnbondingDelegationEntry struct + Balance sdk.Int + CompletionTime time.Time + CreationHeight int64 + InitialBalance sdk.Int + func NewUnbondingDelegationEntry(creationHeight int64, completionTime time.Time, balance sdk.Int) UnbondingDelegationEntry + func (e UnbondingDelegationEntry) IsMature(currentTime time.Time) bool + type UnbondingDelegations []UnbondingDelegation + func (ubds UnbondingDelegations) String() (out string) + type Validator struct + Commission Commission + ConsPubKey crypto.PubKey + DelegatorShares sdk.Dec + Description Description + Jailed bool + MinSelfDelegation sdk.Int + OperatorAddress sdk.ValAddress + Status sdk.BondStatus + Tokens sdk.Int + UnbondingCompletionTime time.Time + UnbondingHeight int64 + func MustUnmarshalValidator(cdc *codec.Codec, value []byte) Validator + func NewValidator(operator sdk.ValAddress, pubKey crypto.PubKey, description Description) Validator + func UnmarshalValidator(cdc *codec.Codec, value []byte) (validator Validator, err error) + func (v *Validator) UnmarshalJSON(data []byte) error + func (v Validator) ABCIValidatorUpdate() abci.ValidatorUpdate + func (v Validator) ABCIValidatorUpdateZero() abci.ValidatorUpdate + func (v Validator) AddTokensFromDel(amount sdk.Int) (Validator, sdk.Dec) + func (v Validator) BondedTokens() sdk.Int + func (v Validator) ConsAddress() sdk.ConsAddress + func (v Validator) ConsensusPower() int64 + func (v Validator) GetBondedTokens() sdk.Int + func (v Validator) GetCommission() sdk.Dec + func (v Validator) GetConsAddr() sdk.ConsAddress + func (v Validator) GetConsPubKey() crypto.PubKey + func (v Validator) GetConsensusPower() int64 + func (v Validator) GetDelegatorShares() sdk.Dec + func (v Validator) GetMinSelfDelegation() sdk.Int + func (v Validator) GetMoniker() string + func (v Validator) GetOperator() sdk.ValAddress + func (v Validator) GetStatus() sdk.BondStatus + func (v Validator) GetTokens() sdk.Int + func (v Validator) InvalidExRate() bool + func (v Validator) IsBonded() bool + func (v Validator) IsJailed() bool + func (v Validator) IsUnbonded() bool + func (v Validator) IsUnbonding() bool + func (v Validator) MarshalJSON() ([]byte, error) + func (v Validator) MarshalYAML() (interface{}, error) + func (v Validator) PotentialConsensusPower() int64 + func (v Validator) RemoveDelShares(delShares sdk.Dec) (Validator, sdk.Int) + func (v Validator) RemoveTokens(tokens sdk.Int) Validator + func (v Validator) SetInitialCommission(commission Commission) (Validator, sdk.Error) + func (v Validator) SharesFromTokens(amt sdk.Int) (sdk.Dec, sdk.Error) + func (v Validator) SharesFromTokensTruncated(amt sdk.Int) (sdk.Dec, sdk.Error) + func (v Validator) String() string + func (v Validator) TestEquivalent(v2 Validator) bool + func (v Validator) TokensFromShares(shares sdk.Dec) sdk.Dec + func (v Validator) TokensFromSharesRoundUp(shares sdk.Dec) sdk.Dec + func (v Validator) TokensFromSharesTruncated(shares sdk.Dec) sdk.Dec + func (v Validator) UpdateStatus(newStatus sdk.BondStatus) Validator + type ValidatorSet interface + Delegation func(sdk.Context, sdk.AccAddress, sdk.ValAddress) stakingexported.DelegationI + IterateBondedValidatorsByPower func(sdk.Context, ...) + IterateLastValidators func(sdk.Context, ...) + 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) + StakingTokenSupply func(sdk.Context) sdk.Int + TotalBondedTokens func(sdk.Context) sdk.Int + Unjail func(sdk.Context, sdk.ConsAddress) + Validator func(sdk.Context, sdk.ValAddress) stakingexported.ValidatorI + ValidatorByConsAddr func(sdk.Context, sdk.ConsAddress) stakingexported.ValidatorI + type Validators []Validator + func (v Validators) String() (out string) + func (v Validators) ToSDKValidators() (validators []exported.ValidatorI)