feat: add Polygon and Hyperliquid EVM wrapped natives - #34
Merged
Conversation
Map wrapped.weth to WPOL (legacy WMATIC) and WHYPE so SDK Wave C symbol() E2E can pin the canonical native wrapper without magic addresses. No Uniswap/AAVE maps in this change.
There was a problem hiding this comment.
🟢 Approval recommended
The only unresolved comment is a non-blocking wording nit.
Pull request overview
Adds Polygon and Hyperliquid EVM chain IDs and canonical wrapped-native mappings.
Changes:
- Adds Polygon (137) and Hyperliquid (999).
- Maps WPOL and WHYPE under
wrapped.weth. - Updates tests, documentation, and release metadata.
File summaries
| File | Description |
|---|---|
tests/catalog.test.ts |
Verifies both wrapped-native mappings. |
src/protocols/wrapped.ts |
Adds WPOL and WHYPE addresses. Minor nit: describe WPOL as the former WMATIC contract, not a precompile. |
src/chains.ts |
Adds both chain constants. |
README.md |
Documents expanded chain support. |
.changeset/wave-c-polygon-hyperliquid-wrapped.md |
Records the minor release. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 1
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Copilot review on #34: 0x0d500… is a deployed wrapper, not a precompile.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Wave C workers are live. The SDK expansion E2E (
nodes.runwrapped-nativesymbol()) readsProtocols.wrapped.weth[chainId]. CatalogChainsstopped at Robinhood 4663, so Polygon/Hyperliquid had no wrapper entry.What
Chains.PolygonMainnet = 137,Chains.HyperliquidMainnet = 999wrapped.weth[137]→ WPOL0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270(legacy WMATIC; Polygonscan)wrapped.weth[999]→ WHYPE0x5555555555555555555555555555555555555555(HyperEVM system contract;symbol()=WHYPEonrpc.hyperliquid.xyz/evm; Hyperscan)Field name stays
weth(same as WBNB). No Uniswap/AAVE on HyperEVM here; Polygon protocol maps are a follow-up.Minor changeset.