From f9ff7fe846741a1d0056d4ff840113a2ca51599e Mon Sep 17 00:00:00 2001 From: Luis Couto Date: Wed, 4 Dec 2024 15:59:05 +0000 Subject: [PATCH 1/2] feat(LIVE-13952): allow `SWAP_USER_IP` to be given to swap app --- .../renderer/screens/exchange/Swap2/Form/SwapWebViewDemo3.tsx | 2 ++ turbo.json | 2 ++ 2 files changed, 4 insertions(+) diff --git a/apps/ledger-live-desktop/src/renderer/screens/exchange/Swap2/Form/SwapWebViewDemo3.tsx b/apps/ledger-live-desktop/src/renderer/screens/exchange/Swap2/Form/SwapWebViewDemo3.tsx index a4ecf0c9a84f..545dc11566ee 100644 --- a/apps/ledger-live-desktop/src/renderer/screens/exchange/Swap2/Form/SwapWebViewDemo3.tsx +++ b/apps/ledger-live-desktop/src/renderer/screens/exchange/Swap2/Form/SwapWebViewDemo3.tsx @@ -101,6 +101,7 @@ function simplifyFromPath(path: string): string { } const SWAP_API_BASE = getEnv("SWAP_API_BASE"); +const SWAP_USER_IP = getEnv("SWAP_USER_IP"); const getSegWitAbandonSeedAddress = (): string => "bc1qed3mqr92zvq2s782aqkyx785u23723w02qfrgs"; const SwapWebView = ({ manifest, liveAppUnavailable }: SwapWebProps) => { @@ -467,6 +468,7 @@ const SwapWebView = ({ manifest, liveAppUnavailable }: SwapWebProps) => { lang: locale, currencyTicker: fiatCurrency.ticker, swapApiBase: SWAP_API_BASE, + swapUserIp: SWAP_USER_IP, devMode, shareAnalytics, }} diff --git a/turbo.json b/turbo.json index e2817729ebc1..94ed1ee866a0 100644 --- a/turbo.json +++ b/turbo.json @@ -49,6 +49,8 @@ "SENTRY_ENVIRONMENT", "SENTRY_PROJECT", "SHORT_BUNDLE_ID", + "SWAP_API_BASE", + "SWAP_USER_IP", "SUPPLY_UPLOAD_MAX_RETRIES", "VERBOSE", "BYPASS_CORS" From 9cc21fab76a3820ecfe44ff46758c6f512550ca9 Mon Sep 17 00:00:00 2001 From: Luis Couto Date: Wed, 4 Dec 2024 16:00:00 +0000 Subject: [PATCH 2/2] chore(N/A): add changeset for minor version --- .changeset/metal-foxes-do.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/metal-foxes-do.md diff --git a/.changeset/metal-foxes-do.md b/.changeset/metal-foxes-do.md new file mode 100644 index 000000000000..eaedece1c977 --- /dev/null +++ b/.changeset/metal-foxes-do.md @@ -0,0 +1,5 @@ +--- +"ledger-live-desktop": minor +--- + +Allow `SWAP_USER_IP` to be passed to the swap app for ip testing