feat: Perps list display#17078
Merged
Merged
Conversation
Add a new "Perps" wallet action to validate @deeeed/hyperliquid-node20 SDK integration.
Implements TAT-1202 with minimal changes following MetaMask design patterns.
Key features:
- Feature flag controlled via RemoteFeatureFlagController ("perps-enabled")
- Test screen with SDK connectivity validation (HTTP, WebSocket, asset listing)
- Proper polyfills for WebSocket support in React Native
- Team ownership via CODEOWNERS
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
…orePatterns in jest.config.js
- Add comprehensive PerpsController with protocol-agnostic API - Implement HyperLiquidProvider with proper WebSocket lifecycle management - Add navigation monitoring hook for automatic connect/disconnect - Integrate WebSocket cleanup when leaving Perps routes - Add deposit flow views with real MetaMask pricing integration - Fix TypeScript errors and optimize React hooks for performance - Implement proper asyncDispose pattern for WebSocket connections 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
abretonc7s
previously requested changes
Jul 18, 2025
…ve provier. Generalize market data naming conventions
Contributor
There was a problem hiding this comment.
Bug: Incorrect Indexing in Market Data Transformation
The transformMarketData function incorrectly uses universe.indexOf(asset) to find the corresponding assetCtx within a map iteration. This is inefficient and potentially unreliable due to reliance on object reference equality or the presence of duplicate assets. Since universe and assetCtxs are parallel arrays, the index parameter from the map function should be used instead.
app/components/UI/Perps/utils/marketDataTransform.ts#L26-L35
metamask-mobile/app/components/UI/Perps/utils/marketDataTransform.ts
Lines 26 to 35 in 87f6641
Was this report helpful? Give feedback by reacting with 👍 or 👎
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Based of of initial draft here: #17070 and rebased to final feature branch for perps.
This adds a view to explore Perps Markets in a list form, including a search bar to filter results by.
Changelog
CHANGELOG entry: Add Perpetual Markets List
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Screen.Recording.2025-07-10.at.10.47.44.AM.mov
Pre-merge author checklist
Pre-merge reviewer checklist