diff --git a/CHANGELOG.md b/CHANGELOG.md index fedf109d..90afae8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,10 @@ An '!' indicates a state machine breaking change. - ! (`x/stakers`) [#210](https://github.com/KYVENetwork/chain/pull/210) Shared Staking: Pool specific commission and stake fraction. - ! (`x/stakers`) [#211](https://github.com/KYVENetwork/chain/pull/211) Shared Staking: Maximum voting power per pool. +### Improvements + +- (deps) [#213](https://github.com/KYVENetwork/chain/pull/213) Bump to CosmosSDK v0.50.11 and cleanup deps. + ### Bug Fixes - ! [#207](https://github.com/KYVENetwork/chain/pull/207) Added test case for points. diff --git a/x/stakers/keeper/exported_functions.go b/x/stakers/keeper/exported_functions.go index 8b2286f1..a695746f 100644 --- a/x/stakers/keeper/exported_functions.go +++ b/x/stakers/keeper/exported_functions.go @@ -1,7 +1,6 @@ package keeper import ( - "context" "sort" "cosmossdk.io/errors" @@ -365,32 +364,6 @@ func (k Keeper) Slash(ctx sdk.Context, poolId uint64, staker string, slashType s }) } -// GOVERNANCE - BONDING -// The next functions are used in our custom fork of the cosmos-sdk -// which includes protocol staking into the governance. -// The behavior is exactly the same as with normal cosmos-validators. - -// TotalBondedTokens returns all tokens which are currently bonded by the protocol -// I.e. the sum of all delegation of all stakers that are currently participating -// in at least one pool -func (k Keeper) TotalBondedTokens(ctx context.Context) math.Int { - return math.ZeroInt() -} - -// GetActiveValidators returns all protocol-node information which -// are needed by the governance to calculate the voting powers. -// The interface needs to correspond to github.com/cosmos/cosmos-sdk/x/gov/types/v1.ValidatorGovInfo -// But as there is no direct dependency in the cosmos-sdk-fork this value is passed as an interface{} -func (k Keeper) GetActiveValidators(ctx context.Context) (validators []interface{}) { - return -} - -// GetDelegations returns the address and the delegation amount of all active protocol-stakers the -// delegator as delegated to. This is used to calculate the vote weight each delegator has. -func (k Keeper) GetDelegations(ctx context.Context, delegator string) (validators []string, amounts []math.LegacyDec) { - return -} - func (k Keeper) DoesStakerExist(ctx sdk.Context, staker string) bool { // ToDo remove after Delegation module got deleted _, found := k.GetValidator(ctx, staker)