Versions in this module Expand all Collapse all v0 v0.1.3 Sep 18, 2023 v0.1.1 Sep 18, 2023 Changes in this version + func AllInvariants(k Keeper) sdk.Invariant + func DelegationToDelegationResponse(ctx sdk.Context, k Keeper, del types.Delegation) (types.DelegationResponse, error) + func DelegationsToDelegationResponses(ctx sdk.Context, k Keeper, delegations types.Delegations) (types.DelegationResponses, error) + func DelegatorSharesInvariant(k Keeper) sdk.Invariant + func ModuleAccountInvariants(k Keeper) sdk.Invariant + func NewMsgServerImpl(keeper Keeper) types.MsgServer + func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier + func NonNegativePowerInvariant(k Keeper) sdk.Invariant + func PositiveDelegationInvariant(k Keeper) sdk.Invariant + func RandomValidator(r *rand.Rand, keeper Keeper, ctx sdk.Context) (val types.Validator, ok bool) + func RedelegationsToRedelegationResponses(ctx sdk.Context, k Keeper, redels types.Redelegations) (types.RedelegationResponses, error) + func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper) + func TestingUpdateValidator(keeper Keeper, ctx sdk.Context, validator types.Validator, apply bool) types.Validator + func ValidatorByPowerIndexExists(ctx sdk.Context, keeper Keeper, power []byte) bool + type Keeper struct + func NewKeeper(cdc codec.BinaryCodec, key storetypes.StoreKey, ak types.AccountKeeper, ...) Keeper + func (k *Keeper) SetHooks(sh types.StakingHooks) *Keeper + func (k Keeper) AddValidatorTokensAndShares(ctx sdk.Context, validator types.Validator, tokensToAdd math.Int) (valOut types.Validator, addedShares sdk.Dec) + func (k Keeper) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error + func (k Keeper) AfterValidatorBeginUnbonding(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error + func (k Keeper) AfterValidatorBonded(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error + func (k Keeper) AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress) error + func (k Keeper) AfterValidatorRemoved(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error + func (k Keeper) ApplyAndReturnValidatorSetUpdates(ctx sdk.Context) (updates []abci.ValidatorUpdate, err error) + func (k Keeper) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error + func (k Keeper) BeforeDelegationRemoved(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error + func (k Keeper) BeforeDelegationSharesModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error + func (k Keeper) BeforeValidatorModified(ctx sdk.Context, valAddr sdk.ValAddress) error + func (k Keeper) BeforeValidatorSlashed(ctx sdk.Context, valAddr sdk.ValAddress, fraction sdk.Dec) error + func (k Keeper) BeginRedelegation(ctx sdk.Context, delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress, ...) (completionTime time.Time, err error) + func (k Keeper) BlockValidatorUpdates(ctx sdk.Context) []abci.ValidatorUpdate + func (k Keeper) BondDenom(ctx sdk.Context) (res string) + func (k Keeper) BondedRatio(ctx sdk.Context) sdk.Dec + func (k Keeper) CompleteRedelegation(ctx sdk.Context, delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) (sdk.Coins, error) + func (k Keeper) CompleteUnbonding(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error) + func (k Keeper) Delegate(ctx sdk.Context, delAddr sdk.AccAddress, bondAmt math.Int, ...) (newShares sdk.Dec, err error) + func (k Keeper) Delegation(ctx sdk.Context, addrDel sdk.AccAddress, addrVal sdk.ValAddress) types.DelegationI + func (k Keeper) DeleteHistoricalInfo(ctx sdk.Context, height int64) + func (k Keeper) DeleteLastValidatorPower(ctx sdk.Context, operator sdk.ValAddress) + func (k Keeper) DeleteValidatorByPowerIndex(ctx sdk.Context, validator types.Validator) + func (k Keeper) DeleteValidatorQueue(ctx sdk.Context, val types.Validator) + func (k Keeper) DeleteValidatorQueueTimeSlice(ctx sdk.Context, endTime time.Time, endHeight int64) + func (k Keeper) DequeueAllMatureRedelegationQueue(ctx sdk.Context, currTime time.Time) (matureRedelegations []types.DVVTriplet) + func (k Keeper) DequeueAllMatureUBDQueue(ctx sdk.Context, currTime time.Time) (matureUnbonds []types.DVPair) + func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState + func (k Keeper) GetAllDelegations(ctx sdk.Context) (delegations []types.Delegation) + func (k Keeper) GetAllDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress) []types.Delegation + func (k Keeper) GetAllHistoricalInfo(ctx sdk.Context) []types.HistoricalInfo + func (k Keeper) GetAllRedelegations(ctx sdk.Context, delegator sdk.AccAddress, ...) []types.Redelegation + func (k Keeper) GetAllSDKDelegations(ctx sdk.Context) (delegations []types.Delegation) + func (k Keeper) GetAllUnbondingDelegations(ctx sdk.Context, delegator sdk.AccAddress) []types.UnbondingDelegation + func (k Keeper) GetAllValidators(ctx sdk.Context) (validators []types.Validator) + func (k Keeper) GetBondedPool(ctx sdk.Context) (bondedPool authtypes.ModuleAccountI) + func (k Keeper) GetBondedValidatorsByPower(ctx sdk.Context) []types.Validator + func (k Keeper) GetDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (delegation types.Delegation, found bool) + func (k Keeper) GetDelegatorBonded(ctx sdk.Context, delegator sdk.AccAddress) math.Int + func (k Keeper) GetDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) (delegations []types.Delegation) + func (k Keeper) GetDelegatorUnbonding(ctx sdk.Context, delegator sdk.AccAddress) math.Int + func (k Keeper) GetDelegatorValidator(ctx sdk.Context, delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress) (validator types.Validator, err error) + func (k Keeper) GetDelegatorValidators(ctx sdk.Context, delegatorAddr sdk.AccAddress, maxRetrieve uint32) types.Validators + func (k Keeper) GetHistoricalInfo(ctx sdk.Context, height int64) (types.HistoricalInfo, bool) + func (k Keeper) GetLastTotalPower(ctx sdk.Context) math.Int + func (k Keeper) GetLastValidatorPower(ctx sdk.Context, operator sdk.ValAddress) (power int64) + func (k Keeper) GetLastValidators(ctx sdk.Context) (validators []types.Validator) + func (k Keeper) GetNotBondedPool(ctx sdk.Context) (notBondedPool authtypes.ModuleAccountI) + func (k Keeper) GetParams(ctx sdk.Context) types.Params + func (k Keeper) GetRedelegation(ctx sdk.Context, delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) (red types.Redelegation, found bool) + func (k Keeper) GetRedelegationQueueTimeSlice(ctx sdk.Context, timestamp time.Time) (dvvTriplets []types.DVVTriplet) + func (k Keeper) GetRedelegations(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) (redelegations []types.Redelegation) + func (k Keeper) GetRedelegationsFromSrcValidator(ctx sdk.Context, valAddr sdk.ValAddress) (reds []types.Redelegation) + func (k Keeper) GetUBDQueueTimeSlice(ctx sdk.Context, timestamp time.Time) (dvPairs []types.DVPair) + func (k Keeper) GetUnbondingDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (ubd types.UnbondingDelegation, found bool) + func (k Keeper) GetUnbondingDelegations(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) (unbondingDelegations []types.UnbondingDelegation) + func (k Keeper) GetUnbondingDelegationsFromValidator(ctx sdk.Context, valAddr sdk.ValAddress) (ubds []types.UnbondingDelegation) + func (k Keeper) GetUnbondingValidators(ctx sdk.Context, endTime time.Time, endHeight int64) []string + func (k Keeper) GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator types.Validator, found bool) + func (k Keeper) GetValidatorByConsAddr(ctx sdk.Context, consAddr sdk.ConsAddress) (validator types.Validator, found bool) + func (k Keeper) GetValidatorDelegations(ctx sdk.Context, valAddr sdk.ValAddress) (delegations []types.Delegation) + func (k Keeper) GetValidatorSet() types.ValidatorSet + func (k Keeper) GetValidators(ctx sdk.Context, maxRetrieve uint32) (validators []types.Validator) + func (k Keeper) HasMaxRedelegationEntries(ctx sdk.Context, delegatorAddr sdk.AccAddress, ...) bool + func (k Keeper) HasMaxUnbondingDelegationEntries(ctx sdk.Context, delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress) bool + func (k Keeper) HasReceivingRedelegation(ctx sdk.Context, delAddr sdk.AccAddress, valDstAddr sdk.ValAddress) bool + func (k Keeper) HistoricalEntries(ctx sdk.Context) (res uint32) + func (k Keeper) InitGenesis(ctx sdk.Context, data *types.GenesisState) (res []abci.ValidatorUpdate) + func (k Keeper) InsertRedelegationQueue(ctx sdk.Context, red types.Redelegation, completionTime time.Time) + func (k Keeper) InsertUBDQueue(ctx sdk.Context, ubd types.UnbondingDelegation, completionTime time.Time) + func (k Keeper) InsertUnbondingValidatorQueue(ctx sdk.Context, val types.Validator) + func (k Keeper) IterateAllDelegations(ctx sdk.Context, cb func(delegation types.Delegation) (stop bool)) + func (k Keeper) IterateBondedValidatorsByPower(ctx sdk.Context, fn func(index int64, validator types.ValidatorI) (stop bool)) + func (k Keeper) IterateDelegations(ctx sdk.Context, delAddr sdk.AccAddress, ...) + func (k Keeper) IterateDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress, ...) + func (k Keeper) IterateDelegatorRedelegations(ctx sdk.Context, delegator sdk.AccAddress, ...) + func (k Keeper) IterateDelegatorUnbondingDelegations(ctx sdk.Context, delegator sdk.AccAddress, ...) + func (k Keeper) IterateHistoricalInfo(ctx sdk.Context, cb func(types.HistoricalInfo) bool) + func (k Keeper) IterateLastValidatorPowers(ctx sdk.Context, ...) + func (k Keeper) IterateLastValidators(ctx sdk.Context, fn func(index int64, validator types.ValidatorI) (stop bool)) + func (k Keeper) IterateRedelegations(ctx sdk.Context, fn func(index int64, red types.Redelegation) (stop bool)) + func (k Keeper) IterateUnbondingDelegations(ctx sdk.Context, ...) + func (k Keeper) IterateValidators(ctx sdk.Context, fn func(index int64, validator types.ValidatorI) (stop bool)) + func (k Keeper) Jail(ctx sdk.Context, consAddr sdk.ConsAddress) + func (k Keeper) LastValidatorsIterator(ctx sdk.Context) (iterator sdk.Iterator) + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) MaxEntries(ctx sdk.Context) (res uint32) + func (k Keeper) MaxValidators(ctx sdk.Context) (res uint32) + func (k Keeper) MinCommissionRate(ctx sdk.Context) (res sdk.Dec) + func (k Keeper) PowerReduction(ctx sdk.Context) math.Int + func (k Keeper) RedelegationQueueIterator(ctx sdk.Context, endTime time.Time) sdk.Iterator + func (k Keeper) RemoveDelegation(ctx sdk.Context, delegation types.Delegation) error + 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.ValAddress) + func (k Keeper) RemoveValidatorTokens(ctx sdk.Context, validator types.Validator, tokensToRemove math.Int) types.Validator + func (k Keeper) RemoveValidatorTokensAndShares(ctx sdk.Context, validator types.Validator, sharesToRemove sdk.Dec) (valOut types.Validator, removedTokens math.Int) + func (k Keeper) SetDelegation(ctx sdk.Context, delegation types.Delegation) + func (k Keeper) SetHistoricalInfo(ctx sdk.Context, height int64, hi *types.HistoricalInfo) + func (k Keeper) SetLastTotalPower(ctx sdk.Context, power math.Int) + func (k Keeper) SetLastValidatorPower(ctx sdk.Context, operator sdk.ValAddress, power int64) + func (k Keeper) SetNewValidatorByPowerIndex(ctx sdk.Context, validator types.Validator) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) SetRedelegation(ctx sdk.Context, red types.Redelegation) + func (k Keeper) SetRedelegationEntry(ctx sdk.Context, delegatorAddr sdk.AccAddress, ...) types.Redelegation + func (k Keeper) SetRedelegationQueueTimeSlice(ctx sdk.Context, timestamp time.Time, keys []types.DVVTriplet) + func (k Keeper) SetUBDQueueTimeSlice(ctx sdk.Context, timestamp time.Time, keys []types.DVPair) + func (k Keeper) SetUnbondingDelegation(ctx sdk.Context, ubd types.UnbondingDelegation) + func (k Keeper) SetUnbondingDelegationEntry(ctx sdk.Context, delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, ...) types.UnbondingDelegation + func (k Keeper) SetUnbondingValidatorsQueue(ctx sdk.Context, endTime time.Time, endHeight int64, addrs []string) + func (k Keeper) SetValidator(ctx sdk.Context, validator types.Validator) + func (k Keeper) SetValidatorByConsAddr(ctx sdk.Context, validator types.Validator) error + func (k Keeper) SetValidatorByPowerIndex(ctx sdk.Context, validator types.Validator) + func (k Keeper) Slash(ctx sdk.Context, consAddr sdk.ConsAddress, infractionHeight int64, power int64, ...) math.Int + func (k Keeper) SlashRedelegation(ctx sdk.Context, srcValidator types.Validator, redelegation types.Redelegation, ...) (totalSlashAmount math.Int) + func (k Keeper) SlashUnbondingDelegation(ctx sdk.Context, unbondingDelegation types.UnbondingDelegation, ...) (totalSlashAmount math.Int) + func (k Keeper) StakingTokenSupply(ctx sdk.Context) math.Int + func (k Keeper) TokensFromConsensusPower(ctx sdk.Context, power int64) math.Int + func (k Keeper) TokensToConsensusPower(ctx sdk.Context, tokens math.Int) int64 + func (k Keeper) TotalBondedTokens(ctx sdk.Context) math.Int + func (k Keeper) TrackHistoricalInfo(ctx sdk.Context) + func (k Keeper) UBDQueueIterator(ctx sdk.Context, endTime time.Time) sdk.Iterator + func (k Keeper) Unbond(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, ...) (amount math.Int, err error) + func (k Keeper) UnbondAllMatureValidators(ctx sdk.Context) + func (k Keeper) UnbondingTime(ctx sdk.Context) (res time.Duration) + func (k Keeper) UnbondingToUnbonded(ctx sdk.Context, validator types.Validator) types.Validator + func (k Keeper) Undelegate(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, ...) (time.Time, error) + func (k Keeper) Unjail(ctx sdk.Context, consAddr sdk.ConsAddress) + func (k Keeper) UpdateValidatorCommission(ctx sdk.Context, validator types.Validator, newRate sdk.Dec) (types.Commission, error) + func (k Keeper) ValidateUnbondAmount(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, amt math.Int) (shares sdk.Dec, err error) + func (k Keeper) Validator(ctx sdk.Context, address sdk.ValAddress) types.ValidatorI + func (k Keeper) ValidatorByConsAddr(ctx sdk.Context, addr sdk.ConsAddress) types.ValidatorI + func (k Keeper) ValidatorQueueIterator(ctx sdk.Context, endTime time.Time, endHeight int64) sdk.Iterator + func (k Keeper) ValidatorsPowerStoreIterator(ctx sdk.Context) sdk.Iterator + type Migrator struct + func NewMigrator(keeper Keeper) Migrator + func (m Migrator) Migrate1to2(ctx sdk.Context) error + func (m Migrator) Migrate2to3(ctx sdk.Context) error + type Querier struct + func (k Querier) Delegation(c context.Context, req *types.QueryDelegationRequest) (*types.QueryDelegationResponse, error) + func (k Querier) DelegatorDelegations(c context.Context, req *types.QueryDelegatorDelegationsRequest) (*types.QueryDelegatorDelegationsResponse, error) + func (k Querier) DelegatorUnbondingDelegations(c context.Context, req *types.QueryDelegatorUnbondingDelegationsRequest) (*types.QueryDelegatorUnbondingDelegationsResponse, error) + func (k Querier) DelegatorValidator(c context.Context, req *types.QueryDelegatorValidatorRequest) (*types.QueryDelegatorValidatorResponse, error) + func (k Querier) DelegatorValidators(c context.Context, req *types.QueryDelegatorValidatorsRequest) (*types.QueryDelegatorValidatorsResponse, error) + func (k Querier) HistoricalInfo(c context.Context, req *types.QueryHistoricalInfoRequest) (*types.QueryHistoricalInfoResponse, error) + func (k Querier) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) + func (k Querier) Pool(c context.Context, _ *types.QueryPoolRequest) (*types.QueryPoolResponse, error) + func (k Querier) Redelegations(c context.Context, req *types.QueryRedelegationsRequest) (*types.QueryRedelegationsResponse, error) + func (k Querier) UnbondingDelegation(c context.Context, req *types.QueryUnbondingDelegationRequest) (*types.QueryUnbondingDelegationResponse, error) + func (k Querier) Validator(c context.Context, req *types.QueryValidatorRequest) (*types.QueryValidatorResponse, error) + func (k Querier) ValidatorDelegations(c context.Context, req *types.QueryValidatorDelegationsRequest) (*types.QueryValidatorDelegationsResponse, error) + func (k Querier) ValidatorUnbondingDelegations(c context.Context, req *types.QueryValidatorUnbondingDelegationsRequest) (*types.QueryValidatorUnbondingDelegationsResponse, error) + func (k Querier) Validators(c context.Context, req *types.QueryValidatorsRequest) (*types.QueryValidatorsResponse, error)