From 6568c719e7f3703586422d96ee9b89e8cd0b2db6 Mon Sep 17 00:00:00 2001 From: Max Voloshinskii Date: Tue, 9 Apr 2024 15:40:06 +0300 Subject: [PATCH] Switch holders backend to staging --- packages/mobile/src/components/CardsWidget/CardsWidget.tsx | 4 +++- .../src/components/CardsWidget/components/CardsList.tsx | 2 +- packages/mobile/src/config/index.ts | 4 +++- .../src/screens/HoldersWebView/hooks/useHoldersEnroll.ts | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/mobile/src/components/CardsWidget/CardsWidget.tsx b/packages/mobile/src/components/CardsWidget/CardsWidget.tsx index e21aea6a7..bd9304f01 100644 --- a/packages/mobile/src/components/CardsWidget/CardsWidget.tsx +++ b/packages/mobile/src/components/CardsWidget/CardsWidget.tsx @@ -13,7 +13,9 @@ export const CardsWidget = memo(() => { {!state.accounts.length && !state.onboardBannerDismissed ? ( tk.wallet.cards.dismissOnboardBanner()} /> ) : null} - {state.accounts.filter((account) => account.state === 'ACTIVE').length ? ( + {state.accounts.filter((account) => + ['PENDING_CONTRACT', 'ACTIVE'].includes(account.state), + ).length ? ( <> diff --git a/packages/mobile/src/components/CardsWidget/components/CardsList.tsx b/packages/mobile/src/components/CardsWidget/components/CardsList.tsx index 3e07dda44..ef21000a7 100644 --- a/packages/mobile/src/components/CardsWidget/components/CardsList.tsx +++ b/packages/mobile/src/components/CardsWidget/components/CardsList.tsx @@ -51,7 +51,7 @@ export const CardsList = memo((props) => { {props.accounts.map((account) => ( } onPress={openWebView(account.id)} value={`${formatter.fromNano(account.balance)} TON`} diff --git a/packages/mobile/src/config/index.ts b/packages/mobile/src/config/index.ts index 7a9ef04e8..495387cee 100644 --- a/packages/mobile/src/config/index.ts +++ b/packages/mobile/src/config/index.ts @@ -47,6 +47,7 @@ export type AppConfigVars = { batteryTestnetHost: string; batteryMeanFees: string; holdersAppEndpoint: string; + holdersTonconnect: string; holdersService: string; aptabaseEndpoint: string; aptabaseAppKey: string; @@ -76,7 +77,8 @@ const defaultConfig: Partial = { transactionExplorer: 'https://tonviewer.com/transaction/%s', flags: {}, holdersAppEndpoint: 'https://tonkeeper-dev.holders.io/', - holdersService: 'https://card-dev.whales-api.com', + holdersTonconnect: 'https://app.holders.io', + holdersService: 'https://card-staging.whales-api.com', tronapiHost: 'https://tron.tonkeeper.com', tronapiTestnetHost: 'https://testnet-tron.tonkeeper.com', batteryHost: 'https://battery.tonkeeper.com', diff --git a/packages/mobile/src/screens/HoldersWebView/hooks/useHoldersEnroll.ts b/packages/mobile/src/screens/HoldersWebView/hooks/useHoldersEnroll.ts index fa27fac08..0e38d738a 100644 --- a/packages/mobile/src/screens/HoldersWebView/hooks/useHoldersEnroll.ts +++ b/packages/mobile/src/screens/HoldersWebView/hooks/useHoldersEnroll.ts @@ -35,7 +35,7 @@ export function useHoldersEnroll(unlockVault: () => Promise) { // const manifestUrl = `${config.get( - 'holdersAppEndpoint', + 'holdersTonconnect', false, )}/jsons/tonconnect-manifest.json`;