Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Dynamically load tokenlists for Orbit chains #2135

Merged
merged 5 commits into from
Dec 17, 2024

Conversation

chrstph-dvx
Copy link
Contributor

@chrstph-dvx chrstph-dvx commented Dec 11, 2024

Summary

Steps to test

@chrstph-dvx chrstph-dvx requested a review from a team December 11, 2024 17:47
@chrstph-dvx chrstph-dvx self-assigned this Dec 11, 2024
@cla-bot cla-bot bot added the cla-signed label Dec 11, 2024
Copy link

vercel bot commented Dec 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
arbitrum-token-bridge ✅ Ready (Inspect) Visit Preview Dec 17, 2024 4:32pm

@chrstph-dvx chrstph-dvx marked this pull request as ready for review December 16, 2024 14:19
originChainID: ChainId.ArbitrumOne,
url: 'https://tokenlist.arbitrum.io/ArbTokenLists/arbed_arb_whitelist_era.json',
name: 'Arbitrum Whitelist Era',
isDefault: true,
logoURI: ArbitrumLogo
},
{
id: 2,
id: '2',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should unify the id syntax and use ${chain.chainId}_native or ${chain.chainId}_uniswap or _cmc etc, then tighten the type

id: `${chain.chainId}_native`,
originChainID: chain.chainId,
url: `https://tokenlist.arbitrum.io/ArbTokenLists/${chain.chainId}_arbed_native_list.json`,
name: `${chain.name} Arbed L2 native list`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is actually a bit confusing on the UI

maybe sth like Proof of Play Apex default list?

image

Copy link
Member

@fionnachan fionnachan Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a note: if the user has some local storage (visited the bridge before), these new lists seem to be off by default

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Updated to ${chainName} default list
  2. Already happening in production, fixed in refactor: Remove useArbTokenBridge from store 1/3 #2088 to 2090

@spsjvc spsjvc merged commit 9cacd2d into master Dec 17, 2024
4 checks passed
@spsjvc spsjvc deleted the fs-1030/load-token-lists-for-orbit-chains branch December 17, 2024 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants