-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: test 2.18.1-canary-ws-2
#3885
base: main
Are you sure you want to change the base?
Changes from all commits
6dfc472
8ac802f
c9ee76f
a5eb34a
6799642
615b157
2db53db
d27ad8d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,15 +31,15 @@ | |
"@reown/appkit-utils": "workspace:*", | ||
"@wallet-standard/app": "1.1.0", | ||
"@wallet-standard/base": "1.1.0", | ||
"@walletconnect/universal-provider": "2.18.0", | ||
"@walletconnect/universal-provider": "2.18.1-canary-ws-3", | ||
"bitcoinjs-lib": "6.1.7", | ||
"sats-connect": "3.0.1" | ||
}, | ||
"devDependencies": { | ||
"@leather.io/rpc": "2.1.21", | ||
"@vitest/coverage-v8": "2.1.3", | ||
"@wallet-standard/features": "1.0.3", | ||
"@walletconnect/types": "2.18.0", | ||
"@walletconnect/types": "2.18.1-canary-ws-3", | ||
"vitest": "2.1.9" | ||
}, | ||
"author": "Reown <[email protected]> (https://reown.com)", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,8 @@ | |
"@reown/appkit-utils": "workspace:*", | ||
"@reown/appkit-ui": "workspace:*", | ||
"@reown/appkit-wallet": "workspace:*", | ||
"@walletconnect/utils": "2.18.0", | ||
"@walletconnect/universal-provider": "2.18.0", | ||
"@walletconnect/utils": "2.18.1-canary-ws-3", | ||
"@walletconnect/universal-provider": "2.18.1-canary-ws-3", | ||
"valtio": "1.13.2" | ||
}, | ||
"optionalDependencies": { | ||
|
@@ -38,7 +38,7 @@ | |
}, | ||
"devDependencies": { | ||
"@vitest/coverage-v8": "2.1.3", | ||
"@walletconnect/types": "2.18.0", | ||
"@walletconnect/types": "2.18.1-canary-ws-3", | ||
"vitest": "2.1.9" | ||
}, | ||
"author": "Reown <[email protected]> (https://reown.com)", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,8 @@ | |
"@reown/appkit-utils": "workspace:*", | ||
"@reown/appkit-ui": "workspace:*", | ||
"@reown/appkit-wallet": "workspace:*", | ||
"@walletconnect/utils": "2.18.0", | ||
"@walletconnect/universal-provider": "2.18.0", | ||
"@walletconnect/utils": "2.18.1-canary-ws-3", | ||
"@walletconnect/universal-provider": "2.18.1-canary-ws-3", | ||
"valtio": "1.13.2" | ||
}, | ||
"optionalDependencies": { | ||
|
@@ -38,7 +38,7 @@ | |
}, | ||
"devDependencies": { | ||
"@vitest/coverage-v8": "2.1.3", | ||
"@walletconnect/types": "2.18.0", | ||
"@walletconnect/types": "2.18.1-canary-ws-3", | ||
"vitest": "2.1.9" | ||
}, | ||
"author": "Reown <[email protected]> (https://reown.com)", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,8 @@ | |
"@reown/appkit-utils": "workspace:*", | ||
"@reown/appkit-ui": "workspace:*", | ||
"@reown/appkit-wallet": "workspace:*", | ||
"@walletconnect/utils": "2.18.0", | ||
"@walletconnect/universal-provider": "2.18.0", | ||
"@walletconnect/utils": "2.18.1-canary-ws-3", | ||
"@walletconnect/universal-provider": "2.18.1-canary-ws-3", | ||
"valtio": "1.13.2" | ||
}, | ||
"optionalDependencies": { | ||
|
@@ -41,7 +41,7 @@ | |
"@types/react": "19.0.0", | ||
"@types/react-dom": "19.0.0", | ||
"@vitest/coverage-v8": "2.1.3", | ||
"@walletconnect/types": "2.18.0", | ||
"@walletconnect/types": "2.18.1-canary-ws-3", | ||
"vitest": "2.1.9" | ||
}, | ||
"author": "Reown <[email protected]> (https://reown.com)", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ import type { BaseError, Platform } from '@reown/appkit-core' | |
import { | ||
ChainController, | ||
ConnectionController, | ||
ConstantsUtil, | ||
CoreHelperUtil, | ||
EventsController, | ||
ModalController, | ||
|
@@ -19,10 +18,6 @@ import { customElement } from '@reown/appkit-ui' | |
@customElement('w3m-connecting-wc-view') | ||
export class W3mConnectingWcView extends LitElement { | ||
// -- Members ------------------------------------------- // | ||
private interval?: ReturnType<typeof setInterval> = undefined | ||
|
||
private lastRetry = Date.now() | ||
|
||
private wallet = RouterController.state.data?.wallet | ||
|
||
// -- State & Properties -------------------------------- // | ||
|
@@ -36,14 +31,6 @@ export class W3mConnectingWcView extends LitElement { | |
super() | ||
this.determinePlatforms() | ||
this.initializeConnection() | ||
this.interval = setInterval( | ||
this.initializeConnection.bind(this), | ||
ConstantsUtil.TEN_SEC_MS | ||
) as unknown as NodeJS.Timeout | ||
} | ||
|
||
public override disconnectedCallback() { | ||
clearTimeout(this.interval) | ||
} | ||
|
||
// -- Render -------------------------------------------- // | ||
|
@@ -80,13 +67,9 @@ export class W3mConnectingWcView extends LitElement { | |
properties: { message: (error as BaseError)?.message ?? 'Unknown' } | ||
}) | ||
ConnectionController.setWcError(true) | ||
if (CoreHelperUtil.isAllowedRetry(this.lastRetry)) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we still need this util? can we remove? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. seems |
||
SnackController.showError((error as BaseError).message ?? 'Declined') | ||
this.lastRetry = Date.now() | ||
this.initializeConnection(true) | ||
} else { | ||
SnackController.showError((error as BaseError).message ?? 'Connection error') | ||
} | ||
SnackController.showError((error as BaseError).message ?? 'Connection error') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is no longer looped into reconnecting right? Just triple checking there won't be popups going crazy if a network issue happens and we enter a retry loop There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nope, when
the router redirects back to wallet list and thats all |
||
ConnectionController.resetWcConnection() | ||
RouterController.goBack() | ||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🫠