Skip to content

Commit

Permalink
feat: add (re)delegation getters (#11596)
Browse files Browse the repository at this point in the history
### Description

This PR adds general helper functions to the `x/staking` module that are used in the Evmos `x/vesting` module and originated from Agoric's custom staking module implementation https://github.com/agoric-labs/cosmos-sdk/blob/4085-true-vesting/x/staking/keeper/delegation.go.

- `GetDelegatorUnbonding`
- `GetDelegatorBonded`
- `IterateDelegatorUnbondingDelegations`
- `IterateDelegatorDelegations`
- `IterateDelegatorRedelegations`

(cherry picked from commit b8270fc)

# Conflicts:
#	CHANGELOG.md
#	x/staking/keeper/delegation.go
  • Loading branch information
danburck authored and mergify-bot committed Apr 12, 2022
1 parent c2fd51b commit d8461c6
Show file tree
Hide file tree
Showing 3 changed files with 325 additions and 42 deletions.
Loading

0 comments on commit d8461c6

Please sign in to comment.