-
Notifications
You must be signed in to change notification settings - Fork 34
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: implement simplified unbonding and rewards queries #313
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, but missing tests
proto/alliance/alliance/query.proto
Outdated
@@ -249,7 +249,6 @@ message QueryAllianceUnbondingsByDelegatorResponse { | |||
option (gogoproto.goproto_getters) = false; | |||
|
|||
repeated UnbondingDelegation unbondings = 1 [(gogoproto.nullable) = false]; | |||
cosmos.base.query.v1beta1.PageResponse pagination = 2; |
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.
why we remove this?
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.
Because we don't have a way to paginate that specific request and the amount of items to be recovered from the API is number_of_alliances * 7 (maximum undelegations)
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.
Still missing the tests for the new API
@javiersuweijie the tests for the new API are added here:
If you want I can add more tests or I can try covering edge cases |
332b882
to
a77d5aa
Compare
As per the following issue #279 this PR implements a simplified way to query the unbondings and redelegations. It also includes tests and fixes for the other queries that does not return the right values.
These features were requested by @arthuryeti to simplify building frontends