diff --git a/packages/boba/gateway/src/actions/networkAction.js b/packages/boba/gateway/src/actions/networkAction.js index cb6f6f6525..23780bd7d1 100644 --- a/packages/boba/gateway/src/actions/networkAction.js +++ b/packages/boba/gateway/src/actions/networkAction.js @@ -247,7 +247,7 @@ export function getAllAddresses() { /********************************/ /** * @params - * network - ethereum, bnb, fantom, avax + * network - ethereum, bnb, avax * networkType - MAINNET, TESTNET */ export function setNetwork(payload) { diff --git a/packages/boba/gateway/src/components/icons/chain/L1/FantomIcon.js b/packages/boba/gateway/src/components/icons/chain/L1/FantomIcon.js deleted file mode 100644 index bd209c22dc..0000000000 --- a/packages/boba/gateway/src/components/icons/chain/L1/FantomIcon.js +++ /dev/null @@ -1,24 +0,0 @@ -import * as React from "react" - -function FantomIcon({ selected = false }) { - - - if (!selected) { - return - - - - - } - - return ( - - - - - - - ) -} - -export default FantomIcon diff --git a/packages/boba/gateway/src/components/icons/chain/L2/BobaFantomIcon.js b/packages/boba/gateway/src/components/icons/chain/L2/BobaFantomIcon.js deleted file mode 100644 index b0d7826f6c..0000000000 --- a/packages/boba/gateway/src/components/icons/chain/L2/BobaFantomIcon.js +++ /dev/null @@ -1,50 +0,0 @@ -import * as React from "react" - - -function BobaFantomIcon({ selected = false }) { - - if (!selected) { - return - - - - - - - - - - - - - - - - - - - } - - return ( - - - - - - - - - - - - - - - - - - - ) -} - -export default BobaFantomIcon diff --git a/packages/boba/gateway/src/components/notificationBanner/bannerConfig.ts b/packages/boba/gateway/src/components/notificationBanner/bannerConfig.ts index febbf595c3..f0d9da24f4 100644 --- a/packages/boba/gateway/src/components/notificationBanner/bannerConfig.ts +++ b/packages/boba/gateway/src/components/notificationBanner/bannerConfig.ts @@ -1,13 +1,17 @@ -import { NETWORK } from 'util/network/network.util' - interface BannerContent { message?: string content?: string } -export const BannerConfig: Record = { - [NETWORK.FANTOM]: { +/** + * To show the notification banner just add content like below. + * + * + * [NETWORK.FANTOM]: { message: `BobaOpera is being wound down & will no longer be available, starting June 25th`, content: `BobaOpera is being wound down & will no longer be available starting June 25th. For users of BobaOpera or BobaOpera applications you will need to transfer all your funds to Fantom mainnet before June 15th or risk permanently losing access to any assets on BobaOpera.`, }, -} + * + */ + +export const BannerConfig: Record = {} diff --git a/packages/boba/gateway/src/components/notificationBanner/tests/index.test.tsx b/packages/boba/gateway/src/components/notificationBanner/tests/index.test.tsx index f626472e0b..9453b40df7 100644 --- a/packages/boba/gateway/src/components/notificationBanner/tests/index.test.tsx +++ b/packages/boba/gateway/src/components/notificationBanner/tests/index.test.tsx @@ -7,7 +7,16 @@ import configureStore from 'redux-mock-store' import { NETWORK, NETWORK_TYPE } from 'util/network/network.util' import { BannerConfig } from '../bannerConfig' -const data = BannerConfig[NETWORK.FANTOM] +jest.mock('../bannerConfig', () => ({ + BannerConfig: { + FANTOM: { + message: `BobaOpera is being wound down & will no longer be available, starting June 25th`, + content: `BobaOpera is being wound down & will no longer be available starting June 25th. For users of BobaOpera or BobaOpera applications you will need to transfer all your funds to Fantom mainnet before June 15th or risk permanently losing access to any assets on BobaOpera.`, + }, + }, +})) + +const data = BannerConfig[NETWORK.FANTOM] || {} const mockStore = configureStore() diff --git a/packages/boba/gateway/src/containers/modals/deposit/steps/BridgeAlert.tsx b/packages/boba/gateway/src/containers/modals/deposit/steps/BridgeAlert.tsx deleted file mode 100644 index c27c1a563a..0000000000 --- a/packages/boba/gateway/src/containers/modals/deposit/steps/BridgeAlert.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import { Text } from 'components/global/text' -import React from 'react' -import { useSelector } from 'react-redux' -import { selectActiveNetwork } from 'selectors' -import styled from 'styled-components' -import { BOBAOPERA_STATUS } from 'util/constant' -import { bridgeAlerts } from './alertConfig' - -const AlertText = styled(Text)` - color: ${(props) => props.theme.warning}; - font-size: 16px; - font-weight: 700; - margin: 5px 0px; -` - -const BridgeAlert = () => { - const activeNetwork = useSelector(selectActiveNetwork()) - - const alertCaption = bridgeAlerts[activeNetwork] - - if (!!Number(BOBAOPERA_STATUS)) { - return {alertCaption} - } - - return <> -} - -export default BridgeAlert diff --git a/packages/boba/gateway/src/containers/modals/deposit/steps/InputStep.js b/packages/boba/gateway/src/containers/modals/deposit/steps/InputStep.js index 3f4f22f5e1..2b80b24c54 100644 --- a/packages/boba/gateway/src/containers/modals/deposit/steps/InputStep.js +++ b/packages/boba/gateway/src/containers/modals/deposit/steps/InputStep.js @@ -18,7 +18,6 @@ import { WrapperActionsModal } from 'components/modal/Modal.styles' import BN from 'bignumber.js' import { ethers } from 'ethers' -import BridgeAlert from './BridgeAlert' function InputStep({ handleClose, token, isBridge, openTokenPicker }) { @@ -106,7 +105,6 @@ function InputStep({ handleClose, token, isBridge, openTokenPicker }) { //no token in this account return ( - Sorry, nothing to deposit - no {token.symbol} in this wallet @@ -127,7 +125,6 @@ function InputStep({ handleClose, token, isBridge, openTokenPicker }) { return ( <> - {!isBridge && Classic Bridge {token && token.symbol ? token.symbol : ''} to L2 diff --git a/packages/boba/gateway/src/containers/modals/deposit/steps/InputStepFast.js b/packages/boba/gateway/src/containers/modals/deposit/steps/InputStepFast.js index d5eacd5e2c..6e8b40ae39 100644 --- a/packages/boba/gateway/src/containers/modals/deposit/steps/InputStepFast.js +++ b/packages/boba/gateway/src/containers/modals/deposit/steps/InputStepFast.js @@ -63,8 +63,6 @@ import { fetchL2LPLiquidity, } from 'actions/balanceAction' -import BridgeAlert from './BridgeAlert' - function InputStepFast({ handleClose, token, isBridge, openTokenPicker }) { const dispatch = useDispatch() @@ -295,7 +293,6 @@ function InputStepFast({ handleClose, token, isBridge, openTokenPicker }) { //no token in this account return ( - - {!isBridge && ( Fast Bridge to L2 diff --git a/packages/boba/gateway/src/containers/modals/deposit/steps/InputStepMultiChain.js b/packages/boba/gateway/src/containers/modals/deposit/steps/InputStepMultiChain.js index 2bb55bc693..31e9c61553 100644 --- a/packages/boba/gateway/src/containers/modals/deposit/steps/InputStepMultiChain.js +++ b/packages/boba/gateway/src/containers/modals/deposit/steps/InputStepMultiChain.js @@ -40,8 +40,7 @@ function InputStepMultiChain({ handleClose, token, isBridge, openTokenPicker }) const options = [ { value: 'BNB', label: 'BNB', title: 'BNB', image: getImageComponent("BNB") }, - { value: 'Avalanche', label: 'Avalanche', title: 'Avalanche', image: getImageComponent('AVAX') }, - { value: 'Fantom', label: 'Fantom', title: 'Fantom', image: getImageComponent('FTM') } + { value: 'Avalanche', label: 'Avalanche', title: 'Avalanche', image: getImageComponent('AVAX') } ].filter(i => networkService.supportedAltL1Chains.includes(i.value)) const dispatch = useDispatch() diff --git a/packages/boba/gateway/src/containers/modals/deposit/steps/alertConfig.ts b/packages/boba/gateway/src/containers/modals/deposit/steps/alertConfig.ts deleted file mode 100644 index 0fd3b5f2cd..0000000000 --- a/packages/boba/gateway/src/containers/modals/deposit/steps/alertConfig.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { NETWORK } from 'util/network/network.util' - -export const bridgeAlerts = { - [NETWORK.FANTOM]: `For users of BobaOpera or BobaOpera applications - you will need to transfer all your funds to Fantom mainnet before June 15th - or risk permanently losing access to any assets on BobaOpera`, -} diff --git a/packages/boba/gateway/src/containers/modals/deposit/steps/tests/__snapshots__/bobaBeamAlert.test.tsx.snap b/packages/boba/gateway/src/containers/modals/deposit/steps/tests/__snapshots__/bobaBeamAlert.test.tsx.snap deleted file mode 100644 index 13a25ee32d..0000000000 --- a/packages/boba/gateway/src/containers/modals/deposit/steps/tests/__snapshots__/bobaBeamAlert.test.tsx.snap +++ /dev/null @@ -1,53 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`BridgeAlert should match the snapshot disabled from env params 1`] = ``; - -exports[`BridgeAlert should match the snapshot when active network is ethereum 1`] = ` - - .c0 { - padding: 0px; - margin: 0px; - font-weight: 400; - font-size: 0.9rem; - line-height: 1.25; -} - -.c1 { - color: yellow; - font-size: 16px; - font-weight: 700; - margin: 5px 0px; -} - -

- -`; - -exports[`BridgeAlert should match the snapshot when active network is opera 1`] = ` - - .c0 { - padding: 0px; - margin: 0px; - font-weight: 400; - font-size: 0.9rem; - line-height: 1.25; -} - -.c1 { - color: yellow; - font-size: 16px; - font-weight: 700; - margin: 5px 0px; -} - -

- For users of BobaOpera or BobaOpera applications - you will need to transfer all your funds to Fantom mainnet before June 15th - or risk permanently losing access to any assets on BobaOpera -

-
-`; diff --git a/packages/boba/gateway/src/containers/modals/deposit/steps/tests/bobaBeamAlert.test.tsx b/packages/boba/gateway/src/containers/modals/deposit/steps/tests/bobaBeamAlert.test.tsx deleted file mode 100644 index 9765c144c4..0000000000 --- a/packages/boba/gateway/src/containers/modals/deposit/steps/tests/bobaBeamAlert.test.tsx +++ /dev/null @@ -1,68 +0,0 @@ -import React from 'react' -import { render } from '@testing-library/react' -import Theme from 'themes' -import { Provider } from 'react-redux' -import configureStore from 'redux-mock-store' -import BridgeAlert from '../BridgeAlert' -import { NETWORK } from 'util/network/network.util' -import * as constants from 'util/constant' - -const mockStore = configureStore() - -const renderComponent = (state: any) => { - return render( - - - - - - ) -} - -describe('BridgeAlert', () => { - test('should match the snapshot when active network is ethereum', () => { - Object.defineProperty(constants, 'BOBAOPERA_STATUS', { - value: 1, - writable: true, - }) - const { asFragment } = renderComponent({ - network: { - activeNetwork: NETWORK.ETHEREUM, - }, - }) - expect(asFragment()).toMatchSnapshot() - }) - - test('should match the snapshot when active network is opera', () => { - Object.defineProperty(constants, 'BOBAOPERA_STATUS', { - value: 1, - writable: true, - }) - const { asFragment } = renderComponent({ - network: { - activeNetwork: NETWORK.FANTOM, - }, - }) - expect(asFragment()).toMatchSnapshot() - }) - - test('should match the snapshot disabled from env params', () => { - Object.defineProperty(constants, 'BOBAOPERA_STATUS', { - value: 0, - writable: true, - }) - const { asFragment } = renderComponent({ - network: { - activeNetwork: NETWORK.FANTOM, - }, - }) - expect(asFragment()).toMatchSnapshot() - }) -}) diff --git a/packages/boba/gateway/src/containers/wallet/token/Token.js b/packages/boba/gateway/src/containers/wallet/token/Token.js index 00b6f1d4ed..7d3246f7e5 100644 --- a/packages/boba/gateway/src/containers/wallet/token/Token.js +++ b/packages/boba/gateway/src/containers/wallet/token/Token.js @@ -137,8 +137,6 @@ function TokenPage({ return 'usd-coin' } else if (i.symbolL1 === 'AVAX') { return 'avalanche-2' - } else if (i.symbolL1 === 'FTM') { - return 'fantom' } else if (['BNB', 'tBNB'].includes(i.symbolL1)) { return 'binancecoin' } else { diff --git a/packages/boba/gateway/src/reducers/networkReducer.js b/packages/boba/gateway/src/reducers/networkReducer.js index 893833071d..ea9bd1969a 100644 --- a/packages/boba/gateway/src/reducers/networkReducer.js +++ b/packages/boba/gateway/src/reducers/networkReducer.js @@ -16,7 +16,7 @@ limitations under the License. */ import { NETWORK, NETWORK_TYPE } from "util/network/network.util" /** - * network : ethereum, bnb, fantom, avax + * network : ethereum, bnb, avax * networkType : mainnet, testnet. **/ diff --git a/packages/boba/gateway/src/services/app.service.js b/packages/boba/gateway/src/services/app.service.js index ce83b8e74d..25c34f37f0 100644 --- a/packages/boba/gateway/src/services/app.service.js +++ b/packages/boba/gateway/src/services/app.service.js @@ -1,7 +1,6 @@ import { NETWORK, NETWORK_TYPE } from "util/network/network.util"; // testnet addresss import addresses_Goerli from "@boba/register/addresses/addressesGoerli_0x6FF9c8FF8F0B6a0763a3030540c21aFC721A9148" -import addresses_BobaOperaTestnet from "@boba/register/addresses/addressesBobaOperaTestnet_0x12ad9f501149D3FDd703cC10c567F416B7F0af8b" import addresses_BobaFuji from "@boba/register/addresses/addressBobaFuji_0xcE78de95b85212BC348452e91e0e74c17cf37c79" import addresses_BobaBnbTestnet from "@boba/register/addresses/addressBobaBnbTestnet_0xAee1fb3f4353a9060aEC3943fE932b6Efe35CdAa" @@ -9,7 +8,6 @@ import addresses_BobaBnbTestnet from "@boba/register/addresses/addressBobaBnbTes import addresses_Mainnet from "@boba/register/addresses/addressesMainnet_0x8376ac6C3f73a25Dd994E0b0669ca7ee0C02F089" import addresses_BobaAvax from "@boba/register/addresses/addressBobaAvax_0x00220f8ce1c4be8436574e575fE38558d85e2E6b" import addresses_BobaBnb from "@boba/register/addresses/addressBobaBnb_0xeb989B25597259cfa51Bd396cE1d4B085EC4c753" -import addresses_BobaOpera from "@boba/register/addresses/addressBobaOpera_0x4e7325bcf09e091Bb8119258B885D4ef687B7386" // layerzero addresses. import layerZeroTestnet from "@boba/register/addresses/layerZeroTestnet" @@ -45,8 +43,7 @@ const ADDRESS_CONFIG = { ...layerZeroMainnet.BOBA_Bridges.BNB, ...layerZeroMainnet.Layer_Zero_Protocol.BNB, layerZeroTargetChainID: layerZeroMainnet.Layer_Zero_Protocol.Mainnet.Layer_Zero_ChainId, - }, - [ NETWORK.FANTOM ]: addresses_BobaOpera, + } }, [ NETWORK_TYPE.TESTNET ]: { [ NETWORK.ETHEREUM ]: { @@ -61,17 +58,11 @@ const ADDRESS_CONFIG = { ...layerZeroTestnet.Layer_Zero_Protocol.Avalanche, layerZeroTargetChainID: layerZeroTestnet.Layer_Zero_Protocol.Avalanche.Layer_Zero_ChainId, }, - [ NETWORK.FANTOM ]: { - ...addresses_BobaOperaTestnet, - ...layerZeroTestnet.BOBA_Bridges.Fantom, - ...layerZeroTestnet.Layer_Zero_Protocol.Fantom, - layerZeroTargetChainID: layerZeroTestnet.Layer_Zero_Protocol.Fantom.Layer_Zero_ChainId, - }, [ NETWORK.BNB ]: { ...addresses_BobaBnbTestnet, ...layerZeroTestnet.BOBA_Bridges.BNB, ...layerZeroTestnet.Layer_Zero_Protocol.BNB, - layerZeroTargetChainID: layerZeroTestnet.Layer_Zero_Protocol.Fantom.Layer_Zero_ChainId, + layerZeroTargetChainID: layerZeroTestnet.Layer_Zero_Protocol.BNB.Layer_Zero_ChainId, } } } @@ -120,7 +111,7 @@ const SUPPORTED_ASSETS = { 'L2': '0xf56b164efd3cfc02ba739b719b6526a6fa1ca32a' } }, - altL1Chains: [ 'BNB', 'Fantom', 'Avalanche' ] + altL1Chains: [ 'BNB', 'Avalanche' ] }, [ NETWORK.AVAX ]: { tokenAddresses: { @@ -134,17 +125,12 @@ const SUPPORTED_ASSETS = { tokens: [ 'BOBA', 'BNB', 'BUSD', 'USDC', 'USDT', 'SUSHI' ], altL1Chains: [ 'BNB' ] }, - [ NETWORK.FANTOM ]: { - tokenAddresses: {}, - tokens: [ 'BOBA', 'FTM', 'USDC', 'DAI' ], - altL1Chains: [ 'Bobaopera Mainnet' ] - }, }, [ NETWORK_TYPE.TESTNET ]: { [ NETWORK.ETHEREUM ]: { tokenAddresses: {}, tokens: [ 'BOBA', 'USDC', 'OMG', 'xBOBA' ], - altL1Chains: [ 'BNB', 'Fantom', 'Avalanche' ] + altL1Chains: [ 'BNB', 'Avalanche' ] }, [ NETWORK.AVAX ]: { tokenAddresses: {}, @@ -155,12 +141,7 @@ const SUPPORTED_ASSETS = { tokenAddresses: {}, tokens: [ 'BOBA', 'BNB', 'MMT' ], altL1Chains: [ 'BNB' ] - }, - [ NETWORK.FANTOM ]: { - tokenAddresses: {}, - tokens: [ 'BOBA', 'FTM' ], - altL1Chains: [ 'Fantom' ] - }, + } } } diff --git a/packages/boba/gateway/src/util/amountConvert.js b/packages/boba/gateway/src/util/amountConvert.js index f3ba755b67..e52ef5d20a 100644 --- a/packages/boba/gateway/src/util/amountConvert.js +++ b/packages/boba/gateway/src/util/amountConvert.js @@ -63,7 +63,6 @@ const amountToUseConfig = { 'OMG': { provider: 'omisego' }, 'USDC': { provider: 'usd-coin' }, 'AVAX': { provider: 'avalanche-2' }, - 'FTM': { provider: 'fantom' }, 'BNB': { provider: 'binancecoin' }, 'tBNB': { provider: 'binancecoin' } } diff --git a/packages/boba/gateway/src/util/constant.ts b/packages/boba/gateway/src/util/constant.ts index 29dfd654e8..ad23609f73 100644 --- a/packages/boba/gateway/src/util/constant.ts +++ b/packages/boba/gateway/src/util/constant.ts @@ -28,8 +28,6 @@ export const DISABLE_VE_DAO: EnvType = process.env.REACT_APP_DISABLE_VE_DAO // WalletConnect FLAG export const DISABLE_WALLETCONNECT: EnvType = process.env.REACT_APP_DISABLE_WALLETCONNECT -export const BOBAOPERA_STATUS: EnvType = - process.env.REACT_APP_BOBA_OPERA_STATUS || 0 type BridgeType = { FAST_BRIDGE: string @@ -113,7 +111,7 @@ export const ROUTES_PATH: RoutesPathType = { export const PER_PAGE: number = 8 -type Network = 'ethereum' | 'bnb' | 'avax' | 'fantom' //we move this to global network type once we define this +type Network = 'ethereum' | 'bnb' | 'avax' //we move this to global network type once we define this type Page = | 'Bridge' | 'Ecosystem' @@ -138,7 +136,6 @@ export const PAGES_BY_NETWORK: PagesByNetworkType = { ], bnb: ['Bridge', 'Wallet', 'Earn', 'History'], avax: ['Bridge', 'Wallet', 'Earn', 'History'], - fantom: ['Bridge', 'Wallet', 'Earn', 'History'], } enum Layer { diff --git a/packages/boba/gateway/src/util/network/config/fantom.js b/packages/boba/gateway/src/util/network/config/fantom.js deleted file mode 100644 index 1801c181a7..0000000000 --- a/packages/boba/gateway/src/util/network/config/fantom.js +++ /dev/null @@ -1,69 +0,0 @@ - -export const fantomConfig = { - Testnet: { - OMGX_WATCHER_URL: `https://api-watcher.testnet.bobaopera.boba.network/`, - META_TRANSACTION: `https://api-meta-transaction.testnet.bobaopera.boba.network/`, - MM_Label: `bobaOperaTestnet`, - addressManager: `0x12ad9f501149D3FDd703cC10c567F416B7F0af8b`, - L1: { - name: "Fantom Testnet", - chainId: 4002, - chainIdHex: '0xFA2', - rpcUrl: [ - `https://rpc.testnet.fantom.network`, - `https://rpc.ankr.com/fantom_testnet`, - `https://fantom-testnet.public.blastapi.io`, - ], - transaction: `https://testnet.ftmscan.com/tx/`, - blockExplorerUrl: `https://testnet.ftmscan.com/`, - symbol: 'FTM', - tokenName: 'FTM', - }, - L2: { - name: "BobaOpera Testnet", - chainId: 4051, - chainIdHex: '0xFD3', - rpcUrl: `https://testnet.bobaopera.boba.network`, - blockExplorer: `https://blockexplorer.testnet.bobaopera.boba.network/`, - transaction: `https://blockexplorer.testnet.bobaopera.boba.network/tx/`, - blockExplorerUrl: `https://blockexplorer.testnet.bobaopera.boba.network/`, - symbol: "BOBA", - tokenName: "Boba Token", - }, - gasEstimateAccount: `0xdb5a187FED81c735ddB1F6E47F28f2A5F74639b2`, - twitterFaucetPromotionText: `https://twitter.com/intent/tweet?text=I%27m%20developing%20on%20Bobaopera%20Testnet%20for%20Fantom%20` - }, - Mainnet: { - OMGX_WATCHER_URL: `https://api-watcher.bobaopera.boba.network/`, - META_TRANSACTION: `https://api-meta-transaction.bobaopera.boba.network/`, - MM_Label: `Bobaopera`, - addressManager: `0x4e7325bcf09e091Bb8119258B885D4ef687B7386`, - L1: { - name: "Fantom Mainnet", - chainId: 250, - chainIdHex: '0xFA', - rpcUrl: [ - `https://rpc.fantom.network`, - `https://rpc.ankr.com/fantom`, - `https://1rpc.io/ftm`, - ], - transaction: `https://ftmscan.com/tx/`, - blockExplorerUrl: `https://ftmscan.com/`, - symbol: 'FTM', - tokenName: 'FTM', - }, - L2: { - name: "Bobaopera Mainnet", - chainId: 301, - chainIdHex: '0x12D', - rpcUrl: `https://bobaopera.boba.network`, - blockExplorer: `https://blockexplorer.bobaopera.boba.network/`, - transaction: `https://blockexplorer.bobaopera.boba.network/tx/`, - blockExplorerUrl: `https://blockexplorer.bobaopera.boba.network/`, - symbol: "BOBA", - tokenName: "Boba Token", - }, - gasEstimateAccount: `0xdb5a187FED81c735ddB1F6E47F28f2A5F74639b2`, - twitterFaucetPromotionText: `https://twitter.com/intent/tweet?text=I%27m%20developing%20on%20Bobaopera%20Testnet%20for%20Fantom%20` - } -} diff --git a/packages/boba/gateway/src/util/network/network.util.js b/packages/boba/gateway/src/util/network/network.util.js index 7cb10d6a09..d545e7a39b 100644 --- a/packages/boba/gateway/src/util/network/network.util.js +++ b/packages/boba/gateway/src/util/network/network.util.js @@ -3,34 +3,28 @@ import { providers } from 'ethers'; import EthereumIcon from 'components/icons/chain/L1/EthereumIcon'; import BNBIcon from 'components/icons/chain/L1/BNBIcon'; import AvalancheIcon from 'components/icons/chain/L1/AvalancheIcon'; -import FantomIcon from 'components/icons/chain/L1/FantomIcon'; import BobaIcon from 'components/icons/chain/L2/BobaIcon'; import BobaBNBIcon from 'components/icons/chain/L2/BobaBNBIcon'; import BobaAvaxIcon from 'components/icons/chain/L2/BobaAvaxIcon'; -import BobaFantomIcon from 'components/icons/chain/L2/BobaFantomIcon'; import { ethereumConfig } from './config/ethereum'; import { bnbConfig } from './config/bnb'; -import { fantomConfig } from './config/fantom'; import { avaxConfig } from './config/avax'; import { LAYER } from 'util/constant'; export const L1_ICONS = { ethereum: EthereumIcon, bnb: BNBIcon, - avax: AvalancheIcon, - fantom: FantomIcon + avax: AvalancheIcon } export const L2_ICONS = { ethereum: BobaIcon, bnb: BobaBNBIcon, - avax: BobaAvaxIcon, - fantom: BobaFantomIcon + avax: BobaAvaxIcon } - export const NETWORK_TYPE = { MAINNET: 'Mainnet', TESTNET: 'Testnet' @@ -39,7 +33,6 @@ export const NETWORK_TYPE = { export const NETWORK = { ETHEREUM: 'ETHEREUM', BNB: 'BNB', - FANTOM: 'FANTOM', AVAX: 'AVAX' } @@ -104,26 +97,6 @@ export const CHAIN_ID_LIST = { networkType: NETWORK_TYPE.MAINNET, chain: NETWORK.BNB, layer: LAYER.L2 - }, - 4002: { - networkType: NETWORK_TYPE.TESTNET, - chain: NETWORK.FANTOM, - layer: LAYER.L1 - }, - 4051: { - networkType: NETWORK_TYPE.TESTNET, - chain: NETWORK.FANTOM, - layer: LAYER.L2 - }, - 250: { - networkType: NETWORK_TYPE.MAINNET, - chain: NETWORK.FANTOM, - layer: LAYER.L1 - }, - 301: { - networkType: NETWORK_TYPE.MAINNET, - chain: NETWORK.FANTOM, - layer: LAYER.L2 } } @@ -158,16 +131,6 @@ export const NetworkList = { l1: 'Avalanche Mainnet C-Chain', l2: 'Boba Avalanche' } - }, - { - icon: 'fantom', - chain: NETWORK.FANTOM, - label: 'Fantom <> Boba', - key: 'fantom', - name: { - l1: 'Fantom', - l2: 'Bobaopera' - } } ], Testnet: [ @@ -200,16 +163,6 @@ export const NetworkList = { l1: 'Fuji Testnet', l2: 'Boba Fuji Testnet', } - }, - { - icon: 'fantom', - chain: NETWORK.FANTOM, - label: 'Opera (Testnet) <> Boba', - key: 'fantom', - name: { - l1: 'Fantom Testnet', - l2: 'Bobaopera Testnet', - } } ] } @@ -217,7 +170,6 @@ export const NetworkList = { const networkConfig = { [NETWORK.ETHEREUM] : ethereumConfig, [NETWORK.BNB] : bnbConfig, - [NETWORK.FANTOM] : fantomConfig, [NETWORK.AVAX] : avaxConfig } diff --git a/packages/boba/register/addresses/addressBobaOpera_0x4e7325bcf09e091Bb8119258B885D4ef687B7386.json b/packages/boba/register/addresses/addressBobaOpera_0x4e7325bcf09e091Bb8119258B885D4ef687B7386.json deleted file mode 100644 index 83d452fd69..0000000000 --- a/packages/boba/register/addresses/addressBobaOpera_0x4e7325bcf09e091Bb8119258B885D4ef687B7386.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "BondManager": "0xCcA5a1CB9fAD5F2A5b88D95440dA7c83EC031Cb1", - "CanonicalTransactionChain": "0x6001C473E020D3562Ea436B61aE4d2e91e7078cE", - "ChainStorageContainer-CTC-batches": "0x282267F1CD5562F91036a1f9FA52961A48385139", - "ChainStorageContainer-CTC-queue": "0x36666Bc3d9FE6fDCfC5Aa1f6e907f36EbF8a8176", - "ChainStorageContainer-SCC-batches": "0x2E3375B06811B3Baed04CC86C691B918155fE176", - "L1MultiMessageRelayer": "0xD8DcA5fC53a83Cf06ec744a7226C23951a353A0f", - "AddressManager": "0x4e7325bcf09e091Bb8119258B885D4ef687B7386", - "OVM_L1CrossDomainMessenger": "0xDEE010E1EedBE26C8AB3AEC8a16Cb974B31068FF", - "Proxy__L1CrossDomainMessenger": "0x64Fca36c52628e40de8684C4C3B5EdB22Fd2eFd9", - "Proxy__L1StandardBridge": "0xb7629EF94B991865940E8A840Aa7d68fa88c3Fe8", - "StateCommitmentChain": "0xF764C4f8D2982432239A110Cf6B08e95631cE564", - "TK_L1BOBA": "0x4389b230D15119c347B9E8BEA6d930A21aaDF6BA", - "TK_L2BOBA": "0x4200000000000000000000000000000000000006", - "TK_L2WBOBA": "0x5ad2635e9aBce5F95AdcF164Ac81bcAeBdC8E345", - "TK_L1FTM": "0x0000000000000000000000000000000000000000", - "TK_L2FTM": "0x4200000000000000000000000000000000000023", - "TK_L1USDC": "0x04068DA6C83AFCFA0e13ba15A6696662335D5B75", - "TK_L2USDC": "0xb7629EF94B991865940E8A840Aa7d68fa88c3Fe8", - "TK_L1DAI": "0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E", - "TK_L2DAI": "0x31223A147fF76C3fC43d67F8BC36F11E034c484e", - "L1CrossDomainMessengerFast": "0xf74C652a160BA2B2e82D8702A743c8Db83F8DA7d", - "Proxy__L1CrossDomainMessengerFast": "0xC0597ED18446254E4dd0CA5D80eb07D3f2E462cF", - "L2LiquidityPool": "0x4389b230D15119c347B9E8BEA6d930A21aaDF6BA", - "L1LiquidityPool": "0x6eA17632630e43dAF94AA776Eba606Ec5d61Ab6A", - "Proxy__L1LiquidityPool": "0x0bF5402a57970C7BD9883248534B644Ab545e6d4", - "Proxy__L2LiquidityPool": "0xD502Ca71dE5e072918884f638408291c066EF1F6", - "L2TokenPool": "0xEb26f95D155f133Ca3B1fc36C7cFcE7C5239e139", - "L1Message": "0xFa965d70BFF2BCb4B76Ac3A485a28C0D5a06fA9e", - "L2Message": "0xa8082C1D4e8615A962494A7Dd8ffe7be089458eE", - "AtomicSwap": "0xA8b85842b7556F556c0Cf0Af71b9241EA8baDc6F", - "L2ERC721": "0xa2444dC15D92D4cf8B51DAB300C1b8534602Db29", - "L2ERC721Reg": "0x18028b28EE7A8000dCB9e55c6bfaEBC5837AdB79", - "L1NFTBridge": "0x9BE15EC6BF78536a970F444A41361367B5de1098", - "L2NFTBridge": "0x282267F1CD5562F91036a1f9FA52961A48385139", - "Proxy__L1NFTBridge": "0x58bfe4D8108f0657585c9e4C106B3FB8b469eeB9", - "Proxy__L2NFTBridge": "0xd0223931513E72C4cbBE97662C07825C7E71DD9C", - "L1MultiMessageRelayerFast": "0xE7beDcedF3E3054aF891DddeF61775A23a16CB90", - "DiscretionaryExitFee": "0xBD4e12b0634b154932D75503E2Ff404953CbD1Bf", - "FeedRegistry": "0x6001C473E020D3562Ea436B61aE4d2e91e7078cE", - "BOBAUSD_Aggregator": "0x677360aba457B747056f3E00095644D9ADB5753D", - "BobaBillingContract": "0xCcA5a1CB9fAD5F2A5b88D95440dA7c83EC031Cb1", - "Proxy__BobaBillingContract": "0xD5b0E66566FEe76d6c550e7190385703Bcf11354", - "Boba_GasPriceOracle":"0xE7EEf1eDA522feE7C7752369B0CEE134CdD6AC16", - "Proxy__Boba_GasPriceOracle":"0x4200000000000000000000000000000000000024", - "BobaTuringCredit": "0x4200000000000000000000000000000000000021", - "Proxy__BobaTuringCredit": "0x4200000000000000000000000000000000000020", - "L2StandardTokenFactory": "0xD2ae16D8c66ac7bc1Cf3c9e5d6bfE5f76BeDb826" -} diff --git a/packages/boba/register/addresses/addressesBobaOperaTestnet_0x12ad9f501149D3FDd703cC10c567F416B7F0af8b.json b/packages/boba/register/addresses/addressesBobaOperaTestnet_0x12ad9f501149D3FDd703cC10c567F416B7F0af8b.json deleted file mode 100644 index 81c5a92f26..0000000000 --- a/packages/boba/register/addresses/addressesBobaOperaTestnet_0x12ad9f501149D3FDd703cC10c567F416B7F0af8b.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "AddressManager": "0x12ad9f501149D3FDd703cC10c567F416B7F0af8b", - "Proxy__L1CrossDomainMessenger": "0xEecAD665ca933eeA4a9a2db600E538c1391930d1", - "Proxy__L1StandardBridge": "0x86FC7AeFcd69983A8d82eAB1E0EaFD38bB42fd3f", - "TK_L1BOBA": "0x5E747DfA79b8f9e46BE0CC67e378b7600350B2eF", - "TK_L2BOBA": "0x4200000000000000000000000000000000000006", - "TK_L1FTM": "0x0000000000000000000000000000000000000000", - "TK_L2FTM": "0x4200000000000000000000000000000000000023", - "L1CrossDomainMessengerFast": "0x7bE12FCB0Fc0979f4DD1A9A1CCec9d0036E634A1", - "Proxy__L1CrossDomainMessengerFast": "0xE5781E5E9CbC67E91DF93eD01E922De30125e491", - "L2LiquidityPool": "0xB9CeA621C2C9BE002747F2DdB7eB6a7dd0F8F20E", - "L1LiquidityPool": "0x0481480cf9f3a245aEB5f5c10360577Bb8949e40", - "Proxy__L1LiquidityPool": "0x34024168ba3cfa608005b5E9f13389bb2532422A", - "Proxy__L2LiquidityPool": "0xE7Da2a8EBcbBa0Dc6082B8D0faBAcA0176920760", - "L2TokenPool": "0x352d964E9aD016f122dc78Afa5164417907E0FaF", - "L1Message": "0x154128647Ff7fc41DdaD3d09f7c83340140539C5", - "L2Message": "0xa97a909D967B150E27AB58ca6d0cb40B39200Be1", - "AtomicSwap": "0x1bc8Bd8FCAd96ee663b6325F71F818Cce678083D", - "L2ERC721": "0x727207c505c1D95Ef7Ed93f74443D72C155064E7", - "L2ERC721Reg": "0xb5F92c9d10539137C9602A626d7F98823e58f3aA", - "L1NFTBridge": "0x621EdB64bC5bD6c088c969a8A7d7Eb1168E4F95D", - "L2NFTBridge": "0x30C18d90a6f9B161b8c0BB720b31BcF215FEc12b", - "Proxy__L1NFTBridge": "0x5E52f340D43Ee819dd8a38D55Cc27293603Ac5fb", - "Proxy__L2NFTBridge": "0x310FA48450dF21fBC99b937a7AafBc3B7Af6f6D1", - "L1MultiMessageRelayerFast": "0x9Af237336C29dCbA346764af8e8E1F0ba83D1eE5", - "DiscretionaryExitFee": "0x6E7033f647f932D23de37BD3b25b8F56DeAD4034", - "FeedRegistry": "0x48dfB307f6fFbDB9229E63beA2C127e7500DC5Ae", - "BOBAUSD_Aggregator": "0xA145e444abAd1Cb233A37cED870c59FD97e774bf", - "BobaBillingContract": "0x5E747DfA79b8f9e46BE0CC67e378b7600350B2eF", - "Proxy__BobaBillingContract": "0x675Ea342D2a85D7db0Cc79AE64196ad628Ce8187", - "Boba_GasPriceOracle":"0xE7EEf1eDA522feE7C7752369B0CEE134CdD6AC16", - "Proxy__Boba_GasPriceOracle":"0x4200000000000000000000000000000000000024", - "BobaTuringCredit": "0x4200000000000000000000000000000000000021", - "Proxy__BobaTuringCredit": "0x4200000000000000000000000000000000000020", - "AuthenticatedFaucet": "0xCED1459C6B56a85363426a502a24De99fBbF5a83", - "WBOBA9": "0xfd7f8a9F2D11B30a3571395Be9601720B6a32995", - "L2StandardTokenFactory": "0xD2ae16D8c66ac7bc1Cf3c9e5d6bfE5f76BeDb826", - "L1ERC1155Bridge": "0x5c94ea55c8dC4aB27faDc18068d335006460DAe3", - "L2ERC1155Bridge": "0x0f5c544D2671F008D73C7c27654DbA58A4248604", - "Proxy__L1ERC1155Bridge": "0x1dF39152AC0e81aB100341cACC4dE4c372A550cb", - "Proxy__L2ERC1155Bridge": "0x1dF39152AC0e81aB100341cACC4dE4c372A550cb", - "Teleportation": "0xb34918D9C16e13e10Fa078C6CB6a9AE7a42FcAB3", - "Proxy__Teleportation": "0xd68809330075C792C171C450B983F4D18128e9BF" -}