Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 4 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@tailwindcss/typography": "^0.5.9",
"@types/animejs": "^3.1.7",
"@types/react": "^18.0.37",
"@vitejs/plugin-react": "^4.2.1",
"assert": "^2.0.0",
"autoprefixer": "^10.4.14",
"browserify-zlib": "^0.2.0",
Expand Down Expand Up @@ -54,7 +55,8 @@
"@web3-onboard/arcana-auth": "^2.0.0",
"@web3-onboard/bitget": "^2.0.0",
"@web3-onboard/blocto": "^2.0.0",
"@web3-onboard/capsule": "^2.0.0",
"@web3-onboard/capsule": "^2.0.1",
"@web3-onboard/cede-store": "^2.2.0",
"@web3-onboard/coinbase": "^2.2.5",
"@web3-onboard/core": "^2.21.2",
"@web3-onboard/dcent": "^2.2.7",
Expand Down Expand Up @@ -82,7 +84,7 @@
"@web3-onboard/trust": "^2.0.4",
"@web3-onboard/uauth": "^2.1.1",
"@web3-onboard/venly": "^2.0.0",
"@web3-onboard/walletconnect": "^2.5.1",
"@web3-onboard/walletconnect": "^2.5.2",
"@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 @@ -130,6 +130,7 @@ const intiOnboard = async (theme) => {

const capsule = capsuleModule({
environment: Environment.DEVELOPMENT,
apiKey: '992bbd9146d5de8ad0419f141d9a7ca7'
})

