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
19570349
Commit
19570349
authored
Dec 15, 2023
by
Uniswap Labs Service Account
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci(release): publish latest release
parent
690d2970
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
7 deletions
+49
-7
RELEASE
RELEASE
+11
-6
VERSION
VERSION
+1
-1
errors.test.ts
apps/web/src/tracing/errors.test.ts
+13
-0
errors.ts
apps/web/src/tracing/errors.ts
+24
-0
No files found.
RELEASE
View file @
19570349
IPFS hash of the deployment:
IPFS hash of the deployment:
- CIDv0: `Qm
fTNnuaGjKgsrCc3CrXy8JZCw1gDPaWCzmXwt7GvDRXNK
`
- CIDv0: `Qm
RfmKBiCcSDFdGRZuJKqPtyenCsCFasgiwNvTJQMrbjT6
`
- CIDv1: `bafybei
h6j67orz7joqshoxrbzvxmqlipzfdlpuw7d252kjjqbpsjcpmnnq
`
- CIDv1: `bafybei
brpcihc5cqqzntesoc5dtxyili3uvyrfmxi7fcx4uteto7ucpj6e
`
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,10 +10,15 @@ You can also access the Uniswap Interface from an IPFS gateway.
...
@@ -10,10 +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
h6j67orz7joqshoxrbzvxmqlipzfdlpuw7d252kjjqbpsjcpmnnq
.ipfs.dweb.link/
- https://bafybei
brpcihc5cqqzntesoc5dtxyili3uvyrfmxi7fcx4uteto7ucpj6e
.ipfs.dweb.link/
- https://bafybei
h6j67orz7joqshoxrbzvxmqlipzfdlpuw7d252kjjqbpsjcpmnnq
.ipfs.cf-ipfs.com/
- https://bafybei
brpcihc5cqqzntesoc5dtxyili3uvyrfmxi7fcx4uteto7ucpj6e
.ipfs.cf-ipfs.com/
- [ipfs://Qm
fTNnuaGjKgsrCc3CrXy8JZCw1gDPaWCzmXwt7GvDRXNK/](ipfs://QmfTNnuaGjKgsrCc3CrXy8JZCw1gDPaWCzmXwt7GvDRXNK
/)
- [ipfs://Qm
RfmKBiCcSDFdGRZuJKqPtyenCsCFasgiwNvTJQMrbjT6/](ipfs://QmRfmKBiCcSDFdGRZuJKqPtyenCsCFasgiwNvTJQMrbjT6
/)
### 5.2.1 (2023-12-13)
### 5.2.2 (2023-12-15)
### Bug Fixes
* **web:** disambiguate 3P ProviderRpcErrors (#5482) 0f8a086
VERSION
View file @
19570349
web/5.2.1
web/5.2.2
\ No newline at end of file
\ No newline at end of file
apps/web/src/tracing/errors.test.ts
View file @
19570349
...
@@ -187,4 +187,17 @@ describe('beforeSend', () => {
...
@@ -187,4 +187,17 @@ describe('beforeSend', () => {
expect
(
beforeSend
(
ERROR
,
{
originalException
})).
toBeNull
()
expect
(
beforeSend
(
ERROR
,
{
originalException
})).
toBeNull
()
})
})
})
})
describe
(
'
ProviderRpcErrors
'
,
()
=>
{
it
(
'
augments the event with an exception from the ProviderRpcError
'
,
()
=>
{
const
exception
=
{
mechanism
:
{
handled
:
false
,
synthetic
:
true
}
}
const
event
=
{
exception
:
{
values
:
[
exception
]
}
}
as
ErrorEvent
const
originalException
=
{
code
:
-
32603
,
message
:
'
Internal JSON-RPC error
'
,
data
:
'
[Object]
'
}
beforeSend
(
event
,
{
originalException
})
expect
(
event
.
exception
?.
values
).
toEqual
([
exception
,
{
type
:
'
ProviderRpcError
'
,
value
:
`
${
originalException
.
code
}
:
${
originalException
.
message
}
`
},
])
})
})
})
})
apps/web/src/tracing/errors.ts
View file @
19570349
import
{
ClientOptions
,
ErrorEvent
,
EventHint
}
from
'
@sentry/types
'
import
{
ClientOptions
,
ErrorEvent
,
EventHint
}
from
'
@sentry/types
'
import
{
ProviderRpcError
}
from
'
@web3-react/types
'
import
{
didUserReject
}
from
'
utils/swapErrorToUserReadableMessage
'
import
{
didUserReject
}
from
'
utils/swapErrorToUserReadableMessage
'
// `responseStatus` is only currently supported on certain browsers.
// `responseStatus` is only currently supported on certain browsers.
...
@@ -18,12 +19,25 @@ export const beforeSend: Required<ClientOptions>['beforeSend'] = (event: ErrorEv
...
@@ -18,12 +19,25 @@ export const beforeSend: Required<ClientOptions>['beforeSend'] = (event: ErrorEv
return
null
return
null
}
}
const
exception
=
event
.
exception
?.
values
?.[
0
]
if
(
exception
?.
mechanism
&&
exception
.
mechanism
.
synthetic
&&
!
exception
.
mechanism
.
handled
)
{
// ProviderRpcErrors occur frequently through 3P providers, so it's good to disambiguate them.
// This allows us to see which errors are actually frequent, vs which ones are extension-specific.
if
(
isProviderRpcError
(
hint
.
originalException
))
{
event
.
exception
?.
values
?.
push
({
type
:
'
ProviderRpcError
'
,
value
:
`
${
hint
.
originalException
.
code
}
:
${
hint
.
originalException
.
message
}
`
,
})
}
}
updateRequestUrl
(
event
)
updateRequestUrl
(
event
)
return
event
return
event
}
}
type
ErrorLike
=
Partial
<
Error
>
&
Required
<
Pick
<
Error
,
'
message
'
>>
type
ErrorLike
=
Partial
<
Error
>
&
Required
<
Pick
<
Error
,
'
message
'
>>
function
isErrorLike
(
error
:
unknown
):
error
is
ErrorLike
{
function
isErrorLike
(
error
:
unknown
):
error
is
ErrorLike
{
return
error
instanceof
Object
&&
'
message
'
in
error
&&
typeof
(
error
as
Partial
<
ErrorLike
>
)?.
message
===
'
string
'
return
error
instanceof
Object
&&
'
message
'
in
error
&&
typeof
(
error
as
Partial
<
ErrorLike
>
)?.
message
===
'
string
'
}
}
...
@@ -106,3 +120,13 @@ function shouldRejectError(error: EventHint['originalException']) {
...
@@ -106,3 +120,13 @@ function shouldRejectError(error: EventHint['originalException']) {
return
false
return
false
}
}
function
isProviderRpcError
(
error
:
unknown
):
error
is
ProviderRpcError
{
return
(
error
instanceof
Object
&&
'
code
'
in
error
&&
typeof
(
error
as
Partial
<
ProviderRpcError
>
)?.
code
===
'
number
'
&&
'
message
'
in
error
&&
typeof
(
error
as
Partial
<
ProviderRpcError
>
)?.
message
===
'
string
'
)
}
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