synapsecns/sanguine

View on GitHub
packages/rest-api/src/constants/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { CHAINS } from './chains'

export const EXPLORER_GRAPHQL_URL = 'https://explorer.omnirpc.io/graphql'

export const VALID_BRIDGE_MODULES = [
  'SynapseBridge',
  'SynapseCCTP',
  'SynapseRFQ',
]

export const ZeroAddress = '0x0000000000000000000000000000000000000000'
export const NativeGasAddress = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'

export const SUPPORTED_SWAP_CHAIN_IDS = [
  CHAINS.ARBITRUM.id,
  CHAINS.AURORA.id,
  CHAINS.AVALANCHE.id,
  CHAINS.BASE.id,
  CHAINS.BLAST.id,
  CHAINS.BNBCHAIN.id,
  CHAINS.BOBA.id,
  CHAINS.CANTO.id,
  CHAINS.CRONOS.id,
  CHAINS.ETHEREUM.id,
  CHAINS.FANTOM.id,
  CHAINS.HARMONY.id,
  CHAINS.KLAYTN.id,
  CHAINS.METIS.id,
  CHAINS.OPTIMISM.id,
  CHAINS.POLYGON.id,
]

export const FAST_BRIDGE_ROUTER_ADDRESS_MAP = {
  '1': '0x00cD000000003f7F682BE4813200893d4e690000',
  '10': '0x00cD000000003f7F682BE4813200893d4e690000',
  '56': '0x00cD000000003f7F682BE4813200893d4e690000',
  '480': '0x00cD000000003f7F682BE4813200893d4e690000',
  '8453': '0x00cD000000003f7F682BE4813200893d4e690000',
  '42161': '0x00cD000000003f7F682BE4813200893d4e690000',
  '59144': '0x00cD000000003f7F682BE4813200893d4e690000',
  '81457': '0x00cD000000003f7F682BE4813200893d4e690000',
  '534352': '0x00cD000000003f7F682BE4813200893d4e690000',
}