Finschia / finschia-sdk

A framework for building blockchains based Finschia Mainnet that is forked from cosmos-sdk
Apache License 2.0
62 stars 29 forks source link

feat: add new query to get a swap (backport #1387) #1389

Closed mergify[bot] closed 1 month ago

mergify[bot] commented 1 month ago

Description

Motivation and context

How has this been tested?

Screenshots (if appropriate):

Checklist:

mergify[bot] commented 1 month ago

Cherry-pick of 92ad6753032179c706fd525cc6d1444ccd9b9579 has failed:

On branch mergify/bp/release/v0.49.x/pr-1387
Your branch is up to date with 'origin/release/v0.49.x'.

You are currently cherry-picking commit 92ad67530.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
    modified:   CHANGELOG.md
    modified:   client/docs/config.json
    modified:   docs/core/proto-docs.md
    modified:   proto/lbm/fswap/v1/query.proto
    modified:   x/fswap/client/cli/query.go
    modified:   x/fswap/keeper/grpc_query.go
    new file:   x/fswap/keeper/grpc_query_test.go
    modified:   x/fswap/testutil/expected_keepers_mocks.go
    modified:   x/fswap/types/msgs.go
    modified:   x/fswap/types/msgs_test.go
    modified:   x/fswap/types/query.pb.go
    modified:   x/fswap/types/query.pb.gw.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
    both modified:   client/docs/swagger-ui/swagger.yaml

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 75.00000% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 68.93%. Comparing base (27c7599) to head (68bebbd).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1389/graphs/tree.svg?width=650&height=150&src=pr&token=m16qfzIPO7&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia)](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1389?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia) ```diff @@ Coverage Diff @@ ## release/v0.49.x #1389 +/- ## ================================================ Coverage 68.93% 68.93% ================================================ Files 671 671 Lines 69260 69284 +24 ================================================ + Hits 47743 47760 +17 - Misses 19235 19240 +5 - Partials 2282 2284 +2 ``` | [Files](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1389?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia) | Coverage Δ | | |---|---|---| | [x/fswap/keeper/grpc\_query.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1389?src=pr&el=tree&filepath=x%2Ffswap%2Fkeeper%2Fgrpc_query.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mc3dhcC9rZWVwZXIvZ3JwY19xdWVyeS5nbw==) | `17.46% <70.00%> (+9.91%)` | :arrow_up: | | [x/fswap/types/msgs.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1389?src=pr&el=tree&filepath=x%2Ffswap%2Ftypes%2Fmsgs.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mc3dhcC90eXBlcy9tc2dzLmdv) | `32.95% <78.57%> (+8.63%)` | :arrow_up: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1389/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia)