Skip to content
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

Release 2.24.4 #1830

Merged
merged 19 commits into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
b2fa704
Merge pull request #1812 from blocknative/release/2.24.3
Adamj1232 Jul 7, 2023
aef4362
Merge pull request #1814 from blocknative/release/2.24.3
Adamj1232 Jul 7, 2023
7cc952f
Fix: Add WC validation for props, add prop to handle MetaMask usage t…
Adamj1232 Jul 10, 2023
4e8f66c
Update Wallet Connect V2 for vite example (#1802)
0xleeaki Jul 10, 2023
637db65
Update docs for WC implementation
Adamj1232 Jul 11, 2023
f1640bc
Merge branch 'main' into release/2.24.4
Adamj1232 Jul 11, 2023
009fcd3
Merge branch 'docs' into release/2.24.4
Adamj1232 Jul 11, 2023
667b753
feat: update dappauth lib for compatibility (#1781)
scottphc Jul 11, 2023
bcc4be3
Bump semver from 6.3.0 to 6.3.1 in /examples/with-nextjs (#1825)
dependabot[bot] Jul 11, 2023
63ca515
Bump semver from 6.3.0 to 6.3.1 in /examples/with-vuejs-v2 (#1826)
dependabot[bot] Jul 11, 2023
92da953
Bump fast-xml-parser from 4.2.2 to 4.2.4 in /docs (#1761)
dependabot[bot] Jul 11, 2023
24f2d5c
Bump vite from 4.3.5 to 4.3.9 in /docs (#1757)
dependabot[bot] Jul 11, 2023
452d942
Bump @antfu/utils from 0.7.2 to 0.7.4 in /docs (#1753)
dependabot[bot] Jul 11, 2023
c2a8de8
Bump semver from 6.3.0 to 6.3.1 in /examples/with-ledger (#1827)
dependabot[bot] Jul 11, 2023
8ce7e6f
Update to latest vite and test
Adamj1232 Jul 11, 2023
05c7853
Merge in latest develop and test
Adamj1232 Jul 11, 2023
cc4b8b0
Bump fast-xml-parser from 4.2.4 to 4.2.5 in /docs (#1828)
dependabot[bot] Jul 11, 2023
9388959
Merge in latest develop
Adamj1232 Jul 11, 2023
862669f
Merge branch 'develop' into release/2.24.4
Adamj1232 Jul 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
"tslib": "^2.4.1",
"typescript": "^5.0.4",
"unplugin-icons": "^0.14.0",
"vite": "^4.2.2"
"vite": "^4.3.9"
},
"type": "module",
"dependencies": {
"@web3-onboard/blocto": "^2.0.0",
"@web3-onboard/cede-store": "^2.0.2",
"@web3-onboard/coinbase": "^2.2.4",
"@web3-onboard/coinbase": "^2.2.5-alpha.1",
"@web3-onboard/core": "^2.20.4",
"@web3-onboard/dcent": "^2.2.7",
"@web3-onboard/enkrypt": "^2.0.4",
Expand All @@ -77,7 +77,7 @@
"@web3-onboard/trust": "^2.0.4",
"@web3-onboard/uauth": "^2.1.1",
"@web3-onboard/venly": "^2.0.0",
"@web3-onboard/walletconnect": "^2.4.1",
"@web3-onboard/walletconnect": "^2.4.2-alpha.1",
"@web3-onboard/web3auth": "^2.2.3",
"@web3-onboard/xdefi": "^2.0.4",
"@web3-onboard/zeal": "^2.0.4",
Expand Down
3 changes: 2 additions & 1 deletion docs/src/lib/services/onboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ const intiOnboard = async (theme) => {
recommendedInjectedWallets: [
{ name: 'MetaMask', url: 'https://metamask.io' },
{ name: 'Coinbase', url: 'https://wallet.coinbase.com/' }
]
],
explore: 'https://onboard.blocknative.com/'
},
accountCenter: { desktop: { enabled: true }, mobile: { enabled: true } },
theme: theme || 'system',
Expand Down
35 changes: 24 additions & 11 deletions docs/src/routes/docs/[...4]wallets/[...24]walletconnect/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type WalletConnectOptions = {
*/
version: 1
/**
* Custom URL Bridge must be defined for V1 usage.
* Custom URL Bridge must be defined for V1 usage.
* WalletConnect no longer supports a v1 bridge.
* Upgrading to use WalletConnect v2 is recommended.
* A potential bridge can be found here: 'https://derelay.rabby.io'
Expand All @@ -63,6 +63,12 @@ type WalletConnectOptions = {
* Project ID associated with [WalletConnect account](https://cloud.walletconnect.com)
*/
projectId: string
/**
* Defaults to `appMetadata.explore` that is supplied to the web3-onboard init
* Strongly recommended to provide atleast one URL as it is required by some wallets (i.e. MetaMask)
* To connect with walletconnect
*/
dappUrl?: string
/**
* Defaults to version: 2
*/
Expand Down Expand Up @@ -104,7 +110,13 @@ const wcV2InitOptions = {
/**
* Chains required to be supported by all wallets connecting to your DApp
*/
requiredChains: [1, 56]
requiredChains: [1, 56],
/**
* Defaults to `appMetadata.explore` that is supplied to the web3-onboard init
* Strongly recommended to provide atleast one URL as it is required by some wallets (i.e. MetaMask)
* To connect with WalletConnect
*/
dappUrl: 'http://YourAwesomeDapp.com'
}

// initialize the module with options
Expand All @@ -121,15 +133,16 @@ const onboard = Onboard({
walletConnect
//... other wallets
],
chains: [ // chains that are passed as optional chains to WC wallet after cleaning and parsing as number[]
{
id: '0x89',
token: 'MATIC',
label: 'Polygon',
rpcUrl: 'https://matic-mainnet.chainstacklabs.com'
}
// ...
]
chains: [
// chains that are passed as optional chains to WC wallet after cleaning and parsing as number[]
{
id: '0x89',
token: 'MATIC',
label: 'Polygon',
rpcUrl: 'https://matic-mainnet.chainstacklabs.com'
}
// ...
]
})

const connectedWallets = await onboard.connectWallet()
Expand Down
366 changes: 188 additions & 178 deletions docs/yarn.lock

Large diffs are not rendered by default.

Loading