feat(perps): add perpsWithdraw transaction display and activity support#28026
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Not selected: SmokeAccounts, SmokeIdentity, SmokeNetworkAbstractions, SmokeNetworkExpansion, SmokeMultiChainAPI, SmokeRamps, SmokeCard, FlaskBuildTests - these are unrelated to perps/transaction history changes. Performance Test Selection: |
|
✅ E2E Fixture Validation — Schema is up to date |
|



Description
Adds
TransactionType.perpsWithdrawsupport across the activity list, transaction details, analytics, metrics, and notifications — mirroring the existing patterns forpredictWithdrawandperpsDeposit.This is the first of two PRs for Perps Withdraw. It makes the app correctly display, label, and handle
perpsWithdrawtransactions without any changes to the confirmation flow. All additions are to existing arrays/switch statements and are dormant until the transaction type is actually used.Changelog
CHANGELOG entry: Add Perps Withdraw transaction display and activity support
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/CONF-1112
Manual testing steps
Screenshots/Recordings
Before
N/A
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Mostly additive wiring for a new
TransactionType.perpsWithdraw, but it touches shared transaction decoding, metrics/analytics classification, and notification-suppression lists which could affect reporting or user-visible notifications if misclassified.Overview
Adds end-to-end display support for
TransactionType.perpsWithdrawin Activity and the new Transaction Details screen, including correct titles, network badge chain selection, totals/fee labeling (using Provider fee for withdrawals), and post-quotemetamaskPay.targetFiatamount display.Extends transaction action-key mapping/decoding, analytics monetization classification, MetaMetrics transaction-type values, MetaMask Pay metrics handling, and the notification skip list to recognize
perpsWithdraw, with corresponding unit tests and new i18n strings (e.g.,tx_review_perps_withdraw,transaction_details.title.perps_withdraw).Written by Cursor Bugbot for commit 7750ce7. This will update automatically on new commits. Configure here.