cosmos-sdk/x/staking
mergify[bot] ac970f52be
feat: add (re)delegation getters (backport #11596) (#11615)
* feat: add (re)delegation getters (#11596)

### 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 b8270fc9ba)

# Conflicts:
#	CHANGELOG.md
#	x/staking/keeper/delegation.go

* fix RemoveDelegation method conflict

* fix CHANGELOG conflict

* add new PR in CHANGELOG

Co-authored-by: Daniel Burckhardt <daniel.m.burckhardt@gmail.com>
2022-04-13 16:34:42 +02:00
..
client fix!: Charge gas for key length in gas meter (backport #10247) (#10697) 2021-12-10 08:29:12 +01:00
keeper feat: add (re)delegation getters (backport #11596) (#11615) 2022-04-13 16:34:42 +02:00
legacy revert: Turn staking power reduction into an on-chain param (#9495) 2021-06-14 14:45:15 +00:00
simulation revert: Turn staking power reduction into an on-chain param (#9495) 2021-06-14 14:45:15 +00:00
spec style: lint go and markdown (backport #10060) (#10473) 2021-11-11 21:29:29 +01:00
teststaking merged in master 2021-03-21 16:37:06 -04:00
types chore: Add "Since:" on proto doc comments (backport #10434) (#10449) 2021-10-29 09:42:49 +02:00
abci.go Merge PR #6761: telemetry: use UTC() in wrappers 2020-07-17 15:33:50 -04:00
app_test.go on-chain power reduction param conversion basic work 2021-01-27 20:24:00 +10:00
bench_test.go x/staking: add ValidateGenesis benchmark (#8746) 2021-03-02 01:01:05 -08:00
common_test.go on-chain power reduction param conversion basic work 2021-01-27 20:24:00 +10:00
genesis.go x/staking: lazily get consensus key address (#9264) 2021-05-05 11:28:37 -07:00
genesis_test.go SDK Core Audit - simapp updates (#9315) 2021-05-17 15:42:44 +00:00
handler.go Refactor x/staking according to ADR 031 (#7556) 2020-10-16 14:53:49 +00:00
handler_test.go revert: Turn staking power reduction into an on-chain param (#9495) 2021-06-14 14:45:15 +00:00
module.go codec: Rename codec and marshaler interfaces (#9226) 2021-04-29 10:46:22 +00:00
module_test.go tendermint: update to rc3 (#6892) 2020-08-14 13:58:53 -04:00