Skip to content

Commit

Permalink
Updating the bridge map (#3400)
Browse files Browse the repository at this point in the history
* updating the bridge map

* remove WLD token constant

* fixing tests

---------

Co-authored-by: bigboydiamonds <[email protected]>
  • Loading branch information
Defi-Moses and bigboydiamonds authored Nov 20, 2024
1 parent 5f0e6e5 commit 796060a
Show file tree
Hide file tree
Showing 16 changed files with 193 additions and 312 deletions.
45 changes: 19 additions & 26 deletions packages/rest-api/src/constants/bridgeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ export const BRIDGE_MAP = {
destination: ['JEWEL'],
swappable: [],
},
'0x163f8C2467924be0ae7B5347228CABF260318753': {
decimals: 18,
symbol: 'WLD',
origin: ['RFQ.WLD'],
destination: ['RFQ.WLD'],
swappable: [],
},
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F': {
decimals: 18,
symbol: 'nUSD',
Expand Down Expand Up @@ -462,13 +455,6 @@ export const BRIDGE_MAP = {
destination: ['L2DAO'],
swappable: [],
},
'0xdC6fF44d5d932Cbd77B52E5612Ba0529DC6226F1': {
decimals: 18,
symbol: 'WLD',
origin: ['RFQ.WLD'],
destination: ['RFQ.WLD'],
swappable: [],
},
},
'25': {
'0x396c9c192dd323995346632581BEF92a31AC623b': {
Expand Down Expand Up @@ -522,13 +508,6 @@ export const BRIDGE_MAP = {
destination: ['JUMP'],
swappable: [],
},
'0x2170Ed0880ac9A755fd29B2688956BD959F933F8': {
decimals: 18,
symbol: 'ETH',
origin: ['RFQ.ETH'],
destination: [],
swappable: [],
},
'0x23b891e5C62E0955ae2bD185990103928Ab817b3': {
decimals: 18,
symbol: 'nUSD',
Expand Down Expand Up @@ -576,6 +555,13 @@ export const BRIDGE_MAP = {
'0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56',
],
},
'0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE': {
decimals: 18,
symbol: 'BNB',
origin: ['RFQ.BNB'],
destination: [],
swappable: [],
},
'0xa4080f1778e69467E905B8d6F72f6e441f9e9484': {
decimals: 18,
symbol: 'SYN',
Expand All @@ -590,6 +576,13 @@ export const BRIDGE_MAP = {
destination: ['DOG'],
swappable: [],
},
'0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c': {
decimals: 18,
symbol: 'WBNB',
origin: ['RFQ.BNB'],
destination: [],
swappable: [],
},
'0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56': {
decimals: 18,
symbol: 'BUSD',
Expand Down Expand Up @@ -894,11 +887,11 @@ export const BRIDGE_MAP = {
},
},
'480': {
'0x2cFc85d8E48F8EAB294be644d9E25C3030863003': {
'0x4200000000000000000000000000000000000006': {
decimals: 18,
symbol: 'WLD',
origin: ['RFQ.WLD'],
destination: ['RFQ.WLD'],
symbol: 'WETH',
origin: ['RFQ.ETH'],
destination: [],
swappable: [],
},
'0x79A02482A880bCE3F13e09Da970dC34db4CD24d1': {
Expand All @@ -912,7 +905,7 @@ export const BRIDGE_MAP = {
decimals: 18,
symbol: 'ETH',
origin: ['RFQ.ETH'],
destination: ['RFQ.ETH'],
destination: [],
swappable: [],
},
},
Expand Down
21 changes: 0 additions & 21 deletions packages/rest-api/src/constants/bridgeable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1412,24 +1412,3 @@ export const SPECTRAL: BridgeableToken = {
imgUrl:
'https://105bc697.sanguine-fe.pages.dev/_next/static/media/spectral.6d51750c.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',
}
2 changes: 1 addition & 1 deletion packages/rest-api/src/tests/indexRoute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ describe('Index Route', () => {
expect(response.body.availableChains.length).toBe(23)

expect(response.body).toHaveProperty('availableTokens')
expect(response.body.availableTokens.length).toBe(64)
expect(response.body.availableTokens.length).toBe(63)
})
})
2 changes: 1 addition & 1 deletion packages/rest-api/src/tests/tokenListRoute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('Index Route', () => {

const keys = Object.keys(response.body)

expect(keys.length).toBe(64)
expect(keys.length).toBe(63)
expect(response.body['ETH']['addresses']['1']).toBe(
'0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'
)
Expand Down
45 changes: 19 additions & 26 deletions packages/synapse-constants/src/constants/bridgeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ export const BRIDGE_MAP = {
destination: ['JEWEL'],
swappable: [],
},
'0x163f8C2467924be0ae7B5347228CABF260318753': {
decimals: 18,
symbol: 'WLD',
origin: ['RFQ.WLD'],
destination: ['RFQ.WLD'],
swappable: [],
},
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F': {
decimals: 18,
symbol: 'nUSD',
Expand Down Expand Up @@ -462,13 +455,6 @@ export const BRIDGE_MAP = {
destination: ['L2DAO'],
swappable: [],
},
'0xdC6fF44d5d932Cbd77B52E5612Ba0529DC6226F1': {
decimals: 18,
symbol: 'WLD',
origin: ['RFQ.WLD'],
destination: ['RFQ.WLD'],
swappable: [],
},
},
'25': {
'0x396c9c192dd323995346632581BEF92a31AC623b': {
Expand Down Expand Up @@ -522,13 +508,6 @@ export const BRIDGE_MAP = {
destination: ['JUMP'],
swappable: [],
},
'0x2170Ed0880ac9A755fd29B2688956BD959F933F8': {
decimals: 18,
symbol: 'ETH',
origin: ['RFQ.ETH'],
destination: [],
swappable: [],
},
'0x23b891e5C62E0955ae2bD185990103928Ab817b3': {
decimals: 18,
symbol: 'nUSD',
Expand Down Expand Up @@ -576,6 +555,13 @@ export const BRIDGE_MAP = {
'0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56',
],
},
'0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE': {
decimals: 18,
symbol: 'BNB',
origin: ['RFQ.BNB'],
destination: [],
swappable: [],
},
'0xa4080f1778e69467E905B8d6F72f6e441f9e9484': {
decimals: 18,
symbol: 'SYN',
Expand All @@ -590,6 +576,13 @@ export const BRIDGE_MAP = {
destination: ['DOG'],
swappable: [],
},
'0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c': {
decimals: 18,
symbol: 'WBNB',
origin: ['RFQ.BNB'],
destination: [],
swappable: [],
},
'0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56': {
decimals: 18,
symbol: 'BUSD',
Expand Down Expand Up @@ -894,11 +887,11 @@ export const BRIDGE_MAP = {
},
},
'480': {
'0x2cFc85d8E48F8EAB294be644d9E25C3030863003': {
'0x4200000000000000000000000000000000000006': {
decimals: 18,
symbol: 'WLD',
origin: ['RFQ.WLD'],
destination: ['RFQ.WLD'],
symbol: 'WETH',
origin: ['RFQ.ETH'],
destination: [],
swappable: [],
},
'0x79A02482A880bCE3F13e09Da970dC34db4CD24d1': {
Expand All @@ -912,7 +905,7 @@ export const BRIDGE_MAP = {
decimals: 18,
symbol: 'ETH',
origin: ['RFQ.ETH'],
destination: ['RFQ.ETH'],
destination: [],
swappable: [],
},
},
Expand Down
20 changes: 0 additions & 20 deletions packages/synapse-constants/src/constants/tokens/bridgeable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1295,23 +1295,3 @@ export const SPECTRAL = new Token({
color: 'blue',
routeSymbol: 'SPEC',
})

export const WLD = new Token({
priorityRank: 106,
addresses: {
[CHAINS.ETH.id]: '0x163f8c2467924be0ae7b5347228cabf260318753',
[CHAINS.OPTIMISM.id]: '0xdC6fF44d5d932Cbd77B52E5612Ba0529DC6226F1',
[CHAINS.WORLDCHAIN.id]: '0x2cFc85d8E48F8EAB294be644d9E25C3030863003',
},
decimals: {
[CHAINS.ETH.id]: 18,
[CHAINS.OPTIMISM.id]: 18,
[CHAINS.WORLDCHAIN.id]: 18,
},
symbol: 'WLD',
name: 'Worldcoin',
logo: 'https://synapse-interface-worldchain.sanguine-fe.pages.dev/_next/static/media/worldchain.62d1dfd2.svg',
swapableType: 'WLD',
color: 'gray',
routeSymbol: 'WLD',
})
6 changes: 0 additions & 6 deletions packages/synapse-interface/assets/icons/wld.svg

This file was deleted.

45 changes: 19 additions & 26 deletions packages/synapse-interface/constants/bridgeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ export const BRIDGE_MAP = {
destination: ['JEWEL'],
swappable: [],
},
'0x163f8C2467924be0ae7B5347228CABF260318753': {
decimals: 18,
symbol: 'WLD',
origin: ['RFQ.WLD'],
destination: ['RFQ.WLD'],
swappable: [],
},
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F': {
decimals: 18,
symbol: 'nUSD',
Expand Down Expand Up @@ -462,13 +455,6 @@ export const BRIDGE_MAP = {
destination: ['L2DAO'],
swappable: [],
},
'0xdC6fF44d5d932Cbd77B52E5612Ba0529DC6226F1': {
decimals: 18,
symbol: 'WLD',
origin: ['RFQ.WLD'],
destination: ['RFQ.WLD'],
swappable: [],
},
},
'25': {
'0x396c9c192dd323995346632581BEF92a31AC623b': {
Expand Down Expand Up @@ -522,13 +508,6 @@ export const BRIDGE_MAP = {
destination: ['JUMP'],
swappable: [],
},
'0x2170Ed0880ac9A755fd29B2688956BD959F933F8': {
decimals: 18,
symbol: 'ETH',
origin: ['RFQ.ETH'],
destination: [],
swappable: [],
},
'0x23b891e5C62E0955ae2bD185990103928Ab817b3': {
decimals: 18,
symbol: 'nUSD',
Expand Down Expand Up @@ -576,6 +555,13 @@ export const BRIDGE_MAP = {
'0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56',
],
},
'0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE': {
decimals: 18,
symbol: 'BNB',
origin: ['RFQ.BNB'],
destination: [],
swappable: [],
},
'0xa4080f1778e69467E905B8d6F72f6e441f9e9484': {
decimals: 18,
symbol: 'SYN',
Expand All @@ -590,6 +576,13 @@ export const BRIDGE_MAP = {
destination: ['DOG'],
swappable: [],
},
'0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c': {
decimals: 18,
symbol: 'WBNB',
origin: ['RFQ.BNB'],
destination: [],
swappable: [],
},
'0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56': {
decimals: 18,
symbol: 'BUSD',
Expand Down Expand Up @@ -894,11 +887,11 @@ export const BRIDGE_MAP = {
},
},
'480': {
'0x2cFc85d8E48F8EAB294be644d9E25C3030863003': {
'0x4200000000000000000000000000000000000006': {
decimals: 18,
symbol: 'WLD',
origin: ['RFQ.WLD'],
destination: ['RFQ.WLD'],
symbol: 'WETH',
origin: ['RFQ.ETH'],
destination: [],
swappable: [],
},
'0x79A02482A880bCE3F13e09Da970dC34db4CD24d1': {
Expand All @@ -912,7 +905,7 @@ export const BRIDGE_MAP = {
decimals: 18,
symbol: 'ETH',
origin: ['RFQ.ETH'],
destination: ['RFQ.ETH'],
destination: [],
swappable: [],
},
},
Expand Down
22 changes: 0 additions & 22 deletions packages/synapse-interface/constants/tokens/bridgeable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import usdtLogo from '@assets/icons/usdt.svg'
import vstaLogo from '@assets/icons/vsta.svg'
import wbtcLogo from '@assets/icons/wbtc.svg'
import wethLogo from '@assets/icons/weth.svg'
import wldLogo from '@assets/icons/wld.svg'

import { Token } from '@/utils/types'
import * as CHAINS from '@/constants/chains/master'
Expand Down Expand Up @@ -1249,24 +1248,3 @@ export const METIS = new Token({
color: 'blue',
routeSymbol: 'Metis',
})

export const WLD = new Token({
visibilityRank: 106,
addresses: {
[CHAINS.ETH.id]: '0x163f8C2467924be0ae7B5347228CABF260318753',
[CHAINS.OPTIMISM.id]: '0xdC6fF44d5d932Cbd77B52E5612Ba0529DC6226F1',
[CHAINS.WORLDCHAIN.id]: '0x2cFc85d8E48F8EAB294be644d9E25C3030863003',
},
decimals: {
[CHAINS.ETH.id]: 18,
[CHAINS.OPTIMISM.id]: 18,
[CHAINS.WORLDCHAIN.id]: 18,
},
symbol: 'WLD',
name: 'Worldcoin',
logo: wldLogo,
swapableType: 'WLD',
color: 'gray',
priorityRank: 106,
routeSymbol: 'WLD',
})
Loading

0 comments on commit 796060a

Please sign in to comment.