cosmos-sdk/x/staking/keeper
likhita-809 da87ab0d36
fix: Staking delegations should return empty list instead of rpc error when no records found (#9423)
* return empty list instead of rpc error when no records found for staking delegations

* fix grpc query DelegatorDelegations tests

* remove response code tests for staking delegations

* fix failing tests

* change staking delegations response code to 200 in grpc test

* add staking delegations response code tests to TestQueryDelegatorDelegationsGRPC

* add address without delegations testcase

* add changes to grpc query tests of delegatorDelegations

* remove getRequest unused function from x/staking/client/rest/grpc_query_test.go

* minor fixes

* add testcases for request with no delegations

* address review comments

* add changelog

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-06-01 15:17:44 +00:00
..
alias_functions.go various linter fixes (#8666) 2021-02-23 08:46:01 +00:00
common_test.go on-chain power reduction param conversion basic work 2021-01-27 20:24:00 +10:00
delegation.go Remove Redundant Staking Errors (#9231) 2021-05-19 12:20:17 +00:00
delegation_test.go SDK Core Audit - simapp updates (#9315) 2021-05-17 15:42:44 +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 fix: Staking delegations should return empty list instead of rpc error when no records found (#9423) 2021-06-01 15:17:44 +00:00
historical_info.go codec: Rename codec and marshaler interfaces (#9226) 2021-04-29 10:46:22 +00:00
historical_info_test.go Less function to not use default power reduction 2021-02-02 13:12:05 +10:00
hooks.go Merge PR #4417: cleanup staking references from types pkg 2019-06-04 15:06:58 -07:00
invariants.go on-chain power reduction param conversion basic work 2021-01-27 20:24:00 +10:00
keeper.go codec: Rename codec and marshaler interfaces (#9226) 2021-04-29 10:46:22 +00:00
keeper_test.go use on-chain params on tests + fix tests + add new tests for power reduction change 2021-01-28 23:54:39 +10:00
migrations.go fixed migrations 2021-04-07 19:56:39 -04:00
msg_server.go Remove Redundant Staking Errors (#9231) 2021-05-19 12:20:17 +00:00
params.go on-chain power reduction param conversion basic work 2021-01-27 20:24:00 +10:00
pool.go Index supply by denom (#8517) 2021-03-03 09:58:16 +00:00
power_reduction.go on-chain power reduction param conversion basic work 2021-01-27 20:24:00 +10:00
power_reduction_test.go use on-chain params on tests + fix tests + add new tests for power reduction change 2021-01-28 23:54:39 +10:00
querier.go various linter fixes (#8666) 2021-02-23 08:46:01 +00:00
querier_test.go use on-chain params on tests + fix tests + add new tests for power reduction change 2021-01-28 23:54:39 +10:00
query_utils.go various linter fixes (#8666) 2021-02-23 08:46:01 +00:00
slash.go use on-chain params on tests + fix tests + add new tests for power reduction change 2021-01-28 23:54:39 +10:00
slash_test.go SDK Core Audit - simapp updates (#9315) 2021-05-17 15:42:44 +00:00
test_common.go Use any as validator pubkey (#7597) 2020-10-23 12:07:52 +00:00
val_state_change.go codec: Rename codec and marshaler interfaces (#9226) 2021-04-29 10:46:22 +00:00
validator.go codec: Rename codec and marshaler interfaces (#9226) 2021-04-29 10:46:22 +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 SDK Core Audit - simapp updates (#9315) 2021-05-17 15:42:44 +00:00