Versions in this module Expand all Collapse all v0 v0.20.0 Jul 10, 2018 Changes in this version + var Addrs = createTestAddrs(100) + var DelegationKey = []byte + var IntraTxCounterKey = []byte + var PKs = createTestPubKeys(100) + var ParamKey = []byte + var PoolKey = []byte + var RedelegationByValDstIndexKey = []byte + var RedelegationByValSrcIndexKey = []byte + var RedelegationKey = []byte + var TendermintUpdatesKey = []byte + var UnbondingDelegationByValIndexKey = []byte + var UnbondingDelegationKey = []byte + var ValidatorCliffIndexKey = []byte + var ValidatorPowerCliffKey = []byte + var ValidatorsBondedIndexKey = []byte + var ValidatorsByPowerIndexKey = []byte + var ValidatorsByPubKeyIndexKey = []byte + var ValidatorsKey = []byte + func GetAddressFromValBondedIndexKey(IndexKey []byte) []byte + func GetDelegationKey(delegatorAddr, validatorAddr sdk.AccAddress) []byte + func GetDelegationsKey(delegatorAddr sdk.AccAddress) []byte + func GetREDByValDstIndexKey(delegatorAddr, validatorSrcAddr, validatorDstAddr sdk.AccAddress) []byte + func GetREDByValSrcIndexKey(delegatorAddr, validatorSrcAddr, validatorDstAddr sdk.AccAddress) []byte + func GetREDKey(delegatorAddr, validatorSrcAddr, validatorDstAddr sdk.AccAddress) []byte + func GetREDKeyFromValDstIndexKey(IndexKey []byte) []byte + func GetREDKeyFromValSrcIndexKey(IndexKey []byte) []byte + func GetREDsByDelToValDstIndexKey(delegatorAddr, validatorDstAddr sdk.AccAddress) []byte + func GetREDsFromValSrcIndexKey(validatorSrcAddr sdk.AccAddress) []byte + func GetREDsKey(delegatorAddr sdk.AccAddress) []byte + func GetREDsToValDstIndexKey(validatorDstAddr sdk.AccAddress) []byte + func GetTendermintUpdatesKey(ownerAddr sdk.AccAddress) []byte + func GetUBDByValIndexKey(delegatorAddr, validatorAddr sdk.AccAddress) []byte + func GetUBDKey(delegatorAddr, validatorAddr sdk.AccAddress) []byte + func GetUBDKeyFromValIndexKey(IndexKey []byte) []byte + func GetUBDsByValIndexKey(validatorAddr sdk.AccAddress) []byte + func GetUBDsKey(delegatorAddr sdk.AccAddress) []byte + func GetValidatorByPubKeyIndexKey(pubkey crypto.PubKey) []byte + func GetValidatorKey(ownerAddr sdk.AccAddress) []byte + func GetValidatorsBondedIndexKey(ownerAddr sdk.AccAddress) []byte + func GetValidatorsByPowerIndexKey(validator types.Validator, pool types.Pool) []byte + func MakeTestCodec() *wire.Codec + func NewPubKey(pk string) (res crypto.PubKey) + func ParamsNoInflation() types.Params + func TestAddr(addr string, bech string) sdk.AccAddress + func ValEq(t *testing.T, exp, got types.Validator) (*testing.T, bool, string, types.Validator, types.Validator) + func ValidatorByPowerIndexExists(ctx sdk.Context, keeper Keeper, power []byte) bool + type Keeper struct + func CreateTestInput(t *testing.T, isCheckTx bool, initCoins int64) (sdk.Context, auth.AccountMapper, Keeper) + func NewKeeper(cdc *wire.Codec, key sdk.StoreKey, ck bank.Keeper, codespace sdk.CodespaceType) Keeper + func (k Keeper) BeginRedelegation(ctx sdk.Context, ...) sdk.Error + func (k Keeper) BeginUnbonding(ctx sdk.Context, delegatorAddr, validatorAddr sdk.AccAddress, ...) sdk.Error + func (k Keeper) ClearTendermintUpdates(ctx sdk.Context) + func (k Keeper) Codespace() sdk.CodespaceType + func (k Keeper) CompleteRedelegation(ctx sdk.Context, ...) sdk.Error + func (k Keeper) CompleteUnbonding(ctx sdk.Context, delegatorAddr, validatorAddr sdk.AccAddress) sdk.Error + func (k Keeper) Delegate(ctx sdk.Context, delegatorAddr sdk.AccAddress, bondAmt sdk.Coin, ...) (newShares sdk.Rat, err sdk.Error) + func (k Keeper) Delegation(ctx sdk.Context, addrDel sdk.AccAddress, addrVal sdk.AccAddress) sdk.Delegation + func (k Keeper) GetAllDelegations(ctx sdk.Context) (delegations []types.Delegation) + func (k Keeper) GetAllValidators(ctx sdk.Context) (validators []types.Validator) + func (k Keeper) GetCliffValidator(ctx sdk.Context) []byte + func (k Keeper) GetCliffValidatorPower(ctx sdk.Context) []byte + func (k Keeper) GetDelegation(ctx sdk.Context, delegatorAddr, validatorAddr sdk.AccAddress) (delegation types.Delegation, found bool) + func (k Keeper) GetDelegations(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve int16) (delegations []types.Delegation) + func (k Keeper) GetIntraTxCounter(ctx sdk.Context) int16 + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) GetPool(ctx sdk.Context) (pool types.Pool) + func (k Keeper) GetRedelegation(ctx sdk.Context, ...) (red types.Redelegation, found bool) + func (k Keeper) GetRedelegationsFromValidator(ctx sdk.Context, valAddr sdk.AccAddress) (reds []types.Redelegation) + func (k Keeper) GetTendermintUpdates(ctx sdk.Context) (updates []abci.Validator) + func (k Keeper) GetUnbondingDelegation(ctx sdk.Context, DelegatorAddr, ValidatorAddr sdk.AccAddress) (ubd types.UnbondingDelegation, found bool) + func (k Keeper) GetUnbondingDelegationsFromValidator(ctx sdk.Context, valAddr sdk.AccAddress) (ubds []types.UnbondingDelegation) + func (k Keeper) GetValidator(ctx sdk.Context, addr sdk.AccAddress) (validator types.Validator, found bool) + func (k Keeper) GetValidatorByPubKey(ctx sdk.Context, pubkey crypto.PubKey) (validator types.Validator, found bool) + func (k Keeper) GetValidatorSet() sdk.ValidatorSet + func (k Keeper) GetValidators(ctx sdk.Context, maxRetrieve int16) (validators []types.Validator) + func (k Keeper) GetValidatorsBonded(ctx sdk.Context) (validators []types.Validator) + func (k Keeper) GetValidatorsByPower(ctx sdk.Context) []types.Validator + func (k Keeper) HasReceivingRedelegation(ctx sdk.Context, DelegatorAddr, ValidatorDstAddr sdk.AccAddress) bool + func (k Keeper) InitIntraTxCounter(ctx sdk.Context) + func (k Keeper) IterateDelegations(ctx sdk.Context, delAddr sdk.AccAddress, ...) + func (k Keeper) IterateValidators(ctx sdk.Context, fn func(index int64, validator sdk.Validator) (stop bool)) + func (k Keeper) IterateValidatorsBonded(ctx sdk.Context, fn func(index int64, validator sdk.Validator) (stop bool)) + func (k Keeper) NextInflation(ctx sdk.Context) (inflation sdk.Rat) + func (k Keeper) ProcessProvisions(ctx sdk.Context) types.Pool + func (k Keeper) RemoveDelegation(ctx sdk.Context, delegation types.Delegation) + func (k Keeper) RemoveRedelegation(ctx sdk.Context, red types.Redelegation) + func (k Keeper) RemoveUnbondingDelegation(ctx sdk.Context, ubd types.UnbondingDelegation) + func (k Keeper) RemoveValidator(ctx sdk.Context, address sdk.AccAddress) + func (k Keeper) Revoke(ctx sdk.Context, pubkey crypto.PubKey) + func (k Keeper) SetDelegation(ctx sdk.Context, delegation types.Delegation) + func (k Keeper) SetIntraTxCounter(ctx sdk.Context, counter int16) + func (k Keeper) SetNewParams(ctx sdk.Context, params types.Params) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) SetPool(ctx sdk.Context, pool types.Pool) + func (k Keeper) SetRedelegation(ctx sdk.Context, red types.Redelegation) + func (k Keeper) SetUnbondingDelegation(ctx sdk.Context, ubd types.UnbondingDelegation) + func (k Keeper) SetValidator(ctx sdk.Context, validator types.Validator) + func (k Keeper) SetValidatorBondedIndex(ctx sdk.Context, validator types.Validator) + func (k Keeper) SetValidatorByPowerIndex(ctx sdk.Context, validator types.Validator, pool types.Pool) + func (k Keeper) SetValidatorByPubKeyIndex(ctx sdk.Context, validator types.Validator) + func (k Keeper) Slash(ctx sdk.Context, pubkey crypto.PubKey, infractionHeight int64, power int64, ...) + func (k Keeper) TotalPower(ctx sdk.Context) sdk.Rat + func (k Keeper) Unrevoke(ctx sdk.Context, pubkey crypto.PubKey) + func (k Keeper) UpdateBondedValidators(ctx sdk.Context, affectedValidator types.Validator) (updatedVal types.Validator) + func (k Keeper) UpdateBondedValidatorsFull(ctx sdk.Context) + func (k Keeper) UpdateValidator(ctx sdk.Context, validator types.Validator) types.Validator + func (k Keeper) Validator(ctx sdk.Context, address sdk.AccAddress) sdk.Validator