Documentation ¶
Index ¶
- Constants
- func AccountMustBePresent(supplyKeeper *supply.Keeper, accountName string)
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (k Keeper) AllocateTokens(ctx sdk.Context, previousVotes []abci.VoteInfo)
- func (k Keeper) AllocateTokensToValidator(ctx sdk.Context, val exported.ValidatorI, tokens sdk.DecCoins)
- func (k Keeper) ClaimSavingsStake(ctx sdk.Context, sender sdk.AccAddress, amount sdk.Coins) error
- func (k Keeper) DecreaseNameStake(ctx sdk.Context)
- func (k Keeper) DeleteNameRewardEscrow(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) DeleteNameRewardRateByAddress(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) DeletePendingNameDistribution(ctx sdk.Context)
- func (k Keeper) DeleteSavingsRewardEscrow(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) DeleteSavingsRewardRateByAddress(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) DeleteSavingsStakeByAddress(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) DeleteValidatorAccumulatedRewards(ctx sdk.Context, val sdk.ValAddress)
- func (k Keeper) DepositName(ctx sdk.Context, address sdk.AccAddress) (ok bool)
- func (k Keeper) DevelopmentFundShare(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) DistributeFromAmc(ctx sdk.Context) (sdk.Coins, sdk.Coins, sdk.Coins)
- func (k Keeper) DistributeFromHhrm(ctx sdk.Context, amount sdk.Coins)
- func (k Keeper) DistributeFromNvrp(ctx sdk.Context)
- func (k Keeper) DistributeNameReward(ctx sdk.Context, recipient sdk.AccAddress, amount sdk.DecCoins) error
- func (k Keeper) DistributeSavingsReward(ctx sdk.Context, recipient sdk.AccAddress, amount sdk.DecCoins) error
- func (k Keeper) GetNameRewardEscrow(ctx sdk.Context, address sdk.AccAddress) sdk.DecCoins
- func (k Keeper) GetNameRewardLeftover(ctx sdk.Context, address sdk.AccAddress) sdk.Dec
- func (k Keeper) GetNameRewardRate(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetNameRewardRateByAddress(ctx sdk.Context, address sdk.AccAddress) (sdk.Dec, bool)
- func (k Keeper) GetNameStake(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetNvrpRemainder(ctx sdk.Context) sdk.DecCoins
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetPendingNameDistribution(ctx sdk.Context) sdk.Coins
- func (k Keeper) GetSavingsRewardEscrow(ctx sdk.Context, address sdk.AccAddress) sdk.DecCoins
- func (k Keeper) GetSavingsRewardLeftover(ctx sdk.Context, address sdk.AccAddress) sdk.Dec
- func (k Keeper) GetSavingsRewardRate(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetSavingsRewardRateByAddress(ctx sdk.Context, address sdk.AccAddress) (sdk.Dec, bool)
- func (k Keeper) GetSavingsStake(ctx sdk.Context) sdk.Int
- func (k Keeper) GetSavingsStakeByAddress(ctx sdk.Context, address sdk.AccAddress) (sdk.Int, bool)
- func (k Keeper) GetValidatorAccumulatedRewards(ctx sdk.Context, val sdk.ValAddress) (rewards sdk.DecCoins)
- func (k Keeper) HandleDepositSavings(ctx sdk.Context, sender sdk.AccAddress, amount sdk.Coins) error
- func (k Keeper) HandleWithdrawNameReward(ctx sdk.Context, address sdk.AccAddress) error
- func (k Keeper) HandleWithdrawSavings(ctx sdk.Context, sender sdk.AccAddress) error
- func (k Keeper) HandleWithdrawSavingsInterest(ctx sdk.Context, sender sdk.AccAddress) error
- func (k Keeper) HandleWithdrawValidatorReward(ctx sdk.Context, valAddr sdk.ValAddress) error
- func (k Keeper) HasSavings(ctx sdk.Context, address sdk.AccAddress) bool
- func (k Keeper) IncreaseNameStake(ctx sdk.Context)
- func (k Keeper) InsertNameDepositQueue(ctx sdk.Context, recipient sdk.AccAddress, scheduledFor time.Time)
- func (k Keeper) IterateNameDepositQueue(ctx sdk.Context, ...)
- func (k Keeper) IterateNameDepositQueueByTime(ctx sdk.Context, endTime time.Time, ...)
- func (k Keeper) IterateNameRewardEscrow(ctx sdk.Context, ...)
- func (k Keeper) IterateNameRewardLeftover(ctx sdk.Context, ...)
- func (k Keeper) IterateNameRewardRateByAddress(ctx sdk.Context, ...)
- func (k Keeper) IterateSavingsRewardEscrow(ctx sdk.Context, ...)
- func (k Keeper) IterateSavingsRewardLeftover(ctx sdk.Context, ...)
- func (k Keeper) IterateSavingsRewardRateByAddress(ctx sdk.Context, ...)
- func (k Keeper) IterateSavingsStakeByAddress(ctx sdk.Context, ...)
- func (k Keeper) IterateValidatorAccumulatedRewards(ctx sdk.Context, ...)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) NameDepositDelay(ctx sdk.Context) (res time.Duration)
- func (k Keeper) NameDeposited(ctx sdk.Context, address sdk.AccAddress) bool
- func (k Keeper) NameHooks() NameHooks
- func (k Keeper) RefundSavingsStake(ctx sdk.Context, recipient sdk.AccAddress, amount sdk.Coins) error
- func (k Keeper) RemoveFromNameDepositQueue(ctx sdk.Context, address sdk.AccAddress, endTime time.Time)
- func (k Keeper) RewardWithdrawalBlockedPeriod(ctx sdk.Context) (res time.Duration)
- func (k Keeper) RewardWithdrawalEnabledTime(ctx sdk.Context) (res time.Time)
- func (k Keeper) SavingsSplitAdjustment(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) ScheduledNameDepositQueueIterator(ctx sdk.Context, endTime time.Time) sdk.Iterator
- func (k Keeper) SecurityTokenFundShare(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) SetNameRewardEscrow(ctx sdk.Context, address sdk.AccAddress, amount sdk.DecCoins)
- func (k Keeper) SetNameRewardLeftover(ctx sdk.Context, address sdk.AccAddress, leftover sdk.Dec)
- func (k Keeper) SetNameRewardRate(ctx sdk.Context, rate sdk.Dec)
- func (k Keeper) SetNameRewardRateByAddress(ctx sdk.Context, address sdk.AccAddress, rate sdk.Dec)
- func (k Keeper) SetNameStake(ctx sdk.Context, stake sdk.Dec)
- func (k Keeper) SetNvrpRemainder(ctx sdk.Context, remainder sdk.DecCoins)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPendingNameDistribution(ctx sdk.Context, distribution sdk.Coins)
- func (k Keeper) SetRewardWithdrawalEnabledTime(ctx sdk.Context, time time.Time)
- func (k Keeper) SetSavingsRewardEscrow(ctx sdk.Context, address sdk.AccAddress, amount sdk.DecCoins)
- func (k Keeper) SetSavingsRewardLeftover(ctx sdk.Context, address sdk.AccAddress, leftover sdk.Dec)
- func (k Keeper) SetSavingsRewardRate(ctx sdk.Context, rate sdk.Dec)
- func (k Keeper) SetSavingsRewardRateByAddress(ctx sdk.Context, address sdk.AccAddress, rate sdk.Dec)
- func (k Keeper) SetSavingsStake(ctx sdk.Context, stake sdk.Int)
- func (k Keeper) SetSavingsStakeByAddress(ctx sdk.Context, address sdk.AccAddress, rate sdk.Int)
- func (k Keeper) SetValidatorAccumulatedRewards(ctx sdk.Context, val sdk.ValAddress, rewards sdk.DecCoins)
- func (k Keeper) StakingHooks() StakingHooks
- func (k Keeper) TransferFromDevelopmentFund(ctx sdk.Context, recipient sdk.AccAddress, amount sdk.Coins) error
- func (k Keeper) TransferFromSecurityTokenFund(ctx sdk.Context, recipients []types.Recipients) error
- type NameHooks
- type StakingHooks
- func (h StakingHooks) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
- func (h StakingHooks) AfterValidatorBeginUnbonding(_ sdk.Context, _ sdk.ConsAddress, _ sdk.ValAddress)
- func (h StakingHooks) AfterValidatorBonded(_ sdk.Context, _ sdk.ConsAddress, _ sdk.ValAddress)
- func (h StakingHooks) AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress)
- func (h StakingHooks) AfterValidatorRemoved(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
- func (h StakingHooks) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
- func (h StakingHooks) BeforeDelegationRemoved(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress)
- func (h StakingHooks) BeforeDelegationSharesModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
- func (h StakingHooks) BeforeValidatorModified(_ sdk.Context, _ sdk.ValAddress)
- func (h StakingHooks) BeforeValidatorSlashed(ctx sdk.Context, valAddr sdk.ValAddress, fraction sdk.Dec)
Constants ¶
View Source
const ( QueryParameters = "parameters" QueryNameReward = "name-reward" QueryValidatorReward = "validator-reward" QuerySavingsReward = "savings-reward" QuerySavings = "savings" )
Variables ¶
This section is empty.
Functions ¶
func AccountMustBePresent ¶
func NewQuerier ¶
Types ¶
type Keeper ¶
func (Keeper) AllocateTokens ¶
AllocateTokens handles distribution of the collected fees
func (Keeper) AllocateTokensToValidator ¶
func (Keeper) ClaimSavingsStake ¶
func (Keeper) DecreaseNameStake ¶
func (Keeper) DeleteNameRewardEscrow ¶
func (k Keeper) DeleteNameRewardEscrow(ctx sdk.Context, address sdk.AccAddress)
func (Keeper) DeleteNameRewardRateByAddress ¶
func (k Keeper) DeleteNameRewardRateByAddress(ctx sdk.Context, address sdk.AccAddress)
func (Keeper) DeletePendingNameDistribution ¶
func (Keeper) DeleteSavingsRewardEscrow ¶
func (k Keeper) DeleteSavingsRewardEscrow(ctx sdk.Context, address sdk.AccAddress)
func (Keeper) DeleteSavingsRewardRateByAddress ¶
func (k Keeper) DeleteSavingsRewardRateByAddress(ctx sdk.Context, address sdk.AccAddress)
func (Keeper) DeleteSavingsStakeByAddress ¶
func (k Keeper) DeleteSavingsStakeByAddress(ctx sdk.Context, address sdk.AccAddress)
func (Keeper) DeleteValidatorAccumulatedRewards ¶
func (k Keeper) DeleteValidatorAccumulatedRewards(ctx sdk.Context, val sdk.ValAddress)
delete accumulated rewards for a validator
func (Keeper) DepositName ¶
func (Keeper) DevelopmentFundShare ¶
func (Keeper) DistributeFromAmc ¶
func (Keeper) DistributeFromHhrm ¶
func (Keeper) DistributeFromNvrp ¶
func (Keeper) DistributeNameReward ¶
func (Keeper) DistributeSavingsReward ¶
func (Keeper) GetNameRewardEscrow ¶
func (Keeper) GetNameRewardLeftover ¶
func (Keeper) GetNameRewardRateByAddress ¶
func (Keeper) GetPendingNameDistribution ¶
func (Keeper) GetSavingsRewardEscrow ¶
func (Keeper) GetSavingsRewardLeftover ¶
func (Keeper) GetSavingsRewardRateByAddress ¶
func (Keeper) GetSavingsStakeByAddress ¶
func (Keeper) GetValidatorAccumulatedRewards ¶
func (k Keeper) GetValidatorAccumulatedRewards(ctx sdk.Context, val sdk.ValAddress) (rewards sdk.DecCoins)
get accumulated rewards for a validator
func (Keeper) HandleDepositSavings ¶
func (Keeper) HandleWithdrawNameReward ¶
Withdrawals are done in full with re-depositing the Name stake
func (Keeper) HandleWithdrawSavings ¶
func (Keeper) HandleWithdrawSavingsInterest ¶
func (Keeper) HandleWithdrawValidatorReward ¶
func (Keeper) HasSavings ¶
func (Keeper) IncreaseNameStake ¶
func (Keeper) InsertNameDepositQueue ¶
func (Keeper) IterateNameDepositQueue ¶
func (Keeper) IterateNameDepositQueueByTime ¶
func (Keeper) IterateNameRewardEscrow ¶
func (Keeper) IterateNameRewardLeftover ¶
func (Keeper) IterateNameRewardRateByAddress ¶
func (Keeper) IterateSavingsRewardEscrow ¶
func (Keeper) IterateSavingsRewardLeftover ¶
func (Keeper) IterateSavingsRewardRateByAddress ¶
func (Keeper) IterateSavingsStakeByAddress ¶
func (Keeper) IterateValidatorAccumulatedRewards ¶
func (k Keeper) IterateValidatorAccumulatedRewards(ctx sdk.Context, handler func(val sdk.ValAddress, rewards sdk.DecCoins) (stop bool))
iterate over validator accumulated rewards
func (Keeper) NameDepositDelay ¶
func (Keeper) NameDeposited ¶
func (Keeper) RefundSavingsStake ¶
func (Keeper) RemoveFromNameDepositQueue ¶
func (Keeper) RewardWithdrawalBlockedPeriod ¶
func (Keeper) RewardWithdrawalEnabledTime ¶
func (Keeper) SavingsSplitAdjustment ¶
func (Keeper) ScheduledNameDepositQueueIterator ¶
func (Keeper) SecurityTokenFundShare ¶
func (Keeper) SetNameRewardEscrow ¶
func (Keeper) SetNameRewardLeftover ¶
func (Keeper) SetNameRewardRateByAddress ¶
func (Keeper) SetNvrpRemainder ¶
func (Keeper) SetPendingNameDistribution ¶
func (Keeper) SetRewardWithdrawalEnabledTime ¶
func (Keeper) SetSavingsRewardEscrow ¶
func (Keeper) SetSavingsRewardLeftover ¶
func (Keeper) SetSavingsRewardRate ¶
func (Keeper) SetSavingsRewardRateByAddress ¶
func (Keeper) SetSavingsStakeByAddress ¶
func (Keeper) SetValidatorAccumulatedRewards ¶
func (k Keeper) SetValidatorAccumulatedRewards(ctx sdk.Context, val sdk.ValAddress, rewards sdk.DecCoins)
set accumulated rewards for a validator
func (Keeper) StakingHooks ¶
func (k Keeper) StakingHooks() StakingHooks
func (Keeper) TransferFromDevelopmentFund ¶
func (Keeper) TransferFromSecurityTokenFund ¶
type NameHooks ¶
type NameHooks struct {
// contains filtered or unexported fields
}
func (NameHooks) AfterFirstNameCreated ¶
func (NameHooks) AfterLastNameRemoved ¶
type StakingHooks ¶
type StakingHooks struct {
// contains filtered or unexported fields
}
func (StakingHooks) AfterDelegationModified ¶
func (h StakingHooks) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
func (StakingHooks) AfterValidatorBeginUnbonding ¶
func (h StakingHooks) AfterValidatorBeginUnbonding(_ sdk.Context, _ sdk.ConsAddress, _ sdk.ValAddress)
func (StakingHooks) AfterValidatorBonded ¶
func (h StakingHooks) AfterValidatorBonded(_ sdk.Context, _ sdk.ConsAddress, _ sdk.ValAddress)
func (StakingHooks) AfterValidatorCreated ¶
func (h StakingHooks) AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress)
func (StakingHooks) AfterValidatorRemoved ¶
func (h StakingHooks) AfterValidatorRemoved(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
func (StakingHooks) BeforeDelegationCreated ¶
func (h StakingHooks) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
func (StakingHooks) BeforeDelegationRemoved ¶
func (h StakingHooks) BeforeDelegationRemoved(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress)
func (StakingHooks) BeforeDelegationSharesModified ¶
func (h StakingHooks) BeforeDelegationSharesModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
func (StakingHooks) BeforeValidatorModified ¶
func (h StakingHooks) BeforeValidatorModified(_ sdk.Context, _ sdk.ValAddress)
func (StakingHooks) BeforeValidatorSlashed ¶
func (h StakingHooks) BeforeValidatorSlashed(ctx sdk.Context, valAddr sdk.ValAddress, fraction sdk.Dec)
Click to show internal directories.
Click to hide internal directories.