Skip to content

Commit

Permalink
chore: Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mbreithecker committed Dec 20, 2024
1 parent 16e5c8d commit d06e9a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 27 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
27 changes: 0 additions & 27 deletions x/stakers/keeper/exported_functions.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package keeper

import (
"context"
"sort"

"cosmossdk.io/errors"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d06e9a9

Please sign in to comment.