Versions in this module Expand all Collapse all v0 v0.0.4 Jul 18, 2024 v0.0.3 Jul 18, 2024 Changes in this version + func AllInvariants(k *Keeper) sdk.Invariant + func DelegatorSharesInvariant(k *Keeper) sdk.Invariant + func ModuleAccountInvariants(k *Keeper) sdk.Invariant + func NewMsgServerImpl(keeper *Keeper) types.MsgServer + func NonNegativePowerInvariant(k *Keeper) sdk.Invariant + func PositiveDelegationInvariant(k *Keeper) sdk.Invariant + func RegisterInvariants(ir sdk.InvariantRegistry, k *Keeper) + func TestingUpdateValidator(keeper *Keeper, ctx sdk.Context, validator types.Validator, apply bool) types.Validator + func ValidatorByPowerIndexExists(ctx context.Context, keeper *Keeper, power []byte) bool + type Keeper struct + func NewKeeper(cdc codec.BinaryCodec, storeService storetypes.KVStoreService, ...) *Keeper + func (k *Keeper) BeginBlocker(ctx context.Context) error + func (k *Keeper) EndBlocker(ctx context.Context) ([]abci.ValidatorUpdate, error) + func (k *Keeper) Hooks() types.StakingHooks + func (k *Keeper) SetHooks(sh types.StakingHooks) + func (k Keeper) AddValidatorTokensAndShares(ctx context.Context, validator types.Validator, tokensToAdd math.Int) (valOut types.Validator, addedShares math.LegacyDec, err error) + func (k Keeper) ApplyAndReturnValidatorSetUpdates(ctx context.Context) (updates []abci.ValidatorUpdate, err error) + func (k Keeper) BeginRedelegation(ctx context.Context, delAddr sdk.AccAddress, ...) (completionTime time.Time, err error) + func (k Keeper) BeginUnbondingValidator(ctx context.Context, validator types.Validator) (types.Validator, error) + func (k Keeper) BlockValidatorUpdates(ctx context.Context) ([]abci.ValidatorUpdate, error) + func (k Keeper) BondDenom(ctx context.Context) (string, error) + func (k Keeper) BondedRatio(ctx context.Context) (math.LegacyDec, error) + func (k Keeper) CompleteRedelegation(ctx context.Context, delAddr sdk.AccAddress, ...) (sdk.Coins, error) + func (k Keeper) CompleteUnbonding(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error) + func (k Keeper) ConsensusAddressCodec() addresscodec.Codec + func (k Keeper) Delegate(ctx context.Context, delAddr sdk.AccAddress, bondAmt math.Int, ...) (newShares math.LegacyDec, err error) + func (k Keeper) Delegation(ctx context.Context, addrDel sdk.AccAddress, addrVal sdk.ValAddress) (types.DelegationI, error) + func (k Keeper) DeleteHistoricalInfo(ctx context.Context, height int64) error + func (k Keeper) DeleteLastValidatorPower(ctx context.Context, operator sdk.ValAddress) error + func (k Keeper) DeleteUnbondingIndex(ctx context.Context, id uint64) error + func (k Keeper) DeleteValidatorByPowerIndex(ctx context.Context, validator types.Validator) error + func (k Keeper) DeleteValidatorQueue(ctx context.Context, val types.Validator) error + func (k Keeper) DeleteValidatorQueueTimeSlice(ctx context.Context, endTime time.Time, endHeight int64) error + func (k Keeper) DequeueAllMatureRedelegationQueue(ctx context.Context, currTime time.Time) (matureRedelegations []types.DVVTriplet, err error) + func (k Keeper) DequeueAllMatureUBDQueue(ctx context.Context, currTime time.Time) (matureUnbonds []types.DVPair, err error) + func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState + func (k Keeper) GetAllDelegations(ctx context.Context) (delegations []types.Delegation, err error) + func (k Keeper) GetAllDelegatorDelegations(ctx context.Context, delegator sdk.AccAddress) ([]types.Delegation, error) + func (k Keeper) GetAllHistoricalInfo(ctx context.Context) ([]types.HistoricalInfo, error) + func (k Keeper) GetAllRedelegations(ctx context.Context, delegator sdk.AccAddress, ...) ([]types.Redelegation, error) + func (k Keeper) GetAllSDKDelegations(ctx context.Context) (delegations []types.Delegation, err error) + func (k Keeper) GetAllUnbondingDelegations(ctx context.Context, delegator sdk.AccAddress) ([]types.UnbondingDelegation, error) + func (k Keeper) GetAllValidators(ctx context.Context) (validators []types.Validator, err error) + func (k Keeper) GetAuthority() string + func (k Keeper) GetBondedPool(ctx context.Context) (bondedPool sdk.ModuleAccountI) + func (k Keeper) GetBondedValidatorsByPower(ctx context.Context) ([]types.Validator, error) + func (k Keeper) GetDelegation(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (types.Delegation, error) + func (k Keeper) GetDelegatorBonded(ctx context.Context, delegator sdk.AccAddress) (math.Int, error) + func (k Keeper) GetDelegatorDelegations(ctx context.Context, delegator sdk.AccAddress, maxRetrieve uint16) (delegations []types.Delegation, err error) + func (k Keeper) GetDelegatorUnbonding(ctx context.Context, delegator sdk.AccAddress) (math.Int, error) + func (k Keeper) GetDelegatorValidator(ctx context.Context, delegatorAddr sdk.AccAddress, ...) (validator types.Validator, err error) + func (k Keeper) GetDelegatorValidators(ctx context.Context, delegatorAddr sdk.AccAddress, maxRetrieve uint32) (types.Validators, error) + func (k Keeper) GetHistoricalInfo(ctx context.Context, height int64) (types.HistoricalInfo, error) + func (k Keeper) GetLastTotalPower(ctx context.Context) (math.Int, error) + func (k Keeper) GetLastValidatorPower(ctx context.Context, operator sdk.ValAddress) (power int64, err error) + func (k Keeper) GetLastValidators(ctx context.Context) (validators []types.Validator, err error) + func (k Keeper) GetNotBondedPool(ctx context.Context) (notBondedPool sdk.ModuleAccountI) + func (k Keeper) GetParams(ctx context.Context) (params types.Params, err error) + func (k Keeper) GetPubKeyByConsAddr(ctx context.Context, addr sdk.ConsAddress) (cmtprotocrypto.PublicKey, error) + func (k Keeper) GetRedelegation(ctx context.Context, delAddr sdk.AccAddress, ...) (red types.Redelegation, err error) + func (k Keeper) GetRedelegationByUnbondingID(ctx context.Context, id uint64) (red types.Redelegation, err error) + func (k Keeper) GetRedelegationQueueTimeSlice(ctx context.Context, timestamp time.Time) (dvvTriplets []types.DVVTriplet, err error) + func (k Keeper) GetRedelegations(ctx context.Context, delegator sdk.AccAddress, maxRetrieve uint16) (redelegations []types.Redelegation, err error) + func (k Keeper) GetRedelegationsFromSrcValidator(ctx context.Context, valAddr sdk.ValAddress) (reds []types.Redelegation, err error) + func (k Keeper) GetUBDQueueTimeSlice(ctx context.Context, timestamp time.Time) (dvPairs []types.DVPair, err error) + func (k Keeper) GetUnbondingDelegation(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (ubd types.UnbondingDelegation, err error) + func (k Keeper) GetUnbondingDelegationByUnbondingID(ctx context.Context, id uint64) (ubd types.UnbondingDelegation, err error) + func (k Keeper) GetUnbondingDelegations(ctx context.Context, delegator sdk.AccAddress, maxRetrieve uint16) (unbondingDelegations []types.UnbondingDelegation, err error) + func (k Keeper) GetUnbondingDelegationsFromValidator(ctx context.Context, valAddr sdk.ValAddress) (ubds []types.UnbondingDelegation, err error) + func (k Keeper) GetUnbondingType(ctx context.Context, id uint64) (unbondingType types.UnbondingType, err error) + func (k Keeper) GetUnbondingValidators(ctx context.Context, endTime time.Time, endHeight int64) ([]string, error) + func (k Keeper) GetValidator(ctx context.Context, addr sdk.ValAddress) (validator types.Validator, err error) + func (k Keeper) GetValidatorByConsAddr(ctx context.Context, consAddr sdk.ConsAddress) (validator types.Validator, err error) + func (k Keeper) GetValidatorByUnbondingID(ctx context.Context, id uint64) (val types.Validator, err error) + func (k Keeper) GetValidatorDelegations(ctx context.Context, valAddr sdk.ValAddress) (delegations []types.Delegation, err error) + func (k Keeper) GetValidatorSet() types.ValidatorSet + func (k Keeper) GetValidatorUpdates(ctx context.Context) ([]abci.ValidatorUpdate, error) + func (k Keeper) GetValidators(ctx context.Context, maxRetrieve uint32) (validators []types.Validator, err error) + func (k Keeper) HasMaxRedelegationEntries(ctx context.Context, delegatorAddr sdk.AccAddress, ...) (bool, error) + func (k Keeper) HasMaxUnbondingDelegationEntries(ctx context.Context, delegatorAddr sdk.AccAddress, ...) (bool, error) + func (k Keeper) HasReceivingRedelegation(ctx context.Context, delAddr sdk.AccAddress, valDstAddr sdk.ValAddress) (bool, error) + func (k Keeper) HistoricalEntries(ctx context.Context) (uint32, error) + func (k Keeper) IncrementUnbondingID(ctx context.Context) (unbondingID uint64, err error) + func (k Keeper) InitGenesis(ctx context.Context, data *types.GenesisState) (res []abci.ValidatorUpdate) + func (k Keeper) InsertRedelegationQueue(ctx context.Context, red types.Redelegation, completionTime time.Time) error + func (k Keeper) InsertUBDQueue(ctx context.Context, ubd types.UnbondingDelegation, completionTime time.Time) error + func (k Keeper) InsertUnbondingValidatorQueue(ctx context.Context, val types.Validator) error + func (k Keeper) IsValidatorJailed(ctx context.Context, addr sdk.ConsAddress) (bool, error) + func (k Keeper) IterateAllDelegations(ctx context.Context, cb func(delegation types.Delegation) (stop bool)) error + func (k Keeper) IterateBondedValidatorsByPower(ctx context.Context, ...) error + func (k Keeper) IterateDelegations(ctx context.Context, delAddr sdk.AccAddress, ...) error + func (k Keeper) IterateDelegatorDelegations(ctx context.Context, delegator sdk.AccAddress, ...) error + func (k Keeper) IterateDelegatorRedelegations(ctx context.Context, delegator sdk.AccAddress, ...) error + func (k Keeper) IterateDelegatorUnbondingDelegations(ctx context.Context, delegator sdk.AccAddress, ...) error + func (k Keeper) IterateHistoricalInfo(ctx context.Context, cb func(types.HistoricalInfo) bool) error + func (k Keeper) IterateLastValidatorPowers(ctx context.Context, ...) error + func (k Keeper) IterateLastValidators(ctx context.Context, ...) error + func (k Keeper) IterateRedelegations(ctx context.Context, fn func(index int64, red types.Redelegation) (stop bool)) error + func (k Keeper) IterateUnbondingDelegations(ctx context.Context, ...) error + func (k Keeper) IterateValidators(ctx context.Context, ...) error + func (k Keeper) Jail(ctx context.Context, consAddr sdk.ConsAddress) error + func (k Keeper) LastValidatorsIterator(ctx context.Context) (corestore.Iterator, error) + func (k Keeper) Logger(ctx context.Context) log.Logger + func (k Keeper) MaxEntries(ctx context.Context) (uint32, error) + func (k Keeper) MaxValidators(ctx context.Context) (uint32, error) + func (k Keeper) MinCommissionRate(ctx context.Context) (math.LegacyDec, error) + func (k Keeper) PowerReduction(ctx context.Context) math.Int + func (k Keeper) PutUnbondingOnHold(ctx context.Context, id uint64) error + func (k Keeper) RedelegationQueueIterator(ctx context.Context, endTime time.Time) (storetypes.Iterator, error) + func (k Keeper) RemoveDelegation(ctx context.Context, delegation types.Delegation) error + func (k Keeper) RemoveRedelegation(ctx context.Context, red types.Redelegation) error + func (k Keeper) RemoveUnbondingDelegation(ctx context.Context, ubd types.UnbondingDelegation) error + func (k Keeper) RemoveValidator(ctx context.Context, address sdk.ValAddress) error + func (k Keeper) RemoveValidatorTokens(ctx context.Context, validator types.Validator, tokensToRemove math.Int) (types.Validator, error) + func (k Keeper) RemoveValidatorTokensAndShares(ctx context.Context, validator types.Validator, sharesToRemove math.LegacyDec) (valOut types.Validator, removedTokens math.Int, err error) + func (k Keeper) SetDelegation(ctx context.Context, delegation types.Delegation) error + func (k Keeper) SetHistoricalInfo(ctx context.Context, height int64, hi *types.HistoricalInfo) error + func (k Keeper) SetLastTotalPower(ctx context.Context, power math.Int) error + func (k Keeper) SetLastValidatorPower(ctx context.Context, operator sdk.ValAddress, power int64) error + func (k Keeper) SetNewValidatorByPowerIndex(ctx context.Context, validator types.Validator) error + func (k Keeper) SetParams(ctx context.Context, params types.Params) error + func (k Keeper) SetRedelegation(ctx context.Context, red types.Redelegation) error + func (k Keeper) SetRedelegationByUnbondingID(ctx context.Context, red types.Redelegation, id uint64) error + func (k Keeper) SetRedelegationEntry(ctx context.Context, delegatorAddr sdk.AccAddress, ...) (types.Redelegation, error) + func (k Keeper) SetRedelegationQueueTimeSlice(ctx context.Context, timestamp time.Time, keys []types.DVVTriplet) error + func (k Keeper) SetUBDQueueTimeSlice(ctx context.Context, timestamp time.Time, keys []types.DVPair) error + func (k Keeper) SetUnbondingDelegation(ctx context.Context, ubd types.UnbondingDelegation) error + func (k Keeper) SetUnbondingDelegationByUnbondingID(ctx context.Context, ubd types.UnbondingDelegation, id uint64) error + func (k Keeper) SetUnbondingDelegationEntry(ctx context.Context, delegatorAddr sdk.AccAddress, ...) (types.UnbondingDelegation, error) + func (k Keeper) SetUnbondingType(ctx context.Context, id uint64, unbondingType types.UnbondingType) error + func (k Keeper) SetUnbondingValidatorsQueue(ctx context.Context, endTime time.Time, endHeight int64, addrs []string) error + func (k Keeper) SetValidator(ctx context.Context, validator types.Validator) error + func (k Keeper) SetValidatorByConsAddr(ctx context.Context, validator types.Validator) error + func (k Keeper) SetValidatorByPowerIndex(ctx context.Context, validator types.Validator) error + func (k Keeper) SetValidatorByUnbondingID(ctx context.Context, val types.Validator, id uint64) error + func (k Keeper) SetValidatorUpdates(ctx context.Context, valUpdates []abci.ValidatorUpdate) error + func (k Keeper) Slash(ctx context.Context, consAddr sdk.ConsAddress, infractionHeight, power int64, ...) (math.Int, error) + func (k Keeper) SlashRedelegation(ctx context.Context, srcValidator types.Validator, ...) (totalSlashAmount math.Int, err error) + func (k Keeper) SlashUnbondingDelegation(ctx context.Context, unbondingDelegation types.UnbondingDelegation, ...) (totalSlashAmount math.Int, err error) + func (k Keeper) SlashWithInfractionReason(ctx context.Context, consAddr sdk.ConsAddress, infractionHeight, power int64, ...) (math.Int, error) + func (k Keeper) StakingTokenSupply(ctx context.Context) (math.Int, error) + func (k Keeper) TokensFromConsensusPower(ctx context.Context, power int64) math.Int + func (k Keeper) TokensToConsensusPower(ctx context.Context, tokens math.Int) int64 + func (k Keeper) TotalBondedTokens(ctx context.Context) (math.Int, error) + func (k Keeper) TrackHistoricalInfo(ctx context.Context) error + func (k Keeper) UBDQueueIterator(ctx context.Context, endTime time.Time) (corestore.Iterator, error) + func (k Keeper) Unbond(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, ...) (amount math.Int, err error) + func (k Keeper) UnbondAllMatureValidators(ctx context.Context) error + func (k Keeper) UnbondingCanComplete(ctx context.Context, id uint64) error + func (k Keeper) UnbondingTime(ctx context.Context) (time.Duration, error) + func (k Keeper) UnbondingToUnbonded(ctx context.Context, validator types.Validator) (types.Validator, error) + func (k Keeper) Undelegate(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, ...) (time.Time, math.Int, error) + func (k Keeper) Unjail(ctx context.Context, consAddr sdk.ConsAddress) error + func (k Keeper) UpdateValidatorCommission(ctx context.Context, validator types.Validator, newRate math.LegacyDec) (types.Commission, error) + func (k Keeper) ValidateUnbondAmount(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, ...) (shares math.LegacyDec, err error) + func (k Keeper) Validator(ctx context.Context, address sdk.ValAddress) (types.ValidatorI, error) + func (k Keeper) ValidatorAddressCodec() addresscodec.Codec + func (k Keeper) ValidatorByConsAddr(ctx context.Context, addr sdk.ConsAddress) (types.ValidatorI, error) + func (k Keeper) ValidatorQueueIterator(ctx context.Context, endTime time.Time, endHeight int64) (corestore.Iterator, error) + func (k Keeper) ValidatorsPowerStoreIterator(ctx context.Context) (corestore.Iterator, error) + type Migrator struct + func NewMigrator(keeper *Keeper, legacySubspace exported.Subspace) Migrator + func (m Migrator) Migrate1to2(ctx sdk.Context) error + func (m Migrator) Migrate2to3(ctx sdk.Context) error + func (m Migrator) Migrate3to4(ctx sdk.Context) error + func (m Migrator) Migrate4to5(ctx sdk.Context) error + type Querier struct + func NewQuerier(keeper *Keeper) Querier + func (k Querier) Delegation(ctx context.Context, req *types.QueryDelegationRequest) (*types.QueryDelegationResponse, error) + func (k Querier) DelegatorDelegations(ctx context.Context, req *types.QueryDelegatorDelegationsRequest) (*types.QueryDelegatorDelegationsResponse, error) + func (k Querier) DelegatorUnbondingDelegations(ctx context.Context, req *types.QueryDelegatorUnbondingDelegationsRequest) (*types.QueryDelegatorUnbondingDelegationsResponse, error) + func (k Querier) DelegatorValidator(ctx context.Context, req *types.QueryDelegatorValidatorRequest) (*types.QueryDelegatorValidatorResponse, error) + func (k Querier) DelegatorValidators(ctx context.Context, req *types.QueryDelegatorValidatorsRequest) (*types.QueryDelegatorValidatorsResponse, error) + func (k Querier) HistoricalInfo(ctx context.Context, req *types.QueryHistoricalInfoRequest) (*types.QueryHistoricalInfoResponse, error) + func (k Querier) Params(ctx context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) + func (k Querier) Pool(ctx context.Context, _ *types.QueryPoolRequest) (*types.QueryPoolResponse, error) + func (k Querier) Redelegations(ctx context.Context, req *types.QueryRedelegationsRequest) (*types.QueryRedelegationsResponse, error) + func (k Querier) UnbondingDelegation(ctx context.Context, req *types.QueryUnbondingDelegationRequest) (*types.QueryUnbondingDelegationResponse, error) + func (k Querier) Validator(ctx context.Context, req *types.QueryValidatorRequest) (*types.QueryValidatorResponse, error) + func (k Querier) ValidatorDelegations(ctx context.Context, req *types.QueryValidatorDelegationsRequest) (*types.QueryValidatorDelegationsResponse, error) + func (k Querier) ValidatorUnbondingDelegations(ctx context.Context, req *types.QueryValidatorUnbondingDelegationsRequest) (*types.QueryValidatorUnbondingDelegationsResponse, error) + func (k Querier) Validators(ctx context.Context, req *types.QueryValidatorsRequest) (*types.QueryValidatorsResponse, error)