Skip to content

Commit

Permalink
Merge 6129fce into 6ebf43d
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds authored Jul 24, 2024
2 parents 6ebf43d + 6129fce commit b5ce561
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 11 deletions.
3 changes: 3 additions & 0 deletions packages/synapse-interface/assets/chains/linea.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ export function LandingPageWrapper({ children }: { children: any }) {
<div className="dark">
<div className={wrapperClassName} style={TODO_REMOVE_wrapperStyle}>
<AnnouncementBanner
bannerId="2024-05-02-scroll-launch"
bannerContent="Synapse Protocol now available on Scroll"
startDate={new Date('2024-05-08T18:45:09+00:00')}
endDate={new Date('2024-06-15T18:45:09+00:00')}
bannerId="2024-07-22-rfq"
bannerContent="RFQ transactions now available on BSC, Blast, and Linea"
startDate={new Date('2024-07-10T18:45:09+00:00')}
endDate={new Date('2024-08-15T18:45:09+00:00')}
/>
<MaintenanceBanners />
<LandingNav />
Expand Down
28 changes: 22 additions & 6 deletions packages/synapse-interface/constants/bridgeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -1838,7 +1854,7 @@ export const BRIDGE_MAP = {
'0xce971282fAAc9faBcF121944956da7142cccC855': {
decimals: 18,
symbol: 'nETH',
origin: ['nETH'],
origin: ['RFQ.ETH', 'nETH'],
destination: ['nETH'],
swappable: [
'0x4300000000000000000000000000000000000004',
Expand Down
1 change: 1 addition & 0 deletions packages/synapse-interface/constants/chains/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const ChainId = {
ARBITRUM: 42161,
BASE: 8453,
BLAST: 81457,
LINEA: 59144,
SCROLL: 534352,
AVALANCHE: 43114,
DFK: 53935,
Expand Down
27 changes: 27 additions & 0 deletions packages/synapse-interface/constants/chains/master.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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,
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
optimism,
polygon,
scroll,
linea,
} from '@wagmi/core/chains'

import { dfk, dogechain } from '@/constants/chains/extraWagmiChains'
Expand All @@ -30,6 +31,7 @@ export const supportedChains = [
base,
optimism,
scroll,
linea,
blast,
metis,
dfk,
Expand Down
5 changes: 5 additions & 0 deletions packages/synapse-interface/constants/tokens/bridgeable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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',
Expand Down Expand Up @@ -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,
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions packages/synapse-interface/scripts/data/providers.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/synapse-interface/scripts/generateMaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, 59144, 81457, 534352]

// Get SynapseRouter contract instances for each chain
const SynapseRouters = {}
Expand Down

0 comments on commit b5ce561

Please sign in to comment.