cosmos-sdk/api/cosmos
Likhita Polavarapu 2bb114acec
fix: Evidence API does not decode the hash properly (#13740)
## Description

Closes: #13444 

This PR fixes the x/evidence api query which is not decoding the evidence hash properly because of its type ([]byte). We fix it with the following steps:
1. Adds a new proto field `hash` of type `string`
2. Make the old `evidence_hash` field deprecated
3. Updates query handler 

---

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/main/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed 
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)
2022-11-04 10:08:44 +00:00
..
app chore: proto image migrate to ghcr (#13168) 2022-09-07 12:03:00 +00:00
auth feat(api): add authority as module parameter (#13712) 2022-10-31 18:51:43 +00:00
authz feat: add proto annotation for Msg services (#13178) 2022-09-14 09:27:45 +00:00
autocli/v1 chore: remove module_query_safe for few auth queries (#13642) 2022-10-25 12:49:44 +02:00
bank feat(api): add authority as module parameter (#13712) 2022-10-31 18:51:43 +00:00
base feat: gRPC query for operator and chain configuration (#13485) 2022-10-10 19:12:00 +00:00
capability refactor: migrate to cosmos/gogoproto (#13070) 2022-09-08 17:27:48 +00:00
consensus feat(api): add authority as module parameter (#13712) 2022-10-31 18:51:43 +00:00
crisis feat(api): add authority as module parameter (#13712) 2022-10-31 18:51:43 +00:00
crypto refactor: migrate to cosmos/gogoproto (#13070) 2022-09-08 17:27:48 +00:00
distribution feat(api): add authority as module parameter (#13712) 2022-10-31 18:51:43 +00:00
evidence fix: Evidence API does not decode the hash properly (#13740) 2022-11-04 10:08:44 +00:00
feegrant feat: add proto annotation for Msg services (#13178) 2022-09-14 09:27:45 +00:00
genutil refactor: migrate to cosmos/gogoproto (#13070) 2022-09-08 17:27:48 +00:00
gov feat(api): add authority as module parameter (#13712) 2022-10-31 18:51:43 +00:00
group refactor: Improve and clarify API around AccountAddressById (#13460) 2022-10-06 11:05:25 +00:00
mint feat(api): add authority as module parameter (#13712) 2022-10-31 18:51:43 +00:00
msg/v1 feat: add proto annotation for Msg services (#13178) 2022-09-14 09:27:45 +00:00
nft feat: add autocli service proto (#13597) 2022-10-25 09:17:30 +00:00
orm chore: proto image migrate to ghcr (#13168) 2022-09-07 12:03:00 +00:00
params refactor: migrate to cosmos/gogoproto (#13070) 2022-09-08 17:27:48 +00:00
query/v1 feat: add autocli service proto (#13597) 2022-10-25 09:17:30 +00:00
reflection/v1 refactor!: simplify cosmos.reflection.v1 (#13668) 2022-10-26 17:36:24 +00:00
slashing feat(api): add authority as module parameter (#13712) 2022-10-31 18:51:43 +00:00
staking feat(api): add authority as module parameter (#13712) 2022-10-31 18:51:43 +00:00
tx feat: add autocli service proto (#13597) 2022-10-25 09:17:30 +00:00
upgrade feat(api): add authority as module parameter (#13712) 2022-10-31 18:51:43 +00:00
vesting feat: add proto annotation for Msg services (#13178) 2022-09-14 09:27:45 +00:00