Skip to content

feat: add Polygon and Hyperliquid EVM wrapped natives - #34

Merged
chrisli30 merged 2 commits into
mainfrom
feat/wave-c-polygon-hyperliquid-wrapped
Sep 3, 2026
Merged

feat: add Polygon and Hyperliquid EVM wrapped natives#34
chrisli30 merged 2 commits into
mainfrom
feat/wave-c-polygon-hyperliquid-wrapped

Conversation

@chrisli30

Copy link
Copy Markdown
Member

Wave C workers are live. The SDK expansion E2E (nodes.run wrapped-native symbol()) reads Protocols.wrapped.weth[chainId]. Catalog Chains stopped at Robinhood 4663, so Polygon/Hyperliquid had no wrapper entry.

What

  • Chains.PolygonMainnet = 137, Chains.HyperliquidMainnet = 999
  • wrapped.weth[137] → WPOL 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270 (legacy WMATIC; Polygonscan)
  • wrapped.weth[999] → WHYPE 0x5555555555555555555555555555555555555555 (HyperEVM system contract; symbol() = WHYPE on rpc.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.

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.

Copilot AI 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.

🟢 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.

Comment thread src/protocols/wrapped.ts Outdated
Copilot review on #34: 0x0d500… is a deployed wrapper, not a precompile.
@chrisli30
chrisli30 merged commit 3df9da0 into main Sep 3, 2026
7 checks passed
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.

2 participants