Skip to content

Commit b14db7f

Browse files
authored
Chore: Cleanup boba opera mainnet / testnet from gateway. (#999)
* change: - updated notitifacation banner config and test snapshot. - remove bridge alert - removed fontaom icons for chain. * change: - cleanup address files - removed opera/fantom config - clean up app service. - remove check for FTM token. - remove form input step multi chain.
1 parent c73d476 commit b14db7f

21 files changed

+30
-490
lines changed

packages/boba/gateway/src/actions/networkAction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export function getAllAddresses() {
247247
/********************************/
248248
/**
249249
* @params
250-
* network - ethereum, bnb, fantom, avax
250+
* network - ethereum, bnb, avax
251251
* networkType - MAINNET, TESTNET
252252
*/
253253
export function setNetwork(payload) {

packages/boba/gateway/src/components/icons/chain/L1/FantomIcon.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

packages/boba/gateway/src/components/icons/chain/L2/BobaFantomIcon.js

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
import { NETWORK } from 'util/network/network.util'
2-
31
interface BannerContent {
42
message?: string
53
content?: string
64
}
75

8-
export const BannerConfig: Record<string, BannerContent> = {
9-
[NETWORK.FANTOM]: {
6+
/**
7+
* To show the notification banner just add content like below.
8+
*
9+
*
10+
* [NETWORK.FANTOM]: {
1011
message: `BobaOpera is being wound down & will no longer be available, starting June 25th`,
1112
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.`,
1213
},
13-
}
14+
*
15+
*/
16+
17+
export const BannerConfig: Record<string, BannerContent> = {}

packages/boba/gateway/src/components/notificationBanner/tests/index.test.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@ import configureStore from 'redux-mock-store'
77
import { NETWORK, NETWORK_TYPE } from 'util/network/network.util'
88
import { BannerConfig } from '../bannerConfig'
99

10-
const data = BannerConfig[NETWORK.FANTOM]
10+
jest.mock('../bannerConfig', () => ({
11+
BannerConfig: {
12+
FANTOM: {
13+
message: `BobaOpera is being wound down & will no longer be available, starting June 25th`,
14+
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.`,
15+
},
16+
},
17+
}))
18+
19+
const data = BannerConfig[NETWORK.FANTOM] || {}
1120

1221
const mockStore = configureStore()
1322

packages/boba/gateway/src/containers/modals/deposit/steps/BridgeAlert.tsx

Lines changed: 0 additions & 28 deletions
This file was deleted.

packages/boba/gateway/src/containers/modals/deposit/steps/InputStep.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { WrapperActionsModal } from 'components/modal/Modal.styles'
1818

1919
import BN from 'bignumber.js'
2020
import { ethers } from 'ethers'
21-
import BridgeAlert from './BridgeAlert'
2221

2322
function InputStep({ handleClose, token, isBridge, openTokenPicker }) {
2423

@@ -106,7 +105,6 @@ function InputStep({ handleClose, token, isBridge, openTokenPicker }) {
106105
//no token in this account
107106
return (
108107
<Box>
109-
<BridgeAlert />
110108
<Typography variant="body2" sx={{ fontWeight: 700, my: 1, color: 'yellow' }}>
111109
Sorry, nothing to deposit - no {token.symbol} in this wallet
112110
</Typography>
@@ -127,7 +125,6 @@ function InputStep({ handleClose, token, isBridge, openTokenPicker }) {
127125
return (
128126
<>
129127
<Box>
130-
<BridgeAlert />
131128
{!isBridge &&
132129
<Typography variant="h2" sx={{ fontWeight: 700, mb: 3 }}>
133130
Classic Bridge {token && token.symbol ? token.symbol : ''} to L2

0 commit comments

Comments
 (0)