-
Notifications
You must be signed in to change notification settings - Fork 607
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(poolmanager): v2 SpotPrice query with 36 decimals #6488
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
||
// SpotPriceRequest defines the gRPC request structure for a SpotPrice | ||
// query. | ||
message SpotPriceRequest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this also have a V2
suffix? to avoid confusing it to v1's version:
message SpotPriceRequest { |
same goes for SpotPriceResponse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on the second thought, I guess it is fine, since we call it by specifying a package name, which has v2
in it. still going to leave it here just in case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK with minor request
@@ -1,4 +1,5 @@ | |||
package grpc | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It probably doesn't matter but the package should be the first line, are we able to modify the template to do this for all of the below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed offline and concluded that this is fine as long as no errors in the editor.
This stems from this line in the template:
#6488 (comment)
Didn't find a trivial way to fix and concluded that it is fine to keep as is since the change is only cosmetic
package grpc | ||
{{ $version := .VersionSuffix }} | ||
package grpc{{$version}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link
* feat: make PoolModuleI CalculateSpotPrice API return BigDec * updates * clean up * updates * updates * feat(poolmaanger): v2 SpotPrice query with 36 decimals * changelog * clean up * Generated protofile changes * querygen updates * Update cmd/querygen/main.go --------- Co-authored-by: github-actions <[email protected]> Co-authored-by: Adam Tucker <[email protected]> (cherry picked from commit b1bfa20) # Conflicts: # CHANGELOG.md
… (#6561) Co-authored-by: roman <[email protected]>
Progress towards: #6064
What is the purpose of the change
This PR introduces a GRPC and CLI wrapper around the new BigDec API. Contrary to our existing queries, it does not truncate the final result and returns the full 36 decimals.
It includes some modifications to our query generation script to be able to properly generate v2 queries without conflicts.
Localosmosis Test
Documentation and Release Note
Unreleased
section ofCHANGELOG.md
?Where is the change documented?
x/{module}/README.md
)