Skip to content

Commit fe72e19

Browse files
authored
Merge pull request #1831 from blocknative/release/2.24.4
Release 2.24.4 (docs)
2 parents aef4362 + 862669f commit fe72e19

File tree

22 files changed

+1756
-1018
lines changed

22 files changed

+1756
-1018
lines changed

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@
4545
"tslib": "^2.4.1",
4646
"typescript": "^5.0.4",
4747
"unplugin-icons": "^0.14.0",
48-
"vite": "^4.2.2"
48+
"vite": "^4.3.9"
4949
},
5050
"type": "module",
5151
"dependencies": {
5252
"@web3-onboard/blocto": "^2.0.0",
5353
"@web3-onboard/cede-store": "^2.0.2",
54-
"@web3-onboard/coinbase": "^2.2.4",
54+
"@web3-onboard/coinbase": "^2.2.5-alpha.1",
5555
"@web3-onboard/core": "^2.20.4",
5656
"@web3-onboard/dcent": "^2.2.7",
5757
"@web3-onboard/enkrypt": "^2.0.4",
@@ -77,7 +77,7 @@
7777
"@web3-onboard/trust": "^2.0.4",
7878
"@web3-onboard/uauth": "^2.1.1",
7979
"@web3-onboard/venly": "^2.0.0",
80-
"@web3-onboard/walletconnect": "^2.4.1",
80+
"@web3-onboard/walletconnect": "^2.4.2-alpha.1",
8181
"@web3-onboard/web3auth": "^2.2.3",
8282
"@web3-onboard/xdefi": "^2.0.4",
8383
"@web3-onboard/zeal": "^2.0.4",

docs/src/lib/services/onboard.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ const intiOnboard = async (theme) => {
220220
recommendedInjectedWallets: [
221221
{ name: 'MetaMask', url: 'https://metamask.io' },
222222
{ name: 'Coinbase', url: 'https://wallet.coinbase.com/' }
223-
]
223+
],
224+
explore: 'https://onboard.blocknative.com/'
224225
},
225226
accountCenter: { desktop: { enabled: true }, mobile: { enabled: true } },
226227
theme: theme || 'system',

docs/src/routes/docs/[...4]wallets/[...24]walletconnect/+page.md

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type WalletConnectOptions = {
4747
*/
4848
version: 1
4949
/**
50-
* Custom URL Bridge must be defined for V1 usage.
50+
* Custom URL Bridge must be defined for V1 usage.
5151
* WalletConnect no longer supports a v1 bridge.
5252
* Upgrading to use WalletConnect v2 is recommended.
5353
* A potential bridge can be found here: 'https://derelay.rabby.io'
@@ -63,6 +63,12 @@ type WalletConnectOptions = {
6363
* Project ID associated with [WalletConnect account](https://cloud.walletconnect.com)
6464
*/
6565
projectId: string
66+
/**
67+
* Defaults to `appMetadata.explore` that is supplied to the web3-onboard init
68+
* Strongly recommended to provide atleast one URL as it is required by some wallets (i.e. MetaMask)
69+
* To connect with walletconnect
70+
*/
71+
dappUrl?: string
6672
/**
6773
* Defaults to version: 2
6874
*/
@@ -104,7 +110,13 @@ const wcV2InitOptions = {
104110
/**
105111
* Chains required to be supported by all wallets connecting to your DApp
106112
*/
107-
requiredChains: [1, 56]
113+
requiredChains: [1, 56],
114+
/**
115+
* Defaults to `appMetadata.explore` that is supplied to the web3-onboard init
116+
* Strongly recommended to provide atleast one URL as it is required by some wallets (i.e. MetaMask)
117+
* To connect with WalletConnect
118+
*/
119+
dappUrl: 'http://YourAwesomeDapp.com'
108120
}
109121

110122
// initialize the module with options
@@ -121,15 +133,16 @@ const onboard = Onboard({
121133
walletConnect
122134
//... other wallets
123135
],
124-
chains: [ // chains that are passed as optional chains to WC wallet after cleaning and parsing as number[]
125-
{
126-
id: '0x89',
127-
token: 'MATIC',
128-
label: 'Polygon',
129-
rpcUrl: 'https://matic-mainnet.chainstacklabs.com'
130-
}
131-
// ...
132-
]
136+
chains: [
137+
// chains that are passed as optional chains to WC wallet after cleaning and parsing as number[]
138+
{
139+
id: '0x89',
140+
token: 'MATIC',
141+
label: 'Polygon',
142+
rpcUrl: 'https://matic-mainnet.chainstacklabs.com'
143+
}
144+
// ...
145+
]
133146
})
134147

135148
const connectedWallets = await onboard.connectWallet()

docs/yarn.lock

Lines changed: 188 additions & 178 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)