Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
e4e4547f
Commit
e4e4547f
authored
Oct 16, 2024
by
Uniswap Labs Service Account
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci(release): publish latest release
parent
993a9c6f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
53 additions
and
28 deletions
+53
-28
RELEASE
RELEASE
+6
-11
VERSION
VERSION
+1
-1
CurrencySearch.tsx
apps/web/src/components/SearchModal/CurrencySearch.tsx
+1
-1
useShowSwapNetworkNotification.ts
apps/web/src/hooks/useShowSwapNetworkNotification.ts
+12
-6
UniswapContext.tsx
packages/uniswap/src/contexts/UniswapContext.tsx
+16
-4
useSwapNetworkNotification.ts
...res/transactions/swap/hooks/useSwapNetworkNotification.ts
+9
-3
useShowSwapNetworkNotification.ts
...transactions/swap/hooks/useShowSwapNetworkNotification.ts
+8
-2
No files found.
RELEASE
View file @
e4e4547f
IPFS hash of the deployment:
- CIDv0: `Qm
RCNHQbxqepJmwKTbTjue67sfn3LqusjoTaeJ1WsBUzmv
`
- CIDv1: `bafybei
bkoplw7hlmdmxl7shx3c7w47twsz42qpmm3bss54r2wdk5mvyrre
`
- CIDv0: `Qm
WVe33WD9yQ38iTfGMAT3s8eejpztReHAdc5Nd356uaMs
`
- CIDv1: `bafybei
dzfl3a6qljvfeawwzdyywlfgia3fuanjegwpgczxnctmq764h5zy
`
The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).
...
...
@@ -10,15 +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://bafybei
bkoplw7hlmdmxl7shx3c7w47twsz42qpmm3bss54r2wdk5mvyrre
.ipfs.dweb.link/
- https://bafybei
bkoplw7hlmdmxl7shx3c7w47twsz42qpmm3bss54r2wdk5mvyrre
.ipfs.cf-ipfs.com/
- [ipfs://Qm
RCNHQbxqepJmwKTbTjue67sfn3LqusjoTaeJ1WsBUzmv/](ipfs://QmRCNHQbxqepJmwKTbTjue67sfn3LqusjoTaeJ1WsBUzmv
/)
- https://bafybei
dzfl3a6qljvfeawwzdyywlfgia3fuanjegwpgczxnctmq764h5zy
.ipfs.dweb.link/
- https://bafybei
dzfl3a6qljvfeawwzdyywlfgia3fuanjegwpgczxnctmq764h5zy
.ipfs.cf-ipfs.com/
- [ipfs://Qm
WVe33WD9yQ38iTfGMAT3s8eejpztReHAdc5Nd356uaMs/](ipfs://QmWVe33WD9yQ38iTfGMAT3s8eejpztReHAdc5Nd356uaMs
/)
### 5.53.2 (2024-10-16)
### Bug Fixes
* **web:** Only poll for bridging status updates if pending txs - prod (#13069) 694cac0
### 5.53.3 (2024-10-16)
VERSION
View file @
e4e4547f
web/5.53.2
\ No newline at end of file
web/5.53.3
\ No newline at end of file
apps/web/src/components/SearchModal/CurrencySearch.tsx
View file @
e4e4547f
...
...
@@ -53,7 +53,7 @@ export function CurrencySearch({ currencyField, onCurrencySelect, onDismiss }: C
return
}
showSwapNetworkNotification
(
chainId
,
prevChainId
)
showSwapNetworkNotification
(
{
chainId
,
prevChainId
}
)
},
[
currentTab
,
chainId
,
prevChainId
,
multichainUXEnabled
,
showSwapNetworkNotification
])
return
(
...
...
apps/web/src/hooks/useShowSwapNetworkNotification.ts
View file @
e4e4547f
...
...
@@ -3,28 +3,34 @@ import { useAddPopup, useRemovePopup } from 'state/application/hooks'
import
{
PopupType
}
from
'
state/application/reducer
'
import
{
SwapTab
}
from
'
uniswap/src/types/screens/interface
'
type
SwapNetworkNotificationCallbackType
=
{
chainId
?:
number
// The chainId to show notif for, can be input or output chain
prevChainId
?:
number
// The previous chainId the user was swapping on, not used for bridging notifications
outputChainId
?:
number
// The output chainId the user is swapping to
}
export
function
useShowSwapNetworkNotification
()
{
const
addPopup
=
useAddPopup
()
const
removePopup
=
useRemovePopup
()
return
useCallback
(
(
chainId
?:
number
,
prevChainId
?:
number
)
=>
{
if
(
!
chainId
||
chainId
===
prevChainId
)
{
(
{
chainId
,
prevChainId
,
outputChainId
}:
SwapNetworkNotificationCallbackType
)
=>
{
if
(
!
chainId
||
chainId
===
prevChainId
||
chainId
===
outputChainId
)
{
return
}
const
isBridgeNotification
=
chainId
&&
prev
ChainId
const
isBridgeNotification
=
chainId
&&
output
ChainId
removePopup
(
`switchNetwork-
${
prevChainId
}
`
)
if
(
isBridgeNotification
)
{
addPopup
(
{
type
:
PopupType
.
Bridge
,
inputChainId
:
chainId
,
outputChainId
:
prevChainId
,
outputChainId
,
},
`bridge-
${
chainId
}
-to-
${
prev
ChainId
}
`
,
`bridge-
${
chainId
}
-to-
${
output
ChainId
}
`
,
3000
,
)
}
else
{
}
else
if
(
prevChainId
)
{
addPopup
(
{
type
:
PopupType
.
SwitchNetwork
,
...
...
packages/uniswap/src/contexts/UniswapContext.tsx
View file @
e4e4547f
...
...
@@ -12,7 +12,11 @@ interface UniswapContext {
connector
?:
Connector
navigateToBuyOrReceiveWithEmptyWallet
?:
()
=>
void
navigateToFiatOnRamp
:
(
args
:
{
prefilledCurrency
?:
FiatOnRampCurrency
})
=>
void
onSwapChainsChanged
:
(
inputChainId
:
UniverseChainId
,
outputChainId
?:
UniverseChainId
)
=>
void
onSwapChainsChanged
:
(
args
:
{
chainId
:
UniverseChainId
prevChainId
?:
UniverseChainId
outputChainId
?:
UniverseChainId
})
=>
void
swapInputChainId
?:
UniverseChainId
signer
:
Signer
|
undefined
useProviderHook
:
(
chainId
:
number
)
=>
JsonRpcProvider
|
undefined
...
...
@@ -44,9 +48,17 @@ export function UniswapProvider({
account
,
connector
,
navigateToBuyOrReceiveWithEmptyWallet
,
onSwapChainsChanged
:
(
inputChainId
:
UniverseChainId
,
outputChanId
?:
UniverseChainId
):
void
=>
{
onSwapChainsChanged
(
inputChainId
,
outputChanId
)
setSwapInputChainId
(
inputChainId
)
onSwapChainsChanged
:
({
chainId
,
prevChainId
,
outputChainId
,
}:
{
chainId
:
UniverseChainId
prevChainId
?:
UniverseChainId
outputChainId
?:
UniverseChainId
}):
void
=>
{
onSwapChainsChanged
({
chainId
,
prevChainId
,
outputChainId
})
setSwapInputChainId
(
chainId
)
},
signer
,
useProviderHook
,
...
...
packages/uniswap/src/features/transactions/swap/hooks/useSwapNetworkNotification.ts
View file @
e4e4547f
...
...
@@ -22,6 +22,7 @@ export function useSwapNetworkNotification({
useEffect
(()
=>
{
const
{
inputChainId
:
lastInputChainId
,
outputChainId
:
lastOutputChainId
}
=
lastNetworkNotification
.
current
const
prevChainId
=
lastInputChainId
??
lastOutputChainId
// Set initial values but don't fire notification for first network selection
if
(
!
lastInputChainId
&&
!
lastOutputChainId
)
{
...
...
@@ -40,9 +41,14 @@ export function useSwapNetworkNotification({
// Determine notification type and trigger
if
(
inputChainId
&&
outputChainId
&&
inputChainId
!==
outputChainId
)
{
onSwapChainsChanged
(
inputChainId
,
outputChainId
)
// Bridging notification
}
else
if
(
inputChainId
&&
(
hasInputChanged
||
(
hasOutputChanged
&&
inputChainId
===
outputChainId
)))
{
onSwapChainsChanged
(
inputChainId
)
// Non-bridging notification
onSwapChainsChanged
({
chainId
:
inputChainId
,
outputChainId
})
// Bridging notification
}
else
if
(
inputChainId
||
(
outputChainId
&&
prevChainId
))
{
const
chainId
=
inputChainId
??
outputChainId
// User is swapping on the same chain, don't show notification
if
(
!
chainId
||
chainId
===
prevChainId
)
{
return
}
onSwapChainsChanged
({
chainId
,
prevChainId
})
// Non-bridging notification
}
// Update last notification state
...
...
packages/wallet/src/features/transactions/swap/hooks/useShowSwapNetworkNotification.ts
View file @
e4e4547f
...
...
@@ -11,10 +11,16 @@ const HIDE_DELAY = ONE_SECOND_MS * 2
* Shows a network notification for a swap.
* Depending on chain inputs passed, shows a bridging or non-bridging notification.
*/
export
function
useShowSwapNetworkNotification
():
(
chainId
:
UniverseChainId
,
outputChainId
?:
UniverseChainId
)
=>
void
{
export
function
useShowSwapNetworkNotification
():
({
chainId
,
outputChainId
,
}:
{
chainId
:
UniverseChainId
outputChainId
?:
UniverseChainId
})
=>
void
{
const
appDispatch
=
useDispatch
()
return
useCallback
(
(
chainId
:
UniverseChainId
,
outputChainId
?:
UniverseChainId
)
=>
{
(
{
chainId
,
outputChainId
}:
{
chainId
:
UniverseChainId
;
outputChainId
?:
UniverseChainId
}
)
=>
{
// Output chain should only be passed when bridging
if
(
outputChainId
&&
chainId
!==
outputChainId
)
{
appDispatch
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment