diff --git a/packages/widget/src/constants/bridgeable.ts b/packages/widget/src/constants/bridgeable.ts index 7ef93e50f7..9c2fe5f91e 100644 --- a/packages/widget/src/constants/bridgeable.ts +++ b/packages/widget/src/constants/bridgeable.ts @@ -807,6 +807,7 @@ export const ETH: BridgeableToken = { [CHAINS.BLAST.id]: ZeroAddress, [CHAINS.SCROLL.id]: ZeroAddress, [CHAINS.LINEA.id]: ZeroAddress, + [CHAINS.WORLDCHAIN.id]: ZeroAddress, }, decimals: { [CHAINS.ETHEREUM.id]: 18, @@ -819,6 +820,7 @@ export const ETH: BridgeableToken = { [CHAINS.BLAST.id]: 18, [CHAINS.SCROLL.id]: 18, [CHAINS.LINEA.id]: 18, + [CHAINS.WORLDCHAIN.id]: 18, }, symbol: 'ETH', name: 'Ethereum', @@ -994,12 +996,14 @@ export const USDCe: BridgeableToken = { [CHAINS.AVALANCHE.id]: '0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664', [CHAINS.ARBITRUM.id]: '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8', [CHAINS.AURORA.id]: '0xB12BFcA5A55806AaF64E99521918A4bf0fC40802', + [CHAINS.WORLDCHAIN.id]: '0x79A02482A880bCE3F13e09Da970dC34db4CD24d1', }, decimals: { [CHAINS.OPTIMISM.id]: 6, [CHAINS.AVALANCHE.id]: 6, [CHAINS.ARBITRUM.id]: 6, [CHAINS.AURORA.id]: 6, + [CHAINS.WORLDCHAIN.id]: 6, }, symbol: 'USDC.e', name: 'Bridged USDC', @@ -1195,11 +1199,9 @@ export const WKLAY: BridgeableToken = { export const MATIC: BridgeableToken = { addresses: { - [CHAINS.POLYGON.id]: ZeroAddress, [CHAINS.DFK.id]: '0xD17a41Cd199edF1093A9Be4404EaDe52Ec19698e', }, decimals: { - [CHAINS.POLYGON.id]: 18, [CHAINS.DFK.id]: 18, }, symbol: 'MATIC', @@ -1212,7 +1214,24 @@ export const MATIC: BridgeableToken = { 'https://45a97b3d.sanguine-fe.pages.dev/_next/static/media/matic.237cd2b6.svg', } -export const WMATIC: BridgeableToken = { +export const POL: BridgeableToken = { + addresses: { + [CHAINS.POLYGON.id]: ZeroAddress, + }, + decimals: { + [CHAINS.POLYGON.id]: 18, + }, + symbol: 'MATIC', + name: 'MATIC', + swapableType: 'MATIC', + color: 'blue', + priorityRank: 300, + routeSymbol: 'POL', + imgUrl: + 'https://45a97b3d.sanguine-fe.pages.dev/_next/static/media/matic.237cd2b6.svg', +} + +export const WPOL: BridgeableToken = { addresses: { [CHAINS.POLYGON.id]: '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', }, @@ -1224,7 +1243,7 @@ export const WMATIC: BridgeableToken = { swapableType: 'MATIC', color: 'blue', priorityRank: 350, - routeSymbol: 'WMATIC', + routeSymbol: 'WPOL', imgUrl: 'https://45a97b3d.sanguine-fe.pages.dev/_next/static/media/matic.237cd2b6.svg', } @@ -1410,3 +1429,24 @@ export const METIS: BridgeableToken = { imgUrl: 'https://7bdf4de3.sanguine-fe.pages.dev/_next/static/media/metis.90b6abf0.svg', } + +export const WLD: BridgeableToken = { + priorityRank: 106, + addresses: { + [CHAINS.ETHEREUM.id]: '0x163f8C2467924be0ae7B5347228CABF260318753', + [CHAINS.OPTIMISM.id]: '0xdC6fF44d5d932Cbd77B52E5612Ba0529DC6226F1', + [CHAINS.WORLDCHAIN.id]: '0x2cFc85d8E48F8EAB294be644d9E25C3030863003', + }, + decimals: { + [CHAINS.ETHEREUM.id]: 18, + [CHAINS.OPTIMISM.id]: 18, + [CHAINS.WORLDCHAIN.id]: 18, + }, + symbol: 'WLD', + name: 'Worldcoin', + swapableType: 'WLD', + color: 'gray', + routeSymbol: 'WLD', + imgUrl: + 'https://synapse-interface-worldchain.sanguine-fe.pages.dev/_next/static/media/worldchain.62d1dfd2.svg', +} diff --git a/packages/widget/src/constants/chains.ts b/packages/widget/src/constants/chains.ts index 90dfe48e63..128307ab22 100644 --- a/packages/widget/src/constants/chains.ts +++ b/packages/widget/src/constants/chains.ts @@ -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, + }, +} + export const CHAINS = { ETHEREUM, ARBITRUM, @@ -487,6 +508,7 @@ export const CHAINS = { BLAST, SCROLL, LINEA, + WORLDCHAIN, } export const CHAINS_ARRAY = Object.values(CHAINS) diff --git a/packages/widget/src/index.tsx b/packages/widget/src/index.tsx index a27c5dca19..2bd164dcae 100644 --- a/packages/widget/src/index.tsx +++ b/packages/widget/src/index.tsx @@ -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 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