Versions in this module Expand all Collapse all v0 v0.33.2 Apr 3, 2019 Changes in this version + const DefaultParamspace + const ParamBaseProposerReward + const ParamBonusProposerReward + const ParamCommunityTax + const ParamWithdrawAddrEnabled + const QueryDelegationRewards + const QueryDelegatorTotalRewards + const QueryDelegatorValidators + const QueryParams + const QueryValidatorCommission + const QueryValidatorOutstandingRewards + const QueryValidatorSlashes + const QueryWithdrawAddr + var DelegatorStartingInfoPrefix = []byte + var DelegatorWithdrawAddrPrefix = []byte + var FeePoolKey = []byte + var ParamStoreKeyBaseProposerReward = []byte("baseproposerreward") + var ParamStoreKeyBonusProposerReward = []byte("bonusproposerreward") + var ParamStoreKeyCommunityTax = []byte("communitytax") + var ParamStoreKeyWithdrawAddrEnabled = []byte("withdrawaddrenabled") + var ProposerKey = []byte + var ValidatorAccumulatedCommissionPrefix = []byte + var ValidatorCurrentRewardsPrefix = []byte + var ValidatorHistoricalRewardsPrefix = []byte + var ValidatorOutstandingRewardsPrefix = []byte + var ValidatorSlashEventPrefix = []byte + func CreateTestInputAdvanced(t *testing.T, isCheckTx bool, initPower int64, communityTax sdk.Dec) (sdk.Context, auth.AccountKeeper, Keeper, staking.Keeper, ...) + func CreateTestInputDefault(t *testing.T, isCheckTx bool, initPower int64) (sdk.Context, auth.AccountKeeper, Keeper, staking.Keeper, ...) + func GetDelegatorStartingInfoAddresses(key []byte) (valAddr sdk.ValAddress, delAddr sdk.AccAddress) + func GetDelegatorStartingInfoKey(v sdk.ValAddress, d sdk.AccAddress) []byte + func GetDelegatorWithdrawAddrKey(delAddr sdk.AccAddress) []byte + func GetDelegatorWithdrawInfoAddress(key []byte) (delAddr sdk.AccAddress) + func GetValidatorAccumulatedCommissionAddress(key []byte) (valAddr sdk.ValAddress) + func GetValidatorAccumulatedCommissionKey(v sdk.ValAddress) []byte + func GetValidatorCurrentRewardsAddress(key []byte) (valAddr sdk.ValAddress) + func GetValidatorCurrentRewardsKey(v sdk.ValAddress) []byte + func GetValidatorHistoricalRewardsAddressPeriod(key []byte) (valAddr sdk.ValAddress, period uint64) + func GetValidatorHistoricalRewardsKey(v sdk.ValAddress, k uint64) []byte + func GetValidatorHistoricalRewardsPrefix(v sdk.ValAddress) []byte + func GetValidatorOutstandingRewardsAddress(key []byte) (valAddr sdk.ValAddress) + func GetValidatorOutstandingRewardsKey(valAddr sdk.ValAddress) []byte + func GetValidatorSlashEventAddressHeight(key []byte) (valAddr sdk.ValAddress, height uint64) + func GetValidatorSlashEventKey(v sdk.ValAddress, height uint64) []byte + func GetValidatorSlashEventPrefix(v sdk.ValAddress) []byte + func MakeTestCodec() *codec.Codec + func NewQuerier(k Keeper) sdk.Querier + func ParamKeyTable() params.KeyTable + type DummyFeeCollectionKeeper struct + func (fck DummyFeeCollectionKeeper) ClearCollectedFees(_ sdk.Context) + func (fck DummyFeeCollectionKeeper) GetCollectedFees(_ sdk.Context) sdk.Coins + func (fck DummyFeeCollectionKeeper) SetCollectedFees(in sdk.Coins) + type Hooks struct + func (h Hooks) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) + func (h Hooks) AfterValidatorBeginUnbonding(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress) + func (h Hooks) AfterValidatorBonded(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress) + func (h Hooks) AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress) + func (h Hooks) AfterValidatorRemoved(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress) + func (h Hooks) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) + func (h Hooks) BeforeDelegationRemoved(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) + func (h Hooks) BeforeDelegationSharesModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) + func (h Hooks) BeforeValidatorModified(ctx sdk.Context, valAddr sdk.ValAddress) + func (h Hooks) BeforeValidatorSlashed(ctx sdk.Context, valAddr sdk.ValAddress, fraction sdk.Dec) + type Keeper struct + func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, paramSpace params.Subspace, ...) Keeper + func (k Keeper) AllocateTokens(ctx sdk.Context, sumPrecommitPower, totalPower int64, proposer sdk.ConsAddress, ...) + func (k Keeper) AllocateTokensToValidator(ctx sdk.Context, val sdk.Validator, tokens sdk.DecCoins) + func (k Keeper) DeleteAllValidatorHistoricalRewards(ctx sdk.Context) + func (k Keeper) DeleteAllValidatorSlashEvents(ctx sdk.Context) + func (k Keeper) DeleteDelegatorStartingInfo(ctx sdk.Context, val sdk.ValAddress, del sdk.AccAddress) + func (k Keeper) DeleteDelegatorWithdrawAddr(ctx sdk.Context, delAddr, withdrawAddr sdk.AccAddress) + func (k Keeper) DeleteValidatorAccumulatedCommission(ctx sdk.Context, val sdk.ValAddress) + func (k Keeper) DeleteValidatorCurrentRewards(ctx sdk.Context, val sdk.ValAddress) + func (k Keeper) DeleteValidatorHistoricalReward(ctx sdk.Context, val sdk.ValAddress, period uint64) + func (k Keeper) DeleteValidatorHistoricalRewards(ctx sdk.Context, val sdk.ValAddress) + func (k Keeper) DeleteValidatorOutstandingRewards(ctx sdk.Context, val sdk.ValAddress) + func (k Keeper) DeleteValidatorSlashEvents(ctx sdk.Context, val sdk.ValAddress) + func (k Keeper) GetBaseProposerReward(ctx sdk.Context) sdk.Dec + func (k Keeper) GetBonusProposerReward(ctx sdk.Context) sdk.Dec + func (k Keeper) GetCommunityTax(ctx sdk.Context) sdk.Dec + func (k Keeper) GetDelegatorStartingInfo(ctx sdk.Context, val sdk.ValAddress, del sdk.AccAddress) (period types.DelegatorStartingInfo) + func (k Keeper) GetDelegatorWithdrawAddr(ctx sdk.Context, delAddr sdk.AccAddress) sdk.AccAddress + func (k Keeper) GetFeePool(ctx sdk.Context) (feePool types.FeePool) + func (k Keeper) GetFeePoolCommunityCoins(ctx sdk.Context) sdk.DecCoins + func (k Keeper) GetPreviousProposerConsAddr(ctx sdk.Context) (consAddr sdk.ConsAddress) + func (k Keeper) GetValidatorAccumulatedCommission(ctx sdk.Context, val sdk.ValAddress) (commission types.ValidatorAccumulatedCommission) + func (k Keeper) GetValidatorCurrentRewards(ctx sdk.Context, val sdk.ValAddress) (rewards types.ValidatorCurrentRewards) + func (k Keeper) GetValidatorHistoricalReferenceCount(ctx sdk.Context) (count uint64) + func (k Keeper) GetValidatorHistoricalRewards(ctx sdk.Context, val sdk.ValAddress, period uint64) (rewards types.ValidatorHistoricalRewards) + func (k Keeper) GetValidatorOutstandingRewards(ctx sdk.Context, val sdk.ValAddress) (rewards types.ValidatorOutstandingRewards) + func (k Keeper) GetValidatorOutstandingRewardsCoins(ctx sdk.Context, val sdk.ValAddress) sdk.DecCoins + func (k Keeper) GetValidatorSlashEvent(ctx sdk.Context, val sdk.ValAddress, height uint64) (event types.ValidatorSlashEvent, found bool) + func (k Keeper) GetWithdrawAddrEnabled(ctx sdk.Context) bool + func (k Keeper) HasDelegatorStartingInfo(ctx sdk.Context, val sdk.ValAddress, del sdk.AccAddress) bool + func (k Keeper) Hooks() Hooks + func (k Keeper) IterateDelegatorStartingInfos(ctx sdk.Context, ...) + func (k Keeper) IterateDelegatorWithdrawAddrs(ctx sdk.Context, ...) + func (k Keeper) IterateValidatorAccumulatedCommissions(ctx sdk.Context, ...) + func (k Keeper) IterateValidatorCurrentRewards(ctx sdk.Context, ...) + func (k Keeper) IterateValidatorHistoricalRewards(ctx sdk.Context, ...) + func (k Keeper) IterateValidatorOutstandingRewards(ctx sdk.Context, ...) + func (k Keeper) IterateValidatorSlashEvents(ctx sdk.Context, ...) + func (k Keeper) IterateValidatorSlashEventsBetween(ctx sdk.Context, val sdk.ValAddress, startingHeight uint64, ...) + func (k Keeper) SetBaseProposerReward(ctx sdk.Context, percent sdk.Dec) + func (k Keeper) SetBonusProposerReward(ctx sdk.Context, percent sdk.Dec) + func (k Keeper) SetCommunityTax(ctx sdk.Context, percent sdk.Dec) + func (k Keeper) SetDelegatorStartingInfo(ctx sdk.Context, val sdk.ValAddress, del sdk.AccAddress, ...) + func (k Keeper) SetDelegatorWithdrawAddr(ctx sdk.Context, delAddr, withdrawAddr sdk.AccAddress) + func (k Keeper) SetFeePool(ctx sdk.Context, feePool types.FeePool) + func (k Keeper) SetPreviousProposerConsAddr(ctx sdk.Context, consAddr sdk.ConsAddress) + func (k Keeper) SetValidatorAccumulatedCommission(ctx sdk.Context, val sdk.ValAddress, ...) + func (k Keeper) SetValidatorCurrentRewards(ctx sdk.Context, val sdk.ValAddress, rewards types.ValidatorCurrentRewards) + func (k Keeper) SetValidatorHistoricalRewards(ctx sdk.Context, val sdk.ValAddress, period uint64, ...) + func (k Keeper) SetValidatorOutstandingRewards(ctx sdk.Context, val sdk.ValAddress, rewards types.ValidatorOutstandingRewards) + func (k Keeper) SetValidatorSlashEvent(ctx sdk.Context, val sdk.ValAddress, height uint64, ...) + func (k Keeper) SetWithdrawAddr(ctx sdk.Context, delegatorAddr sdk.AccAddress, withdrawAddr sdk.AccAddress) sdk.Error + func (k Keeper) SetWithdrawAddrEnabled(ctx sdk.Context, enabled bool) + func (k Keeper) WithdrawDelegationRewards(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) sdk.Error + func (k Keeper) WithdrawValidatorCommission(ctx sdk.Context, valAddr sdk.ValAddress) sdk.Error + type QueryDelegationRewardsParams struct + DelegatorAddress sdk.AccAddress + ValidatorAddress sdk.ValAddress + func NewQueryDelegationRewardsParams(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress) QueryDelegationRewardsParams + type QueryDelegatorParams struct + DelegatorAddress sdk.AccAddress + func NewQueryDelegatorParams(delegatorAddr sdk.AccAddress) QueryDelegatorParams + type QueryDelegatorWithdrawAddrParams struct + DelegatorAddress sdk.AccAddress + func NewQueryDelegatorWithdrawAddrParams(delegatorAddr sdk.AccAddress) QueryDelegatorWithdrawAddrParams + type QueryValidatorCommissionParams struct + ValidatorAddress sdk.ValAddress + func NewQueryValidatorCommissionParams(validatorAddr sdk.ValAddress) QueryValidatorCommissionParams + type QueryValidatorOutstandingRewardsParams struct + ValidatorAddress sdk.ValAddress + func NewQueryValidatorOutstandingRewardsParams(validatorAddr sdk.ValAddress) QueryValidatorOutstandingRewardsParams + type QueryValidatorSlashesParams struct + EndingHeight uint64 + StartingHeight uint64 + ValidatorAddress sdk.ValAddress + func NewQueryValidatorSlashesParams(validatorAddr sdk.ValAddress, startingHeight uint64, endingHeight uint64) QueryValidatorSlashesParams