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
d76a660e
Commit
d76a660e
authored
May 16, 2024
by
Uniswap Labs Service Account
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci(release): publish latest release
parent
e79630c6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
11 deletions
+24
-11
RELEASE
RELEASE
+7
-8
VERSION
VERSION
+1
-1
useOrderedConnections.test.tsx
...src/components/WalletModal/useOrderedConnections.test.tsx
+14
-0
useOrderedConnections.tsx
.../web/src/components/WalletModal/useOrderedConnections.tsx
+2
-2
No files found.
RELEASE
View file @
d76a660e
IPFS hash of the deployment:
IPFS hash of the deployment:
- CIDv0: `Qm
ccrxuuPdXnhgCm2377DmcpBZtS36JK2kHNhGcutyYCfC
`
- CIDv0: `Qm
Sy9dnGZafmGNzzJgdfu97LH9P9HsAZNUTtnfMfAJctRr
`
- CIDv1: `bafybei
guflcfu2p2lxehliz5wutxlmqtjfeg7qk4pw2ifw24xbbhjhcf5m
`
- CIDv1: `bafybei
cezboop6s2zwdnk7izhxdkemytiecd3vub4x4564xc2gmio4e3ou
`
The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).
The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).
...
@@ -10,16 +10,15 @@ You can also access the Uniswap Interface from an IPFS gateway.
...
@@ -10,16 +10,15 @@ You can also access the Uniswap Interface from an IPFS gateway.
Your Uniswap settings are never remembered across different URLs.
Your Uniswap settings are never remembered across different URLs.
IPFS gateways:
IPFS gateways:
- https://bafybei
guflcfu2p2lxehliz5wutxlmqtjfeg7qk4pw2ifw24xbbhjhcf5m
.ipfs.dweb.link/
- https://bafybei
cezboop6s2zwdnk7izhxdkemytiecd3vub4x4564xc2gmio4e3ou
.ipfs.dweb.link/
- https://bafybei
guflcfu2p2lxehliz5wutxlmqtjfeg7qk4pw2ifw24xbbhjhcf5m
.ipfs.cf-ipfs.com/
- https://bafybei
cezboop6s2zwdnk7izhxdkemytiecd3vub4x4564xc2gmio4e3ou
.ipfs.cf-ipfs.com/
- [ipfs://Qm
ccrxuuPdXnhgCm2377DmcpBZtS36JK2kHNhGcutyYCfC/](ipfs://QmccrxuuPdXnhgCm2377DmcpBZtS36JK2kHNhGcutyYCfC
/)
- [ipfs://Qm
Sy9dnGZafmGNzzJgdfu97LH9P9HsAZNUTtnfMfAJctRr/](ipfs://QmSy9dnGZafmGNzzJgdfu97LH9P9HsAZNUTtnfMfAJctRr
/)
### 5.27.
7
(2024-05-16)
### 5.27.
8
(2024-05-16)
### Bug Fixes
### Bug Fixes
* **web:** support multichain input params 272661d
* **web:** window.ethereum fallback on mobile [prod] (#8260) 929c164
* **web:** support multichain input params 8620c6c
VERSION
View file @
d76a660e
web/5.27.7
web/5.27.8
\ No newline at end of file
\ No newline at end of file
apps/web/src/components/WalletModal/useOrderedConnections.test.tsx
View file @
d76a660e
...
@@ -126,6 +126,7 @@ describe('useOrderedConnections', () => {
...
@@ -126,6 +126,7 @@ describe('useOrderedConnections', () => {
})
})
it
(
'
should include the fallback injected provider when no eip6963 injectors are present
'
,
async
()
=>
{
it
(
'
should include the fallback injected provider when no eip6963 injectors are present
'
,
async
()
=>
{
window
.
ethereum
=
true
as
any
mocked
(
useConnect
).
mockReturnValue
({
mocked
(
useConnect
).
mockReturnValue
({
connectors
:
[
UNISWAP_MOBILE_CONNECTOR
,
INJECTED_CONNECTOR
,
WALLET_CONNECT_CONNECTOR
,
COINBASE_SDK_CONNECTOR
],
connectors
:
[
UNISWAP_MOBILE_CONNECTOR
,
INJECTED_CONNECTOR
,
WALLET_CONNECT_CONNECTOR
,
COINBASE_SDK_CONNECTOR
],
}
as
unknown
as
ReturnType
<
typeof
useConnect
>
)
}
as
unknown
as
ReturnType
<
typeof
useConnect
>
)
...
@@ -136,7 +137,20 @@ describe('useOrderedConnections', () => {
...
@@ -136,7 +137,20 @@ describe('useOrderedConnections', () => {
{
id
:
CONNECTION
.
WALLET_CONNECT_CONNECTOR_ID
},
{
id
:
CONNECTION
.
WALLET_CONNECT_CONNECTOR_ID
},
{
id
:
CONNECTION
.
COINBASE_SDK_CONNECTOR_ID
},
{
id
:
CONNECTION
.
COINBASE_SDK_CONNECTOR_ID
},
]
]
result
.
current
.
forEach
((
connector
,
index
)
=>
{
expect
(
connector
.
id
).
toEqual
(
expectedConnectors
[
index
].
id
)
})
expect
(
result
.
current
.
length
).
toEqual
(
expectedConnectors
.
length
)
})
it
(
'
should include only the fallback injected provider when no eip6963 injectors are present on mobile
'
,
async
()
=>
{
UserAgentMock
.
isMobile
=
true
window
.
ethereum
=
true
as
any
mocked
(
useConnect
).
mockReturnValue
({
connectors
:
[
UNISWAP_MOBILE_CONNECTOR
,
INJECTED_CONNECTOR
,
WALLET_CONNECT_CONNECTOR
,
COINBASE_SDK_CONNECTOR
],
}
as
unknown
as
ReturnType
<
typeof
useConnect
>
)
const
{
result
}
=
renderHook
(()
=>
useOrderedConnections
())
const
expectedConnectors
=
[{
id
:
CONNECTION
.
INJECTED_CONNECTOR_ID
}]
result
.
current
.
forEach
((
connector
,
index
)
=>
{
result
.
current
.
forEach
((
connector
,
index
)
=>
{
expect
(
connector
.
id
).
toEqual
(
expectedConnectors
[
index
].
id
)
expect
(
connector
.
id
).
toEqual
(
expectedConnectors
[
index
].
id
)
})
})
...
...
apps/web/src/components/WalletModal/useOrderedConnections.tsx
View file @
d76a660e
...
@@ -53,9 +53,9 @@ function getInjectedConnectors(connectors: readonly Connector[], excludeUniswapC
...
@@ -53,9 +53,9 @@ function getInjectedConnectors(connectors: readonly Connector[], excludeUniswapC
return
c
.
type
===
CONNECTION
.
INJECTED_CONNECTOR_TYPE
&&
c
.
id
!==
CONNECTION
.
INJECTED_CONNECTOR_ID
return
c
.
type
===
CONNECTION
.
INJECTED_CONNECTOR_TYPE
&&
c
.
id
!==
CONNECTION
.
INJECTED_CONNECTOR_ID
})
})
// Special-case:
Handle deprecated window.ethereum injection
when no eip6963 injectors are present.
// Special-case:
Return deprecated window.ethereum connector
when no eip6963 injectors are present.
const
fallbackInjector
=
getConnectorWithId
(
connectors
,
CONNECTION
.
INJECTED_CONNECTOR_ID
,
{
shouldThrow
:
true
})
const
fallbackInjector
=
getConnectorWithId
(
connectors
,
CONNECTION
.
INJECTED_CONNECTOR_ID
,
{
shouldThrow
:
true
})
if
(
!
injectedConnectors
.
length
&&
!
isMobile
)
{
if
(
!
injectedConnectors
.
length
&&
Boolean
(
window
.
ethereum
)
)
{
return
{
injectedConnectors
:
[
fallbackInjector
],
isCoinbaseWalletBrowser
}
return
{
injectedConnectors
:
[
fallbackInjector
],
isCoinbaseWalletBrowser
}
}
}
...
...
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