Skip to content

feat: route custom token metadata imports through proxy#12040

Draft
0xApotheosis wants to merge 1 commit intodevelopfrom
feat/custom-token-metadata-proxy-v2
Draft

feat: route custom token metadata imports through proxy#12040
0xApotheosis wants to merge 1 commit intodevelopfrom
feat/custom-token-metadata-proxy-v2

Conversation

@0xApotheosis
Copy link
Member

Summary

  • route custom token metadata import lookups through api.proxy.shapeshift.com instead of direct browser Alchemy/Metaplex calls
  • remove dead client-side Alchemy SDK usage and centralize supported custom-token chain IDs
  • remove committed VITE_ALCHEMY_POLYGON_URL and related config/type references, and update CSP for proxy-based metadata lookups

Testing

  • yarn eslint "src/components/TradeAssetSearch/hooks/useGetCustomTokensQuery.tsx" "src/components/TradeAssetSearch/components/SearchTermAssetList.tsx" "src/components/Layout/Header/GlobalSearch/GlobalSearchModal.tsx" "src/lib/customTokenImportSupportedChainIds.ts" "src/config.ts" "src/vite-env.d.ts" "headers/csps/customTokenImport.ts" "headers/csps/chains/ethereum.ts"
  • manual local metadata query against proxy endpoint (ETH USDC)

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 26, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/custom-token-metadata-proxy-v2

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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 and usage tips.

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