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

refactor: rename SpotPrice gRPC proto fields #1228

Merged
merged 3 commits into from
Apr 8, 2022

Conversation

alexanderbez
Copy link
Contributor

@alexanderbez alexanderbez commented Apr 8, 2022

Closes: #1227

Description

  • Rename SpotPrice gRPC proto fields
  • Linting
  • Make TestQueryBalancerPoolSpotPrice TD

For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

@alexanderbez alexanderbez added C:gRPC Issues and PRs related to the gRPC service and HTTP gateway. C:x/gamm Changes, features and bugs related to the gamm module. labels Apr 8, 2022
Comment on lines +120 to +121
string base_asset_denom = 2 [(gogoproto.moretags) = "yaml:\"base_asset_denom\""];
string quote_asset_denom = 3 [(gogoproto.moretags) = "yaml:\"quote_asset_denom\""];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

reviewer: logical proto changes

@alexanderbez alexanderbez marked this pull request as ready for review April 8, 2022 14:08
@codecov-commenter
Copy link

Codecov Report

Merging #1228 (819f818) into main (3c582ef) will decrease coverage by 0.02%.
The diff coverage is 40.74%.

@@            Coverage Diff             @@
##             main    #1228      +/-   ##
==========================================
- Coverage   20.99%   20.96%   -0.03%     
==========================================
  Files         196      196              
  Lines       25345    25337       -8     
==========================================
- Hits         5320     5312       -8     
  Misses      19066    19066              
  Partials      959      959              
Impacted Files Coverage Δ
x/gamm/types/query.pb.go 0.85% <0.00%> (ø)
x/gamm/client/cli/query.go 37.09% <100.00%> (-1.59%) ⬇️
x/gamm/keeper/grpc_query.go 42.20% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3c582ef...819f818. Read the comment docs.

Copy link
Member

@ValarDragon ValarDragon left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for fixing this!

@@ -201,51 +200,86 @@ func (suite *KeeperTestSuite) TestQueryBalancerPoolTotalLiquidity() {
// suite.Require().Equal("5000000foo", PoolAssets[2].Token.String())
// }

// TODO: Come back and make this table driven
func (suite *KeeperTestSuite) TestQueryBalancerPoolSpotPrice() {
Copy link
Member

Choose a reason for hiding this comment

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

Thank you for improving this test 🙏

@ValarDragon ValarDragon merged commit 6594da2 into main Apr 8, 2022
@ValarDragon ValarDragon deleted the bez/1227-rename-fields branch April 8, 2022 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:gRPC Issues and PRs related to the gRPC service and HTTP gateway. C:x/gamm Changes, features and bugs related to the gamm module.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Rename fields in QuerySpotPriceRequest
3 participants