-
Notifications
You must be signed in to change notification settings - Fork 161
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
chore: adding query for all auctions with rewards #2564
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe changes introduce enhanced querying capabilities in the Umee auction module by adding two new RPC methods: Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant gRPC Server
participant Keeper
User->>CLI: Run rewards auctions query
CLI->>gRPC Server: Request /umee/auction/v1/rewards
gRPC Server->>Keeper: Invoke RewardsAuctions method
Keeper-->>gRPC Server: Return auction details with rewards
gRPC Server-->>CLI: Send response with rewards auctions data
CLI-->>User: Display rewards auctions result
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2564 +/- ##
===========================================
- Coverage 75.38% 62.53% -12.86%
===========================================
Files 100 275 +175
Lines 8025 16010 +7985
===========================================
+ Hits 6050 10012 +3962
- Misses 1589 5224 +3635
- Partials 386 774 +388
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (2)
x/auction/query.pb.go
is excluded by!**/*.pb.go
x/auction/query.pb.gw.go
is excluded by!**/*.pb.gw.go
Files selected for processing (3)
- proto/umee/auction/v1/query.proto (3 hunks)
- x/auction/client/cli/query.go (2 hunks)
- x/auction/keeper/grpc_query.go (2 hunks)
Additional comments not posted (6)
proto/umee/auction/v1/query.proto (4)
10-10
: Approved the addition of pagination import.This is essential for supporting pagination in the new RPC methods.
25-28
: Approved the addition of theRewardsAuctions
RPC method.The method is correctly defined and follows the appropriate conventions for gRPC services.
57-61
: Approved the message definition forQueryRewardsAuctions
.The structure is appropriate and includes necessary pagination support.
63-68
: Approved the message definition forQueryRewardsAuctionsResponse
.The response structure is well-defined, including both the list of auctions and the pagination response.
x/auction/client/cli/query.go (1)
85-111
: Approved the new CLI command for querying all rewards auctions.The command is well-implemented with appropriate flags and error handling.
x/auction/keeper/grpc_query.go (1)
60-105
: Approved the server-side implementation for querying all rewards auctions.The function correctly implements pagination and handles errors appropriately.
Description
adding new grpc-web get api for return all auctions with rewards and bids
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
Summary by CodeRabbit
RewardsAuctions
andRewardsAuction
.