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 Jun 13, 2024
1 parent 9de3b72 commit 1d59f92
Show file tree
Hide file tree
Showing 27 changed files with 67 additions and 236 deletions.
70 changes: 6 additions & 64 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
IPFS hash of the deployment:
- CIDv0: `QmQ2oCvxsKb6KLE7XeR4ppyZWhiAsEAMwtXta9Gwtvptnx`
- CIDv1: `bafybeiazesdn7jujaopqkz3nwemsmtbdp4fcxvjv75cevqgm3fhe65nwdu`
- CIDv0: `QmU2prusDiAfiySsHU8tcVbFwcrvSXdEDBVbvyzkpYKEUH`
- CIDv1: `bafybeicususuyvytbxxpmjbk7ustwesnzwekzn4fs3argdhmr3d3p2t2mi`

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

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

IPFS gateways:
- https://bafybeiazesdn7jujaopqkz3nwemsmtbdp4fcxvjv75cevqgm3fhe65nwdu.ipfs.dweb.link/
- https://bafybeiazesdn7jujaopqkz3nwemsmtbdp4fcxvjv75cevqgm3fhe65nwdu.ipfs.cf-ipfs.com/
- [ipfs://QmQ2oCvxsKb6KLE7XeR4ppyZWhiAsEAMwtXta9Gwtvptnx/](ipfs://QmQ2oCvxsKb6KLE7XeR4ppyZWhiAsEAMwtXta9Gwtvptnx/)
- https://bafybeicususuyvytbxxpmjbk7ustwesnzwekzn4fs3argdhmr3d3p2t2mi.ipfs.dweb.link/
- https://bafybeicususuyvytbxxpmjbk7ustwesnzwekzn4fs3argdhmr3d3p2t2mi.ipfs.cf-ipfs.com/
- [ipfs://QmU2prusDiAfiySsHU8tcVbFwcrvSXdEDBVbvyzkpYKEUH/](ipfs://QmU2prusDiAfiySsHU8tcVbFwcrvSXdEDBVbvyzkpYKEUH/)

## 5.34.0 (2024-06-12)


### Features

* **web:** [multichain] 4070 add chain approval to swap execution flow (#8284) f645d37
* **web:** [multichain] 4101 update chain id in swap and limit context (#8363) 83cf952
* **web:** [multichain] 4121 add switch chain to send execution flow (#8060) a40162b
* **web:** [multichain] 4127 fallback to gql (token balances) when chain is not synced (#8059) 9848242
* **web:** 4194 use correct native currency in send (#8446) dbff9f3
* **web:** 4194 use correct native currency in swap (#8448) 27a34cd
* **web:** 4250 - add UniverseChainInfo and UniverseChainId types (#8632) 5c6208a
* **web:** 4250 - create UNIVERSE_CHAIN_INFO and mainnet property (#8633) db60dc7
* **web:** 4250 - move RPCType and DEFAULT_NATIVE_ADDRESS to uniswap pkg (#8634) f578d39
* **web:** 4250 - pull all chain info from universe (#8643) d76fbf2
* **web:** 4250 - use mainnet from UniverseChainInfo on wallet (#8636) 2161df6
* **web:** 4250 - use mainnet from UniverseChainInfo on web (#8635) 2864084
* **web:** Add base to supported moonpay chains (#8805) d06d5cb
* **web:** add infringing LV nft collections (#8719) 095e89c
* **web:** Add Moonpay deeplink (#8806) 81e6971
* **web:** add quoteId to Xv2 rfq POST (#8909) 54a936b
* **web:** add unauthenticated FOR transaction fetcher to uniswap package (#8587) 3a6ccfe
* **web:** adding zora (#8711) e99544c
* **web:** FOR - share token picker button (#8741) 3048ad2
* **web:** migrate off direct console logging (#8334) e5f9873
* **web:** move basic sharable ForAggregator API calls to uniswap package (#8553) fa54d49
* **web:** move Pill component to shared uniswap package (#8701) 4806ede
* **web:** Refreshed nav "Get Started" modal (#8642) 6a0e15d
* **web:** Refreshed nav better app layout (#8625) 4b23b54
* **web:** Refreshed nav chain selector dropdown (#8627) b5d092c
* **web:** Refreshed nav company menu dropdown (#8641) b7b2244
* **web:** Refreshed nav preferences menu and theme toggle (#8628) 9d43d7d
* **web:** Refreshed nav prep work, organize files (#8622) 9c8b5f7
* **web:** Replace direct thegraph queries with new BE queries (#8626) 5081b54
* **web:** share country picker component for FOR (#8702) 3800c04


### Bug Fixes

* **web:** [multichain] token selector in TDP should use connected chain (#8963) 6ef7dbc
* **web:** AccountDrawer still showing in in-app browser on scroll when closed (#8623) ae322cb
* **web:** can't switch to mainnet if first pageload has chain query param (#8684) d2e3bfb
* **web:** connector may be undefined on landing page (#8822) 9323bd4
* **web:** dialog button should no longer be disabled (#8849) 56285db
* **web:** don't disable swap settings for unconnected chains (#8651) 141b089
* **web:** fix missing translation, despite matching the library doesnt work with fee.bestForStable (#8629) 9470c59
* **web:** liquidity translations (#8821) 4744be8
* **web:** Pass account to send in transferInfo - staging (#8902) 786dead
* **web:** patch wagmi to fix MM bug (#8841) 834a26c
* **web:** Remove duplicate app promo banners (#8646) b35c3c1
* **web:** removing zora from network selector when feature flag is off (#8960) e1eb12d
* **web:** update useOnClickOutside to handle tooltips (#8704) 3697c7e
* **web:** use address, chainId, from useAccount instead of web3-react (#8513) 26bc9fb
* **web:** use orders text in CancelLimitDialog (#8706) 3fb4151


### Continuous Integration

* **web:** update sitemaps f972a73
### 5.34.1 (2024-06-13)


2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web/5.34.0
web/5.34.1
Original file line number Diff line number Diff line change
Expand Up @@ -561,11 +561,8 @@ function parseRemoteActivity(
)
return { ...defaultFields, ...parsedFields }
} catch (e) {
logger.error(e, {
tags: {
file: 'parseRemote',
function: 'parseRemoteActivity',
},
logger.debug('parseRemote', 'parseRemoteActivity', 'Failed to parse remote activity', {
error: e,
extra: { assetActivity },
})
return undefined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,7 @@ async function cancelMultipleUniswapXOrders({
return transactions
} catch (error) {
if (!didUserReject(error)) {
logger.error(error, {
tags: {
file: 'utils',
function: 'cancelMultipleUniswapXOrders',
},
})
logger.debug('utils', 'cancelMultipleUniswapXOrders', 'Failed to cancel multiple orders', { error, orders })
}
return undefined
}
Expand All @@ -228,13 +223,10 @@ async function getCancelMultipleUniswapXOrdersTransaction(
chainId,
}
} catch (error) {
const wrappedError = new Error('could not populate cancel transaction')
wrappedError.cause = error
logger.error(wrappedError, {
tags: {
file: 'utils',
function: 'getCancelMultipleUniswapXOrdersTransaction',
},
const wrappedError = new Error('could not populate cancel transaction', { cause: error })
logger.debug('utils', 'getCancelMultipleUniswapXOrdersTransaction', wrappedError.message, {
error: wrappedError,
orders,
})
return undefined
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ async function fetchChunk(multicall: UniswapInterfaceMulticall, chunk: Call[]):
]).then(([c0, c1]) => [...c0, ...c1])
}
}
logger.error(error, {
tags: { file: 'getTokensAsync', function: 'fetchChunk' },
})
logger.debug('getTokensAsync', 'fetchChunk', 'Error fetching chunk', { error, extra: { chunk } })
throw error
}
}
Expand All @@ -58,13 +56,7 @@ function tryParseToken(address: string, chainId: ChainId, data: CallResult[]) {

return new Token(chainId, address, decimals, symbol, name)
} catch (error) {
logger.error(error, {
tags: {
file: 'getTokensAsync',
function: 'tryParseToken',
},
extra: { address, chainId },
})
logger.debug('getTokensAsync', 'tryParseToken', 'Failed to parse token', { error, address, chainId })
return undefined
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default function useMultiChainPositions(account: string, chains = DEFAULT
const slot0 = poolInterface.decodeFunctionResult('slot0', result.returnData)
acc.push(createPositionInfo(account, chainId, positionDetails[i], slot0, ...poolPairs[i]))
} else {
logger.warn('useMultiChainPositions', 'fetchPositionInfo', 'slot0 fetch errored', result)
logger.debug('useMultiChainPositions', 'fetchPositionInfo', 'slot0 fetch errored', result)
}
return acc
}, [])
Expand Down Expand Up @@ -172,14 +172,10 @@ export default function useMultiChainPositions(account: string, chains = DEFAULT
const postionDetails = await fetchPositionDetails(pm, positionIds)
return fetchPositionInfo(postionDetails, chainId, multicall)
} catch (error) {
const wrappedError = new Error('Failed to fetch positions for chain')
wrappedError.cause = error
logger.error(wrappedError, {
tags: {
file: 'useMultiChainPositions',
function: 'fetchPositionsForChain',
},
extra: { chainId },
const wrappedError = new Error('Failed to fetch positions for chain', { cause: error })
logger.debug('useMultiChainPositions', 'fetchPositionsForChain', wrappedError.message, {
error: wrappedError,
chainId,
})
return []
}
Expand Down
7 changes: 1 addition & 6 deletions apps/web/src/hooks/useConfirmModalState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,7 @@ export function useConfirmModalState({
if (didUserReject(e)) {
return
}
logger.error(e, {
tags: {
file: 'useConfirmModalState',
function: 'useConfirmModalState',
},
})
logger.warn('useConfirmModalState', 'catchUserReject', 'Failed to wrap', { error: e, trade })
setApprovalError(errorType)
}

Expand Down
10 changes: 1 addition & 9 deletions apps/web/src/hooks/useConnect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,7 @@ export function ConnectionProvider({ children }: PropsWithChildren) {
}

// TODO(WEB-1859): re-add special treatment for already-pending injected errors & move debug to after didUserReject() check
logger.error(error, {
tags: {
file: 'useConnect',
function: 'ConnectionProvider',
},
extra: {
connector: connector.name,
},
})
logger.warn('useConnect', 'ConnectionProvider', `Connection failed: ${connector.name}`)

sendAnalyticsEvent(InterfaceEventName.WALLET_CONNECTED, {
result: WalletConnectionResult.FAILED,
Expand Down
22 changes: 7 additions & 15 deletions apps/web/src/hooks/useContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,11 @@ export function useContract<T extends Contract = Contract>(
try {
return getContract(address, ABI, provider, withSignerIfPossible && account.address ? account.address : undefined)
} catch (error) {
const wrappedError = new Error('failed to get contract')
wrappedError.cause = error
logger.error(wrappedError, {
tags: {
file: 'useContract',
function: 'useContract',
},
const wrappedError = new Error('failed to get contract', { cause: error })
logger.warn('useContract', 'useContract', wrappedError.message, {
error: wrappedError,
addressOrAddressMap,
address: account.address,
})
return null
}
Expand All @@ -103,14 +101,8 @@ function useMainnetContract<T extends Contract = Contract>(address: string | und
try {
return getContract(address, ABI, provider)
} catch (error) {
const wrappedError = new Error('failed to get mainnet contract')
wrappedError.cause = error
logger.error(wrappedError, {
tags: {
file: 'useContract',
function: 'useMainnetContract',
},
})
const wrappedError = new Error('failed to get mainnet contract', { cause: error })
logger.warn('useContract', 'useMainnetContract', wrappedError.message, wrappedError)
return null
}
}, [isMainnet, contract, address, ABI]) as T
Expand Down
10 changes: 1 addition & 9 deletions apps/web/src/hooks/useFetchListCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,7 @@ export function useFetchListCallback(): (listUrl: string, skipValidation?: boole
return tokenList
})
.catch((error) => {
logger.error(error, {
tags: {
file: 'useFetchListCallback',
function: 'useFetchListCallback',
},
extra: {
listUrl,
},
})
logger.debug('useFetchListCallback', 'useFetchListCallback', 'Failed to fetch list', { error, listUrl })
dispatch(fetchTokenList.rejected({ url: listUrl, requestId, errorMessage: error.message }))
throw error
})
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/hooks/useSwapTaxes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async function getSwapTaxes(
})
}
} catch (e) {
logger.debug('useSwapTaxes', 'getSwapTaxes', 'Failed to get swap taxes for token(s):', addresses, e)
logger.warn('useSwapTaxes', 'getSwapTaxes', 'Failed to get swap taxes for token(s):', addresses, e)
}

const inputTax = (inputTokenAddress ? FEE_CACHE[inputTokenAddress]?.sellTax : ZERO_PERCENT) ?? ZERO_PERCENT
Expand Down
5 changes: 4 additions & 1 deletion apps/web/src/hooks/useSwitchChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export function useSwitchChain() {
setSearchParams(searchParams, { replace: true })
}
} catch (error) {
logger.warn('useSwitchChain', 'useSwitchChain', 'Failed to set SearchParams', error)
logger.warn('useSwitchChain', 'useSwitchChain', 'Failed to set SearchParams', {
error,
searchParams,
})
}
},
onSettled(_, error) {
Expand Down
10 changes: 2 additions & 8 deletions apps/web/src/hooks/useUniversalRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,8 @@ export function useUniversalRouterSwapCallback(
txRequest: tx,
isAutoSlippage,
})
const wrappedError = new Error('gas error')
wrappedError.cause = gasError
logger.error(wrappedError, {
tags: {
file: 'useUniversalRouter',
function: 'useUniversalRouterSwapCallback',
},
})
const wrappedError = new Error('gas error', { cause: gasError })
logger.warn('useUniversalRouter', 'useUniversalRouterSwapCallback', 'Failed to estimate gas', wrappedError)
throw new GasEstimationError()
}

Expand Down
7 changes: 1 addition & 6 deletions apps/web/src/hooks/useWrapCallback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,7 @@ Please file a bug detailing how this happened - https://github.com/Uniswap/inter
})
return txReceipt.hash
} catch (error) {
logger.error(error, {
tags: {
file: 'useWrapCallback',
function: 'useWrapCallback',
},
})
logger.warn('useWrapCallback', 'useWrapCallback', 'Failed to wrap', error)
throw error
}
})
Expand Down
19 changes: 7 additions & 12 deletions apps/web/src/lib/hooks/useApproval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,14 @@ export function useApproval(
const approve = useCallback(async () => {
function logFailure(error: Error | string): undefined {
if (typeof error === 'string') {
logger.warn('useApproval', 'approve', error)
logger.debug('useApproval', 'approve', error)
} else {
logger.error(error, {
tags: {
file: 'useApproval',
function: 'approve',
},
extra: {
tokenChain: token?.chainId,
token: token?.address,
chainId,
amountToApprove: amountToApprove?.toFixed(),
},
logger.debug('useApproval', 'approve', 'Failed to approve amount', {
error,
tokenChain: token?.chainId,
token: token?.address,
chainId,
amountToApprove: amountToApprove?.toFixed(),
})
}

Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/rpc/AppJsonRpcProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default class AppJsonRpcProvider extends ConfiguredJsonRpcProvider {
controller.onSuccess()
return result
} catch (error) {
logger.debug('AppJsonRpcProvider', 'perform', 'rpc action failed', error)
logger.warn('AppJsonRpcProvider', 'perform', 'rpc action failed', error)
controller.onError()
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/state/activity/polling/orders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function usePollPendingOrders(onActivityUpdate: OnActivityUpdate) {
})
})
} catch (e) {
logger.debug('orders', 'usePollPendingOrders', e)
logger.debug('usePollPendingOrders', 'getOrderStatuses', 'Failed to fetch order statuses', e)
}
setCurrentDelay((currentDelay) => Math.min(currentDelay * 2, ms('30s')))
timeout = setTimeout(getOrderStatuses, currentDelay)
Expand Down
7 changes: 1 addition & 6 deletions apps/web/src/state/application/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,7 @@ export function useFiatOnrampAvailability(shouldCheck: boolean, callback?: () =>
callback()
}
} catch (e) {
logger.error(e, {
tags: {
file: 'application/hooks',
function: 'useFiatOnrampAvailability',
},
})
logger.warn('useFiatOnrampAvailability', 'checkAvailability', 'Error fetching FOR availability', e)
if (stale) {
return
}
Expand Down
Loading

0 comments on commit 1d59f92

Please sign in to comment.