return Onboard({
Expand Down Expand Up @@ -162,7 +163,7 @@ const intiOnboard = async (theme) => {
frame,
infinityWallet,
blocto,
capsule
// capsule
// venly
],
chains: [
Expand Down
6 changes: 4 additions & 2 deletions docs/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import { sveltekit } from '@sveltejs/kit/vite'
import icons from 'unplugin-icons/vite'
import kitDocs from '@svelteness/kit-docs/node'
import nodePolyfills from 'rollup-plugin-polyfill-node'
import react from '@vitejs/plugin-react';

/** @type {import('vite').UserConfig} */
const config = {
plugins: [icons({ compiler: 'svelte' }), kitDocs(), sveltekit()],
plugins: [react(), icons({ compiler: 'svelte' }), kitDocs(), sveltekit()],
resolve: {
alias: {
crypto: 'crypto-browserify',
Expand All @@ -25,7 +26,8 @@ const config = {
}
},
define: {
'import.meta.env.VERCEL': JSON.stringify(process.env.VERCEL)
'import.meta.env.VERCEL': JSON.stringify(process.env.VERCEL),
'process.env.NODE_DEBUG': JSON.stringify('')
},
optimizeDeps: {
exclude: ['@ethersproject/hash', 'wrtc', 'http', 'react/jsx-runtime'],
Expand Down
883 changes: 861 additions & 22 deletions docs/yarn.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-onboard-monorepo",
"version": "2.24.17",
"version": "2.24.18",
"private": true,
"workspaces": {
"packages": [
Expand Down
10 changes: 5 additions & 5 deletions packages/capsule/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/capsule",
"version": "2.0.0",
"version": "2.0.1",
"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.",
"module": "dist/index.js",
"browser": "dist/index.js",
Expand Down Expand Up @@ -56,17 +56,17 @@
"Capsule"
],
"dependencies": {
"@usecapsule/web-sdk": "^0.29.4",
"@usecapsule/web-sdk": "0.29.4",
"@wagmi/chains": "^1.8.0",
"@web3-onboard/common": "^2.3.3",
"react-dom" : "^18.2.0"
"react-dom": "^18.2.0"
},
"peerDependencies": {
"react": ">=18.2"
},
"devDependencies": {
"typescript": "^5.2.2",
"@types/react": "^18.0.2",
"react": "^18.2.0"
"react": "^18.2.0",
"typescript": "^5.2.2"
}
}
6 changes: 4 additions & 2 deletions packages/capsule/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AppMetadata, WalletInit } from '@web3-onboard/common'
import type { AppMetadata, EIP1193Provider, WalletInit } from '@web3-onboard/common'
import type { CapsuleInitOptions } from './types'
import type { Chain } from '@wagmi/chains'
import type { Chain as BlocknativeChain } from '@web3-onboard/common'
Expand Down Expand Up @@ -89,7 +89,9 @@ function capsule(options: CapsuleInitOptions): WalletInit {
chainsMap
)
}
const provider = new CapsuleEIP1193Provider(providerOpts)
const provider: EIP1193Provider = new CapsuleEIP1193Provider(providerOpts)

provider.disconnect = () => { capsule.logout(); };

return {
instance: capsule,
Expand Down
8 changes: 4 additions & 4 deletions packages/capsule/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2232,9 +2232,9 @@
integrity sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==

"@types/react@^18.0.2":
version "18.2.39"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.39.tgz#744bee99e053ad61fe74eb8b897f3ab5b19a7e25"
integrity sha512-Oiw+ppED6IremMInLV4HXGbfbG6GyziY3kqAwJYOR0PNbkYDmLWQA3a95EhdSmamsvbkJN96ZNN+YD+fGjzSBA==
version "18.2.42"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.42.tgz#6f6b11a904f6d96dda3c2920328a97011a00aba7"
integrity sha512-c1zEr96MjakLYus/wPnuWDo1/zErfdU9rNsIGmE+NV71nx88FG9Ttgo5dqorXTu/LImX2f63WBP986gJkMPNbA==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
Expand Down Expand Up @@ -2283,7 +2283,7 @@
dependencies:
axios "^0.27.2"

"@usecapsule/web-sdk@^0.29.4":
"@usecapsule/web-sdk@0.29.4":
version "0.29.4"
resolved "https://registry.yarnpkg.com/@usecapsule/web-sdk/-/web-sdk-0.29.4.tgz#17e5e2604f97d59ccd2f4ba69b7b99a021f3dadd"
integrity sha512-0V2rknVTVdrz7Gt3K8BvfYqz/yXFWgfscrHM5S4NfOBhVITYdg/Sd3naCROyNBrbXRpmOBUA23AlF+7jo/GkMA==
Expand Down
4 changes: 2 additions & 2 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@web3-onboard/arcana-auth": "^2.0.0",
"@web3-onboard/bitget": "2.0.1",
"@web3-onboard/blocto": "2.0.0",
"@web3-onboard/capsule": "2.0.0",
"@web3-onboard/capsule": "2.0.1",
"@web3-onboard/cede-store": "^2.2.0",
"@web3-onboard/coinbase": "^2.2.6",
"@web3-onboard/core": "^2.21.2",
Expand Down Expand Up @@ -59,7 +59,7 @@
"@web3-onboard/trust": "^2.0.3",
"@web3-onboard/uauth": "^2.1.2",
"@web3-onboard/venly": "^2.0.0",
"@web3-onboard/walletconnect": "^2.5.1",
"@web3-onboard/walletconnect": "^2.5.2",
"@web3-onboard/web3auth": "^2.2.2",
"@web3-onboard/xdefi": "^2.0.5",
"@web3-onboard/zeal": "^2.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/demo/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
})
const capsule = capsuleModule({
environment: Environment.DEVELOPMENT,
apiKey: 'ec45efe699969c2b909fdb271f9a3aa0'
apiKey: '992bbd9146d5de8ad0419f141d9a7ca7'
})

const onboard = Onboard({
Expand Down
5 changes: 2 additions & 3 deletions packages/walletconnect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/walletconnect",
"version": "2.5.1",
"version": "2.5.2",
"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.",
"keywords": [
"Ethereum",
Expand Down Expand Up @@ -59,8 +59,7 @@
"@walletconnect/types": "^2.9.0"
},
"dependencies": {
"@walletconnect/ethereum-provider": "^2.10.5",
"@walletconnect/modal": "2.6.2",
"@walletconnect/ethereum-provider": "^2.10.6",
"@web3-onboard/common": "^2.3.3",
"joi": "17.9.1",
"rxjs": "^7.5.2"
Expand Down
76 changes: 38 additions & 38 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5098,7 +5098,7 @@
dependencies:
axios "^0.27.2"

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

"@walletconnect/core@2.10.5":
version "2.10.5"
resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.10.5.tgz#d61706c6459d9baaef05e83907df8cab82a03251"
integrity sha512-QnGHkA05KzJrtqExPqXm/TsstM1uTDI8tQT0x86/DuR6LdiYEntzSpVjnv7kKK6Mo9UxlXfud431dNRfOW5uJg==
"@walletconnect/core@2.10.6":
version "2.10.6"
resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.10.6.tgz#786b0d2e2045c210c917e29bfa0498bbc210be20"
integrity sha512-Z4vh4ZdfcoQjgPEOxeuF9HUZCVLtV3MgRbS/awLIj/omDrFnOwlBhxi5Syr4Y8muVGC0ocRetQYHae0/gX5crQ==
dependencies:
"@walletconnect/heartbeat" "1.2.1"
"@walletconnect/jsonrpc-provider" "1.0.13"
Expand All @@ -5384,8 +5384,8 @@
"@walletconnect/relay-auth" "^1.0.4"
"@walletconnect/safe-json" "^1.0.2"
"@walletconnect/time" "^1.0.2"
"@walletconnect/types" "2.10.5"
"@walletconnect/utils" "2.10.5"
"@walletconnect/types" "2.10.6"
"@walletconnect/utils" "2.10.6"
events "^3.3.0"
lodash.isequal "4.5.0"
uint8arrays "^3.1.0"
Expand Down Expand Up @@ -5503,20 +5503,20 @@
"@walletconnect/utils" "2.9.1"
events "^3.3.0"

"@walletconnect/ethereum-provider@^2.10.5":
version "2.10.5"
resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.10.5.tgz#a14ede16a751f115f8a0d050736155c8654835d5"
integrity sha512-Pihi2M03cRkWEiGetRUiO2A506YTj/Bbbxp+Ct7t5N5SccoeuhrzsEt30pA7I0XAiOnAeKp79OKmXHRhXfRmhg==
"@walletconnect/ethereum-provider@^2.10.6":
version "2.10.6"
resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.10.6.tgz#53720771cc2d6accd452916a853ac927f26acbaa"
integrity sha512-bBQ+yUfxLv8VxNttgNKY7nED35gSVayO/BnLHbNKvyV1gpvSCla5mWB9MsXuQs70MK0g+/qtgRVSrOtdSubaNQ==
dependencies:
"@walletconnect/jsonrpc-http-connection" "^1.0.7"
"@walletconnect/jsonrpc-provider" "^1.0.13"
"@walletconnect/jsonrpc-types" "^1.0.3"
"@walletconnect/jsonrpc-utils" "^1.0.8"
"@walletconnect/modal" "^2.4.3"
"@walletconnect/sign-client" "2.10.5"
"@walletconnect/types" "2.10.5"
"@walletconnect/universal-provider" "2.10.5"
"@walletconnect/utils" "2.10.5"
"@walletconnect/sign-client" "2.10.6"
"@walletconnect/types" "2.10.6"
"@walletconnect/universal-provider" "2.10.6"
"@walletconnect/utils" "2.10.6"
events "^3.3.0"

"@walletconnect/events@^1.0.1":
Expand Down Expand Up @@ -5862,19 +5862,19 @@
"@walletconnect/utils" "2.10.2"
events "^3.3.0"

"@walletconnect/sign-client@2.10.5":
version "2.10.5"
resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.10.5.tgz#f97f0fed544179a3303941f3bebd13ede3a736ed"
integrity sha512-HEYsoeGC6fGplQy0NIZSRNHgOwZwQ892UWG1Ahkcasf2R35QaBgnTVQkSCisl1PAAOKXZG7yB1YDoAAZBF+g5Q==
"@walletconnect/sign-client@2.10.6":
version "2.10.6"
resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.10.6.tgz#722d2c2844565e2826dce6a6d3a36c9b3ca1ea91"
integrity sha512-EvUWjaZBQu2yKnH5/5F2qzbuiIuUN9ZgrNKgvXkw5z1Dq5RJCks0S9/MFlKH/ZSGqXnLl7uAzBXtoX4sMgbCMA==
dependencies:
"@walletconnect/core" "2.10.5"
"@walletconnect/core" "2.10.6"
"@walletconnect/events" "^1.0.1"
"@walletconnect/heartbeat" "1.2.1"
"@walletconnect/jsonrpc-utils" "1.0.8"
"@walletconnect/logger" "^2.0.1"
"@walletconnect/time" "^1.0.2"
"@walletconnect/types" "2.10.5"
"@walletconnect/utils" "2.10.5"
"@walletconnect/types" "2.10.6"
"@walletconnect/utils" "2.10.6"
events "^3.3.0"

"@walletconnect/sign-client@2.9.1":
Expand Down Expand Up @@ -5920,10 +5920,10 @@
"@walletconnect/logger" "^2.0.1"
events "^3.3.0"

"@walletconnect/types@2.10.5":
version "2.10.5"
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.10.5.tgz#bf4e692cf736b6e71423f96a106d7a96089245de"
integrity sha512-N8xaN7/Kob93rKxKDaT6oy6symgIkAwyLqq0/dLJEhXfv7S/gyNvDka4SosjVVTc4oTvE1+OmxNIR8pB1DuwJw==
"@walletconnect/types@2.10.6":
version "2.10.6"
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.10.6.tgz#d9920ed4fd0113e0addbda8e7e73a5176a3163fd"
integrity sha512-WgHfiTG1yakmxheaBRiXhUdEmgxwrvsAdOIWaMf/spvrzVKYh6sHI3oyEEky5qj5jjiMiyQBeB57QamzCotbcQ==
dependencies:
"@walletconnect/events" "^1.0.1"
"@walletconnect/heartbeat" "1.2.1"
Expand Down Expand Up @@ -6000,19 +6000,19 @@
"@walletconnect/utils" "2.10.2"
events "^3.3.0"

"@walletconnect/universal-provider@2.10.5":
version "2.10.5"
resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.10.5.tgz#b08965a9306a30775796cc0cc384f2dfc9fde512"
integrity sha512-sQOvjrGF6za7+6zv7KI9eQz2gzRbS19j7U1z+JwIWdn4VBJmriaTjVHDz/R1liwKcS4sUiUthDC6WmQvjukjZQ==
"@walletconnect/universal-provider@2.10.6":
version "2.10.6"
resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.10.6.tgz#1a6c42517581f11ce275474bc70d0eb4f1044525"
integrity sha512-CEivusqqoD31BhCTKp08DnrccfGjwD9MFjZs5BNRorDteRFE8zVm9LmP6DSiNJCw82ZajGlZThggLQ/BAATfwA==
dependencies:
"@walletconnect/jsonrpc-http-connection" "^1.0.7"
"@walletconnect/jsonrpc-provider" "1.0.13"
"@walletconnect/jsonrpc-types" "^1.0.2"
"@walletconnect/jsonrpc-utils" "^1.0.7"
"@walletconnect/logger" "^2.0.1"
"@walletconnect/sign-client" "2.10.5"
"@walletconnect/types" "2.10.5"
"@walletconnect/utils" "2.10.5"
"@walletconnect/sign-client" "2.10.6"
"@walletconnect/types" "2.10.6"
"@walletconnect/utils" "2.10.6"
events "^3.3.0"

"@walletconnect/universal-provider@2.9.1":
Expand Down Expand Up @@ -6050,10 +6050,10 @@
query-string "7.1.3"
uint8arrays "^3.1.0"

"@walletconnect/utils@2.10.5":
version "2.10.5"
resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.10.5.tgz#8c8ef90c9e2b59886aae002ab8cbbdb35da1df9a"
integrity sha512-3yeclD9/AlPEIHBqBVzrHUO/KRAEIXVK0ViIQ5oUH+zT3TpdsDGDiW1Z0TsAQ1EiYoiiz8dOQzd80a3eZVwnrg==
"@walletconnect/utils@2.10.6":
version "2.10.6"
resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.10.6.tgz#749b37d14e291e346862e7027ec7548463350226"
integrity sha512-oRsWWhN2+hi3aiDXrQEOfysz6FHQJGXLsNQPVt+WIBJplO6Szmdau9dbleD88u1iiT4GKPqE0R9FOYvvPm1H/w==
dependencies:
"@stablelib/chacha20poly1305" "1.0.1"
"@stablelib/hkdf" "1.0.1"
Expand All @@ -6063,7 +6063,7 @@
"@walletconnect/relay-api" "^1.0.9"
"@walletconnect/safe-json" "^1.0.2"
"@walletconnect/time" "^1.0.2"
"@walletconnect/types" "2.10.5"
"@walletconnect/types" "2.10.6"
"@walletconnect/window-getters" "^1.0.1"
"@walletconnect/window-metadata" "^1.0.1"
detect-browser "5.3.0"
Expand Down