-
Notifications
You must be signed in to change notification settings - Fork 33
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(widget): Chain & token update #3331
Changes from all commits
4305657
7888c57
0b9d43b
a657d6b
0aaeda8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -464,6 +464,27 @@ export const LINEA: Chain = { | |
}, | ||
} | ||
|
||
export const WORLDCHAIN: Chain = { | ||
id: 480, | ||
name: 'World Chain', | ||
rpcUrls: { | ||
primary: 'https://worldchain-mainnet.g.alchemy.com/public', | ||
fallback: 'https://worldchain-mainnet.g.alchemy.com/public', | ||
}, | ||
explorerUrl: 'https://worldchain-mainnet.explorer.alchemy.com', | ||
explorerName: 'World Chain Explorer', | ||
blockTime: 3000, | ||
imgUrl: | ||
'https://synapse-interface-worldchain.sanguine-fe.pages.dev/_next/static/media/worldchain.62d1dfd2.svg', | ||
networkName: 'World Chain', | ||
networkUrl: 'https://worldchain-mainnet.g.alchemy.com/public', | ||
nativeCurrency: { | ||
name: 'Ethereum', | ||
symbol: 'ETH', | ||
decimals: 18, | ||
}, | ||
} | ||
Comment on lines
+467
to
+486
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Update RPC fallback URL and verify image URL configuration The image URL is accessible and properly configured with appropriate cache headers and immutable content settings, indicating it's a stable resource. However, the RPC configuration still needs attention:
🔗 Analysis chainConfigure different primary and fallback RPC URLs for redundancy. The current configuration uses identical URLs for both primary and fallback RPC endpoints, which defeats the purpose of having a fallback. Consider using a different provider for the fallback URL to ensure reliability during outages. Also verify if the image URL is pointing to a permanent location, as it appears to reference a specific deployment. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check if the image URL is accessible
curl -I "https://synapse-interface-worldchain.sanguine-fe.pages.dev/_next/static/media/worldchain.62d1dfd2.svg"
Length of output: 1389 |
||
|
||
export const CHAINS = { | ||
ETHEREUM, | ||
ARBITRUM, | ||
|
@@ -487,6 +508,7 @@ export const CHAINS = { | |
BLAST, | ||
SCROLL, | ||
LINEA, | ||
WORLDCHAIN, | ||
} | ||
|
||
export const CHAINS_ARRAY = Object.values(CHAINS) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,6 +87,7 @@ export const ONEETH = BRIDGEABLE.ONEETH | |
export const ONEUSDC = BRIDGEABLE.ONEUSDC | ||
export const ONEUSDT = BRIDGEABLE.ONEUSDT | ||
export const PEPE = BRIDGEABLE.PEPE | ||
export const POL = BRIDGEABLE.POL | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification POL token export requires comprehensive updates across the codebase The verification reveals several issues that need to be addressed:
The export of POL token cannot be done in isolation without first implementing the proper token definitions and updating all related MATIC references across the codebase. 🔗 Analysis chainVerify POL token implementation The addition of POL token export needs verification to ensure all necessary chain configurations are in place. Let me gather more information about the POL token implementation. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify POL token implementation and its chain configurations
# Test: Check if POL is properly defined in bridgeable constants
rg -A 5 "POL\s*=\s*{" packages/widget/src/constants/bridgeable.ts
# Test: Check for any existing MATIC references that might need updates
rg "MATIC" --type ts
Length of output: 8595 Script: #!/bin/bash
# Check if POL token is properly defined in bridgeable constants
rg -A 5 "POL\s*=\s*" packages/widget/src/constants/bridgeable.ts
# Check for POL references in bridge maps and routes
rg "POL" packages/widget/src/constants/bridgeMap.ts
# Check for POL chain configuration
rg -A 5 "POL" packages/widget/src/constants/chains.ts
Length of output: 446 |
||
export const PLS = BRIDGEABLE.PLS | ||
export const SDT = BRIDGEABLE.SDT | ||
export const SFI = BRIDGEABLE.SFI | ||
|
@@ -107,9 +108,10 @@ export const WBTC = BRIDGEABLE.WBTC | |
export const WETH = BRIDGEABLE.WETH | ||
export const WETHE = BRIDGEABLE.WETHE | ||
export const WFTM = BRIDGEABLE.WFTM | ||
export const WLD = BRIDGEABLE.WLD | ||
export const WJEWEL = BRIDGEABLE.WJEWEL | ||
export const WKLAY = BRIDGEABLE.WKLAY | ||
export const WMATIC = BRIDGEABLE.WMATIC | ||
export const WPOL = BRIDGEABLE.WPOL | ||
export const WMOVR = BRIDGEABLE.WMOVR | ||
export const WSOHM = BRIDGEABLE.WSOHM | ||
export const XJEWEL = BRIDGEABLE.XJEWEL |
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.
💡 Codebase verification
MATIC to POL renaming requires additional updates
The renaming from MATIC to POL is not consistently applied across the codebase. While the route symbols have been updated in some files, there are still several references to MATIC that need attention:
Please ensure:
🔗 Analysis chain
Verify the impact of MATIC to POL renaming.
While the implementation looks correct, please ensure:
Also applies to: 1246-1246
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 1289
Script:
Length of output: 2482