Skip to content

Commit c75d595

Browse files
ci(release): publish latest release
1 parent e574612 commit c75d595

File tree

1,069 files changed

+38241
-35993
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,069 files changed

+38241
-35993
lines changed

.husky/pre-commit

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
yarn g:run-fast-checks
4+
yarn g:run-fast-checks
5+
6+
if command -v git-secrets &> /dev/null
7+
then # only run if git-secrets is installed
8+
# Initialise git-secrets configuration
9+
git-secrets --register-aws > /dev/null
10+
11+
echo "Running git-secrets..."
12+
# Scans all files that are about to be committed.
13+
git-secrets --pre_commit_hook -- "$@"
14+
fi
15+
16+
if command -v trufflehog &> /dev/null
17+
then # only run if trufflehog is installed
18+
trufflehog git file://. --since-commit HEAD --only-verified --fail
19+
fi
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
diff --git a/package.json b/package.json
2+
index e4b37644f3a62171deaff6dbf7731979ce751c78..7b2ca64565c0c6318ba01ff26cb4fad1c7419b0d 100644
3+
--- a/package.json
4+
+++ b/package.json
5+
@@ -15,22 +15,9 @@
6+
"url": "https://github.com/sponsors/tannerlinsley"
7+
},
8+
"type": "module",
9+
- "types": "build/legacy/index.d.ts",
10+
- "main": "build/legacy/index.cjs",
11+
- "module": "build/legacy/index.js",
12+
- "exports": {
13+
- ".": {
14+
- "import": {
15+
- "types": "./build/modern/index.d.ts",
16+
- "default": "./build/modern/index.js"
17+
- },
18+
- "require": {
19+
- "types": "./build/modern/index.d.cts",
20+
- "default": "./build/modern/index.cjs"
21+
- }
22+
- },
23+
- "./package.json": "./package.json"
24+
- },
25+
+ "types": "build/modern/index.d.ts",
26+
+ "main": "build/modern/index.cjs",
27+
+ "module": "build/modern/index.js",
28+
"sideEffects": false,
29+
"files": [
30+
"build",

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @uniswap/web-admins

RELEASE

Lines changed: 63 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,63 @@
1-
We are back with some new updates! Here’s the latest:
2-
3-
Onboarding Improvements: New unfunded wallets will experience our upgraded homepage, which gives a preview of our token explore page, as well as a card stack of onboarding steps to complete.
4-
5-
Haptic Touch Settings: Users can now toggle their haptic touch preferences on the Settings page.
6-
7-
Other changes:
8-
9-
- Improved context menus on Swap Activity Items
10-
- Increased fiat onramp options for stablecoins on the Polygon network
11-
- Various bug fixes and performance improvements
1+
IPFS hash of the deployment:
2+
- CIDv0: `QmdkgTrLeXsNsutYMS3KcRCpLA69uupUtXk4fbLJTtxitL`
3+
- CIDv1: `bafybeihfa45bbn7mpgu5phtqvg5w3s3bmcabkb5kdp6gkndkcnunwdbffu`
4+
5+
The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).
6+
7+
You can also access the Uniswap Interface from an IPFS gateway.
8+
**BEWARE**: The Uniswap interface uses [`localStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) to remember your settings, such as which tokens you have imported.
9+
**You should always use an IPFS gateway that enforces origin separation**, or our hosted deployment of the latest release at [app.uniswap.org](https://app.uniswap.org).
10+
Your Uniswap settings are never remembered across different URLs.
11+
12+
IPFS gateways:
13+
- https://bafybeihfa45bbn7mpgu5phtqvg5w3s3bmcabkb5kdp6gkndkcnunwdbffu.ipfs.dweb.link/
14+
- https://bafybeihfa45bbn7mpgu5phtqvg5w3s3bmcabkb5kdp6gkndkcnunwdbffu.ipfs.cf-ipfs.com/
15+
- [ipfs://QmdkgTrLeXsNsutYMS3KcRCpLA69uupUtXk4fbLJTtxitL/](ipfs://QmdkgTrLeXsNsutYMS3KcRCpLA69uupUtXk4fbLJTtxitL/)
16+
17+
## 5.44.0 (2024-08-28)
18+
19+
20+
### Features
21+
22+
* **web:** adding v4 everywhere feature flag (#10886) 5b065e9
23+
* **web:** enhanced dropdown component in prep for v4 changes (#11070) 6e4565c
24+
* **web:** new pools page and rename old pools pages (#11004) 7b774cc
25+
* **web:** tamaguify explore page (charts) (incl. snapshots) (#11117) 8485f71
26+
* **web:** tamaguify explore page (tables) (incl. snapshots) (#11118) e29104d
27+
* **web:** use uniswap currency info (#11064) 00da3f5
28+
29+
30+
### Bug Fixes
31+
32+
* **web:** add error policy all to balances web query (#11176) 1100abe
33+
* **web:** dont double format amountOut (#11111) d4d3df2
34+
* **web:** extraneous useClickOutside for DropdownSelector components (#11109) 501adb9
35+
* **web:** fallback to common bases (#11140) 0fac4f6
36+
* **web:** fix button label on add/v2 page (#11156) 31b7462
37+
* **web:** fix modal height for absolute-positioned modal contents (#11152) 0b2919c
38+
* **web:** fix switchChain for single-chain wallets (#11342) 9621efe
39+
* **web:** remove redirect from landing page when connected (#11207) dc75f2a
40+
* **web:** remove second language selection menu (#11263) 62eeedf
41+
* **web:** tdp pdp tamagui staging hotfix (#11311) fa0312e
42+
* **web:** Use neutralContrast for Add Liq and Preview buttons - staging (#11315) ca38bad
43+
* **web:** Use neutralContrast for Swap button (#11065) 962f3e5
44+
* **web:** use reduceRight instead of findLastIndex for activeIndex (#11201) 1adceb3
45+
* **web:** use updated Arb Xv2 experiment name & update UniswapX SDK (#11058) a54ba3e
46+
* **web:** Volume Explore chart TimeSelector colors - staging (#11322) 8e2a763
47+
48+
49+
### Continuous Integration
50+
51+
* **web:** update sitemaps 3c8a16c
52+
53+
54+
### Code Refactoring
55+
56+
* **web:** tamaguify buy form (#10981) 3743d77
57+
58+
59+
### Tests
60+
61+
* **web:** useCurrencyInfo (#11085) 92adc3b
62+
63+

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
mobile/1.33
1+
web/5.44.0

apps/extension/jest-setup.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ import 'utilities/src/logger/mocks'
22

33
import { chrome } from 'jest-chrome'
44
import { AppearanceSettingType } from 'wallet/src/features/appearance/slice'
5-
import { TextEncoder, TextDecoder } from 'util';
5+
import { TextEncoder, TextDecoder } from 'util'
6+
import { mockSharedPersistQueryClientProvider } from 'uniswap/src/test/mocks/mockSharedPersistQueryClientProvider'
7+
import { mockUIAssets } from 'ui/src/test/mocks/mockUIAssets'
68

7-
process.env.IS_UNISWAP_EXTENSION = true
9+
process.env.IS_UNISWAP_EXTENSION = true
810

911
global.TextEncoder = TextEncoder;
1012
global.TextDecoder = TextDecoder;
@@ -69,3 +71,7 @@ jest.mock('wallet/src/features/appearance/hooks', () => {
6971
useSelectedColorScheme: () => 'light',
7072
}
7173
})
74+
75+
jest.mock('uniswap/src/data/apiClients/SharedPersistQueryClientProvider', () => mockSharedPersistQueryClientProvider)
76+
77+
mockUIAssets()

apps/extension/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@sentry/react": "7.80.0",
1212
"@sentry/webpack-plugin": "2.10.3",
1313
"@svgr/webpack": "8.0.1",
14-
"@tamagui/core": "1.108.2",
14+
"@tamagui/core": "1.108.4",
1515
"@types/uuid": "9.0.1",
1616
"@uniswap/analytics-events": "2.36.0",
1717
"@uniswap/universal-router-sdk": "2.2.0",
@@ -26,7 +26,7 @@
2626
"react-i18next": "14.1.0",
2727
"react-native": "0.73.6",
2828
"react-native-gesture-handler": "2.15.0",
29-
"react-native-reanimated": "npm:[email protected]",
29+
"react-native-reanimated": "3.15.0",
3030
"react-native-svg": "15.1.0",
3131
"react-native-web": "0.19.10",
3232
"react-qr-code": "2.0.12",
@@ -74,7 +74,7 @@
7474
"serve": "^14.2.0",
7575
"statsig-js": "4.41.0",
7676
"swc-loader": "^0.2.3",
77-
"tamagui-loader": "1.108.2",
77+
"tamagui-loader": "1.108.4",
7878
"typescript": "5.3.3",
7979
"webpack": "5.90.0",
8080
"webpack-cli": "^5.0.1",
@@ -88,8 +88,8 @@
8888
"env:local:download": "bash ../../scripts/downloadEnvLocal.sh web-local-envs ../../.env",
8989
"env:local:upload": "bash ../../scripts/uploadEnvLocal.sh web-local-envs ../../.env",
9090
"format": "../../scripts/prettier.sh",
91-
"lint": "eslint . --ext ts,tsx --max-warnings=0",
92-
"lint:fix": "eslint . --ext ts,tsx --fix",
91+
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --ext ts,tsx --max-warnings=0",
92+
"lint:fix": "NODE_OPTIONS=--max-old-space-size=8192 eslint . --ext ts,tsx --fix",
9393
"start": "webpack serve --config webpack.config.js",
9494
"start:absolute": "yarn start:absolute:mac",
9595
"start:absolute:mac": "yarn start --output-path /Users/Shared/stretch",

apps/extension/src/app/OnboardingApp.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import i18n from 'uniswap/src/i18n/i18n'
4646
import { ExtensionOnboardingFlow } from 'uniswap/src/types/screens/extension'
4747
import { ErrorBoundary } from 'wallet/src/components/ErrorBoundary/ErrorBoundary'
4848
import { LocalizationContextProvider } from 'wallet/src/features/language/LocalizationContext'
49+
import { WalletUniswapProvider } from 'wallet/src/features/transactions/contexts/WalletUniswapContext'
4950
import { SharedProvider } from 'wallet/src/provider'
5051

5152
const supportsSidePanel = checksIfSupportsSidePanel()
@@ -178,8 +179,10 @@ export default function OnboardingApp(): JSX.Element {
178179
<GraphqlProvider>
179180
<LocalizationContextProvider>
180181
<UnitagUpdaterContextProvider>
181-
<PrimaryAppInstanceDebuggerLazy />
182-
<RouterProvider router={router} />
182+
<WalletUniswapProvider>
183+
<PrimaryAppInstanceDebuggerLazy />
184+
<RouterProvider router={router} />
185+
</WalletUniswapProvider>
183186
</UnitagUpdaterContextProvider>
184187
</LocalizationContextProvider>
185188
</GraphqlProvider>

apps/extension/src/app/PopupApp.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { logger } from 'utilities/src/logger/logger'
2727
import { ErrorBoundary } from 'wallet/src/components/ErrorBoundary/ErrorBoundary'
2828
import { LocalizationContextProvider } from 'wallet/src/features/language/LocalizationContext'
2929
import { syncAppWithDeviceLanguage } from 'wallet/src/features/language/slice'
30+
import { WalletUniswapProvider } from 'wallet/src/features/transactions/contexts/WalletUniswapContext'
3031
import { SharedProvider } from 'wallet/src/provider'
3132

3233
getLocalUserId()
@@ -132,10 +133,12 @@ export default function PopupApp(): JSX.Element {
132133
<GraphqlProvider>
133134
<LocalizationContextProvider>
134135
<UnitagUpdaterContextProvider>
135-
<TraceUserProperties />
136-
<DappContextProvider>
137-
<RouterProvider router={router} />
138-
</DappContextProvider>
136+
<WalletUniswapProvider>
137+
<TraceUserProperties />
138+
<DappContextProvider>
139+
<RouterProvider router={router} />
140+
</DappContextProvider>
141+
</WalletUniswapProvider>
139142
</UnitagUpdaterContextProvider>
140143
</LocalizationContextProvider>
141144
</GraphqlProvider>

apps/extension/src/app/SidebarApp.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { AccountSwitcherScreen } from 'src/app/features/accounts/AccountSwitcher
1414
import { DappContextProvider } from 'src/app/features/dapp/DappContext'
1515
import { addRequest } from 'src/app/features/dappRequests/saga'
1616
import { ReceiveScreen } from 'src/app/features/receive/ReceiveScreen'
17+
import { SendFlow } from 'src/app/features/send/SendFlow'
1718
import { DevMenuScreen } from 'src/app/features/settings/DevMenuScreen'
1819
import { SettingsPrivacyScreen } from 'src/app/features/settings/SettingsPrivacyScreen'
1920
import { RemoveRecoveryPhraseVerify } from 'src/app/features/settings/SettingsRecoveryPhraseScreen/RemoveRecoveryPhraseVerify'
@@ -23,7 +24,6 @@ import { SettingsScreen } from 'src/app/features/settings/SettingsScreen'
2324
import { SettingsScreenWrapper } from 'src/app/features/settings/SettingsScreenWrapper'
2425
import { SettingsChangePasswordScreen } from 'src/app/features/settings/password/SettingsChangePasswordScreen'
2526
import { SwapFlowScreen } from 'src/app/features/swap/SwapFlowScreen'
26-
import { TransferFlowScreen } from 'src/app/features/transfer/TransferFlowScreen'
2727
import { useIsWalletUnlocked } from 'src/app/hooks/useIsWalletUnlocked'
2828
import { MainContent, WebNavigation } from 'src/app/navigation'
2929
import { AppRoutes, RemoveRecoveryPhraseRoutes, SettingsRoutes } from 'src/app/navigation/constants'
@@ -50,6 +50,7 @@ import { useInterval } from 'utilities/src/time/timing'
5050
import { ErrorBoundary } from 'wallet/src/components/ErrorBoundary/ErrorBoundary'
5151
import { LocalizationContextProvider } from 'wallet/src/features/language/LocalizationContext'
5252
import { syncAppWithDeviceLanguage } from 'wallet/src/features/language/slice'
53+
import { WalletUniswapProvider } from 'wallet/src/features/transactions/contexts/WalletUniswapContext'
5354
import { SharedProvider } from 'wallet/src/provider'
5455

5556
getLocalUserId()
@@ -118,8 +119,8 @@ const router = sentryCreateHashRouter([
118119
],
119120
},
120121
{
121-
path: AppRoutes.Transfer,
122-
element: <TransferFlowScreen />,
122+
path: AppRoutes.Send,
123+
element: <SendFlow />,
123124
},
124125
{
125126
path: AppRoutes.Swap,
@@ -246,11 +247,13 @@ export default function SidebarApp(): JSX.Element {
246247
<GraphqlProvider>
247248
<LocalizationContextProvider>
248249
<UnitagUpdaterContextProvider>
249-
<TraceUserProperties />
250-
<DappContextProvider>
251-
<PrimaryAppInstanceDebuggerLazy />
252-
<RouterProvider router={router} />
253-
</DappContextProvider>
250+
<WalletUniswapProvider>
251+
<TraceUserProperties />
252+
<DappContextProvider>
253+
<PrimaryAppInstanceDebuggerLazy />
254+
<RouterProvider router={router} />
255+
</DappContextProvider>
256+
</WalletUniswapProvider>
254257
</UnitagUpdaterContextProvider>
255258
</LocalizationContextProvider>
256259
</GraphqlProvider>

0 commit comments

Comments
 (0)