Skip to content

Commit

Permalink
ci(release): publish latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-happy-puppy committed Sep 10, 2024
1 parent 93f6adf commit 86b62c2
Show file tree
Hide file tree
Showing 922 changed files with 15,196 additions and 20,434 deletions.
1 change: 0 additions & 1 deletion CODEOWNERS

This file was deleted.

29 changes: 8 additions & 21 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
IPFS hash of the deployment:
- CIDv0: `QmZnW9JioRugnBAzvSbo2kEYERqzoHTTvbxJhGSnWqRVG3`
- CIDv1: `bafybeifkb74n6zzyd2lqtflyz2hvlmgzms5b7jevm3cldxtyzcowqu4h7a`
We are back with some new new updates! Here’s the latest:

The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).

You can also access the Uniswap Interface from an IPFS gateway.
**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.
**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).
Your Uniswap settings are never remembered across different URLs.

IPFS gateways:
- https://bafybeifkb74n6zzyd2lqtflyz2hvlmgzms5b7jevm3cldxtyzcowqu4h7a.ipfs.dweb.link/
- https://bafybeifkb74n6zzyd2lqtflyz2hvlmgzms5b7jevm3cldxtyzcowqu4h7a.ipfs.cf-ipfs.com/
- [ipfs://QmZnW9JioRugnBAzvSbo2kEYERqzoHTTvbxJhGSnWqRVG3/](ipfs://QmZnW9JioRugnBAzvSbo2kEYERqzoHTTvbxJhGSnWqRVG3/)

### 5.45.5 (2024-09-09)


### Bug Fixes

* **web:** Add unsupported style to Explore Table network options - prod (#11706) 26abc8e
Improved Send Flow: We’ve revamped our Send feature with a UI refresh!

Other changes:

- Faster wallet imports when importing a recovery phrase!
- Better loading states in the transaction details sheets
- Added toasts when hiding and unhiding NFTs
- Removed the hold to swap feature
- Various bug fixes and performance improvements
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web/5.45.5
mobile/1.34.1
15 changes: 9 additions & 6 deletions apps/extension/src/app/OnboardingApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,16 @@ import { initExtensionAnalytics } from 'src/app/utils/analytics'
import { checksIfSupportsSidePanel } from 'src/app/utils/chrome'
import { PrimaryAppInstanceDebuggerLazy } from 'src/store/PrimaryAppInstanceDebuggerLazy'
import { getReduxPersistor, getReduxStore } from 'src/store/store'
import { LocalizationContextProvider } from 'uniswap/src/features/language/LocalizationContext'
import Trace from 'uniswap/src/features/telemetry/Trace'
import { ExtensionEventName } from 'uniswap/src/features/telemetry/constants'
import { sendAnalyticsEvent } from 'uniswap/src/features/telemetry/send'
import { UnitagUpdaterContextProvider } from 'uniswap/src/features/unitags/context'
import i18n from 'uniswap/src/i18n/i18n'
import { ExtensionOnboardingFlow } from 'uniswap/src/types/screens/extension'
import { ErrorBoundary } from 'wallet/src/components/ErrorBoundary/ErrorBoundary'
import { SharedWalletProvider } from 'wallet/src/provider'
import { LocalizationContextProvider } from 'wallet/src/features/language/LocalizationContext'
import { WalletUniswapProvider } from 'wallet/src/features/transactions/contexts/WalletUniswapContext'
import { SharedProvider } from 'wallet/src/provider'

const supportsSidePanel = checksIfSupportsSidePanel()

Expand Down Expand Up @@ -173,18 +174,20 @@ export default function OnboardingApp(): JSX.Element {
<PersistGate persistor={getReduxPersistor()}>
<ExtensionStatsigProvider>
<I18nextProvider i18n={i18n}>
<SharedWalletProvider reduxStore={getReduxStore()}>
<SharedProvider reduxStore={getReduxStore()}>
<ErrorBoundary>
<GraphqlProvider>
<LocalizationContextProvider>
<UnitagUpdaterContextProvider>
<PrimaryAppInstanceDebuggerLazy />
<RouterProvider router={router} />
<WalletUniswapProvider>
<PrimaryAppInstanceDebuggerLazy />
<RouterProvider router={router} />
</WalletUniswapProvider>
</UnitagUpdaterContextProvider>
</LocalizationContextProvider>
</GraphqlProvider>
</ErrorBoundary>
</SharedWalletProvider>
</SharedProvider>
</I18nextProvider>
</ExtensionStatsigProvider>
</PersistGate>
Expand Down
21 changes: 12 additions & 9 deletions apps/extension/src/app/PopupApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ import { getReduxPersistor, getReduxStore } from 'src/store/store'
import { Button, Flex, Image, Text } from 'ui/src'
import { CHROME_LOGO, UNISWAP_LOGO } from 'ui/src/assets'
import { iconSizes, spacing } from 'ui/src/theme'
import { LocalizationContextProvider } from 'uniswap/src/features/language/LocalizationContext'
import { syncAppWithDeviceLanguage } from 'uniswap/src/features/settings/slice'
import Trace from 'uniswap/src/features/telemetry/Trace'
import { ElementName } from 'uniswap/src/features/telemetry/constants'
import { UnitagUpdaterContextProvider } from 'uniswap/src/features/unitags/context'
import i18n from 'uniswap/src/i18n/i18n'
import { ExtensionScreens } from 'uniswap/src/types/screens/extension'
import { logger } from 'utilities/src/logger/logger'
import { ErrorBoundary } from 'wallet/src/components/ErrorBoundary/ErrorBoundary'
import { SharedWalletProvider } from 'wallet/src/provider'
import { LocalizationContextProvider } from 'wallet/src/features/language/LocalizationContext'
import { syncAppWithDeviceLanguage } from 'wallet/src/features/language/slice'
import { WalletUniswapProvider } from 'wallet/src/features/transactions/contexts/WalletUniswapContext'
import { SharedProvider } from 'wallet/src/provider'

getLocalUserId()
.then((userId) => {
Expand Down Expand Up @@ -127,20 +128,22 @@ export default function PopupApp(): JSX.Element {
<PersistGate persistor={getReduxPersistor()}>
<ExtensionStatsigProvider>
<I18nextProvider i18n={i18n}>
<SharedWalletProvider reduxStore={getReduxStore()}>
<SharedProvider reduxStore={getReduxStore()}>
<ErrorBoundary>
<GraphqlProvider>
<LocalizationContextProvider>
<UnitagUpdaterContextProvider>
<TraceUserProperties />
<DappContextProvider>
<RouterProvider router={router} />
</DappContextProvider>
<WalletUniswapProvider>
<TraceUserProperties />
<DappContextProvider>
<RouterProvider router={router} />
</DappContextProvider>
</WalletUniswapProvider>
</UnitagUpdaterContextProvider>
</LocalizationContextProvider>
</GraphqlProvider>
</ErrorBoundary>
</SharedWalletProvider>
</SharedProvider>
</I18nextProvider>
</ExtensionStatsigProvider>
</PersistGate>
Expand Down
26 changes: 15 additions & 11 deletions apps/extension/src/app/SidebarApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'src/app/Global.css'
import { useEffect, useRef, useState } from 'react'
import { I18nextProvider } from 'react-i18next'
import { useDispatch } from 'react-redux'
import { RouterProvider } from 'react-router-dom'
import { RouterProvider, ScrollRestoration } from 'react-router-dom'
import { PersistGate } from 'redux-persist/integration/react'
import { ExtensionStatsigProvider } from 'src/app/StatsigProvider'
import { GraphqlProvider } from 'src/app/apollo'
Expand Down Expand Up @@ -38,8 +38,6 @@ import {
import { BackgroundToSidePanelRequestType } from 'src/background/messagePassing/types/requests'
import { PrimaryAppInstanceDebuggerLazy } from 'src/store/PrimaryAppInstanceDebuggerLazy'
import { getReduxPersistor, getReduxStore } from 'src/store/store'
import { LocalizationContextProvider } from 'uniswap/src/features/language/LocalizationContext'
import { syncAppWithDeviceLanguage } from 'uniswap/src/features/settings/slice'
import Trace from 'uniswap/src/features/telemetry/Trace'
import { ExtensionEventName } from 'uniswap/src/features/telemetry/constants'
import { sendAnalyticsEvent } from 'uniswap/src/features/telemetry/send'
Expand All @@ -50,7 +48,10 @@ import { logger } from 'utilities/src/logger/logger'
import { ONE_SECOND_MS } from 'utilities/src/time/time'
import { useInterval } from 'utilities/src/time/timing'
import { ErrorBoundary } from 'wallet/src/components/ErrorBoundary/ErrorBoundary'
import { SharedWalletProvider } from 'wallet/src/provider'
import { LocalizationContextProvider } from 'wallet/src/features/language/LocalizationContext'
import { syncAppWithDeviceLanguage } from 'wallet/src/features/language/slice'
import { WalletUniswapProvider } from 'wallet/src/features/transactions/contexts/WalletUniswapContext'
import { SharedProvider } from 'wallet/src/provider'

getLocalUserId()
.then((userId) => {
Expand Down Expand Up @@ -204,6 +205,7 @@ function SidebarWrapper(): JSX.Element {

return (
<>
<ScrollRestoration />
<WebNavigation />
</>
)
Expand Down Expand Up @@ -240,21 +242,23 @@ export default function SidebarApp(): JSX.Element {
<PersistGate persistor={getReduxPersistor()}>
<ExtensionStatsigProvider>
<I18nextProvider i18n={i18n}>
<SharedWalletProvider reduxStore={getReduxStore()}>
<SharedProvider reduxStore={getReduxStore()}>
<ErrorBoundary>
<GraphqlProvider>
<LocalizationContextProvider>
<UnitagUpdaterContextProvider>
<TraceUserProperties />
<DappContextProvider>
<PrimaryAppInstanceDebuggerLazy />
<RouterProvider router={router} />
</DappContextProvider>
<WalletUniswapProvider>
<TraceUserProperties />
<DappContextProvider>
<PrimaryAppInstanceDebuggerLazy />
<RouterProvider router={router} />
</DappContextProvider>
</WalletUniswapProvider>
</UnitagUpdaterContextProvider>
</LocalizationContextProvider>
</GraphqlProvider>
</ErrorBoundary>
</SharedWalletProvider>
</SharedProvider>
</I18nextProvider>
</ExtensionStatsigProvider>
</PersistGate>
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/app/components/PasswordInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function StrengthIndicator({ strength }: { strength: PasswordStrength }): JSX.El

return (
<Flex position="absolute" right="$spacing24">
<Text color={color} variant="buttonLabel2">
<Text color={color} variant="buttonLabel4">
{text}
</Text>
</Flex>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { useEffect } from 'react'
import { useColorScheme } from 'react-native'
import { useAppFiatCurrencyInfo } from 'uniswap/src/features/fiatCurrency/hooks'
import { useCurrentLanguage } from 'uniswap/src/features/language/hooks'
import { useHideSmallBalancesSetting, useHideSpamTokensSetting } from 'uniswap/src/features/settings/hooks'
import { ExtensionUserPropertyName, setUserProperty } from 'uniswap/src/features/telemetry/user'
// eslint-disable-next-line no-restricted-imports
import { analytics } from 'utilities/src/telemetry/analytics/analytics'
import { useAppFiatCurrencyInfo } from 'wallet/src/features/fiatCurrency/hooks'
import { useGatingUserPropertyUsernames } from 'wallet/src/features/gating/userPropertyHooks'
import { useCurrentLanguage } from 'wallet/src/features/language/hooks'
import { useActiveAccount, useSignerAccounts, useViewOnlyAccounts } from 'wallet/src/features/wallet/hooks'

/** Component that tracks UserProperties during the lifetime of the app */
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/app/components/buttons/CopyButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function CopyButton({ onCopyPress }: { onCopyPress: () => Promise<void> }
color={valueCopied ? '$statusSuccess' : '$neutral2'}
cursor="pointer"
flexShrink={1}
variant="buttonLabel3"
variant="buttonLabel4"
x={valueCopied ? -2 : 0}
y={0.5}
>
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/app/components/modal/InfoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function InfoModal({
</Button>
{linkText && linkUrl && (
<Anchor href={linkUrl} lineHeight={16} p="$spacing12" target="_blank" textDecorationLine="none">
<Text color="$neutral2" textAlign="center" variant="buttonLabel3">
<Text color="$neutral2" textAlign="center" variant="buttonLabel4">
{linkText}
</Text>
</Anchor>
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/app/features/accounts/AccountItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import { removeAllDappConnectionsForAccount } from 'src/app/features/dapp/action
import { ContextMenu, Flex, MenuContentItem, Text, TouchableArea } from 'ui/src'
import { CopySheets, Edit, TrashFilled, TripleDots } from 'ui/src/components/icons'
import { iconSizes } from 'ui/src/theme'
import { useLocalizationContext } from 'uniswap/src/features/language/LocalizationContext'
import { ElementName, ModalName } from 'uniswap/src/features/telemetry/constants'
import { sendAnalyticsEvent } from 'uniswap/src/features/telemetry/send'
import { WarningSeverity } from 'uniswap/src/features/transactions/WarningModal/types'
import { setClipboard } from 'uniswap/src/utils/clipboard'
import { NumberType } from 'utilities/src/format/types'
import { AddressDisplay } from 'wallet/src/components/accounts/AddressDisplay'
import { WarningModal } from 'wallet/src/components/modals/WarningModal/WarningModal'
import { useLocalizationContext } from 'wallet/src/features/language/LocalizationContext'
import { pushNotification } from 'wallet/src/features/notifications/slice'
import { AppNotificationType, CopyNotificationType } from 'wallet/src/features/notifications/types'
import { EditAccountAction, editAccountActions } from 'wallet/src/features/wallet/accounts/editAccountSaga'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export function AccountSwitcherScreen(): JSX.Element {
px="$spacing12"
>
<PlusCircle />
<Text color="$neutral2" py="$spacing8" variant="buttonLabel2">
<Text color="$neutral2" py="$spacing8" variant="buttonLabel3">
{t('account.wallet.button.add')}
</Text>
</Flex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ exports[`AccountSwitcherScreen renders correctly 1`] = `
data-testid="account-card"
>
<span
class="font_button _display-inline _boxSizing-border-box _wordWrap-break-word _whiteSpace-pre-wrap _mt-0px _mr-0px _mb-0px _ml-0px _color-675002279 _fontFamily-299667014 _cursor-pointer _fontSize-229441189 _fontWeight-233016109 _lineHeight-222976542"
class="font_button _display-inline _boxSizing-border-box _wordWrap-break-word _whiteSpace-pre-wrap _mt-0px _mr-0px _mb-0px _ml-0px _color-675002279 _fontFamily-299667014 _cursor-pointer _fontSize-229441158 _fontWeight-233016109 _lineHeight-222976511"
>
Edit label
</span>
Expand Down Expand Up @@ -222,7 +222,7 @@ exports[`AccountSwitcherScreen renders correctly 1`] = `
</svg>
</div>
<span
class="font_button _display-inline _boxSizing-border-box _whiteSpace-pre-wrap _mt-0px _mr-0px _mb-0px _ml-0px _color-843135005 _fontFamily-299667014 _wordWrap-break-word _pt-1481558245 _pb-1481558245 _fontSize-229441189 _lineHeight-222976542 _fontWeight-233016109"
class="font_button _display-inline _boxSizing-border-box _whiteSpace-pre-wrap _mt-0px _mr-0px _mb-0px _ml-0px _color-843135005 _fontFamily-299667014 _wordWrap-break-word _pt-1481558245 _pb-1481558245 _fontSize-229441158 _lineHeight-222976511 _fontWeight-233016109"
data-disable-theme="true"
>
Add wallet
Expand Down Expand Up @@ -404,7 +404,7 @@ exports[`AccountSwitcherScreen renders correctly 1`] = `
data-testid="account-card"
>
<span
class="font_button _display-inline _boxSizing-border-box _wordWrap-break-word _whiteSpace-pre-wrap _mt-0px _mr-0px _mb-0px _ml-0px _color-675002279 _fontFamily-299667014 _cursor-pointer _fontSize-229441189 _fontWeight-233016109 _lineHeight-222976542"
class="font_button _display-inline _boxSizing-border-box _wordWrap-break-word _whiteSpace-pre-wrap _mt-0px _mr-0px _mb-0px _ml-0px _color-675002279 _fontFamily-299667014 _cursor-pointer _fontSize-229441158 _fontWeight-233016109 _lineHeight-222976511"
>
Edit label
</span>
Expand Down Expand Up @@ -456,7 +456,7 @@ exports[`AccountSwitcherScreen renders correctly 1`] = `
</svg>
</div>
<span
class="font_button _display-inline _boxSizing-border-box _whiteSpace-pre-wrap _mt-0px _mr-0px _mb-0px _ml-0px _color-843135005 _fontFamily-299667014 _wordWrap-break-word _pt-1481558245 _pb-1481558245 _fontSize-229441189 _lineHeight-222976542 _fontWeight-233016109"
class="font_button _display-inline _boxSizing-border-box _whiteSpace-pre-wrap _mt-0px _mr-0px _mb-0px _ml-0px _color-843135005 _fontFamily-299667014 _wordWrap-break-word _pt-1481558245 _pb-1481558245 _fontSize-229441158 _lineHeight-222976511 _fontWeight-233016109"
data-disable-theme="true"
>
Add wallet
Expand Down
3 changes: 1 addition & 2 deletions apps/extension/src/app/features/dapp/hooks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import {
} from 'src/app/features/dapp/hooks'
import { DappState, dappStore } from 'src/app/features/dapp/store'
import { act, renderHook, waitFor } from 'src/test/test-utils'
import { SAMPLE_SEED_ADDRESS_1, SAMPLE_SEED_ADDRESS_3 } from 'uniswap/src/test/fixtures'
import { UniverseChainId } from 'uniswap/src/types/chains'
import { ACCOUNT, ACCOUNT2, ACCOUNT3 } from 'wallet/src/test/fixtures'
import { ACCOUNT, ACCOUNT2, ACCOUNT3, SAMPLE_SEED_ADDRESS_1, SAMPLE_SEED_ADDRESS_3 } from 'wallet/src/test/fixtures'

const SAMPLE_DAPP = 'http://example.com'
const SAMPLE_DAPP_2 = 'http://uniswap.org'
Expand Down
10 changes: 8 additions & 2 deletions apps/extension/src/app/features/dapp/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ import {
getOrderedConnectedAddresses,
isConnectedAccount,
} from 'src/app/features/dapp/utils'
import { SAMPLE_SEED_ADDRESS_1, SAMPLE_SEED_ADDRESS_2, SAMPLE_SEED_ADDRESS_3 } from 'uniswap/src/test/fixtures'
import { Account } from 'wallet/src/features/wallet/accounts/types'
import { ACCOUNT, ACCOUNT2, ACCOUNT3 } from 'wallet/src/test/fixtures'
import {
ACCOUNT,
ACCOUNT2,
ACCOUNT3,
SAMPLE_SEED_ADDRESS_1,
SAMPLE_SEED_ADDRESS_2,
SAMPLE_SEED_ADDRESS_3,
} from 'wallet/src/test/fixtures'

describe('isConnectedAccount', () => {
it('returns true if the account is connected', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function DappRequestQueueProvider({ children }: PropsWithChildren): JSX.E
sendAnalyticsEvent(ExtensionEventName.DappRequest, {
action: DappRequestAction.Accept,
requestType: requestToConfirm.dappRequest.type,
dappUrl: extractBaseUrl(requestToConfirm.senderTabInfo.url),
dappUrl: requestToConfirm.senderTabInfo.url,
chainId: lastChainId,
activeConnectedAddress,
connectedAddresses,
Expand All @@ -114,7 +114,7 @@ export function DappRequestQueueProvider({ children }: PropsWithChildren): JSX.E
sendAnalyticsEvent(ExtensionEventName.DappRequest, {
action: DappRequestAction.Reject,
requestType: requestToCancel.dappRequest.type,
dappUrl: extractBaseUrl(requestToCancel.senderTabInfo.url),
dappUrl: requestToCancel.senderTabInfo.url,
chainId: lastChainId,
activeConnectedAddress,
connectedAddresses,
Expand Down
Loading

0 comments on commit 86b62c2

Please sign in to comment.