From 83da03e3c126470d3a6f8a9373a50b6c2e532e27 Mon Sep 17 00:00:00 2001 From: Lyka Labrada Date: Wed, 18 Oct 2023 15:54:30 +0800 Subject: [PATCH 1/3] feat(ui-ux): update blockscout url (#4071) --- mobile-app/app/contexts/CustomServiceProvider.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile-app/app/contexts/CustomServiceProvider.tsx b/mobile-app/app/contexts/CustomServiceProvider.tsx index 9ccea592d5..8d156faaef 100644 --- a/mobile-app/app/contexts/CustomServiceProvider.tsx +++ b/mobile-app/app/contexts/CustomServiceProvider.tsx @@ -92,12 +92,12 @@ function getBlockscoutUrl(network: EnvironmentNetwork) { case EnvironmentNetwork.RemotePlayground: case EnvironmentNetwork.DevNet: case EnvironmentNetwork.Changi: - return "http://34.87.158.111:4000"; // TODO: add final blockscout url for playground and devnet - case EnvironmentNetwork.TestNet: return "https://blockscout.changi.ocean.jellyfishsdk.com"; + case EnvironmentNetwork.TestNet: + return "https://blockscout.testnet.ocean.jellyfishsdk.com"; case EnvironmentNetwork.MainNet: default: - return "https://blockscout.changi.ocean.jellyfishsdk.com"; + return "https://blockscout.mainnet.ocean.jellyfishsdk.com"; } } From 8b61b2f357359b788457c7f4d80580708957cb1f Mon Sep 17 00:00:00 2001 From: Harsh R <53080940+fullstackninja864@users.noreply.github.com> Date: Wed, 18 Oct 2023 13:59:38 +0530 Subject: [PATCH 2/3] fix(core): fixed hang issue on click of denomination currency (#4072) --- .../screens/Portfolio/hooks/TokenBalance.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/mobile-app/app/screens/AppNavigator/screens/Portfolio/hooks/TokenBalance.ts b/mobile-app/app/screens/AppNavigator/screens/Portfolio/hooks/TokenBalance.ts index 0207aa6f07..528ccbf7f7 100644 --- a/mobile-app/app/screens/AppNavigator/screens/Portfolio/hooks/TokenBalance.ts +++ b/mobile-app/app/screens/AppNavigator/screens/Portfolio/hooks/TokenBalance.ts @@ -1,14 +1,9 @@ import { useSelector } from "react-redux"; import BigNumber from "bignumber.js"; import { RootState } from "@store"; -import { - WalletToken, - dexPricesSelectorByDenomination, - tokensSelector, -} from "@waveshq/walletkit-ui/dist/store"; +import { WalletToken, tokensSelector } from "@waveshq/walletkit-ui/dist/store"; import { useMemo } from "react"; import { DomainType } from "@contexts/DomainContext"; -import { useDenominationCurrency } from "./PortfolioCurrency"; import { useEvmTokenBalances } from "./EvmTokenBalances"; export interface DomainToken { @@ -30,14 +25,9 @@ export function useTokenBalance(): { dvmTokens: DomainToken[]; evmTokens: DomainToken[]; } { - const { denominationCurrency } = useDenominationCurrency(); - const tokens = useSelector((state: RootState) => tokensSelector(state.wallet), ); - const prices = useSelector((state: RootState) => - dexPricesSelectorByDenomination(state.wallet, denominationCurrency), - ); const { evmTokens } = useEvmTokenBalances(); const mapDomainToken = (token: WalletToken) => { @@ -94,7 +84,7 @@ export function useTokenBalance(): { dvmTokens: [], }, ); - }, [prices, tokens]); + }, [tokens]); return { dvmTokens, From 660876a46d1ba4ecce783910acfa922a1602e38e Mon Sep 17 00:00:00 2001 From: Lyka Labrada Date: Wed, 18 Oct 2023 16:43:44 +0800 Subject: [PATCH 3/3] feat(core): update testnet eth rpc url (#4073) --- mobile-app/app/contexts/CustomServiceProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile-app/app/contexts/CustomServiceProvider.tsx b/mobile-app/app/contexts/CustomServiceProvider.tsx index 8d156faaef..8c1f0f06cb 100644 --- a/mobile-app/app/contexts/CustomServiceProvider.tsx +++ b/mobile-app/app/contexts/CustomServiceProvider.tsx @@ -111,7 +111,7 @@ function getEthRpcUrl(network: EnvironmentNetwork) { case EnvironmentNetwork.Changi: return "http://34.34.156.49:20551"; // TODO: add final eth rpc url for changi, devnet and remote playground case EnvironmentNetwork.TestNet: - return "https://changi.dfi.team"; // TODO: add final eth rpc url for testnet, with proper domain name + return "http://34.38.30.102:18551"; // TODO: add final eth rpc url for testnet, with proper domain name case EnvironmentNetwork.MainNet: default: return "https://changi.dfi.team"; // TODO: add final eth rpc url for mainnet, with proper domain name