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 Feb 7, 2025
1 parent e64228a commit 6e27a64
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 12 deletions.
15 changes: 5 additions & 10 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
IPFS hash of the deployment:
- CIDv0: `QmSXtnd5rc5ifhuGDZ9oSTWzT3hby6KQJ8Lw3hbVzpvfD5`
- CIDv1: `bafybeib6kag7hqjgchx7kr7novcjc42sn6bc5iq2u27ra5n2wimtjiwg5q`
- CIDv0: `QmbENTNezCQwTKQ2VkX1SqyZZPRrduUGjfXvek11DL4yn3`
- CIDv1: `bafybeif7rqirjplagadkzstmg5kpcsusw3urflnjglb2wuqtunyune3fhq`

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

Expand All @@ -10,14 +10,9 @@ You can also access the Uniswap Interface from an IPFS gateway.
Your Uniswap settings are never remembered across different URLs.

IPFS gateways:
- https://bafybeib6kag7hqjgchx7kr7novcjc42sn6bc5iq2u27ra5n2wimtjiwg5q.ipfs.dweb.link/
- [ipfs://QmSXtnd5rc5ifhuGDZ9oSTWzT3hby6KQJ8Lw3hbVzpvfD5/](ipfs://QmSXtnd5rc5ifhuGDZ9oSTWzT3hby6KQJ8Lw3hbVzpvfD5/)
- https://bafybeif7rqirjplagadkzstmg5kpcsusw3urflnjglb2wuqtunyune3fhq.ipfs.dweb.link/
- [ipfs://QmbENTNezCQwTKQ2VkX1SqyZZPRrduUGjfXvek11DL4yn3/](ipfs://QmbENTNezCQwTKQ2VkX1SqyZZPRrduUGjfXvek11DL4yn3/)

### 5.69.3 (2025-02-07)


### Bug Fixes

* **web:** show correct token amount in PDP tx table [prod] (#16114) 5391b42
### 5.69.4 (2025-02-07)


2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web/5.69.3
web/5.69.4
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ import {
TransactionHash,
UniversalRouterVersion,
} from 'uniswap/src/data/tradingApi/__generated__'
import { UniverseChainId } from 'uniswap/src/features/chains/types'
import { isTestEnv } from 'utilities/src/environment/env'

// TradingAPI team is looking into updating type generation to produce the following types for it's current QuoteResponse type:
// See: https://linear.app/uniswap/issue/API-236/explore-changing-the-quote-schema-to-pull-out-a-basequoteresponse
Expand Down Expand Up @@ -125,11 +127,19 @@ export async function fetchOrders({ orderIds }: { orderIds: string[] }): Promise
}

export async function fetchSwappableTokens(params: SwappableTokensParams): Promise<GetSwappableTokensResponse> {
const chainBlocklist = params.unichainEnabled ? [] : [UniverseChainId.Unichain.toString()]

return await TradingApiClient.get<GetSwappableTokensResponse>(uniswapUrls.tradingApiPaths.swappableTokens, {
params: {
tokenIn: params.tokenIn,
tokenInChainId: params.tokenInChainId,
},
headers:
params.unichainEnabled || isTestEnv()
? {}
: {
'x-chain-blocklist': chainBlocklist.join(','),
},
})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { MAX_REACT_QUERY_CACHE_TIME_MS } from 'utilities/src/time/time'
export type SwappableTokensParams = {
tokenIn: Address
tokenInChainId: ChainId
unichainEnabled?: boolean
}

export function useTradingApiSwappableTokensQuery({
Expand Down
8 changes: 8 additions & 0 deletions packages/uniswap/src/features/bridging/hooks/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { useTradingApiSwappableTokensQuery } from 'uniswap/src/data/apiClients/t
import { ChainId } from 'uniswap/src/data/tradingApi/__generated__'
import { UniverseChainId } from 'uniswap/src/features/chains/types'
import { toSupportedChainId } from 'uniswap/src/features/chains/utils'
import { FeatureFlags } from 'uniswap/src/features/gating/flags'
import { useFeatureFlag } from 'uniswap/src/features/gating/hooks'
import {
NATIVE_ADDRESS_FOR_TRADING_API,
toTradingApiSupportedChainId,
Expand All @@ -11,10 +13,12 @@ import {
const FALLBACK_NUM_CHAINS = 8

export function useNumBridgingChains(): number {
const unichainEnabled = useFeatureFlag(FeatureFlags.Unichain)
const { data: bridgingTokens } = useTradingApiSwappableTokensQuery({
params: {
tokenIn: NATIVE_ADDRESS_FOR_TRADING_API,
tokenInChainId: ChainId._1,
unichainEnabled,
},
})

Expand All @@ -25,10 +29,12 @@ export function useNumBridgingChains(): number {
}

export function useIsBridgingChain(chainId: UniverseChainId): boolean {
const unichainEnabled = useFeatureFlag(FeatureFlags.Unichain)
const { data: bridgingTokens } = useTradingApiSwappableTokensQuery({
params: {
tokenIn: NATIVE_ADDRESS_FOR_TRADING_API,
tokenInChainId: ChainId._1,
unichainEnabled,
},
})

Expand All @@ -39,10 +45,12 @@ export function useIsBridgingChain(chainId: UniverseChainId): boolean {
}

export function useBridgingSupportedChainIds(): UniverseChainId[] {
const unichainEnabled = useFeatureFlag(FeatureFlags.Unichain)
const { data: bridgingTokens } = useTradingApiSwappableTokensQuery({
params: {
tokenIn: NATIVE_ADDRESS_FOR_TRADING_API,
tokenInChainId: ChainId._1,
unichainEnabled,
},
})

Expand Down
7 changes: 6 additions & 1 deletion packages/uniswap/src/features/bridging/hooks/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import { ALL_CHAIN_IDS, UniverseChainId } from 'uniswap/src/features/chains/type
import { toSupportedChainId } from 'uniswap/src/features/chains/utils'
import { CurrencyInfo, PortfolioBalance } from 'uniswap/src/features/dataApi/types'
import { currencyIdToContractInput } from 'uniswap/src/features/dataApi/utils'
import { FeatureFlags } from 'uniswap/src/features/gating/flags'
import { useFeatureFlag } from 'uniswap/src/features/gating/hooks'
import {
NATIVE_ADDRESS_FOR_TRADING_API,
getTokenAddressFromChainForTradingApi,
Expand Down Expand Up @@ -54,12 +56,14 @@ export function useBridgingTokenWithHighestBalance({
fetchPolicy: 'cache-first',
})

const unichainEnabled = useFeatureFlag(FeatureFlags.Unichain)
const { data: bridgingTokens } = useTradingApiSwappableTokensQuery({
params:
otherChainBalances && otherChainBalances?.length > 0 && tokenIn && tokenInChainId
? {
tokenIn,
tokenInChainId,
unichainEnabled,
}
: undefined,
})
Expand Down Expand Up @@ -118,7 +122,7 @@ export function useBridgingTokensOptions({
}): GqlResult<TokenOption[] | undefined> & { shouldNest?: boolean } {
const tokenIn = input?.address ? getTokenAddressFromChainForTradingApi(input.address, input.chainId) : undefined
const tokenInChainId = toTradingApiSupportedChainId(input?.chainId)

const unichainEnabled = useFeatureFlag(FeatureFlags.Unichain)
const {
data: bridgingTokens,
isLoading: loadingBridgingTokens,
Expand All @@ -130,6 +134,7 @@ export function useBridgingTokensOptions({
? {
tokenIn,
tokenInChainId,
unichainEnabled,
}
: undefined,
})
Expand Down

0 comments on commit 6e27a64

Please sign in to comment.