You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Remove WC v1 support, cleanup docs and update WC deps
* Move types to typesfile, rename v2 file to WC as v1 support is removed
* Update WC dep version
* Refine validation
Copy file name to clipboardExpand all lines: docs/src/routes/docs/[...4]wallets/[...26]walletconnect/+page.md
+42-72Lines changed: 42 additions & 72 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,7 @@ title: WalletConnect
4
4
5
5
# {$frontmatter.title}
6
6
7
-
Wallet module for connecting WalletConnect to web3-onboard, currently supporting both v1 and v2.
8
-
9
-
:::admonition type=warning
10
-
_Version 1 of WalletConnect has been deprecated by the WC team and the WC bridge is not available. Upgrading to use WalletConnect v2 is recommended. Support will be completely removed from Web3-Onboard in the future_
11
-
:::
7
+
Wallet module for connecting WalletConnect to web3-onboard.
* Additional required methods to be added to the default list of ['eth_sendTransaction', 'personal_sign']
57
+
* Passed methods to be included along with the defaults methods - see https://docs.walletconnect.com/2.0/advanced/providers/ethereum#required-and-optional-methods
58
+
*/
59
+
additionalRequiredMethods?:string[] |undefined
60
+
/**
61
+
* Additional methods to be added to the default list of ['eth_sendTransaction', 'eth_signTransaction', 'personal_sign', 'eth_sign', 'eth_signTypedData', 'eth_signTypedData_v4']
62
+
* Passed methods to be included along with the defaults methods - see https://docs.walletconnect.com/2.0/web/walletConnectModal/options
63
+
*/
64
+
additionalOptionalMethods?:string[] |undefined
35
65
/**
36
66
* Optional function to handle WalletConnect URI when it becomes available
37
67
*/
38
68
handleUri?: (uri:string) =>Promise<unknown>
39
-
} & (
40
-
| {
41
-
/**
42
-
* Project ID associated with [WalletConnect account](https://cloud.walletconnect.com)
43
-
*/
44
-
projectId:string
45
-
/**
46
-
* Defaults to `appMetadata.explore` that is supplied to the web3-onboard init
47
-
* Strongly recommended to provide atleast one URL as it is required by some wallets (i.e. MetaMask)
48
-
* To connect with walletconnect
49
-
*/
50
-
dappUrl?:string
51
-
/**
52
-
* Defaults to version: 2
53
-
*/
54
-
version?:2
55
-
/**
56
-
* List of Required Chain(s) ID for wallets to support in number format (integer or hex)
57
-
* Defaults to [1] - Ethereum
58
-
*/
59
-
requiredChains?:number[] |undefined
60
-
/**
61
-
* List of Optional Chain(s) ID for wallets to support in number format (integer or hex)
62
-
* Defaults to the chains provided within the web3-onboard init chain property
63
-
*/
64
-
optionalChains?:number[] |undefined
65
-
/**
66
-
* `undefined` by default, see https://docs.walletconnect.com/2.0/web/walletConnectModal/options
* Additional required methods to be added to the default list of ['eth_sendTransaction', 'personal_sign']
71
-
* Passed methods to be included along with the defaults methods - see https://docs.walletconnect.com/2.0/advanced/providers/ethereum#required-and-optional-methods
72
-
*/
73
-
additionalRequiredMethods?:string[] |undefined
74
-
/**
75
-
* Additional methods to be added to the default list of ['eth_sendTransaction', 'eth_signTransaction', 'personal_sign', 'eth_sign', 'eth_signTypedData', 'eth_signTypedData_v4']
76
-
* Passed methods to be included along with the defaults methods - see https://docs.walletconnect.com/2.0/web/walletConnectModal/options
77
-
*/
78
-
additionalOptionalMethods?:string[] |undefined
79
-
}
80
-
| {
81
-
/**
82
-
* @deprecated
83
-
* Version 1 of WalletConnect has been deprecated by the WC team and the WC bridge is not available.
84
-
* To use version 1 a custom bridge url will need to be provided.
85
-
* Support will be completely remove from Web3-Onboard in the future
86
-
*/
87
-
version:1
88
-
/**
89
-
* Custom URL Bridge must be defined for V1 usage.
90
-
* WalletConnect no longer supports a v1 bridge.
91
-
* Upgrading to use WalletConnect v2 is recommended.
92
-
* A potential bridge can be found here: 'https://derelay.rabby.io'
93
-
*/
94
-
bridge:string
95
-
connectFirstChainId?:boolean
96
-
qrcodeModalOptions?: {
97
-
mobileLinks:string[]
98
-
}
99
-
}
100
69
)
101
70
```
102
71
@@ -106,15 +75,19 @@ type WalletConnectOptions = {
Copy file name to clipboardExpand all lines: packages/walletconnect/README.md
+41-71Lines changed: 41 additions & 71 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,79 +6,48 @@
6
6
7
7
`npm i @web3-onboard/core @web3-onboard/walletconnect`
8
8
9
-
## Version 1 of WalletConnect has been deprecated
10
-
11
-
_Version 1 of WalletConnect has been deprecated by the WC team and the WC bridge is not available. If wanting to continue to use WalletConnect V1 a custom bridge URL is required. Support will be completely removed from Web3-Onboard in the future_
12
-
13
9
## Options
14
10
15
11
```typescript
16
12
typeWalletConnectOptions= {
13
+
/**
14
+
* Project ID associated with [WalletConnect account](https://cloud.walletconnect.com)
15
+
*/
16
+
projectId:string
17
+
/**
18
+
* Defaults to `appMetadata.explore` that is supplied to the web3-onboard init
19
+
* Strongly recommended to provide atleast one URL as it is required by some wallets (i.e. MetaMask)
20
+
* To connect with walletconnect
21
+
*/
22
+
dappUrl?:string
23
+
/**
24
+
* List of Required Chain(s) ID for wallets to support in number format (integer or hex)
25
+
* Defaults to [1] - Ethereum
26
+
*/
27
+
requiredChains?:number[] |undefined
28
+
/**
29
+
* List of Optional Chain(s) ID for wallets to support in number format (integer or hex)
30
+
* Defaults to the chains provided within the web3-onboard init chain property
31
+
*/
32
+
optionalChains?:number[] |undefined
33
+
/**
34
+
* `undefined` by default, see https://docs.walletconnect.com/2.0/web/walletConnectModal/options
* Additional required methods to be added to the default list of ['eth_sendTransaction', 'personal_sign']
39
+
* Passed methods to be included along with the defaults methods - see https://docs.walletconnect.com/2.0/advanced/providers/ethereum#required-and-optional-methods
40
+
*/
41
+
additionalRequiredMethods?:string[] |undefined
42
+
/**
43
+
* Additional methods to be added to the default list of ['eth_sendTransaction', 'eth_signTransaction', 'personal_sign', 'eth_sign', 'eth_signTypedData', 'eth_signTypedData_v4']
44
+
* Passed methods to be included along with the defaults methods - see https://docs.walletconnect.com/2.0/web/walletConnectModal/options
45
+
*/
46
+
additionalOptionalMethods?:string[] |undefined
17
47
/**
18
48
* Optional function to handle WalletConnect URI when it becomes available
19
49
*/
20
50
handleUri?: (uri:string) =>Promise<unknown>
21
-
} & (
22
-
| {
23
-
/**
24
-
* Project ID associated with [WalletConnect account](https://cloud.walletconnect.com)
25
-
*/
26
-
projectId:string
27
-
/**
28
-
* Defaults to `appMetadata.explore` that is supplied to the web3-onboard init
29
-
* Strongly recommended to provide atleast one URL as it is required by some wallets (i.e. MetaMask)
30
-
* To connect with walletconnect
31
-
*/
32
-
dappUrl?:string
33
-
/**
34
-
* Defaults to version: 2
35
-
*/
36
-
version?:2
37
-
/**
38
-
* List of Required Chain(s) ID for wallets to support in number format (integer or hex)
39
-
* Defaults to [1] - Ethereum
40
-
*/
41
-
requiredChains?:number[] |undefined
42
-
/**
43
-
* List of Optional Chain(s) ID for wallets to support in number format (integer or hex)
44
-
* Defaults to the chains provided within the web3-onboard init chain property
45
-
*/
46
-
optionalChains?:number[] |undefined
47
-
/**
48
-
* `undefined` by default, see https://docs.walletconnect.com/2.0/web/walletConnectModal/options
* Additional required methods to be added to the default list of ['eth_sendTransaction', 'personal_sign']
53
-
* Passed methods to be included along with the defaults methods - see https://docs.walletconnect.com/2.0/advanced/providers/ethereum#required-and-optional-methods
54
-
*/
55
-
additionalRequiredMethods?:string[] |undefined
56
-
/**
57
-
* Additional methods to be added to the default list of ['eth_sendTransaction', 'eth_signTransaction', 'personal_sign', 'eth_sign', 'eth_signTypedData', 'eth_signTypedData_v4']
58
-
* Passed methods to be included along with the defaults methods - see https://docs.walletconnect.com/2.0/web/walletConnectModal/options
59
-
*/
60
-
additionalOptionalMethods?:string[] |undefined
61
-
}
62
-
| {
63
-
/**
64
-
* @deprecated
65
-
* Version 1 of WalletConnect has been deprecated by the WC team and the WC bridge is not available.
66
-
* To use version 1 a custom bridge url will need to be provided.
67
-
* Support will be completely remove from Web3-Onboard in the future
68
-
*/
69
-
version:1
70
-
/**
71
-
* Custom URL Bridge must be defined for V1 usage.
72
-
* WalletConnect no longer supports a v1 bridge.
73
-
* Upgrading to use WalletConnect v2 is recommended.
74
-
* A potential bridge can be found here: 'https://derelay.rabby.io'
Copy file name to clipboardExpand all lines: packages/walletconnect/package.json
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@web3-onboard/walletconnect",
3
-
"version": "2.4.7",
3
+
"version": "2.5.0-alpha.1",
4
4
"description": "WalletConnect SDK module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
0 commit comments