diff --git a/packages/blockchain-wallet-v4-frontend/src/components/Form/SelectBoxCoin/selectors.ts b/packages/blockchain-wallet-v4-frontend/src/components/Form/SelectBoxCoin/selectors.ts index 70a87994faf..0a60f518f50 100644 --- a/packages/blockchain-wallet-v4-frontend/src/components/Form/SelectBoxCoin/selectors.ts +++ b/packages/blockchain-wallet-v4-frontend/src/components/Form/SelectBoxCoin/selectors.ts @@ -14,7 +14,8 @@ export const getData = (state) => { (products.includes('PrivateKey') || products.includes('CustodialWalletBalance') || products.includes('DynamicSelfCustody')) && - coinfig.type.name !== 'FIAT' + coinfig.type.name !== 'FIAT' && + !coinfig.categories.some((cat) => cat?.id === 'MEME') ) }) .map((coinfig) => ({ text: coinfig.name, value: coinfig.symbol })) diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/CheckoutConfirm/models/quoteSummaryViewModel.test.ts b/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/CheckoutConfirm/models/quoteSummaryViewModel.test.ts index 66a708db96a..c5b7cf739c3 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/CheckoutConfirm/models/quoteSummaryViewModel.test.ts +++ b/packages/blockchain-wallet-v4-frontend/src/modals/BuySell/CheckoutConfirm/models/quoteSummaryViewModel.test.ts @@ -6,6 +6,7 @@ import * as QuoteSummaryViewModel from './quoteSummaryViewModel' const makeCoins = (): Coins => ({ BTC: { coinfig: { + categories: [], displaySymbol: 'BTC', name: 'Bitcoin', precision: 8, @@ -22,6 +23,7 @@ const makeCoins = (): Coins => ({ }, USD: { coinfig: { + categories: [], displaySymbol: 'USD', name: 'US Dollar', precision: 2, diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/Swap/EnterAmount/test-utils/makeCoinfig.ts b/packages/blockchain-wallet-v4-frontend/src/modals/Swap/EnterAmount/test-utils/makeCoinfig.ts index 9b40d0891d2..f8e13166ff0 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/Swap/EnterAmount/test-utils/makeCoinfig.ts +++ b/packages/blockchain-wallet-v4-frontend/src/modals/Swap/EnterAmount/test-utils/makeCoinfig.ts @@ -1,4 +1,5 @@ export const makeCoinfig = () => ({ + categories: [], displaySymbol: '', name: '', precision: 10, diff --git a/packages/blockchain-wallet-v4-frontend/src/store/worker.assets.js b/packages/blockchain-wallet-v4-frontend/src/store/worker.assets.js index 27b9f2198ed..5cc8e509555 100644 --- a/packages/blockchain-wallet-v4-frontend/src/store/worker.assets.js +++ b/packages/blockchain-wallet-v4-frontend/src/store/worker.assets.js @@ -18,9 +18,12 @@ addEventListener('message', ({ data }) => { let assets = {} const supportedCoins = custodialAssets.currencies.concat(erc20Assets.currencies) - supportedCoins.forEach((coin) => { - assets[coin.symbol] = { coinfig: coin } - }) + supportedCoins + .filter((coin) => !coin.categories.some((cat) => cat?.id === 'MEME')) + .forEach((coin) => { + console.log('coin', coin) + assets[coin.symbol] = { coinfig: coin } + }) assets.MATIC.coinfig.type.logoPngUrl = assets['MATIC.MATIC'].coinfig.type.logoPngUrl assets.STX.coinfig.products.push('DynamicSelfCustody') diff --git a/packages/blockchain-wallet-v4/src/redux/data/coins/selectors.spec.ts b/packages/blockchain-wallet-v4/src/redux/data/coins/selectors.spec.ts index 2175a1a37e7..59c053141fb 100644 --- a/packages/blockchain-wallet-v4/src/redux/data/coins/selectors.spec.ts +++ b/packages/blockchain-wallet-v4/src/redux/data/coins/selectors.spec.ts @@ -3,6 +3,7 @@ import * as selectors from './selectors' const COINS_STUB: Window['coins'] = { USDC: { coinfig: { + categories: [], displaySymbol: 'USDC', name: 'USD Coin', precision: 6, diff --git a/packages/blockchain-wallet-v4/src/redux/walletOptions/types.ts b/packages/blockchain-wallet-v4/src/redux/walletOptions/types.ts index 2ffb8106336..48e06733bf4 100644 --- a/packages/blockchain-wallet-v4/src/redux/walletOptions/types.ts +++ b/packages/blockchain-wallet-v4/src/redux/walletOptions/types.ts @@ -3,7 +3,14 @@ import { CoinType, RemoteDataType, WalletFiatType } from '../../types' export type WalletOptionsType = typeof WalletOptions +type Category = { + description: string + id: string + name: string +} + export type CoinfigType = { + categories: Category[] displaySymbol: string name: string precision: number diff --git a/typings/window.d.ts b/typings/window.d.ts index 2225054a24a..18d2b5a710e 100644 --- a/typings/window.d.ts +++ b/typings/window.d.ts @@ -20,10 +20,13 @@ declare global { // build injected recaptcha key SARDINE_CLIENT_ID: string // build injected sardine access key - SARDINE_ENVIRONMENT: string // sardine environment sandbox or production - _Sardine: any // Sardine integration - _SardineContext: any // Sardine integration + SARDINE_ENVIRONMENT: string + // Sardine integration WALLET_V5_LINK: string + // sardine environment sandbox or production + _Sardine: any + // Sardine integration + _SardineContext: any coins: Coins grecaptcha: any // google recaptcha sets this on window history?: {