Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new query to get a swap #1387

Merged
merged 7 commits into from
May 21, 2024
Merged

feat: add new query to get a swap #1387

merged 7 commits into from
May 21, 2024

Conversation

jaeseung-bae
Copy link
Contributor

@jaeseung-bae jaeseung-bae commented May 17, 2024

Description

  • Add new query to get a swap
  • Add missing swagger fswap entry for generation
    • Add new URL for fswap's query json to client/docs/config.json
  • Fix for missing pagination for QuerySwapsRequest CLI

Motivation and context

How has this been tested?

Screenshots (if appropriate):

Checklist:

  • I followed the contributing guidelines and code of conduct.
  • I have added a relevant changelog to CHANGELOG.md
  • I have added tests to cover my changes.
  • I have updated the documentation accordingly.
  • I have updated API documentation client/docs/swagger-ui/swagger.yaml

Copy link

codecov bot commented May 17, 2024

Codecov Report

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

Project coverage is 69.57%. Comparing base (ed74ee8) to head (628e3bc).
Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1387      +/-   ##
==========================================
- Coverage   69.58%   69.57%   -0.01%     
==========================================
  Files         668      668              
  Lines       56208    56231      +23     
==========================================
+ Hits        39111    39125      +14     
- Misses      14830    14835       +5     
- Partials     2267     2271       +4     
Files Coverage Δ
x/fswap/keeper/grpc_query.go 17.64% <75.00%> (+10.67%) ⬆️
x/fswap/types/msgs.go 35.61% <80.00%> (+7.04%) ⬆️

... and 2 files with indirect coverage changes

@jaeseung-bae jaeseung-bae marked this pull request as ready for review May 17, 2024 07:51
Copy link
Collaborator

@0Tech 0Tech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for describing the swagger fix in the PR description.
It would be also nice to give a hint about the fix regarding the missing pagination handling.

x/fswap/types/msgs.go Outdated Show resolved Hide resolved
@jaeseung-bae jaeseung-bae requested review from 0Tech and 170210 May 20, 2024 04:20
0Tech
0Tech previously approved these changes May 20, 2024
Copy link
Member

@zemyblue zemyblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no single swap query cli. Please check it.

@jaeseung-bae
Copy link
Contributor Author

There is no single swap query cli. Please check it.

Thanks for finding missing cli. I've just added.

@jaeseung-bae jaeseung-bae merged commit 92ad675 into main May 21, 2024
40 checks passed
@jaeseung-bae jaeseung-bae deleted the feat/add-query branch May 21, 2024 04:45
mergify bot pushed a commit that referenced this pull request May 21, 2024
* feat: add new query to get a swap

* chore: update changelog

* fix: add missing pagination param in cli client

* chore: lint fix

* chore: add grpc-query test

* chore: add descriptive message for invalid QuerySwapRequest

* chore: add CLI to query swap

(cherry picked from commit 92ad675)

# Conflicts:
#	client/docs/swagger-ui/swagger.yaml
jaeseung-bae added a commit that referenced this pull request May 21, 2024
* feat: add new query to get a swap (#1387)

* feat: add new query to get a swap

* chore: update changelog

* fix: add missing pagination param in cli client

* chore: lint fix

* chore: add grpc-query test

* chore: add descriptive message for invalid QuerySwapRequest

* chore: add CLI to query swap

(cherry picked from commit 92ad675)

# Conflicts:
#	client/docs/swagger-ui/swagger.yaml

* chore: fix conflict

---------

Co-authored-by: jaeseung-bae <119839167+jaeseung-bae@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants