From 147d5e559f5c4b78449b9dc18ca04a0f19640bd0 Mon Sep 17 00:00:00 2001 From: abtestingalpha Date: Mon, 1 Jul 2024 12:25:21 -0500 Subject: [PATCH 1/7] Adds BSC to RFQ --- .../components/layouts/LandingPageWrapper/index.tsx | 8 ++++---- packages/synapse-interface/scripts/generateMaps.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx b/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx index 7c033f624c..2ae2a9b7a5 100644 --- a/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx +++ b/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx @@ -51,10 +51,10 @@ export function LandingPageWrapper({ children }: { children: any }) {
diff --git a/packages/synapse-interface/scripts/generateMaps.js b/packages/synapse-interface/scripts/generateMaps.js index 2b17a5ce7d..b9a3cf8d26 100644 --- a/packages/synapse-interface/scripts/generateMaps.js +++ b/packages/synapse-interface/scripts/generateMaps.js @@ -40,7 +40,7 @@ const allowedChainIdsForSynapseBridge = [ const allowedChainIdsForSynapseCCTPRouter = [1, 10, 137, 8453, 42161, 43114] // Chain IDs where RFQ is allowed -const allowedChainIdsForRfq = [1, 10, 8453, 42161, 534352] +const allowedChainIdsForRfq = [1, 10, 56, 8453, 42161, 534352] // Get SynapseRouter contract instances for each chain const SynapseRouters = {} From f8771d37952f5e4456300689ddb954a797355520 Mon Sep 17 00:00:00 2001 From: abtestingalpha Date: Mon, 15 Jul 2024 11:01:56 -0400 Subject: [PATCH 2/7] Update banner dates --- .../components/layouts/LandingPageWrapper/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx b/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx index 2ae2a9b7a5..6d380b0bca 100644 --- a/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx +++ b/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx @@ -51,10 +51,10 @@ export function LandingPageWrapper({ children }: { children: any }) {
From 5f005f75e64b3215d1ee869c8cbb2a436f929447 Mon Sep 17 00:00:00 2001 From: bigboydiamonds <57741810+bigboydiamonds@users.noreply.github.com> Date: Mon, 22 Jul 2024 11:06:24 -0700 Subject: [PATCH 3/7] Add Blast and Linea to RFQ --- .../components/layouts/LandingPageWrapper/index.tsx | 4 ++-- packages/synapse-interface/scripts/generateMaps.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx b/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx index 6d380b0bca..233c780b2a 100644 --- a/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx +++ b/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx @@ -51,8 +51,8 @@ export function LandingPageWrapper({ children }: { children: any }) {
diff --git a/packages/synapse-interface/scripts/generateMaps.js b/packages/synapse-interface/scripts/generateMaps.js index b9a3cf8d26..f37ada1328 100644 --- a/packages/synapse-interface/scripts/generateMaps.js +++ b/packages/synapse-interface/scripts/generateMaps.js @@ -40,7 +40,7 @@ const allowedChainIdsForSynapseBridge = [ const allowedChainIdsForSynapseCCTPRouter = [1, 10, 137, 8453, 42161, 43114] // Chain IDs where RFQ is allowed -const allowedChainIdsForRfq = [1, 10, 56, 8453, 42161, 534352] +const allowedChainIdsForRfq = [1, 10, 56, 8453, 42161, 59144, 81457, 534352] // Get SynapseRouter contract instances for each chain const SynapseRouters = {} From 6129fce3b86721dcfa308c7065c1e11a2f756cc0 Mon Sep 17 00:00:00 2001 From: defi-moses Date: Wed, 24 Jul 2024 14:18:26 +0100 Subject: [PATCH 4/7] adds linea and blast rfq routes to fe --- .../synapse-interface/assets/chains/linea.svg | 3 ++ .../synapse-interface/constants/bridgeMap.ts | 28 +++++++++++++++---- .../constants/chains/index.tsx | 1 + .../constants/chains/master.tsx | 27 ++++++++++++++++++ .../constants/chains/supportedChains.ts | 2 ++ .../constants/tokens/bridgeable.ts | 5 ++++ .../scripts/data/providers.json | 1 + 7 files changed, 61 insertions(+), 6 deletions(-) create mode 100644 packages/synapse-interface/assets/chains/linea.svg diff --git a/packages/synapse-interface/assets/chains/linea.svg b/packages/synapse-interface/assets/chains/linea.svg new file mode 100644 index 0000000000..33f1bb7bce --- /dev/null +++ b/packages/synapse-interface/assets/chains/linea.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/synapse-interface/constants/bridgeMap.ts b/packages/synapse-interface/constants/bridgeMap.ts index 8d6d3be23b..70f9755d4a 100644 --- a/packages/synapse-interface/constants/bridgeMap.ts +++ b/packages/synapse-interface/constants/bridgeMap.ts @@ -1793,6 +1793,22 @@ export const BRIDGE_MAP = { swappable: [], }, }, + '59144': { + '0x176211869cA2b568f2A7D4EE941E073a821EE1ff': { + origin: ['RFQ.USDC'], + destination: ['RFQ.USDC'], + swappable: [], + symbol: 'USDC', + decimals: 6, + }, + '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE': { + origin: ['RFQ.ETH'], + destination: ['RFQ.ETH'], + swappable: [], + symbol: 'ETH', + decimals: 18, + }, + }, '81457': { '0x3194B0A295D87fDAA54DF852c248F7a6BAF6c6e0': { decimals: 18, @@ -1804,14 +1820,14 @@ export const BRIDGE_MAP = { '0x4300000000000000000000000000000000000003': { decimals: 18, symbol: 'USDB', - origin: ['nUSD'], - destination: ['nUSD'], + origin: ['nUSD', 'RFQ.USDB'], + destination: ['nUSD', 'RFQ.USDB'], swappable: ['0x3194B0A295D87fDAA54DF852c248F7a6BAF6c6e0'], }, '0x4300000000000000000000000000000000000004': { decimals: 18, symbol: 'WETH', - origin: ['nETH'], + origin: ['RFQ.ETH', 'nETH'], destination: ['nETH'], swappable: [ '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE', @@ -1828,8 +1844,8 @@ export const BRIDGE_MAP = { '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE': { decimals: 18, symbol: 'ETH', - origin: ['nETH'], - destination: ['nETH'], + origin: ['RFQ.ETH', 'nETH'], + destination: ['nETH', 'RFQ.ETH'], swappable: [ '0x4300000000000000000000000000000000000004', '0xce971282fAAc9faBcF121944956da7142cccC855', @@ -1838,7 +1854,7 @@ export const BRIDGE_MAP = { '0xce971282fAAc9faBcF121944956da7142cccC855': { decimals: 18, symbol: 'nETH', - origin: ['nETH'], + origin: ['RFQ.ETH', 'nETH'], destination: ['nETH'], swappable: [ '0x4300000000000000000000000000000000000004', diff --git a/packages/synapse-interface/constants/chains/index.tsx b/packages/synapse-interface/constants/chains/index.tsx index 4799931e80..81246afda9 100644 --- a/packages/synapse-interface/constants/chains/index.tsx +++ b/packages/synapse-interface/constants/chains/index.tsx @@ -52,6 +52,7 @@ export const ChainId = { ARBITRUM: 42161, BASE: 8453, BLAST: 81457, + LINEA: 59144, SCROLL: 534352, AVALANCHE: 43114, DFK: 53935, diff --git a/packages/synapse-interface/constants/chains/master.tsx b/packages/synapse-interface/constants/chains/master.tsx index 946c5f5346..711199cdf7 100644 --- a/packages/synapse-interface/constants/chains/master.tsx +++ b/packages/synapse-interface/constants/chains/master.tsx @@ -19,6 +19,7 @@ import moonriverImg from '@assets/chains/moonriver.svg' import optimismImg from '@assets/chains/optimism.svg' import polygonImg from '@assets/chains/polygon.svg' import scrollImg from '@assets/chains/scroll.svg' +import lineaImg from '@assets/chains/linea.svg' import ethExplorerImg from '@assets/explorer/etherscan.svg' import arbitrumExplorerImg from '@assets/explorer/arbiscan.svg' @@ -563,3 +564,29 @@ export const SCROLL: Chain = { color: 'orange', isNew: true, } + +export const LINEA: Chain = { + priorityRank: 90, + id: 59144, + chainSymbol: 'LINEA', + name: 'Linea', + chainImg: lineaImg, + layer: 2, + rpcUrls: { + primary: 'https://rpc.linea.build', + fallback: 'https://linea.blockpi.network/v1/rpc/public', + }, + explorerUrl: 'https://lineascan.build', + explorerName: 'LineaScan', + explorerImg: lineaImg, + blockTime: 3000, + nativeCurrency: { + name: 'Ethereum', + symbol: 'ETH', + decimals: 18, + address: zeroAddress, + icon: lineaImg, + }, + color: 'black', + isNew: true, +} diff --git a/packages/synapse-interface/constants/chains/supportedChains.ts b/packages/synapse-interface/constants/chains/supportedChains.ts index d71da31902..e9ef9c6533 100644 --- a/packages/synapse-interface/constants/chains/supportedChains.ts +++ b/packages/synapse-interface/constants/chains/supportedChains.ts @@ -18,6 +18,7 @@ import { optimism, polygon, scroll, + linea, } from '@wagmi/core/chains' import { dfk, dogechain } from '@/constants/chains/extraWagmiChains' @@ -30,6 +31,7 @@ export const supportedChains = [ base, optimism, scroll, + linea, blast, metis, dfk, diff --git a/packages/synapse-interface/constants/tokens/bridgeable.ts b/packages/synapse-interface/constants/tokens/bridgeable.ts index 0434a35799..afef0eed33 100644 --- a/packages/synapse-interface/constants/tokens/bridgeable.ts +++ b/packages/synapse-interface/constants/tokens/bridgeable.ts @@ -411,6 +411,7 @@ export const USDC = new Token({ [CHAINS.DFK.id]: '0x3AD9DFE640E1A9Cc1D9B0948620820D975c3803a', [CHAINS.BASE.id]: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', [CHAINS.SCROLL.id]: '0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4', + [CHAINS.LINEA.id]: '0x176211869cA2b568f2A7D4EE941E073a821EE1ff', }, decimals: { [CHAINS.ETH.id]: 6, @@ -427,6 +428,7 @@ export const USDC = new Token({ [CHAINS.DFK.id]: 18, [CHAINS.BASE.id]: 6, [CHAINS.SCROLL.id]: 6, + [CHAINS.LINEA.id]: 6, }, symbol: 'USDC', name: 'USD Coin', @@ -466,6 +468,7 @@ export const USDT = new Token({ [CHAINS.KLAYTN.id]: '0xd6dAb4CfF47dF175349e6e7eE2BF7c40Bb8C05A3', [CHAINS.ARBITRUM.id]: '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9', [CHAINS.AVALANCHE.id]: '0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7', + [CHAINS.SCROLL.id]: '0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df', }, decimals: { [CHAINS.ETH.id]: 6, @@ -478,6 +481,7 @@ export const USDT = new Token({ [CHAINS.KLAYTN.id]: 6, [CHAINS.ARBITRUM.id]: 6, [CHAINS.AVALANCHE.id]: 6, + [CHAINS.SCROLL.id]: 6, }, symbol: 'USDT', name: 'USD Tether', @@ -703,6 +707,7 @@ export const ETH = new Token({ [CHAINS.DFK.id]: '0xfBDF0E31808d0aa7b9509AA6aBC9754E48C58852', [CHAINS.BLAST.id]: zeroAddress, [CHAINS.SCROLL.id]: zeroAddress, + [CHAINS.LINEA.id]: zeroAddress, }, decimals: 18, symbol: 'ETH', diff --git a/packages/synapse-interface/scripts/data/providers.json b/packages/synapse-interface/scripts/data/providers.json index d5d4b120ec..ba4d42f6c7 100644 --- a/packages/synapse-interface/scripts/data/providers.json +++ b/packages/synapse-interface/scripts/data/providers.json @@ -16,6 +16,7 @@ "81457": "https://lingering-indulgent-replica.blast-mainnet.quiknode.pro/6667a8f4be701cb6549b415d567bc706fb2f13a8", "42161": "https://arbitrum-one.publicnode.com", "43114": "https://api.avax.network/ext/bc/C/rpc", + "59144": "https://rpc.linea.build", "53935": "https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc", "534352": "https://rpc.scroll.io", "1313161554": "https://mainnet.aurora.dev", From b0b3556fefb40c145f0a973d26408b834a7dabf2 Mon Sep 17 00:00:00 2001 From: defi-moses Date: Wed, 24 Jul 2024 14:23:29 +0100 Subject: [PATCH 5/7] changing linea logo --- .../synapse-interface/assets/chains/linea.svg | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/synapse-interface/assets/chains/linea.svg b/packages/synapse-interface/assets/chains/linea.svg index 33f1bb7bce..bb56377bd3 100644 --- a/packages/synapse-interface/assets/chains/linea.svg +++ b/packages/synapse-interface/assets/chains/linea.svg @@ -1,3 +1,12 @@ - - - + + + + + + + + + + + + From aebf66ca92d35360101e521f97351b47dc99b679 Mon Sep 17 00:00:00 2001 From: bigboydiamonds <57741810+bigboydiamonds@users.noreply.github.com> Date: Wed, 24 Jul 2024 08:31:55 -0700 Subject: [PATCH 6/7] Update Linea svg --- packages/synapse-interface/assets/chains/linea.svg | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/synapse-interface/assets/chains/linea.svg b/packages/synapse-interface/assets/chains/linea.svg index bb56377bd3..8639b02212 100644 --- a/packages/synapse-interface/assets/chains/linea.svg +++ b/packages/synapse-interface/assets/chains/linea.svg @@ -1,12 +1,12 @@ - - - - - + + + + + - - + + From 72b33a28e6995d3c44a5a47e73f64eb9b363f55b Mon Sep 17 00:00:00 2001 From: aureliusbtc <82057759+aureliusbtc@users.noreply.github.com> Date: Sun, 28 Jul 2024 16:45:23 +0100 Subject: [PATCH 7/7] update copy --- .../components/layouts/LandingPageWrapper/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx b/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx index 233c780b2a..de45bb9215 100644 --- a/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx +++ b/packages/synapse-interface/components/layouts/LandingPageWrapper/index.tsx @@ -52,7 +52,7 @@ export function LandingPageWrapper({ children }: { children: any }) {