Skip to content

Commit 80569eb

Browse files
authored
Merge pull request #2031 from blocknative/release/2.24.18
Release - 2.24.18
2 parents efb0e44 + 63798bc commit 80569eb

File tree

12 files changed

+928
-83
lines changed

12 files changed

+928
-83
lines changed

docs/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@tailwindcss/typography": "^0.5.9",
2727
"@types/animejs": "^3.1.7",
2828
"@types/react": "^18.0.37",
29+
"@vitejs/plugin-react": "^4.2.1",
2930
"assert": "^2.0.0",
3031
"autoprefixer": "^10.4.14",
3132
"browserify-zlib": "^0.2.0",
@@ -54,7 +55,8 @@
5455
"@web3-onboard/arcana-auth": "^2.0.0",
5556
"@web3-onboard/bitget": "^2.0.0",
5657
"@web3-onboard/blocto": "^2.0.0",
57-
"@web3-onboard/capsule": "^2.0.0",
58+
"@web3-onboard/capsule": "^2.0.1",
59+
"@web3-onboard/cede-store": "^2.2.0",
5860
"@web3-onboard/coinbase": "^2.2.5",
5961
"@web3-onboard/core": "^2.21.2",
6062
"@web3-onboard/dcent": "^2.2.7",
@@ -82,7 +84,7 @@
8284
"@web3-onboard/trust": "^2.0.4",
8385
"@web3-onboard/uauth": "^2.1.1",
8486
"@web3-onboard/venly": "^2.0.0",
85-
"@web3-onboard/walletconnect": "^2.5.1",
87+
"@web3-onboard/walletconnect": "^2.5.2",
8688
"@web3-onboard/web3auth": "^2.2.3",
8789
"@web3-onboard/xdefi": "^2.0.4",
8890
"@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
@@ -130,6 +130,7 @@ const intiOnboard = async (theme) => {
130130

131131
const capsule = capsuleModule({
132132
environment: Environment.DEVELOPMENT,
133+
apiKey: '992bbd9146d5de8ad0419f141d9a7ca7'
133134
})
134135

135136
return Onboard({
@@ -162,7 +163,7 @@ const intiOnboard = async (theme) => {
162163
frame,
163164
infinityWallet,
164165
blocto,
165-
capsule
166+
// capsule
166167
// venly
167168
],
168169
chains: [

docs/vite.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ import { sveltekit } from '@sveltejs/kit/vite'
22
import icons from 'unplugin-icons/vite'
33
import kitDocs from '@svelteness/kit-docs/node'
44
import nodePolyfills from 'rollup-plugin-polyfill-node'
5+
import react from '@vitejs/plugin-react';
56

67
/** @type {import('vite').UserConfig} */
78
const config = {
8-
plugins: [icons({ compiler: 'svelte' }), kitDocs(), sveltekit()],
9+
plugins: [react(), icons({ compiler: 'svelte' }), kitDocs(), sveltekit()],
910
resolve: {
1011
alias: {
1112
crypto: 'crypto-browserify',
@@ -25,7 +26,8 @@ const config = {
2526
}
2627
},
2728
define: {
28-
'import.meta.env.VERCEL': JSON.stringify(process.env.VERCEL)
29+
'import.meta.env.VERCEL': JSON.stringify(process.env.VERCEL),
30+
'process.env.NODE_DEBUG': JSON.stringify('')
2931
},
3032
optimizeDeps: {
3133
exclude: ['@ethersproject/hash', 'wrtc', 'http', 'react/jsx-runtime'],

docs/yarn.lock

Lines changed: 861 additions & 22 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-onboard-monorepo",
3-
"version": "2.24.17",
3+
"version": "2.24.18",
44
"private": true,
55
"workspaces": {
66
"packages": [

packages/capsule/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/capsule",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Capsule SDK wallet 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.",
55
"module": "dist/index.js",
66
"browser": "dist/index.js",
@@ -56,17 +56,17 @@
5656
"Capsule"
5757
],
5858
"dependencies": {
59-
"@usecapsule/web-sdk": "^0.29.4",
59+
"@usecapsule/web-sdk": "0.29.4",
6060
"@wagmi/chains": "^1.8.0",
6161
"@web3-onboard/common": "^2.3.3",
62-
"react-dom" : "^18.2.0"
62+
"react-dom": "^18.2.0"
6363
},
6464
"peerDependencies": {
6565
"react": ">=18.2"
6666
},
6767
"devDependencies": {
68-
"typescript": "^5.2.2",
6968
"@types/react": "^18.0.2",
70-
"react": "^18.2.0"
69+
"react": "^18.2.0",
70+
"typescript": "^5.2.2"
7171
}
7272
}

packages/capsule/src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { AppMetadata, WalletInit } from '@web3-onboard/common'
1+
import type { AppMetadata, EIP1193Provider, WalletInit } from '@web3-onboard/common'
22
import type { CapsuleInitOptions } from './types'
33
import type { Chain } from '@wagmi/chains'
44
import type { Chain as BlocknativeChain } from '@web3-onboard/common'
@@ -89,7 +89,9 @@ function capsule(options: CapsuleInitOptions): WalletInit {
8989
chainsMap
9090
)
9191
}
92-
const provider = new CapsuleEIP1193Provider(providerOpts)
92+
const provider: EIP1193Provider = new CapsuleEIP1193Provider(providerOpts)
93+
94+
provider.disconnect = () => { capsule.logout(); };
9395

9496
return {
9597
instance: capsule,

packages/capsule/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,9 +2232,9 @@
22322232
integrity sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==
22332233

22342234
"@types/react@^18.0.2":
2235-
version "18.2.39"
2236-
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.39.tgz#744bee99e053ad61fe74eb8b897f3ab5b19a7e25"
2237-
integrity sha512-Oiw+ppED6IremMInLV4HXGbfbG6GyziY3kqAwJYOR0PNbkYDmLWQA3a95EhdSmamsvbkJN96ZNN+YD+fGjzSBA==
2235+
version "18.2.42"
2236+
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.42.tgz#6f6b11a904f6d96dda3c2920328a97011a00aba7"
2237+
integrity sha512-c1zEr96MjakLYus/wPnuWDo1/zErfdU9rNsIGmE+NV71nx88FG9Ttgo5dqorXTu/LImX2f63WBP986gJkMPNbA==
22382238
dependencies:
22392239
"@types/prop-types" "*"
22402240
"@types/scheduler" "*"
@@ -2283,7 +2283,7 @@
22832283
dependencies:
22842284
axios "^0.27.2"
22852285

2286-
"@usecapsule/web-sdk@^0.29.4":
2286+
"@usecapsule/web-sdk@0.29.4":
22872287
version "0.29.4"
22882288
resolved "https://registry.yarnpkg.com/@usecapsule/web-sdk/-/web-sdk-0.29.4.tgz#17e5e2604f97d59ccd2f4ba69b7b99a021f3dadd"
22892289
integrity sha512-0V2rknVTVdrz7Gt3K8BvfYqz/yXFWgfscrHM5S4NfOBhVITYdg/Sd3naCROyNBrbXRpmOBUA23AlF+7jo/GkMA==

packages/demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@web3-onboard/arcana-auth": "^2.0.0",
3131
"@web3-onboard/bitget": "2.0.1",
3232
"@web3-onboard/blocto": "2.0.0",
33-
"@web3-onboard/capsule": "2.0.0",
33+
"@web3-onboard/capsule": "2.0.1",
3434
"@web3-onboard/cede-store": "^2.2.0",
3535
"@web3-onboard/coinbase": "^2.2.6",
3636
"@web3-onboard/core": "^2.21.2",
@@ -59,7 +59,7 @@
5959
"@web3-onboard/trust": "^2.0.3",
6060
"@web3-onboard/uauth": "^2.1.2",
6161
"@web3-onboard/venly": "^2.0.0",
62-
"@web3-onboard/walletconnect": "^2.5.1",
62+
"@web3-onboard/walletconnect": "^2.5.2",
6363
"@web3-onboard/web3auth": "^2.2.2",
6464
"@web3-onboard/xdefi": "^2.0.5",
6565
"@web3-onboard/zeal": "^2.0.3",

packages/demo/src/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
})
211211
const capsule = capsuleModule({
212212
environment: Environment.DEVELOPMENT,
213-
apiKey: 'ec45efe699969c2b909fdb271f9a3aa0'
213+
apiKey: '992bbd9146d5de8ad0419f141d9a7ca7'
214214
})
215215
216216
const onboard = Onboard({

packages/walletconnect/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/walletconnect",
3-
"version": "2.5.1",
3+
"version": "2.5.2",
44
"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.",
55
"keywords": [
66
"Ethereum",
@@ -59,8 +59,7 @@
5959
"@walletconnect/types": "^2.9.0"
6060
},
6161
"dependencies": {
62-
"@walletconnect/ethereum-provider": "^2.10.5",
63-
"@walletconnect/modal": "2.6.2",
62+
"@walletconnect/ethereum-provider": "^2.10.6",
6463
"@web3-onboard/common": "^2.3.3",
6564
"joi": "17.9.1",
6665
"rxjs": "^7.5.2"

yarn.lock

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5098,7 +5098,7 @@
50985098
dependencies:
50995099
axios "^0.27.2"
51005100

5101-
"@usecapsule/web-sdk@^0.29.4":
5101+
"@usecapsule/web-sdk@0.29.4":
51025102
version "0.29.4"
51035103
resolved "https://registry.yarnpkg.com/@usecapsule/web-sdk/-/web-sdk-0.29.4.tgz#17e5e2604f97d59ccd2f4ba69b7b99a021f3dadd"
51045104
integrity sha512-0V2rknVTVdrz7Gt3K8BvfYqz/yXFWgfscrHM5S4NfOBhVITYdg/Sd3naCROyNBrbXRpmOBUA23AlF+7jo/GkMA==
@@ -5368,10 +5368,10 @@
53685368
lodash.isequal "4.5.0"
53695369
uint8arrays "^3.1.0"
53705370

5371-
"@walletconnect/core@2.10.5":
5372-
version "2.10.5"
5373-
resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.10.5.tgz#d61706c6459d9baaef05e83907df8cab82a03251"
5374-
integrity sha512-QnGHkA05KzJrtqExPqXm/TsstM1uTDI8tQT0x86/DuR6LdiYEntzSpVjnv7kKK6Mo9UxlXfud431dNRfOW5uJg==
5371+
"@walletconnect/core@2.10.6":
5372+
version "2.10.6"
5373+
resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.10.6.tgz#786b0d2e2045c210c917e29bfa0498bbc210be20"
5374+
integrity sha512-Z4vh4ZdfcoQjgPEOxeuF9HUZCVLtV3MgRbS/awLIj/omDrFnOwlBhxi5Syr4Y8muVGC0ocRetQYHae0/gX5crQ==
53755375
dependencies:
53765376
"@walletconnect/heartbeat" "1.2.1"
53775377
"@walletconnect/jsonrpc-provider" "1.0.13"
@@ -5384,8 +5384,8 @@
53845384
"@walletconnect/relay-auth" "^1.0.4"
53855385
"@walletconnect/safe-json" "^1.0.2"
53865386
"@walletconnect/time" "^1.0.2"
5387-
"@walletconnect/types" "2.10.5"
5388-
"@walletconnect/utils" "2.10.5"
5387+
"@walletconnect/types" "2.10.6"
5388+
"@walletconnect/utils" "2.10.6"
53895389
events "^3.3.0"
53905390
lodash.isequal "4.5.0"
53915391
uint8arrays "^3.1.0"
@@ -5503,20 +5503,20 @@
55035503
"@walletconnect/utils" "2.9.1"
55045504
events "^3.3.0"
55055505

5506-
"@walletconnect/ethereum-provider@^2.10.5":
5507-
version "2.10.5"
5508-
resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.10.5.tgz#a14ede16a751f115f8a0d050736155c8654835d5"
5509-
integrity sha512-Pihi2M03cRkWEiGetRUiO2A506YTj/Bbbxp+Ct7t5N5SccoeuhrzsEt30pA7I0XAiOnAeKp79OKmXHRhXfRmhg==
5506+
"@walletconnect/ethereum-provider@^2.10.6":
5507+
version "2.10.6"
5508+
resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.10.6.tgz#53720771cc2d6accd452916a853ac927f26acbaa"
5509+
integrity sha512-bBQ+yUfxLv8VxNttgNKY7nED35gSVayO/BnLHbNKvyV1gpvSCla5mWB9MsXuQs70MK0g+/qtgRVSrOtdSubaNQ==
55105510
dependencies:
55115511
"@walletconnect/jsonrpc-http-connection" "^1.0.7"
55125512
"@walletconnect/jsonrpc-provider" "^1.0.13"
55135513
"@walletconnect/jsonrpc-types" "^1.0.3"
55145514
"@walletconnect/jsonrpc-utils" "^1.0.8"
55155515
"@walletconnect/modal" "^2.4.3"
5516-
"@walletconnect/sign-client" "2.10.5"
5517-
"@walletconnect/types" "2.10.5"
5518-
"@walletconnect/universal-provider" "2.10.5"
5519-
"@walletconnect/utils" "2.10.5"
5516+
"@walletconnect/sign-client" "2.10.6"
5517+
"@walletconnect/types" "2.10.6"
5518+
"@walletconnect/universal-provider" "2.10.6"
5519+
"@walletconnect/utils" "2.10.6"
55205520
events "^3.3.0"
55215521

55225522
"@walletconnect/events@^1.0.1":
@@ -5862,19 +5862,19 @@
58625862
"@walletconnect/utils" "2.10.2"
58635863
events "^3.3.0"
58645864

5865-
"@walletconnect/sign-client@2.10.5":
5866-
version "2.10.5"
5867-
resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.10.5.tgz#f97f0fed544179a3303941f3bebd13ede3a736ed"
5868-
integrity sha512-HEYsoeGC6fGplQy0NIZSRNHgOwZwQ892UWG1Ahkcasf2R35QaBgnTVQkSCisl1PAAOKXZG7yB1YDoAAZBF+g5Q==
5865+
"@walletconnect/sign-client@2.10.6":
5866+
version "2.10.6"
5867+
resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.10.6.tgz#722d2c2844565e2826dce6a6d3a36c9b3ca1ea91"
5868+
integrity sha512-EvUWjaZBQu2yKnH5/5F2qzbuiIuUN9ZgrNKgvXkw5z1Dq5RJCks0S9/MFlKH/ZSGqXnLl7uAzBXtoX4sMgbCMA==
58695869
dependencies:
5870-
"@walletconnect/core" "2.10.5"
5870+
"@walletconnect/core" "2.10.6"
58715871
"@walletconnect/events" "^1.0.1"
58725872
"@walletconnect/heartbeat" "1.2.1"
58735873
"@walletconnect/jsonrpc-utils" "1.0.8"
58745874
"@walletconnect/logger" "^2.0.1"
58755875
"@walletconnect/time" "^1.0.2"
5876-
"@walletconnect/types" "2.10.5"
5877-
"@walletconnect/utils" "2.10.5"
5876+
"@walletconnect/types" "2.10.6"
5877+
"@walletconnect/utils" "2.10.6"
58785878
events "^3.3.0"
58795879

58805880
"@walletconnect/sign-client@2.9.1":
@@ -5920,10 +5920,10 @@
59205920
"@walletconnect/logger" "^2.0.1"
59215921
events "^3.3.0"
59225922

5923-
"@walletconnect/types@2.10.5":
5924-
version "2.10.5"
5925-
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.10.5.tgz#bf4e692cf736b6e71423f96a106d7a96089245de"
5926-
integrity sha512-N8xaN7/Kob93rKxKDaT6oy6symgIkAwyLqq0/dLJEhXfv7S/gyNvDka4SosjVVTc4oTvE1+OmxNIR8pB1DuwJw==
5923+
"@walletconnect/types@2.10.6":
5924+
version "2.10.6"
5925+
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.10.6.tgz#d9920ed4fd0113e0addbda8e7e73a5176a3163fd"
5926+
integrity sha512-WgHfiTG1yakmxheaBRiXhUdEmgxwrvsAdOIWaMf/spvrzVKYh6sHI3oyEEky5qj5jjiMiyQBeB57QamzCotbcQ==
59275927
dependencies:
59285928
"@walletconnect/events" "^1.0.1"
59295929
"@walletconnect/heartbeat" "1.2.1"
@@ -6000,19 +6000,19 @@
60006000
"@walletconnect/utils" "2.10.2"
60016001
events "^3.3.0"
60026002

6003-
"@walletconnect/universal-provider@2.10.5":
6004-
version "2.10.5"
6005-
resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.10.5.tgz#b08965a9306a30775796cc0cc384f2dfc9fde512"
6006-
integrity sha512-sQOvjrGF6za7+6zv7KI9eQz2gzRbS19j7U1z+JwIWdn4VBJmriaTjVHDz/R1liwKcS4sUiUthDC6WmQvjukjZQ==
6003+
"@walletconnect/universal-provider@2.10.6":
6004+
version "2.10.6"
6005+
resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.10.6.tgz#1a6c42517581f11ce275474bc70d0eb4f1044525"
6006+
integrity sha512-CEivusqqoD31BhCTKp08DnrccfGjwD9MFjZs5BNRorDteRFE8zVm9LmP6DSiNJCw82ZajGlZThggLQ/BAATfwA==
60076007
dependencies:
60086008
"@walletconnect/jsonrpc-http-connection" "^1.0.7"
60096009
"@walletconnect/jsonrpc-provider" "1.0.13"
60106010
"@walletconnect/jsonrpc-types" "^1.0.2"
60116011
"@walletconnect/jsonrpc-utils" "^1.0.7"
60126012
"@walletconnect/logger" "^2.0.1"
6013-
"@walletconnect/sign-client" "2.10.5"
6014-
"@walletconnect/types" "2.10.5"
6015-
"@walletconnect/utils" "2.10.5"
6013+
"@walletconnect/sign-client" "2.10.6"
6014+
"@walletconnect/types" "2.10.6"
6015+
"@walletconnect/utils" "2.10.6"
60166016
events "^3.3.0"
60176017

60186018
"@walletconnect/universal-provider@2.9.1":
@@ -6050,10 +6050,10 @@
60506050
query-string "7.1.3"
60516051
uint8arrays "^3.1.0"
60526052

6053-
"@walletconnect/utils@2.10.5":
6054-
version "2.10.5"
6055-
resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.10.5.tgz#8c8ef90c9e2b59886aae002ab8cbbdb35da1df9a"
6056-
integrity sha512-3yeclD9/AlPEIHBqBVzrHUO/KRAEIXVK0ViIQ5oUH+zT3TpdsDGDiW1Z0TsAQ1EiYoiiz8dOQzd80a3eZVwnrg==
6053+
"@walletconnect/utils@2.10.6":
6054+
version "2.10.6"
6055+
resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.10.6.tgz#749b37d14e291e346862e7027ec7548463350226"
6056+
integrity sha512-oRsWWhN2+hi3aiDXrQEOfysz6FHQJGXLsNQPVt+WIBJplO6Szmdau9dbleD88u1iiT4GKPqE0R9FOYvvPm1H/w==
60576057
dependencies:
60586058
"@stablelib/chacha20poly1305" "1.0.1"
60596059
"@stablelib/hkdf" "1.0.1"
@@ -6063,7 +6063,7 @@
60636063
"@walletconnect/relay-api" "^1.0.9"
60646064
"@walletconnect/safe-json" "^1.0.2"
60656065
"@walletconnect/time" "^1.0.2"
6066-
"@walletconnect/types" "2.10.5"
6066+
"@walletconnect/types" "2.10.6"
60676067
"@walletconnect/window-getters" "^1.0.1"
60686068
"@walletconnect/window-metadata" "^1.0.1"
60696069
detect-browser "5.3.0"

0 commit comments

Comments
 (0)