-
Notifications
You must be signed in to change notification settings - Fork 115
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
pass shares to withdraw in megavault withdrawal query rest endpoint #2550
Conversation
WalkthroughThe changes in this pull request involve modifications to the Changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
46d73e7
to
5d97f6a
Compare
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.
Caution
Inline review comments failed to post. This is likely due to GitHub's limits when posting large numbers of comments.
Actionable comments posted: 1
🛑 Comments failed to post (1)
indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/query.lcd.ts (1)
3-3:
⚠️ Potential issueAdd implementation for POST-based megavault withdrawal info query.
The import statement has been updated to remove withdrawal info types, but there's no new implementation to support the POST-based query endpoint mentioned in the PR description (
/dydxprotocol/vault/megavault/withdrawal_info
).Add the following implementation:
import { QueryMegavaultWithdrawalInfoRequest, QueryMegavaultWithdrawalInfoResponseSDKType } from "./query"; // Add to LCDQueryClient class async megavaultWithdrawalInfo( params: QueryMegavaultWithdrawalInfoRequest ): Promise<QueryMegavaultWithdrawalInfoResponseSDKType> { const endpoint = `dydxprotocol/vault/megavault/withdrawal_info`; return await this.req.post<QueryMegavaultWithdrawalInfoResponseSDKType>( endpoint, params ); }
5d97f6a
to
962b804
Compare
962b804
to
4d7f039
Compare
Changelist
example query
Test Plan
[Describe how this PR was tested (if applicable)]
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.Summary by CodeRabbit
New Features
MegavaultWithdrawalInfo
endpoint to support POST requests, allowing for more flexible data submission.Bug Fixes
megavaultWithdrawalInfo
method from theLCDQueryClient
, streamlining the query functionality.