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 Nov 7, 2024
1 parent c46a613 commit 5daa12e
Show file tree
Hide file tree
Showing 987 changed files with 28,456 additions and 16,085 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ packages/uniswap/src/i18n/locales/source/*_old.json

# Vercel
.vercel

# CodeTours Extension
.tours/*
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @uniswap/web-admins
77 changes: 65 additions & 12 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,22 +1,75 @@
### Lots of new updates!
IPFS hash of the deployment:
- CIDv0: `QmXSmkbZBfMGwWiC7fzw8oDCxvmfGENb7ahoaZVWsstaTF`
- CIDv1: `bafybeiehjkqxfubc7qylb2q67pnqzri4j5kqxcllryecaq7nuqntzzjrfy`

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

You can now swap your ETH, USDC, and more across 8+ networks! Try it by pressing the banner on your homepage.
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.

### Faster Onboarding
IPFS gateways:
- https://bafybeiehjkqxfubc7qylb2q67pnqzri4j5kqxcllryecaq7nuqntzzjrfy.ipfs.dweb.link/
- https://bafybeiehjkqxfubc7qylb2q67pnqzri4j5kqxcllryecaq7nuqntzzjrfy.ipfs.cf-ipfs.com/
- [ipfs://QmXSmkbZBfMGwWiC7fzw8oDCxvmfGENb7ahoaZVWsstaTF/](ipfs://QmXSmkbZBfMGwWiC7fzw8oDCxvmfGENb7ahoaZVWsstaTF/)

New users can create a wallet lightning fast.
## 5.57.0 (2024-11-07)

### Multichain Explore

Users can now see all 12 chains we support on the Explore page, and can also filter by a specific chain.
### Features

### Worldchain
* **web:** [v4] add v4 data to explore graphs (#13174) 3d2b961
* **web:** add hook functionality and update the UI (#13415) 4dfcd67
* **web:** Add liq button on pools explore page (#13400) d116542
* **web:** add loading states to all LP actions buttons (#13408) 9aa091b
* **web:** adding dynamic fee tier option to fee tier search modal (#13478) 7276ef7
* **web:** animate fee tier dropdown (#13542) 13f32e2
* **web:** design fixes on PosDP (#13543) 5f93dfc
* **web:** handle one-sided liq input in increase modal (#13370) 4fa66d4
* **web:** redirect to positions list after creating a position (#13444) 160adc6
* **web:** refetch position queries when pending LP txs change (#13483) 70ae19d
* **web:** remove thai from supported languages and translations (#13528) 36fe674
* **web:** update explore table header styles (#13386) e272167
* **web:** updating fee tiers search modal to include the default fee tiers (#13464) aa0bfcf
* **web:** use the new rest endpoint on the mini portfolio pools tab (#13521) 555de82

Users now have access to all ur regular features for this new chain.

### Other changes
### Bug Fixes

* **web:** Add error message for missing trade routes (#13327) 004265a
* **web:** add insuffient balance error state for the button (#13447) eb4ea2d
* **web:** allow testnets to be backend supported chains (#13424) b968f05
* **web:** better default fee tier selection (#13526) 5976b4b
* **web:** change view position to view positions (#13511) bcee0e3
* **web:** cypress tests (#13402) f78f58b
* **web:** fee tier fixes (#13240) 16ad294
* **web:** filter to testnets when in testnet mode (#13356) b1a67be
* **web:** fix token sorting for v2 positions (#13504) 7c460ff
* **web:** fixing uniswap context provider for web (#13566) c7511a4
* **web:** hide the collect button if there are no fees to collect (#13459) 9a98813
* **web:** improve LiquidityChartRangeInput behavior when inverting tokens (#13550) 523eb00
* **web:** landing page redirection when connected (#13425) 6b5993e
* **web:** position cards text sizing (#13307) e406dd1
* **web:** remove confusing subgraph naming from v3 tick query (#13436) f1d7d14
* **web:** Remove default mainnet chain ID in NetworkFilter (#13272) 4993213
* **web:** stop using multicall for Position NFT data fetching (#13414) 5d9db63
* **web:** udpate scroll behavior on explore page (#12277) bb14b4d
* **web:** update creating pool banner to be persistent (#13456) 94b7801
* **web:** update loading/error states in LiquidityChartRangeInput (#13498) a5f6b0e
* **web:** update url when switching protocol versions in create (#13422) f3edc84
* **web:** use DropdownSelector for position filters (#13544) dc63bdd
* **web:** use NATIVE in url to add liquidity (#13262) 48aa927
* **web:** version dropdown ordering, clickable Sidebar in create flow (#13551) a86ee47


### Continuous Integration

* **web:** update sitemaps d3686aa


### Tests

* **web:** cron job run web e2e tests (#13482) 8eda2da


- Better redirect handling on fiat onramp
- 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 @@
mobile/1.38
web/5.57.0
2 changes: 1 addition & 1 deletion apps/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@tamagui/core": "1.108.4",
"@types/uuid": "9.0.1",
"@uniswap/analytics-events": "2.38.0",
"@uniswap/uniswapx-sdk": "^2.1.0-beta.14",
"@uniswap/uniswapx-sdk": "2.1.0-beta.18",
"@uniswap/universal-router-sdk": "4.5.2",
"@uniswap/v3-sdk": "3.18.1",
"@uniswap/v4-sdk": "1.10.3",
Expand Down
15 changes: 9 additions & 6 deletions apps/extension/src/app/OnboardingApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ 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 { BlankUrlProvider } from 'uniswap/src/contexts/UrlContext'
import { LocalizationContextProvider } from 'uniswap/src/features/language/LocalizationContext'
import Trace from 'uniswap/src/features/telemetry/Trace'
import { ExtensionEventName } from 'uniswap/src/features/telemetry/constants'
Expand Down Expand Up @@ -192,12 +193,14 @@ export default function OnboardingApp(): JSX.Element {
<SharedWalletProvider reduxStore={getReduxStore()}>
<ErrorBoundary>
<GraphqlProvider>
<LocalizationContextProvider>
<UnitagUpdaterContextProvider>
<PrimaryAppInstanceDebuggerLazy />
<RouterProvider router={router} />
</UnitagUpdaterContextProvider>
</LocalizationContextProvider>
<BlankUrlProvider>
<LocalizationContextProvider>
<UnitagUpdaterContextProvider>
<PrimaryAppInstanceDebuggerLazy />
<RouterProvider router={router} />
</UnitagUpdaterContextProvider>
</LocalizationContextProvider>
</BlankUrlProvider>
</GraphqlProvider>
</ErrorBoundary>
</SharedWalletProvider>
Expand Down
19 changes: 11 additions & 8 deletions apps/extension/src/app/PopupApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ 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 { BlankUrlProvider } from 'uniswap/src/contexts/UrlContext'
import { LocalizationContextProvider } from 'uniswap/src/features/language/LocalizationContext'
import { syncAppWithDeviceLanguage } from 'uniswap/src/features/settings/slice'
import Trace from 'uniswap/src/features/telemetry/Trace'
Expand Down Expand Up @@ -132,14 +133,16 @@ export default function PopupApp(): JSX.Element {
<SharedWalletProvider reduxStore={getReduxStore()}>
<ErrorBoundary>
<GraphqlProvider>
<LocalizationContextProvider>
<UnitagUpdaterContextProvider>
<TraceUserProperties />
<DappContextProvider>
<RouterProvider router={router} />
</DappContextProvider>
</UnitagUpdaterContextProvider>
</LocalizationContextProvider>
<BlankUrlProvider>
<LocalizationContextProvider>
<UnitagUpdaterContextProvider>
<TraceUserProperties />
<DappContextProvider>
<RouterProvider router={router} />
</DappContextProvider>
</UnitagUpdaterContextProvider>
</LocalizationContextProvider>
</BlankUrlProvider>
</GraphqlProvider>
</ErrorBoundary>
</SharedWalletProvider>
Expand Down
21 changes: 12 additions & 9 deletions apps/extension/src/app/SidebarApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {
import { BackgroundToSidePanelRequestType } from 'src/background/messagePassing/types/requests'
import { PrimaryAppInstanceDebuggerLazy } from 'src/store/PrimaryAppInstanceDebuggerLazy'
import { getReduxPersistor, getReduxStore } from 'src/store/store'
import { BlankUrlProvider } from 'uniswap/src/contexts/UrlContext'
import { LocalizationContextProvider } from 'uniswap/src/features/language/LocalizationContext'
import { syncAppWithDeviceLanguage } from 'uniswap/src/features/settings/slice'
import Trace from 'uniswap/src/features/telemetry/Trace'
Expand Down Expand Up @@ -262,15 +263,17 @@ export default function SidebarApp(): JSX.Element {
<SharedWalletProvider reduxStore={getReduxStore()}>
<ErrorBoundary>
<GraphqlProvider>
<LocalizationContextProvider>
<UnitagUpdaterContextProvider>
<TraceUserProperties />
<DappContextProvider>
<PrimaryAppInstanceDebuggerLazy />
<RouterProvider router={router} />
</DappContextProvider>
</UnitagUpdaterContextProvider>
</LocalizationContextProvider>
<BlankUrlProvider>
<LocalizationContextProvider>
<UnitagUpdaterContextProvider>
<TraceUserProperties />
<DappContextProvider>
<PrimaryAppInstanceDebuggerLazy />
<RouterProvider router={router} />
</DappContextProvider>
</UnitagUpdaterContextProvider>
</LocalizationContextProvider>
</BlankUrlProvider>
</GraphqlProvider>
</ErrorBoundary>
</SharedWalletProvider>
Expand Down
6 changes: 1 addition & 5 deletions apps/extension/src/app/StatsigProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { getStatsigEnvironmentTier } from 'src/app/version'
import Statsig from 'statsig-js' // Use JS package for browser
import { uniswapUrls } from 'uniswap/src/constants/urls'
import { DUMMY_STATSIG_SDK_KEY, StatsigCustomAppValue } from 'uniswap/src/features/gating/constants'
import { FeatureFlags, getFeatureFlagName } from 'uniswap/src/features/gating/flags'
import { StatsigOptions, StatsigProvider, StatsigUser } from 'uniswap/src/features/gating/sdk/statsig'
import { getUniqueId } from 'utilities/src/device/getUniqueId'
import { useAsyncData } from 'utilities/src/react/hooks'
Expand Down Expand Up @@ -51,10 +50,7 @@ export function ExtensionStatsigProvider({
disableErrorLogging: true,
initCompletionCallback: () => {
setInitFinished(true)
const datadogEnabled = Statsig.checkGate(getFeatureFlagName(FeatureFlags.Datadog))
if (datadogEnabled) {
initializeDatadog(appName).catch(() => undefined)
}
initializeDatadog(appName).catch(() => undefined)
},
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { useEffect } from 'react'
import { useColorScheme } from 'react-native'
import { useEnabledChains } from 'uniswap/src/features/chains/hooks'
import { useAppFiatCurrencyInfo } from 'uniswap/src/features/fiatCurrency/hooks'
import { useCurrentLanguage } from 'uniswap/src/features/language/hooks'
import {
useEnabledChains,
useHideSmallBalancesSetting,
useHideSpamTokensSetting,
} from 'uniswap/src/features/settings/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'
Expand Down
3 changes: 3 additions & 0 deletions apps/extension/src/app/datadog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export async function initializeDatadog(appName: string): Promise<void> {
// otherwise DataDog will ignore error events
event.view.url = event.view.url.replace(/^chrome-extension:\/\/[a-z]{32}\//i, '')
if (event.error && event.type === 'error') {
if (event.error.source === 'console') {
return false
}
Object.defineProperty(event.error, 'stack', {
value: event.error.stack?.replace(/chrome-extension:\/\/[a-z]{32}/gi, ''),
writable: false,
Expand Down
4 changes: 3 additions & 1 deletion apps/extension/src/app/features/accounts/AccountItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next'
import { useDispatch } from 'react-redux'
import { EditLabelModal } from 'src/app/features/accounts/EditLabelModal'
import { removeAllDappConnectionsForAccount } from 'src/app/features/dapp/actions'
import { ContextMenu, Flex, MenuContentItem, Text, TouchableArea } from 'ui/src'
import { Flex, Text, TouchableArea } from 'ui/src'
import { CopySheets, Edit, Ellipsis, TrashFilled } from 'ui/src/components/icons'
import { iconSizes } from 'ui/src/theme'
import { WarningModal } from 'uniswap/src/components/modals/WarningModal/WarningModal'
Expand All @@ -17,6 +17,8 @@ import { sendAnalyticsEvent } from 'uniswap/src/features/telemetry/send'
import { setClipboard } from 'uniswap/src/utils/clipboard'
import { NumberType } from 'utilities/src/format/types'
import { AddressDisplay } from 'wallet/src/components/accounts/AddressDisplay'
import { ContextMenu } from 'wallet/src/components/menu/ContextMenu'
import { MenuContentItem } from 'wallet/src/components/menu/types'
import { EditAccountAction, editAccountActions } from 'wallet/src/features/wallet/accounts/editAccountSaga'
import { useActiveAccountWithThrow, useDisplayName, useSignerAccounts } from 'wallet/src/features/wallet/hooks'
import { DisplayNameType } from 'wallet/src/features/wallet/types'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { PopupName, openPopup } from 'src/app/features/popups/slice'
import { AppRoutes, RemoveRecoveryPhraseRoutes, SettingsRoutes, UnitagClaimRoutes } from 'src/app/navigation/constants'
import { navigate } from 'src/app/navigation/state'
import { focusOrCreateUnitagTab } from 'src/app/navigation/utils'
import { Button, Flex, MenuContent, MenuContentItem, Popover, ScrollView, Text, useSporeColors } from 'ui/src'
import { Button, Flex, Popover, ScrollView, Text, useSporeColors } from 'ui/src'
import { WalletFilled, X } from 'ui/src/components/icons'
import { spacing } from 'ui/src/theme'
import { WarningModal } from 'uniswap/src/components/modals/WarningModal/WarningModal'
Expand All @@ -31,6 +31,8 @@ import { logger } from 'utilities/src/logger/logger'
import { sleep } from 'utilities/src/time/timing'
import { AddressDisplay } from 'wallet/src/components/accounts/AddressDisplay'
import { PlusCircle } from 'wallet/src/components/icons/PlusCircle'
import { MenuContent } from 'wallet/src/components/menu/MenuContent'
import { MenuContentItem } from 'wallet/src/components/menu/types'
import { useAccountList } from 'wallet/src/features/accounts/hooks'
import { createOnboardingAccount } from 'wallet/src/features/onboarding/createOnboardingAccount'
import { BackupType, SignerMnemonicAccount } from 'wallet/src/features/wallet/accounts/types'
Expand Down
4 changes: 2 additions & 2 deletions apps/extension/src/app/features/accounts/EditLabelModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import { FeatureFlags } from 'uniswap/src/features/gating/flags'
import { useFeatureFlag } from 'uniswap/src/features/gating/hooks'
import { ModalName } from 'uniswap/src/features/telemetry/constants'
import { OnboardingCardLoggingName } from 'uniswap/src/features/telemetry/types'
import { UNITAG_SUFFIX_NO_LEADING_DOT } from 'uniswap/src/features/unitags/constants'
import { shortenAddress } from 'utilities/src/addresses'
import { AccountIcon } from 'wallet/src/components/accounts/AccountIcon'
import { CardType, IntroCard, IntroCardGraphicType } from 'wallet/src/components/introCards/IntroCard'
import { UNITAG_SUFFIX_NO_LEADING_DOT } from 'wallet/src/features/unitags/constants'
import { useCanActiveAddressClaimUnitag } from 'wallet/src/features/unitags/hooks'
import { EditAccountAction, editAccountActions } from 'wallet/src/features/wallet/accounts/editAccountSaga'
import { useDisplayName } from 'wallet/src/features/wallet/hooks'
Expand All @@ -37,7 +37,7 @@ export function EditLabelModal({ isOpen, address, onClose }: EditLabelModalProps
const [inputText, setInputText] = useState<string>(defaultText)
const [isfocused, setIsFocused] = useState(false)

const { canClaimUnitag } = useCanActiveAddressClaimUnitag()
const { canClaimUnitag } = useCanActiveAddressClaimUnitag(address)
const unitagsClaimEnabled = useFeatureFlag(FeatureFlags.ExtensionClaimUnitag)

const onConfirm = useCallback(async () => {
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/app/features/dapp/DappContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { isConnectedAccount } from 'src/app/features/dapp/utils'
import { closePopup, PopupName } from 'src/app/features/popups/slice'
import { backgroundToSidePanelMessageChannel } from 'src/background/messagePassing/messageChannels'
import { BackgroundToSidePanelRequestType } from 'src/background/messagePassing/types/requests'
import { UniverseChainId } from 'uniswap/src/types/chains'
import { UniverseChainId } from 'uniswap/src/features/chains/types'
import { extractBaseUrl } from 'utilities/src/format/urls'
import { useActiveAccountAddress } from 'wallet/src/features/wallet/hooks'

Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/app/features/dapp/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
ExtensionToDappRequestType,
UpdateConnectionRequest,
} from 'src/background/messagePassing/types/requests'
import { UniverseChainId } from 'uniswap/src/features/chains/types'
import { chainIdToHexadecimalString } from 'uniswap/src/features/chains/utils'
import { UniverseChainId } from 'uniswap/src/types/chains'
import { Account } from 'wallet/src/features/wallet/accounts/types'
import { getProviderSync } from 'wallet/src/features/wallet/context'

Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/app/features/dapp/changeChain.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { providerErrors, serializeError } from '@metamask/rpc-errors'
import { changeChain } from 'src/app/features/dapp/changeChain'
import { dappStore } from 'src/app/features/dapp/store'
import { DappResponseType } from 'src/app/features/dappRequests/types/DappRequestTypes'
import { UniverseChainId } from 'uniswap/src/features/chains/types'
import { chainIdToHexadecimalString } from 'uniswap/src/features/chains/utils'
import { ExtensionEventName } from 'uniswap/src/features/telemetry/constants'
import { sendAnalyticsEvent } from 'uniswap/src/features/telemetry/send'
import { UniverseChainId } from 'uniswap/src/types/chains'

// Mock dependencies
jest.mock('@ethersproject/providers')
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/app/features/dapp/changeChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import {
DappResponseType,
ErrorResponse,
} from 'src/app/features/dappRequests/types/DappRequestTypes'
import { UniverseChainId } from 'uniswap/src/features/chains/types'
import { chainIdToHexadecimalString } from 'uniswap/src/features/chains/utils'
import { ExtensionEventName } from 'uniswap/src/features/telemetry/constants'
import { sendAnalyticsEvent } from 'uniswap/src/features/telemetry/send'
import { UniverseChainId } from 'uniswap/src/types/chains'

export function changeChain({
activeConnectedAddress,
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/app/features/dapp/hooks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +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 { UniverseChainId } from 'uniswap/src/features/chains/types'
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'

const SAMPLE_DAPP = 'http://example.com'
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/app/features/dapp/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useReducer, useState } from 'react'
import { DappInfo, DappStoreEvent, dappStore } from 'src/app/features/dapp/store'
import { UniverseChainId } from 'uniswap/src/types/chains'
import { UniverseChainId } from 'uniswap/src/features/chains/types'
import { Account } from 'wallet/src/features/wallet/accounts/types'
import { useActiveAccountAddress } from 'wallet/src/features/wallet/hooks'

Expand Down
Loading

0 comments on commit 5daa12e

Please sign in to comment.