cosmos-sdk/x/staking/keeper
Daniel Burckhardt b8270fc9ba
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`
2022-04-12 14:41:08 +00:00
..
alias_functions.go various linter fixes (#8666) 2021-02-23 08:46:01 +00:00
common_test.go revert: Revert "feat: staking config (#10988)" (#11446) 2022-03-24 12:26:25 +01:00
delegation.go feat: add (re)delegation getters (#11596) 2022-04-12 14:41:08 +00:00
delegation_test.go feat: add (re)delegation getters (#11596) 2022-04-12 14:41:08 +00:00
grpc_query.go fix: Staking delegations should return empty list instead of rpc error when no records found (#9423) 2021-06-01 15:17:44 +00:00
grpc_query_test.go revert: Revert "feat: staking config (#10988)" (#11446) 2022-03-24 12:26:25 +01:00
historical_info.go codec: Rename codec and marshaler interfaces (#9226) 2021-04-29 10:46:22 +00:00
historical_info_test.go feat!: Ensure InitGenesis returns with non-empty validator set (#9697) 2021-10-05 12:02:51 +00:00
hooks.go feat!: add error handling to staking hooks (#9571) 2021-06-30 10:13:07 +00:00
invariants.go fix!: x/staking - remove delegation with amount is zero (#10254) 2021-10-08 22:02:16 -04:00
keeper.go revert: Revert "feat: staking config (#10988)" (#11446) 2022-03-24 12:26:25 +01:00
keeper_test.go feat: Cancel unbonding delegation entry (#10885) 2022-04-05 10:01:13 +00:00
migrations.go chore: v045 cleanups for changelog and migrations (#10974) 2022-01-20 12:11:16 +01:00
msg_server.go feat: Cancel unbonding delegation entry (#10885) 2022-04-05 10:01:13 +00:00
msg_server_test.go feat: Cancel unbonding delegation entry (#10885) 2022-04-05 10:01:13 +00:00
params.go revert: Revert "feat: staking config (#10988)" (#11446) 2022-03-24 12:26:25 +01:00
pool.go Index supply by denom (#8517) 2021-03-03 09:58:16 +00:00
power_reduction.go revert: Revert "feat: staking config (#10988)" (#11446) 2022-03-24 12:26:25 +01:00
power_reduction_test.go revert: Revert "feat: staking config (#10988)" (#11446) 2022-03-24 12:26:25 +01:00
querier.go various linter fixes (#8666) 2021-02-23 08:46:01 +00:00
querier_test.go feat!: Ensure InitGenesis returns with non-empty validator set (#9697) 2021-10-05 12:02:51 +00:00
query_utils.go various linter fixes (#8666) 2021-02-23 08:46:01 +00:00
slash.go feat: add coins burned to slash event (#9458) 2021-07-05 14:33:30 +00:00
slash_test.go refactor(test)!: refactor `simapp.Setup` function (#9938) 2021-08-17 00:52:06 +00:00
test_common.go Use any as validator pubkey (#7597) 2020-10-23 12:07:52 +00:00
val_state_change.go revert: Turn staking power reduction into an on-chain param (#9495) 2021-06-14 14:45:15 +00:00
validator.go feat: Min commission upgrade 0.44 (#10529) 2021-11-12 11:55:55 +00:00
validator_bench_test.go Removed GetValidator caching to fix concurrency error (#8546) 2021-02-12 11:52:03 +00:00
validator_test.go feat: Min commission upgrade 0.44 (#10529) 2021-11-12 11:55:55 +00:00