Skip to content

Commit

Permalink
Chore: Cleanup boba opera mainnet / testnet from gateway. (#999)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
sk-enya authored Jul 3, 2023
1 parent c73d476 commit b14db7f
Show file tree
Hide file tree
Showing 21 changed files with 30 additions and 490 deletions.
2 changes: 1 addition & 1 deletion packages/boba/gateway/src/actions/networkAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export function getAllAddresses() {
/********************************/
/**
* @params
* network - ethereum, bnb, fantom, avax
* network - ethereum, bnb, avax
* networkType - MAINNET, TESTNET
*/
export function setNetwork(payload) {
Expand Down
24 changes: 0 additions & 24 deletions packages/boba/gateway/src/components/icons/chain/L1/FantomIcon.js

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import { NETWORK } from 'util/network/network.util'

interface BannerContent {
message?: string
content?: string
}

export const BannerConfig: Record<string, BannerContent> = {
[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<string, BannerContent> = {}
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {

Expand Down Expand Up @@ -106,7 +105,6 @@ function InputStep({ handleClose, token, isBridge, openTokenPicker }) {
//no token in this account
return (
<Box>
<BridgeAlert />
<Typography variant="body2" sx={{ fontWeight: 700, my: 1, color: 'yellow' }}>
Sorry, nothing to deposit - no {token.symbol} in this wallet
</Typography>
Expand All @@ -127,7 +125,6 @@ function InputStep({ handleClose, token, isBridge, openTokenPicker }) {
return (
<>
<Box>
<BridgeAlert />
{!isBridge &&
<Typography variant="h2" sx={{ fontWeight: 700, mb: 3 }}>
Classic Bridge {token && token.symbol ? token.symbol : ''} to L2
Expand Down
Loading

0 comments on commit b14db7f

Please sign in to comment.