Skip to content

feat(wallet): expose set_withdraw_vesting_route in the HP action list - #60

Merged
feruzm merged 2 commits into
mainfrom
feature/hp-withdraw-routes-action
Jul 26, 2026
Merged

feat(wallet): expose set_withdraw_vesting_route in the HP action list#60
feruzm merged 2 commits into
mainfrom
feature/hp-withdraw-routes-action

Conversation

@feruzm

@feruzm feruzm commented Jul 25, 2026

Copy link
Copy Markdown
Member

HpActions() returned only delegate_vesting_shares and withdraw_vesting. Both clients build their HP operation buttons from this list, so the withdraw routes UI each of them already implements had no direct entry point.

Adds set_withdraw_vesting_route, the chain operation name, matching the style of the two existing ids. Appended last because clients render actions in list order.

  • parity KNOWN_DIVERGENCES entry for /wallet-api/portfolio-v2::pop, since the reference build emits the shorter list
  • WalletActionsTests pins the HP ids and order, plus the savings-conditional HIVE/HBD builders

Merge last. Merging here deploys to production immediately, and the clients need to recognize the id first:

Clients build the HP operation buttons from this list, so the withdraw routes
UI they already implement has no entry point. Add the chain operation name
alongside the existing two ids.

Adds a parity divergence entry and pins the action ids with tests.
@coderabbitai

coderabbitai Bot commented Jul 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@feruzm, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 47 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 40b224b6-3d9f-48f7-978c-62d6a49105b6

📥 Commits

Reviewing files that changed from the base of the PR and between 38b2ee1 and 7633c76.

📒 Files selected for processing (3)
  • dotnet/EcencyApi.Tests/WalletActionsTests.cs
  • dotnet/EcencyApi/Handlers/WalletApi.Market.cs
  • dotnet/parity/driver.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/hp-withdraw-routes-action

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Jul 25, 2026

Copy link
Copy Markdown

Greptile Summary

Adds the withdraw-vesting-route operation to the ordered HP action list.

  • Pins HP action IDs and savings-dependent HIVE/HBD actions with unit tests.
  • Replaces the portfolio parity exemption with reliance on loose-case comparison.

Confidence Score: 4/5

The runtime feature appears safe to merge, but portfolio response-body parity remains unverified.

The previous broad exemption was removed, restoring status and content-type checks, but ordinary dynamic response changes still classify the populated portfolio case as loose and bypass every body comparison.

Files Needing Attention: dotnet/parity/driver.py

Important Files Changed

Filename Overview
dotnet/EcencyApi/Handlers/WalletApi.Market.cs Appends set_withdraw_vesting_route to the client-facing HP action list.
dotnet/EcencyApi.Tests/WalletActionsTests.cs Adds coverage for HP action ordering and savings-dependent wallet actions.
dotnet/parity/driver.py Removes the endpoint-wide known-divergence exemption while retaining loose status and content-type comparison.

Reviews (2): Last reviewed commit: "review: drop the portfolio-v2 parity exe..." | Re-trigger Greptile

Comment thread dotnet/parity/driver.py Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9ec54e9ca8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread dotnet/parity/driver.py Outdated
Comment on lines +231 to +234
"/wallet-api/portfolio-v2::pop":
"The HP action list gained set_withdraw_vesting_route so clients can link "
"straight to the withdraw routes UI; the reference build emits only "
"delegate_vesting_shares and withdraw_vesting.",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep parity checks for the rest of portfolio-v2

When the differential harness compares the populated /wallet-api/portfolio-v2 case, adding it to KNOWN_DIVERGENCES causes the loop to continue before checking even the status, content type, or any unrelated response fields. Consequently, regressions anywhere in this large aggregation endpoint now produce a clean parity run. Normalize or specially compare only the added HP action instead of exempting the entire case.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Valid, fixed in 7633c76 by removing the entry rather than narrowing it.

Confirmed the mechanism: KNOWN_DIVERGENCES hits continue before any comparison, so it would have skipped status and content-type too, not just the body.

Went further than narrowing the comparison because this case can never be body-compared anyway. norm_body only parses JSON, it does no nondeterminism smoothing, and portfolio-v2 balances and APR move every block, so the case already lands in loose on a run-vs-run diff. loose skips only the body and still checks status and content-type, which is strictly better than what my entry did. The exemption was therefore redundant on the body and harmful on everything else.

Left a comment in its place explaining why the case is deliberately absent, so the next person does not re-add it.

A KNOWN_DIVERGENCES entry skips the case entirely, status and content-type
included, which would hide unrelated regressions in the whole aggregation
endpoint. The body is already exempt via loose comparison because balances and
APR move every block, and that path still checks status and content-type.
@feruzm
feruzm merged commit 630b832 into main Jul 26, 2026
5 checks passed
@feruzm
feruzm deleted the feature/hp-withdraw-routes-action branch July 26, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant