-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix: Jupiter solana apis #12417
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
base: develop
Are you sure you want to change the base?
fix: Jupiter solana apis #12417
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
8 Skipped Deployments
|
|
No dependency changes detected. Learn more about Socket for GitHub. 👍 No dependency changes detected in pull request |
815732b to
4ff3a35
Compare
| }) | ||
|
|
||
| const tokenList: TokenInfo[] = Array.from(tokenMap.values()).map((t) => ({ | ||
| chainId: 101, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@memoyil is it chainId for solana? if yes, chainId should not be hardcoded
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done 👍
|
|
||
| const fetchTokens = async () => { | ||
| const [verified, lst] = await Promise.all([ | ||
| fetch('https://lite-api.jup.ag/tokens/v2/tag?query=verified').then((r) => r.json()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should reuse JUP_TOKEN_LIST somehow. otherwise, need to maintain 2 places
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i tried to use the url from solana-core-sdk package in jupiter package but solana application gets client side error. since jupiter-terminal package only used by solana app not the pcs web, imo we can keep it like that
i fixed the web side
4de95ab to
1b5a6b0
Compare
b44ca44 to
570dc0f
Compare
570dc0f to
bc129c1
Compare
PR-Codex overview
This PR focuses on updating the
@solana/spl-token-registrydependency, adding new types for token data, and modifying various components to utilize the updated token lists and chain ID. It also refines API endpoints and improves the token fetching logic.Detailed summary
@solana/spl-token-registrydependency.JupRawTokenDatatype inpackages/solana-core-sdk/src/api/type.ts.packages/solana-core-sdk/src/api/url.ts.chainIdvalues to useChainID.MainnetBeta.packages/jupiter-terminal/overrides/src/contexts/TokenContextProvider.tsx.packages/web/src/wallet/hook/useSwitchNetworkV2.tsto point to the new PancakeSwap URL.