From 75b12aff0c252d08186fca0442497f45baa91f5e Mon Sep 17 00:00:00 2001 From: metamaskteam003 Date: Fri, 27 Dec 2024 12:58:20 -0500 Subject: [PATCH 1/9] docs: add zh translation (#2296) Co-authored-by: Adam Carpenter --- packages/core/src/i18n/zh.json | 121 +++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 packages/core/src/i18n/zh.json diff --git a/packages/core/src/i18n/zh.json b/packages/core/src/i18n/zh.json new file mode 100644 index 000000000..8183b962e --- /dev/null +++ b/packages/core/src/i18n/zh.json @@ -0,0 +1,121 @@ +{ + "connect": { + "selectingWallet": { + "header": "可用钱包", + "sidebar": { + "heading": "", + "subheading": "连接您的钱包", + "paragraph": "连接钱包就像是“登录”到Web3。请选择一个钱包开始使用。", + "IDontHaveAWallet": "我没有钱包" + }, + "recommendedWalletsPart1": "{app}仅支持", + "recommendedWalletsPart2": "在该平台上。请使用或安装受支持的钱包以继续。", + "installWallet": "您未安装{app}支持的任何钱包,请使用受支持的钱包。", + "agreement": { + "agree": "我同意", + "terms": "条款与条件", + "and": "和", + "privacy": "隐私政策" + }, + "whyDontISeeMyWallet": "为什么我看不到我的钱包?", + "learnMore": "点击这里了解更多" + }, + "connectingWallet": { + "header": "{connectionRejected, select, false {正在连接{wallet}...} other {连接被拒绝}}", + "sidebar": { + "subheading": "批准连接", + "paragraph": "请在您的钱包中批准连接并授权访问以继续。" + }, + "mainText": "正在连接...", + "paragraph": "请确保选择所有您想授予访问权限的账户。", + "previousConnection": "{wallet}已有待处理的连接请求,请打开{wallet}应用登录并连接。", + "rejectedText": "连接被拒绝!", + "rejectedCTA": "点击这里重试", + "primaryButton": "返回钱包" + }, + "connectedWallet": { + "header": "连接成功", + "sidebar": { + "subheading": "连接成功!", + "paragraph": "您的钱包现已连接到{app}" + }, + "mainText": "已连接" + } + }, + "modals": { + "actionRequired": { + "heading": "{wallet}中需要操作", + "paragraph": "请在钱包中切换活跃账户。", + "linkText": "了解更多。", + "buttonText": "好的" + }, + "switchChain": { + "heading": "切换网络", + "paragraph1": "{app}需要您将钱包切换到{nextNetworkName}网络以继续。", + "paragraph2": "*某些钱包可能不支持更换网络。如果您无法在钱包中切换网络,可以考虑切换到其他钱包。" + }, + "confirmDisconnectAll": { + "heading": "断开所有钱包连接", + "description": "您确定要断开所有钱包连接吗?", + "confirm": "确认", + "cancel": "取消" + }, + "confirmTransactionProtection": { + "heading": "启用交易保护", + "description": "保护RPC端点以防止您的交易被抢先交易和三明治攻击。", + "link": "了解更多", + "enable": "启用", + "dismiss": "忽略" + } + }, + "accountCenter": { + "connectAnotherWallet": "连接另一个钱包", + "disconnectAllWallets": "断开所有钱包连接", + "currentNetwork": "当前网络", + "enableTransactionProtection": "启用交易保护", + "appInfo": "应用信息", + "learnMore": "了解更多", + "gettingStartedGuide": "入门指南", + "smartContracts": "智能合约", + "explore": "探索", + "poweredBy": "技术支持", + "addAccount": "添加账户", + "setPrimaryAccount": "设为主要账户", + "disconnectWallet": "断开钱包连接", + "copyAddress": "复制钱包地址" + }, + "notify": { + "transaction": { + "txRequest": "您的交易等待确认", + "nsfFail": "您的资金不足,无法进行此交易", + "txUnderpriced": "您的交易Gas费过低,请尝试设置更高的Gas费", + "txRepeat": "这可能是重复交易", + "txAwaitingApproval": "您有一个待确认的交易", + "txConfirmReminder": "请确认交易以继续", + "txSendFail": "您已拒绝该交易", + "txSent": "您的交易已发送到网络", + "txStallPending": "您的交易在发送前被卡住了,请重试", + "txStuck": "由于nonce差异,您的交易被卡住了", + "txPool": "您的交易已开始", + "txStallConfirmed": "您的交易未确认且已暂停", + "txSpeedUp": "您的交易已加速", + "txCancel": "您的交易正在取消", + "txFailed": "您的交易失败了", + "txConfirmed": "您的交易成功了", + "txError": "出了点问题,请重试", + "txReplaceError": "替换交易时出错,请重试" + }, + "watched": { + "txPool": "您的账户正在{verb}{formattedValue}{asset}{preposition}{counterpartyShortened}", + "txSpeedUp": "关于{formattedValue}{asset}{preposition}{counterpartyShortened}的交易已加速", + "txCancel": "关于{formattedValue}{asset}{preposition}{counterpartyShortened}的交易已取消", + "txConfirmed": "您的账户已成功{verb}{formattedValue}{asset}{preposition}{counterpartyShortened}", + "txFailed": "您的账户未能{verb}{formattedValue}{asset}{preposition}{counterpartyShortened}", + "txStuck": "由于nonce差异,您的交易被卡住了" + }, + "time": { + "minutes": "分钟", + "seconds": "秒" + } + } +} From 6eb075442e318fca50477536ec0f621636f1a9bb Mon Sep 17 00:00:00 2001 From: Vincent Shadbolt Date: Fri, 27 Dec 2024 09:58:49 -0800 Subject: [PATCH 2/9] Updated uauthOptions (#2308) --- docs/src/lib/services/onboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/lib/services/onboard.js b/docs/src/lib/services/onboard.js index 189b8908b..feec8b7d8 100644 --- a/docs/src/lib/services/onboard.js +++ b/docs/src/lib/services/onboard.js @@ -118,8 +118,8 @@ const intiOnboard = async theme => { const finoaconnect = finoaConnectModule(finoaConnectOptions) const uauthOptions = { - clientID: 'a25c3a65-a1f2-46cc-a515-a46fe7acb78c', - redirectUri: 'http://localhost:8080/', + clientID: "a7371c4a-a61e-4fac-af48-4471c2e69e93", + redirectUri: "https://onboard.blocknative.com", scope: 'openid wallet email:optional humanity_check:optional profile:optional social:optional', walletConnectProjectId: 'f6bd6e2911b56f5ac3bc8b2d0e2d7ad5' } From 3bb50b09cbdf2295820cb0f8b6583e0ac6bdc7ce Mon Sep 17 00:00:00 2001 From: liottio Date: Sat, 28 Dec 2024 01:59:03 +0800 Subject: [PATCH 3/9] updated readme 'add support keplr wallet' (#2288) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 297ef2399..d8616cf04 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,7 @@ For full documentation, check out the README.md for each package or the [docs pa - [Frame](packages/frame/README.md) - [Frontier](packages/frontier/README.md) - [Infinity Wallet](packages/infinity-wallet/README.md) +- [Keplr](packages/keplr/README.md) - [Magic](packages/magic/README.md) - [MetaMask](packages/metamask/README.md) - [MEW-Wallet](packages/mew-wallet/README.md) From dd18c612af35d3fed3207c1bd7e7e18333aeac52 Mon Sep 17 00:00:00 2001 From: Jordy McNab Date: Fri, 27 Dec 2024 11:59:46 -0600 Subject: [PATCH 4/9] feat(deps): upgrade Capsule SDK dependencies (#2315) * chore: bump capsule version and update readme * chore: fix versioning to alpha tag --- docs/package.json | 2 +- packages/capsule/README.md | 90 ++++---- packages/capsule/package.json | 6 +- packages/demo/package.json | 2 +- packages/demo/src/App.svelte | 18 +- yarn.lock | 386 +++++++++++++++++++++++----------- 6 files changed, 325 insertions(+), 179 deletions(-) diff --git a/docs/package.json b/docs/package.json index 8efe65437..dc922d73d 100644 --- a/docs/package.json +++ b/docs/package.json @@ -54,7 +54,7 @@ "@safe-global/safe-apps-sdk": "^8.1.0", "@web3-onboard/bitget": "^2.1.1", "@web3-onboard/blocto": "^2.1.1", - "@web3-onboard/capsule": "^2.3.0", + "@web3-onboard/capsule": "^2.4.0-alpha.1", "@web3-onboard/cede-store": "^2.3.1", "@web3-onboard/coinbase": "^2.3.1", "@web3-onboard/core": "^2.23.0", diff --git a/packages/capsule/README.md b/packages/capsule/README.md index 3bc702dbb..3e551264d 100644 --- a/packages/capsule/README.md +++ b/packages/capsule/README.md @@ -1,77 +1,87 @@ # @web3-onboard/capsule -## Wallet module for connecting Capsule Embedded Wallets to web3-onboard +## Wallet module for connecting Capsule Embedded Wallets to Web3-Onboard -[Capsule](https://usecapsule.com/) is a signing solution that you can use to create secure embedded MPC wallets to onboard your users with just an email or social login. Capsule wallets are recoverable, portable, and permissioned across different crypto applications, so your users don't need to create different signers or contract accounts for every app they use +[Capsule](https://usecapsule.com/) is a signing solution that enables you to create secure embedded MPC wallets, allowing users to onboard with just an email or social login. Capsule wallets are recoverable, portable, and permissioned across different crypto applications, eliminating the need for users to create separate signers or contract accounts for each app. -If you'd like to use Capsule's full functionality within the web3onboard package without any extra integration steps, you can also [request a Capsule API Key](https://usecapsule.com/api) and use it with this package. +### Getting Started -To learn more, check out the [Capsule Developer Docs](https://docs.usecapsule.com/) +1. Visit the [Capsule Developer Portal](https://developer.usecapsule.com) +2. Create a new project +3. Generate an API key for your project +4. Configure your project settings and environments -### Install +### Installation ```bash -yarn add @web3-onboard/capsule -# OR +# Using npm npm install @web3-onboard/capsule -# OR + +# Using yarn +yarn add @web3-onboard/capsule + +# Using pnpm pnpm install @web3-onboard/capsule + +# Using bun +bun add @web3-onboard/capsule ``` -## Options -For configuration options, check out the [Integration Guide Docs](https://docs.usecapsule.com/integration-guide) +## Configuration Options ```typescript -type CapsuleInitOptions = { - environment: string +export type CapsuleInitOptions = { + // The environment to connect to (PROD or BETA) + environment: Environment + + // Your Capsule API key from the developer portal apiKey: string - /** @optional capsule object opts */ - constructorOpts?: ConstructorOpts - appName: string - /** @optional capsule modal props */ - modalProps?: CapsuleModalProps + + // Optional: Additional constructor options for the Capsule client + constructorOpts?: Partial + + // Optional: Customization props for the Capsule modal + modalProps?: Partial + + // Optional: Custom function to load wallet icon + walletIcon?: () => Promise + + // Optional: Custom label for the wallet + walletLabel?: string } ``` -## Usage + +## Implementation + ```typescript import Onboard from '@web3-onboard/core' -import Capsule, { Environment } from '@usecapsule/react-sdk'; +import Capsule, { Environment } from '@usecapsule/react-sdk' import capsuleModule from '@web3-onboard/capsule' -// initialize capsule +// Initialize Capsule client const capsule = new Capsule( - Environment.BETA, // for production, use ENVIRONMENT.PROD - "YOUR_API_KEY" - { opts } // find these at docs.usecapsule.com -); + Environment.BETA, // Use Environment.PROD for production + 'YOUR_API_KEY' // Your API key from developer.usecapsule.com +) -// initialize the module with options +// Initialize the Capsule module const capsuleWallet = capsuleModule(capsule) +// Initialize web3-onboard const onboard = Onboard({ // ... other Onboard options wallets: [ - capsule + capsuleWallet //... other wallets ] }) +// Connect wallet const connectedWallets = await onboard.connectWallet() console.log(connectedWallets) ``` -## Build env settings (webpack config) +## Additional Resources -You may need to add the following rule to your webpack config module -in order to handle certain styling files (See the config for the -Blocknative demo app): - -```typescript -{ - test: /\.(woff(2)?|eot|ttf|otf|svg)$/, - type: 'asset/resource', - generator: { - filename: 'fonts/[name][ext][query]' - } -} -``` +- [Capsule Documentation](https://docs.usecapsule.com/) +- [Developer Portal](https://developer.usecapsule.com) diff --git a/packages/capsule/package.json b/packages/capsule/package.json index 98b2884f0..ebbaa4911 100644 --- a/packages/capsule/package.json +++ b/packages/capsule/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/capsule", - "version": "2.3.0", + "version": "2.4.0-alpha.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", @@ -57,8 +57,8 @@ ], "dependencies": { "@tanstack/react-query": "^5.29.0", - "@usecapsule/react-sdk": "^3.17.0", - "@usecapsule/wagmi-v2-integration": "^2.18.0", + "@usecapsule/react-sdk": "4.10.0", + "@usecapsule/wagmi-v2-integration": "3.10.0", "@wagmi/chains": "^1.8.0", "@web3-onboard/common": "^2.4.1", "react-dom": "^18.2.0", diff --git a/packages/demo/package.json b/packages/demo/package.json index 3833efa82..b95d32d94 100644 --- a/packages/demo/package.json +++ b/packages/demo/package.json @@ -32,7 +32,7 @@ "@web3-onboard/bitget": "2.1.1", "@web3-onboard/blocto": "^2.1.1", "@web3-onboard/bloom": "2.0.0", - "@web3-onboard/capsule": "^2.3.0", + "@web3-onboard/capsule": "^2.4.0-alpha.1", "@web3-onboard/cede-store": "^2.3.1", "@web3-onboard/core": "2.23.0", "@web3-onboard/coinbase": "^2.4.1", diff --git a/packages/demo/src/App.svelte b/packages/demo/src/App.svelte index 8de0fd864..44b1f04a2 100644 --- a/packages/demo/src/App.svelte +++ b/packages/demo/src/App.svelte @@ -41,8 +41,8 @@ import finoaConnectModule from '@web3-onboard/finoaconnect' import keplrModule from '@web3-onboard/keplr' import capsuleModule, { - Environment, - OAuthMethod + Environment as CapsuleEnvironment, + OAuthMethod as CapsuleOAuthMethods } from '@web3-onboard/capsule' import { recoverAddress, @@ -276,16 +276,16 @@ environment: 'staging' }) const capsule = capsuleModule({ - environment: Environment.DEVELOPMENT, + environment: CapsuleEnvironment.DEVELOPMENT, apiKey: '992bbd9146d5de8ad0419f141d9a7ca7', modalProps: { - oAuthMethods: [OAuthMethod.GOOGLE, OAuthMethod.TWITTER, OAuthMethod.APPLE,OAuthMethod.DISCORD] + appName: 'Capsule', + disableEmailLogin: false, + disablePhoneLogin: false, + oAuthMethods: Object.values(CapsuleOAuthMethods) }, - constructorOpts: { - portalBackgroundColor: '#5e5656', - portalPrimaryButtonColor: '#ff6700', - portalTextColor: '#ffffff' - } + + walletLabel: 'Capsule' }) const onboard = Onboard({ diff --git a/yarn.lock b/yarn.lock index 906588e6b..730ec11ef 100644 --- a/yarn.lock +++ b/yarn.lock @@ -711,33 +711,46 @@ "@metamask/safe-event-emitter" "^3.0.0" json-rpc-engine "^6.1.0" -"@celo/base@3.2.0": - version "3.2.0" - resolved "https://registry.yarnpkg.com/@celo/base/-/base-3.2.0.tgz#19dcff6a822abb1f6b57af8f9db35a4c673aee62" - integrity sha512-9wfZYiYv7dzt17a29fxU6sV7JssyXfpSQ9kPSpfOlsewPICXwfOMQ+25Jn6xZu20Vx9rmKebmLHiQyiuYEDOcQ== +"@celo/base@^6.0.1": + version "6.1.0" + resolved "https://registry.yarnpkg.com/@celo/base/-/base-6.1.0.tgz#58a7a7cfb5d47bc9e680fe2e0eee58c234cb570b" + integrity sha512-R6ko2QCfEU32akBsaSNsDYduktgwIKHcJ61SbR7EsXA1VE31/44Qh8kMzfgeahyk375DUCe3pJIKwx5zg1tFHg== -"@celo/utils@^3.2.0": - version "3.2.0" - resolved "https://registry.yarnpkg.com/@celo/utils/-/utils-3.2.0.tgz#1dc39f619d24c3974d306cad23db7cdf3f9d487e" - integrity sha512-Om1mTzwsdV6FVPvraafcJeRnzz7Xv/lyGmyZaoEZ9fErRadu9ZrOsuDQniYe+lD78DQ0NATxJL04WjhEKVkn+A== +"@celo/utils@^6.0.1": + version "6.0.1" + resolved "https://registry.yarnpkg.com/@celo/utils/-/utils-6.0.1.tgz#07dea921cb091af20f9c37250bd1ad24b9e7e151" + integrity sha512-X9iK4R4USSgHG87PxpLGHqgKL33bKtBiKZGgPwx4gMM7X+nwpB6Ify/YO1/I+mt9+NN9epPb8/kmYYoWOPYShw== dependencies: - "@celo/base" "3.2.0" - "@types/bn.js" "^5.1.0" + "@celo/base" "^6.0.1" + "@ethereumjs/util" "8.0.5" "@types/elliptic" "^6.4.9" - "@types/ethereumjs-util" "^5.2.0" - "@types/node" "^10.12.18" + "@types/node" "^18.7.16" bignumber.js "^9.0.0" elliptic "^6.5.4" - ethereumjs-util "^5.2.0" + ethereum-cryptography "1.2.0" + fp-ts "2.1.1" io-ts "2.0.1" - web3-eth-abi "1.3.6" - web3-utils "1.3.6" + rlp "^2.2.4" + web3-eth-abi "1.10.4" + web3-utils "1.10.4" + +"@chainsafe/as-sha256@^0.3.1": + version "0.3.1" + resolved "https://registry.yarnpkg.com/@chainsafe/as-sha256/-/as-sha256-0.3.1.tgz#3639df0e1435cab03f4d9870cc3ac079e57a6fc9" + integrity sha512-hldFFYuf49ed7DAakWVXSJODuq3pzJEguD8tQ7h+sGkM18vja+OFoJI9krnGmgzyuZC2ETX0NOIcCTy31v2Mtg== "@chainsafe/as-sha256@^0.4.1": version "0.4.1" resolved "https://registry.yarnpkg.com/@chainsafe/as-sha256/-/as-sha256-0.4.1.tgz#cfc0737e25f8c206767bdb6703e7943e5d44513e" integrity sha512-IqeeGwQihK6Y2EYLFofqs2eY2ep1I2MvQXHzOAI+5iQN51OZlUkrLgyAugu2x86xZewDk5xas7lNczkzFzF62w== +"@chainsafe/persistent-merkle-tree@^0.4.2": + version "0.4.2" + resolved "https://registry.yarnpkg.com/@chainsafe/persistent-merkle-tree/-/persistent-merkle-tree-0.4.2.tgz#4c9ee80cc57cd3be7208d98c40014ad38f36f7ff" + integrity sha512-lLO3ihKPngXLTus/L7WHKaw9PnNJWizlOF1H9NNzHP6Xvh82vzg9F2bzkXhYIFshMZ2gTCEz8tq6STe7r5NDfQ== + dependencies: + "@chainsafe/as-sha256" "^0.3.1" + "@chainsafe/persistent-merkle-tree@^0.6.1": version "0.6.1" resolved "https://registry.yarnpkg.com/@chainsafe/persistent-merkle-tree/-/persistent-merkle-tree-0.6.1.tgz#37bde25cf6cbe1660ad84311aa73157dc86ec7f2" @@ -746,6 +759,15 @@ "@chainsafe/as-sha256" "^0.4.1" "@noble/hashes" "^1.3.0" +"@chainsafe/ssz@0.9.4": + version "0.9.4" + resolved "https://registry.yarnpkg.com/@chainsafe/ssz/-/ssz-0.9.4.tgz#696a8db46d6975b600f8309ad3a12f7c0e310497" + integrity sha512-77Qtg2N1ayqs4Bg/wvnWfg5Bta7iy7IRh8XqXh7oNMeP2HBbBwx8m6yTpA8p0EHItWPEBkgZd5S5/LSlp3GXuQ== + dependencies: + "@chainsafe/as-sha256" "^0.3.1" + "@chainsafe/persistent-merkle-tree" "^0.4.2" + case "^1.6.3" + "@chainsafe/ssz@^0.11.1": version "0.11.1" resolved "https://registry.yarnpkg.com/@chainsafe/ssz/-/ssz-0.11.1.tgz#d4aec883af2ec5196ae67b96242c467da20b2476" @@ -781,6 +803,15 @@ preact "^10.16.0" sha.js "^2.4.11" +"@cosmjs/encoding@^0.32.4": + version "0.32.4" + resolved "https://registry.yarnpkg.com/@cosmjs/encoding/-/encoding-0.32.4.tgz#646e0e809f7f4f1414d8fa991fb0ffe6c633aede" + integrity sha512-tjvaEy6ZGxJchiizzTn7HVRiyTg1i4CObRRaTRPknm5EalE13SV+TCHq38gIDfyUeden4fCuaBVEdBR5+ti7Hw== + dependencies: + base64-js "^1.3.0" + bech32 "^1.1.4" + readonly-date "^1.0.0" + "@cspotcode/source-map-consumer@0.8.0": version "0.8.0" resolved "https://registry.yarnpkg.com/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz#33bf4b7b39c178821606f669bbc447a6a629786b" @@ -1204,6 +1235,15 @@ "@ethereumjs/util" "^9.0.3" ethereum-cryptography "^2.1.3" +"@ethereumjs/util@8.0.5": + version "8.0.5" + resolved "https://registry.yarnpkg.com/@ethereumjs/util/-/util-8.0.5.tgz#b9088fc687cc13f0c1243d6133d145dfcf3fe446" + integrity sha512-259rXKK3b3D8HRVdRmlOEi6QFvwxdt304hhrEAmpZhsj7ufXEOTIc9JRZPMnXatKjECokdLNBcDOFBeBSzAIaw== + dependencies: + "@chainsafe/ssz" "0.9.4" + "@ethereumjs/rlp" "^4.0.1" + ethereum-cryptography "^1.1.2" + "@ethereumjs/util@^8.0.6": version "8.0.6" resolved "https://registry.yarnpkg.com/@ethereumjs/util/-/util-8.0.6.tgz#f9716ed34235ea05eff8353bc5d483e5a6455989" @@ -1819,14 +1859,6 @@ resolved "https://registry.yarnpkg.com/@github/webauthn-json/-/webauthn-json-2.1.1.tgz#648e63fc28050917d2882cc2b27817a88cb420fc" integrity sha512-XrftRn4z75SnaJOmZQbt7Mk+IIjqVHw+glDGOxuHwXkZBZh/MBoRS7MHjSZMDaLhT4RjN2VqiEU7EOYleuJWSQ== -"@gsap/react@^2.1.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@gsap/react/-/react-2.1.0.tgz#fe65901d64c00d2eea4e3e8b571ae293d781622f" - integrity sha512-pwdFXvOM5IsRZXpWTKkQoEjb3/iUjDCU1BCJDlE6pHgVjG+7Ep/7+sszUgqVZ2Jc0mR8gnhtDWyx5cQAT4kwQw== - dependencies: - gsap "^3.12.4" - react ">=16" - "@hapi/hoek@^9.0.0": version "9.3.0" resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.3.0.tgz#8368869dcb735be2e7f5cb7647de78e167a251fb" @@ -2427,6 +2459,11 @@ semver "^7.5.4" superstruct "^1.0.3" +"@moonpay/moonpay-react@^1.8.0": + version "1.8.2" + resolved "https://registry.yarnpkg.com/@moonpay/moonpay-react/-/moonpay-react-1.8.2.tgz#17161b448c629116ced2da45059f031dc204f861" + integrity sha512-zzG6y/Y41pCVoOu7So2qpINSediVSSN/T5xviOGTBlO874SAvTSVe/7G0aASdRVHP5lwd6NyBjSZZs1ODm/uCQ== + "@motionone/animation@^10.15.1": version "10.15.1" resolved "https://registry.yarnpkg.com/@motionone/animation/-/animation-10.15.1.tgz#4a85596c31cbc5100ae8eb8b34c459fb0ccf6807" @@ -2588,6 +2625,11 @@ dependencies: "@noble/hashes" "1.4.0" +"@noble/hashes@1.2.0", "@noble/hashes@~1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.2.0.tgz#a3150eeb09cc7ab207ebf6d7b9ad311a9bdbed12" + integrity sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ== + "@noble/hashes@1.3.0", "@noble/hashes@^1.2.0", "@noble/hashes@^1.3.0", "@noble/hashes@~1.3.0": version "1.3.0" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.0.tgz#085fd70f6d7d9d109671090ccae1d3bec62554a1" @@ -2608,6 +2650,16 @@ resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.4.0.tgz#45814aa329f30e4fe0ba49426f49dfccdd066426" integrity sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg== +"@noble/hashes@^1.5.0": + version "1.6.1" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.6.1.tgz#df6e5943edcea504bac61395926d6fd67869a0d5" + integrity sha512-pq5D8h10hHBjyqX+cfBm0i8JUXJ0UhczFc4r74zbuT9XgewFo2E3J1cOaGtdZynILNmQ685YWGzGE1Zv6io50w== + +"@noble/secp256k1@1.7.1", "@noble/secp256k1@~1.7.0": + version "1.7.1" + resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.7.1.tgz#b251c70f824ce3ca7f8dc3df08d58f005cc0507c" + integrity sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw== + "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" @@ -2835,10 +2887,10 @@ resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" integrity sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw== -"@ramp-network/ramp-instant-sdk@^4.0.2": - version "4.0.4" - resolved "https://registry.yarnpkg.com/@ramp-network/ramp-instant-sdk/-/ramp-instant-sdk-4.0.4.tgz#25e1327ff2aead8bbab3c1cb5257da9041867442" - integrity sha512-Kkn+xwc4EbD2YqXOOQChZCqRT8/DM8sh9Qnz1nI2+/ACdo3INc42FMubgw5aZlyBzuF32XL/xdZyWBGPF4vECg== +"@ramp-network/ramp-instant-sdk@^4.0.5": + version "4.0.7" + resolved "https://registry.yarnpkg.com/@ramp-network/ramp-instant-sdk/-/ramp-instant-sdk-4.0.7.tgz#a474ec091afef5a2f3aa37c8bbc90dfff9aa880e" + integrity sha512-rkGBsg9fX6zFn3h1V3pazhMuOC7oo6nrs2azUMI1/QLsZrYOdHL8Rir7qo0FwYnv7fvuyW7TqI9nVl6wYOVIEg== dependencies: body-scroll-lock "^3.1.5" @@ -3041,6 +3093,15 @@ resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.6.tgz#8ce5d304b436e4c84f896e0550c83e4d88cb917d" integrity sha512-ok9AWwhcgYuGG3Zfhyqg+zwl+Wn5uE+dwC0NV/2qQkx4dABbb/bx96vWu8NSj+BNjjSjno+JRYRjle1jV08k3g== +"@scure/bip32@1.1.5": + version "1.1.5" + resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.1.5.tgz#d2ccae16dcc2e75bc1d75f5ef3c66a338d1ba300" + integrity sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw== + dependencies: + "@noble/hashes" "~1.2.0" + "@noble/secp256k1" "~1.7.0" + "@scure/base" "~1.1.0" + "@scure/bip32@1.3.0": version "1.3.0" resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.3.0.tgz#6c8d980ef3f290987736acd0ee2e0f0d50068d87" @@ -3077,6 +3138,14 @@ "@noble/hashes" "~1.4.0" "@scure/base" "~1.1.6" +"@scure/bip39@1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.1.1.tgz#b54557b2e86214319405db819c4b6a370cf340c5" + integrity sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg== + dependencies: + "@noble/hashes" "~1.2.0" + "@scure/base" "~1.1.0" + "@scure/bip39@1.2.0": version "1.2.0" resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.2.0.tgz#a207e2ef96de354de7d0002292ba1503538fc77b" @@ -4057,14 +4126,6 @@ resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== -"@types/ethereumjs-util@^5.2.0": - version "5.2.0" - resolved "https://registry.yarnpkg.com/@types/ethereumjs-util/-/ethereumjs-util-5.2.0.tgz#f49fe8114789ec0871721392c09318c3eb56671b" - integrity sha512-qwQgQqXXTRv2h2AlJef+tMEszLFkCB9dWnrJYIdAwqjubERXEc/geB+S3apRw0yQyTVnsBf8r6BhlrE8vx+3WQ== - dependencies: - "@types/bn.js" "*" - "@types/node" "*" - "@types/express-serve-static-core@*", "@types/express-serve-static-core@^4.17.18", "@types/express-serve-static-core@^4.17.9": version "4.17.28" resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.28.tgz#c47def9f34ec81dc6328d0b1b5303d1ec98d86b8" @@ -4229,11 +4290,6 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.12.tgz#833756634e78c829e1254db006468dadbb0c696b" integrity sha512-Wha1UwsB3CYdqUm2PPzh/1gujGCNtWVUYF0mB00fJFoR4gTyWTDPjSm+zBF787Ahw8vSGgBja90MkgFwvB86Dg== -"@types/node@^10.12.18": - version "10.17.60" - resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b" - integrity sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw== - "@types/node@^12.12.54", "@types/node@^12.7.1": version "12.20.55" resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.55.tgz#c329cbd434c42164f846b909bd6f85b5537f6240" @@ -4249,6 +4305,13 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.23.tgz#3b41a6e643589ac6442bdbd7a4a3ded62f33f7da" integrity sha512-UxDxWn7dl97rKVeVS61vErvw086aCYhDLyvRQZ5Rk65rZKepaFdm53GeqXaKBuOhED4e9uWq34IC3TdSdJJ2Gw== +"@types/node@^18.7.16": + version "18.19.65" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.65.tgz#e6aaac55fab80c6a3ff61ab27bc25105a7bea479" + integrity sha512-Ay5BZuO1UkTmVHzZJNvZKw/E+iB3GQABb6kijEz89w2JrfhNA+M/ebp18pfz9Gqe9ywhMC8AA8yC01lZq48J+Q== + dependencies: + undici-types "~5.26.4" + "@types/node@^20.5.7": version "20.5.9" resolved "https://registry.yarnpkg.com/@types/node/-/node-20.5.9.tgz#a70ec9d8fa0180a314c3ede0e20ea56ff71aed9a" @@ -4524,89 +4587,105 @@ crypto-js "^4.1.1" elliptic "^6.5.4" -"@usecapsule/core-components@^3.1.3": - version "3.1.3" - resolved "https://registry.yarnpkg.com/@usecapsule/core-components/-/core-components-3.1.3.tgz#f4bcd159092813db1e9610acfb276b0855e775d8" - integrity sha512-ga+yxMdAf1j4CJe9uuXTg+HbXmkkz9MqP7no+RFF5Smjx7B6D0IriFT4+MKFIfEHeVLScMz0LmDsu33zwprvkA== +"@usecapsule/core-components@3.15.0": + version "3.15.0" + resolved "https://registry.yarnpkg.com/@usecapsule/core-components/-/core-components-3.15.0.tgz#07bbac104dae82aa108395293e6b33dff3299bf9" + integrity sha512-BY3IJ8gDyuBfsYipL2r4atQXSf8T7rVShRdM0BRPh1qwCB6mwKT9qh6gIfl1J8HxgxAU3hR80lNtKwSL5Fr9vw== dependencies: "@stencil/core" "^4.7.0" color-blend "^4.0.0" color2k "^2.0.3" gsap "^3.12.5" - lottie-web "^5.12.2" - qr-code-styling "^1.6.0-rc.1" + inputmask "5.0.9" + qrcode-with-logos "1.1.1" -"@usecapsule/core-sdk@1.21.0": - version "1.21.0" - resolved "https://registry.yarnpkg.com/@usecapsule/core-sdk/-/core-sdk-1.21.0.tgz#f792fe57093e472461c22c6be0fcbb0643d2983c" - integrity sha512-zblf/9A5jyVhB2gEdUkkJsq9JLZ5EwsaSH+vWCJL+SqOFk2xD4TgfQoWymxtxtrbSbChrqLB68rrBtsevQNuuw== +"@usecapsule/core-sdk@2.10.0": + version "2.10.0" + resolved "https://registry.yarnpkg.com/@usecapsule/core-sdk/-/core-sdk-2.10.0.tgz#de0e227f4a3bb68eab58e6c70dbcc63057a7d7cd" + integrity sha512-ThXaKW4aWhN8m5Ptasoc0OM/FeargarlB2hFjMqwWgAIOoEzbVYBcOXDeY9BE8Cf0bb1b+fnp3bn/hD1BER68g== dependencies: - "@celo/utils" "^3.2.0" - "@usecapsule/user-management-client" "1.18.0" + "@celo/utils" "^6.0.1" + "@cosmjs/encoding" "^0.32.4" + "@noble/hashes" "^1.5.0" + "@usecapsule/user-management-client" "1.32.0" base64url "^3.0.1" buffer "6.0.3" ethereumjs-util "7.1.5" libphonenumber-js "1.11.2" node-forge "^1.3.1" + qs "^6.12.0" -"@usecapsule/react-components@^3.1.3": - version "3.1.3" - resolved "https://registry.yarnpkg.com/@usecapsule/react-components/-/react-components-3.1.3.tgz#7d71dbba9eee525c3c8564c2a3428d97a1024f9d" - integrity sha512-DDTApV13h6cJXTqVwF9x+Mk4eqMaFy67IvJlpsXcpnzJp4/FSE1Q0WkqO6oF/9VaoUoPk8SHZZok5axZeEub7w== - dependencies: - "@usecapsule/core-components" "^3.1.3" - -"@usecapsule/react-sdk@3.17.0", "@usecapsule/react-sdk@^3.17.0": - version "3.17.0" - resolved "https://registry.yarnpkg.com/@usecapsule/react-sdk/-/react-sdk-3.17.0.tgz#9db376dd80b321a41e15219d5285355deeee525c" - integrity sha512-KpweheO9/1Y0HUBOXCdcaiWtzDsbkaSfLeQ+ukBu2rJyApSP1igPxosmJnv2WZJqDtd279iKchJa2aNc5U7P2g== +"@usecapsule/react-common@1.7.0": + version "1.7.0" + resolved "https://registry.yarnpkg.com/@usecapsule/react-common/-/react-common-1.7.0.tgz#614d832e76586ce330072c9c0b5a8bf14ab1c9be" + integrity sha512-aRAegKj/jI6I8tqHkEvcJQTLx0CLjaY0jxNhi7B5odKHpLANimoJbEi8qMTcCl/RXIsl91rsZz2YQnEfoGIhjA== dependencies: - "@gsap/react" "^2.1.0" - "@ramp-network/ramp-instant-sdk" "^4.0.2" + "@moonpay/moonpay-react" "^1.8.0" + "@ramp-network/ramp-instant-sdk" "^4.0.5" "@stripe/crypto" "^0.0.4" "@stripe/stripe-js" "^3.4.0" - "@usecapsule/react-components" "^3.1.3" - "@usecapsule/web-sdk" "1.23.0" - gsap "^3.12.5" + "@usecapsule/web-sdk" "2.10.0" + libphonenumber-js "^1.11.1" + styled-components "^6.1.8" + +"@usecapsule/react-components@3.15.0": + version "3.15.0" + resolved "https://registry.yarnpkg.com/@usecapsule/react-components/-/react-components-3.15.0.tgz#0d40463dd0f31f9ea324f51b1d70066e4e958fe0" + integrity sha512-trYFfZk9mk0Eb1aOHV12/WHdwAmFAr5Ss0gxzDuOg+nnxarhWD+VwRC+7Oi7jGG0S4EE2kg2UBtspco7NIgMBg== + dependencies: + "@usecapsule/core-components" "3.15.0" + +"@usecapsule/react-sdk@4.10.0": + version "4.10.0" + resolved "https://registry.yarnpkg.com/@usecapsule/react-sdk/-/react-sdk-4.10.0.tgz#6005d62c37c68268b766f78fcba67fd096d68b9e" + integrity sha512-OAH8HQLnku6NAs6iJjnNhiOhZ7mgP0Ji5qpUGUlTnZxUzc5rr8tx2ad7mvobSd+6sUBxCE+dL6IJPZJOdx3pAg== + dependencies: + "@usecapsule/react-common" "1.7.0" + "@usecapsule/react-components" "3.15.0" + "@usecapsule/web-sdk" "2.10.0" + date-fns "^3.6.0" + detect-browser "^5.3.0" + framer-motion "11.3.28" libphonenumber-js "^1.11.1" styled-components "^6.1.8" zustand "^4.5.2" -"@usecapsule/user-management-client@1.18.0": - version "1.18.0" - resolved "https://registry.yarnpkg.com/@usecapsule/user-management-client/-/user-management-client-1.18.0.tgz#54d58150538b2608afe32ba8e7985665374c2252" - integrity sha512-F0q5OQV2GiXQ0US8hnEPaCQ3fITSaubodalhw83wLlYUnC9BY0Xd1hXfGh2lcru17TKQYWIoImWf3aZnwN3LnA== +"@usecapsule/user-management-client@1.32.0": + version "1.32.0" + resolved "https://registry.yarnpkg.com/@usecapsule/user-management-client/-/user-management-client-1.32.0.tgz#532674d2e1c96dc514bd866763ec8813c2a12caa" + integrity sha512-1aC19TB1RUzFZ/XxUj/P0u5kSmVp6A9XjGwOXtPQvmpuvSWuaa38/vqgWMunk7evkudfdAydzEyp2MiPYFCDvA== dependencies: axios "^1.6.3" qs "^6.12.0" -"@usecapsule/viem-v2-integration@1.20.0": - version "1.20.0" - resolved "https://registry.yarnpkg.com/@usecapsule/viem-v2-integration/-/viem-v2-integration-1.20.0.tgz#092bc04c0f767bdb5300fb03c329adc04d2092ab" - integrity sha512-SkSsHEBFAAJoQMZVj0CPtsU487LMbr/cdkTgV26Obq91+nNoKMoc5cWAmcpI9+UgSQt9fbFo5IA4UacjSSvD2g== +"@usecapsule/viem-v2-integration@2.10.0": + version "2.10.0" + resolved "https://registry.yarnpkg.com/@usecapsule/viem-v2-integration/-/viem-v2-integration-2.10.0.tgz#24c3c05799c12df53e168c3db8f42bcb5f2109fe" + integrity sha512-IKLHNttd22F33pobtEieqvUWJ7iIWcftry3mKsXe6CIkKxcVF845x3b1xM7VHpGROU7zVBwCyC0fabnlEW/xaA== dependencies: - "@usecapsule/core-sdk" "1.21.0" + "@usecapsule/core-sdk" "2.10.0" -"@usecapsule/wagmi-v2-integration@^2.18.0": - version "2.18.0" - resolved "https://registry.yarnpkg.com/@usecapsule/wagmi-v2-integration/-/wagmi-v2-integration-2.18.0.tgz#f030f9d090e3eb58882442e831a054d4c7ee0361" - integrity sha512-7Ho2EKq8/72w/RvbhRqNVdWdObm3pPOzwACq7GaqdVVuq1U3fwMrJOHUybiUC9iAJY6RseB6AhB5LKlTggZeGw== +"@usecapsule/wagmi-v2-integration@3.10.0": + version "3.10.0" + resolved "https://registry.yarnpkg.com/@usecapsule/wagmi-v2-integration/-/wagmi-v2-integration-3.10.0.tgz#ce09f670c81e613190500419919c81e93c98a0ae" + integrity sha512-1KlnxB3gKzRD17thZ6VI/xXK2hotGvKsxKtVdjk4c0FkP/703GNnXpXLi3dCgxlXi/s2zHAp9fKiEThn2qEbqg== dependencies: - "@usecapsule/react-sdk" "3.17.0" - "@usecapsule/viem-v2-integration" "1.20.0" + "@usecapsule/react-sdk" "4.10.0" + "@usecapsule/viem-v2-integration" "2.10.0" -"@usecapsule/web-sdk@1.23.0": - version "1.23.0" - resolved "https://registry.yarnpkg.com/@usecapsule/web-sdk/-/web-sdk-1.23.0.tgz#b359653892300299b1898acf5241a4537d787da8" - integrity sha512-d0gG/CZR/zuJlpyGBNidfHrkQI1B7PRwRDkXFJrJEOBGX4oOUUUtRvhGxeK9l2fIdWjNO7hZ01V5hkm1u00YFw== +"@usecapsule/web-sdk@2.10.0": + version "2.10.0" + resolved "https://registry.yarnpkg.com/@usecapsule/web-sdk/-/web-sdk-2.10.0.tgz#a75eebf35483a94b4f5730d37bbfba51dd2e83e6" + integrity sha512-+3t5YOwwtGGs+1kWKWVQMfs4wBUz7+IX0gKD6dJZsv6fARF09EYGM7p4bwXeJdVKU5E/2l/SZ9XvU5vyfHynYg== dependencies: - "@usecapsule/core-sdk" "1.21.0" - "@usecapsule/user-management-client" "1.18.0" + "@usecapsule/core-sdk" "2.10.0" + "@usecapsule/user-management-client" "1.32.0" assert "^2.1.0" base64url "3.0.1" buffer "6.0.3" cbor-web "8.1.0" node-forge "1.3.1" + ua-parser-js "1.0.39" "@venly/connect@^2.4.1": version "2.5.0" @@ -6339,7 +6418,7 @@ base64-js@1.3.1: resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.1.tgz#58ece8cb75dd07e71ed08c736abc5fac4dbf8df1" integrity sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g== -base64-js@^1.0.2, base64-js@^1.3.1: +base64-js@^1.0.2, base64-js@^1.3.0, base64-js@^1.3.1: version "1.5.1" resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== @@ -6371,7 +6450,7 @@ bcrypt-pbkdf@^1.0.0: dependencies: tweetnacl "^0.14.3" -bech32@1.1.4, bech32@^1.1.2, bech32@^1.1.3: +bech32@1.1.4, bech32@^1.1.2, bech32@^1.1.3, bech32@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/bech32/-/bech32-1.1.4.tgz#e38c9f37bf179b8eb16ae3a772b40c356d4832e9" integrity sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ== @@ -6951,6 +7030,11 @@ caniuse-lite@^1.0.30001646: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001655.tgz#0ce881f5a19a2dcfda2ecd927df4d5c1684b982f" integrity sha512-jRGVy3iSGO5Uutn2owlb5gR6qsGngTw9ZTb4ali9f3glshcNmJ2noam4Mo9zia5P9Dk3jNNydy7vQjuE5dQmfg== +case@^1.6.3: + version "1.6.3" + resolved "https://registry.yarnpkg.com/case/-/case-1.6.3.tgz#0a4386e3e9825351ca2e6216c60467ff5f1ea1c9" + integrity sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ== + caseless@~0.12.0: version "0.12.0" resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" @@ -7638,6 +7722,11 @@ date-fns@^2.29.3: dependencies: "@babel/runtime" "^7.21.0" +date-fns@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-3.6.0.tgz#f20ca4fe94f8b754951b24240676e8618c0206bf" + integrity sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww== + dcent-web-connector@^0.11.2: version "0.11.3" resolved "https://registry.yarnpkg.com/dcent-web-connector/-/dcent-web-connector-0.11.3.tgz#7decb528f4db16edfc199d0a45fd702920459ea7" @@ -7859,7 +7948,7 @@ detect-browser@5.2.0: resolved "https://registry.yarnpkg.com/detect-browser/-/detect-browser-5.2.0.tgz#c9cd5afa96a6a19fda0bbe9e9be48a6b6e1e9c97" integrity sha512-tr7XntDAu50BVENgQfajMLzacmSe34D+qZc4zjnniz0ZVuw/TZcLcyxHQjYpJTM36sGEkZZlYLnIM1hH7alTMA== -detect-browser@5.3.0, detect-browser@^5.2.0: +detect-browser@5.3.0, detect-browser@^5.2.0, detect-browser@^5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/detect-browser/-/detect-browser-5.3.0.tgz#9705ef2bddf46072d0f7265a1fe300e36fe7ceca" integrity sha512-53rsFbGdwMwlF7qvCt0ypLM5V5/Mbl0szB7GPN8y9NCcbknYOeVVXdrXEq+90IwAfrrzt6Hd+u2E2ntakICU8w== @@ -8767,6 +8856,16 @@ ethereum-common@^0.0.18: resolved "https://registry.yarnpkg.com/ethereum-common/-/ethereum-common-0.0.18.tgz#2fdc3576f232903358976eb39da783213ff9523f" integrity sha1-L9w1dvIykDNYl26znaeDIT/5Uj8= +ethereum-cryptography@1.2.0, ethereum-cryptography@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/ethereum-cryptography/-/ethereum-cryptography-1.2.0.tgz#5ccfa183e85fdaf9f9b299a79430c044268c9b3a" + integrity sha512-6yFQC9b5ug6/17CQpCyE3k9eKBMdhyVjzUy1WkiuY/E4vj/SXDBbCw8QEIaXqf0Mf2SnY6RmpDcwlUmBSS0EJw== + dependencies: + "@noble/hashes" "1.2.0" + "@noble/secp256k1" "1.7.1" + "@scure/bip32" "1.1.5" + "@scure/bip39" "1.1.1" + ethereum-cryptography@^0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz#8d6143cfc3d74bf79bbd8edecdf29e4ae20dd191" @@ -8931,7 +9030,7 @@ ethereumjs-util@7.1.5, ethereumjs-util@^7.1.0, ethereumjs-util@^7.1.1, ethereumj ethereum-cryptography "^0.1.3" rlp "^2.2.4" -ethereumjs-util@^5.0.0, ethereumjs-util@^5.1.1, ethereumjs-util@^5.1.2, ethereumjs-util@^5.1.5, ethereumjs-util@^5.2.0: +ethereumjs-util@^5.0.0, ethereumjs-util@^5.1.1, ethereumjs-util@^5.1.2, ethereumjs-util@^5.1.5: version "5.2.1" resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz#a833f0e5fca7e5b361384dc76301a721f537bf65" integrity sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ== @@ -9390,6 +9489,18 @@ forwarded@0.2.0: resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== +fp-ts@2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/fp-ts/-/fp-ts-2.1.1.tgz#c910544499d7c959351bb4260ee7c44a544084c1" + integrity sha512-YcWhMdDCFCja0MmaDroTgNu+NWWrrnUEn92nvDgrtVy9Z71YFnhNVIghoHPt8gs82ijoMzFGeWKvArbyICiJgw== + +framer-motion@11.3.28: + version "11.3.28" + resolved "https://registry.yarnpkg.com/framer-motion/-/framer-motion-11.3.28.tgz#dbc5d51d9525a67b8030ba645323458364a94729" + integrity sha512-dqhoawipEAjqdv32zbv72sOMJZjol7dROWn7t/FOq23WXJ40O4OUybgnO2ldnuS+3YquSn8xO/KKRavZ+TBVOQ== + dependencies: + tslib "^2.4.0" + fresh@0.5.2: version "0.5.2" resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" @@ -9709,7 +9820,7 @@ growl@1.10.5: resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e" integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA== -gsap@^3.12.4, gsap@^3.12.5: +gsap@^3.12.5: version "3.12.5" resolved "https://registry.yarnpkg.com/gsap/-/gsap-3.12.5.tgz#136c02dad4c673b441bdb1ca00104bfcb4eae7f4" integrity sha512-srBfnk4n+Oe/ZnMIOXt3gT605BX9x5+rh/prT2F1SsNJsU1XuMiP0E2aptW481OnonOGACZWBqseH5Z7csHxhQ== @@ -10170,6 +10281,11 @@ ini@~1.3.0: resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== +inputmask@5.0.9: + version "5.0.9" + resolved "https://registry.yarnpkg.com/inputmask/-/inputmask-5.0.9.tgz#7bf4e83f5e199c88c0edf28545dc23fa208ef4be" + integrity sha512-s0lUfqcEbel+EQXtehXqwCJGShutgieOaIImFKC/r4reYNvX3foyrChl6LOEvaEgxEbesePIrw1Zi2jhZaDZbQ== + int64-buffer@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/int64-buffer/-/int64-buffer-1.0.1.tgz#c78d841b444cadf036cd04f8683696c740f15dca" @@ -11263,11 +11379,6 @@ loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0: dependencies: js-tokens "^3.0.0 || ^4.0.0" -lottie-web@^5.12.2: - version "5.12.2" - resolved "https://registry.yarnpkg.com/lottie-web/-/lottie-web-5.12.2.tgz#579ca9fe6d3fd9e352571edd3c0be162492f68e5" - integrity sha512-uvhvYPC8kGPjXT3MyKMrL3JitEAmDMp30lVkuq/590Mw9ok6pWcFCwXJveo0t5uqYw1UREQHofD+jVpdjBv8wg== - lowercase-keys@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479" @@ -12750,6 +12861,13 @@ qrcode-terminal-nooctal@^0.12.1: resolved "https://registry.yarnpkg.com/qrcode-terminal-nooctal/-/qrcode-terminal-nooctal-0.12.1.tgz#45016aca0d82b2818de7af0a06d072ad671fbe2e" integrity sha512-jy/kkD0iIMDjTucB+5T6KBsnirlhegDH47vHgrj5MejchSQmi/EAMM0xMFeePgV9CJkkAapNakpVUWYgHvtdKg== +qrcode-with-logos@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/qrcode-with-logos/-/qrcode-with-logos-1.1.1.tgz#87b04fb2606b81391c94b60cd600c9c81fb1adec" + integrity sha512-vh0LWvwalp7471ODXd4rcXrbKgRpfwfdrjfb3pdr9+Zz/s27+5clRHFxzh5orTm1rusStfHGMACP7GWVAkzpKQ== + dependencies: + qrcode "^1.4.4" + qrcode.react@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/qrcode.react/-/qrcode.react-1.0.1.tgz#2834bb50e5e275ffe5af6906eff15391fe9e38a5" @@ -12782,6 +12900,15 @@ qrcode@1.5.3: pngjs "^5.0.0" yargs "^15.3.1" +qrcode@^1.4.4: + version "1.5.4" + resolved "https://registry.yarnpkg.com/qrcode/-/qrcode-1.5.4.tgz#5cb81d86eb57c675febb08cf007fff963405da88" + integrity sha512-1ca71Zgiu6ORjHqFBDpnSMTR2ReToX4l1Au1VFLyVeBTFavzQnv5JxMFr3ukHVKpSrSA2MCk0lNJSykjUfz7Zg== + dependencies: + dijkstrajs "^1.0.1" + pngjs "^5.0.0" + yargs "^15.3.1" + qrcode@^1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/qrcode/-/qrcode-1.5.0.tgz#95abb8a91fdafd86f8190f2836abbfc500c72d1b" @@ -13000,13 +13127,6 @@ react@16.13.1: object-assign "^4.1.1" prop-types "^15.6.2" -react@>=16, react@^18.2.0: - version "18.2.0" - resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5" - integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ== - dependencies: - loose-envify "^1.1.0" - react@^18.0.0: version "18.0.0" resolved "https://registry.yarnpkg.com/react/-/react-18.0.0.tgz#b468736d1f4a5891f38585ba8e8fb29f91c3cb96" @@ -13014,6 +13134,13 @@ react@^18.0.0: dependencies: loose-envify "^1.1.0" +react@^18.2.0: + version "18.2.0" + resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5" + integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ== + dependencies: + loose-envify "^1.1.0" + readable-stream@2.3.3: version "2.3.3" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.3.tgz#368f2512d79f9d46fdfc71349ae7878bbc1eb95c" @@ -13120,6 +13247,11 @@ readdirp@~3.6.0: dependencies: picomatch "^2.2.1" +readonly-date@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/readonly-date/-/readonly-date-1.0.0.tgz#5af785464d8c7d7c40b9d738cbde8c646f97dcd9" + integrity sha512-tMKIV7hlk0h4mO3JTmmVuIlJVXjKk3Sep9Bf5OH0O+758ruuVkUy2J9SttDLm91IEX/WHlXPSpxMGjPj4beMIQ== + real-require@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/real-require/-/real-require-0.1.0.tgz#736ac214caa20632847b7ca8c1056a0767df9381" @@ -15011,6 +15143,11 @@ typescript@^5.2.2: resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78" integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w== +ua-parser-js@1.0.39: + version "1.0.39" + resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-1.0.39.tgz#bfc07f361549bf249bd8f4589a4cccec18fd2018" + integrity sha512-k24RCVWlEcjkdOxYmVJgeD/0a1TiSpqLg+ZalVGV9lsnr4yqu0w7tX/x2xX6G4zpkgQnRf89lxuZ1wsbjXM8lw== + ua-parser-js@^1.0.35: version "1.0.35" resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-1.0.35.tgz#c4ef44343bc3db0a3cbefdf21822f1b1fc1ab011" @@ -15055,16 +15192,16 @@ uncrypto@^0.1.3: resolved "https://registry.yarnpkg.com/uncrypto/-/uncrypto-0.1.3.tgz#e1288d609226f2d02d8d69ee861fa20d8348ef2b" integrity sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q== -underscore@1.12.1: - version "1.12.1" - resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.12.1.tgz#7bb8cc9b3d397e201cf8553336d262544ead829e" - integrity sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw== - underscore@^1.13.2: version "1.13.2" resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.13.2.tgz#276cea1e8b9722a8dbed0100a407dda572125881" integrity sha512-ekY1NhRzq0B08g4bGuX4wd2jZx5GnKz6mKSqFL4nqBlfyMGiG10gDFhDTMEfYmDL6Jy0FUIZp7wiRB+0BP7J2g== +undici-types@~5.26.4: + version "5.26.5" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" + integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== + unenv@^1.7.4: version "1.8.0" resolved "https://registry.yarnpkg.com/unenv/-/unenv-1.8.0.tgz#0f860d5278405700bd95d47b23bc01f3a735d68c" @@ -15712,14 +15849,13 @@ web3-eth-abi@1.10.0: "@ethersproject/abi" "^5.6.3" web3-utils "1.10.0" -web3-eth-abi@1.3.6: - version "1.3.6" - resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-1.3.6.tgz#4272ca48d817aa651bbf97b269f5ff10abc2b8a9" - integrity sha512-Or5cRnZu6WzgScpmbkvC6bfNxR26hqiKK4i8sMPFeTUABQcb/FU3pBj7huBLYbp9dH+P5W79D2MqwbWwjj9DoQ== +web3-eth-abi@1.10.4: + version "1.10.4" + resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-1.10.4.tgz#16c19d0bde0aaf8c1a56cb7743a83156d148d798" + integrity sha512-cZ0q65eJIkd/jyOlQPDjr8X4fU6CRL1eWgdLwbWEpo++MPU/2P4PFk5ZLAdye9T5Sdp+MomePPJ/gHjLMj2VfQ== dependencies: - "@ethersproject/abi" "5.0.7" - underscore "1.12.1" - web3-utils "1.3.6" + "@ethersproject/abi" "^5.6.3" + web3-utils "1.10.4" web3-eth-abi@1.5.0: version "1.5.0" @@ -16058,18 +16194,18 @@ web3-utils@1.10.0: randombytes "^2.1.0" utf8 "3.0.0" -web3-utils@1.3.6: - version "1.3.6" - resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.3.6.tgz#390bc9fa3a7179746963cfaca55bb80ac4d8dc10" - integrity sha512-hHatFaQpkQgjGVER17gNx8u1qMyaXFZtM0y0XLGH1bzsjMPlkMPLRcYOrZ00rOPfTEuYFOdrpGOqZXVmGrMZRg== +web3-utils@1.10.4: + version "1.10.4" + resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.10.4.tgz#0daee7d6841641655d8b3726baf33b08eda1cbec" + integrity sha512-tsu8FiKJLk2PzhDl9fXbGUWTkkVXYhtTA+SmEFkKft+9BgwLxfCRpU96sWv7ICC8zixBNd3JURVoiR3dUXgP8A== dependencies: - bn.js "^4.11.9" - eth-lib "0.2.8" + "@ethereumjs/util" "^8.1.0" + bn.js "^5.2.1" ethereum-bloom-filters "^1.0.6" + ethereum-cryptography "^2.1.2" ethjs-unit "0.1.6" number-to-bn "1.7.0" randombytes "^2.1.0" - underscore "1.12.1" utf8 "3.0.0" web3-utils@1.5.0: From 9db4d8e8c6000c9972354d41375a286501ab5886 Mon Sep 17 00:00:00 2001 From: sigmoidr <144423037+sigmoidr@users.noreply.github.com> Date: Sat, 28 Dec 2024 02:23:55 +0800 Subject: [PATCH 5/9] Add null check to prevent potential runtime errors (#2319) * fix: provider['ethereum'] undefined * fix: check provider.providers is array --------- Co-authored-by: Adam Carpenter --- packages/injected/src/helpers.ts | 2 +- packages/injected/src/wallets.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/injected/src/helpers.ts b/packages/injected/src/helpers.ts index 8622b3ea2..8928f3cb2 100644 --- a/packages/injected/src/helpers.ts +++ b/packages/injected/src/helpers.ts @@ -40,7 +40,7 @@ export const isWalletAvailable = ( // For multiple injected providers, check providers array // example coinbase inj wallet pushes over-ridden wallets // into a providers array at window.ethereum - return !!provider.providers?.some(provider => + return Array.isArray(provider.providers) && !!provider.providers?.some(provider => checkProviderIdentity({ provider, device }) ) } diff --git a/packages/injected/src/wallets.ts b/packages/injected/src/wallets.ts index 77e7544dc..b7a5d31ab 100644 --- a/packages/injected/src/wallets.ts +++ b/packages/injected/src/wallets.ts @@ -581,7 +581,7 @@ const bitget: InjectedWalletModule = { label: ProviderLabel.Bitget, injectedNamespace: InjectedNameSpace.Bitget, checkProviderIdentity: ({ provider }) => - !!provider && !!provider['ethereum'][ProviderIdentityFlag.Bitget], + !!provider && !!provider['ethereum'] && !!provider['ethereum'][ProviderIdentityFlag.Bitget], getIcon: async () => (await import('./icons/bitget.js')).default, getInterface: async () => ({ provider: window.bitkeep && window.bitkeep.ethereum From 7b54d8a868a1189cce926e697c22aea2c72aed83 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Fri, 27 Dec 2024 13:21:15 -0700 Subject: [PATCH 6/9] FIX/UPDATE - i18n wallets connected string handling, formatting and version bumps (#2326) * Update i18n string usage for connected wallets * Add new def to the zh translation file * Add docs info for chinese translation * Merge in changes and bump version * Bump versions for release * Refine types * Format * Revert demo changes for testing * Bump Wallet connect deps --- docs/package.json | 2 +- .../docs/[...3]modules/[...1]core/+page.md | 5 +- packages/core/README.md | 5 +- packages/core/package.json | 4 +- packages/core/src/i18n/en.json | 4 +- packages/core/src/i18n/zh.json | 4 +- packages/core/src/provider.ts | 2 +- packages/core/src/views/connect/Index.svelte | 29 +- packages/demo/package.json | 6 +- packages/injected/package.json | 2 +- packages/react/package.json | 2 +- packages/solid/package.json | 2 +- packages/vue/package.json | 2 +- packages/walletconnect/package.json | 6 +- yarn.lock | 607 +++++++++++++++++- 15 files changed, 620 insertions(+), 62 deletions(-) diff --git a/docs/package.json b/docs/package.json index dc922d73d..cc71522e7 100644 --- a/docs/package.json +++ b/docs/package.json @@ -57,7 +57,7 @@ "@web3-onboard/capsule": "^2.4.0-alpha.1", "@web3-onboard/cede-store": "^2.3.1", "@web3-onboard/coinbase": "^2.3.1", - "@web3-onboard/core": "^2.23.0", + "@web3-onboard/core": "^2.23.1-alpha.1", "@web3-onboard/dcent": "^2.2.8", "@web3-onboard/enkrypt": "^2.1.1", "@web3-onboard/finoaconnect": "^2.0.0", diff --git a/docs/src/routes/docs/[...3]modules/[...1]core/+page.md b/docs/src/routes/docs/[...3]modules/[...1]core/+page.md index 1d9466d03..4867a2d7d 100644 --- a/docs/src/routes/docs/[...3]modules/[...1]core/+page.md +++ b/docs/src/routes/docs/[...3]modules/[...1]core/+page.md @@ -317,9 +317,12 @@ type ConnectModalOptions = { #### i18n An object that defines the display text for different locales. Can also be used to override the default text. To override the default text, pass in an object for the `en` locale. +Currently there is built-in support for: +- English (`en`) - Default +- Simplified Chinese (`zh`) ```typescript -type Locale = string // eg 'en', 'es' +type Locale = string // eg 'en', 'zh', 'es' type i18nOptions = Record ``` diff --git a/packages/core/README.md b/packages/core/README.md index 957e67a8f..dba1e6a20 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -296,9 +296,12 @@ type disableFontDownload = boolean // defaults to false **`i18n`** An object that defines the display text for different locales. Can also be used to override the default text. To override the default text, pass in a object for the `en` locale. +Currently there is built-in support for: +- English (`en`) - Default +- Simplified Chinese (`zh`) ```typescript -type Locale = string // eg 'en', 'es' +type Locale = string // eg 'en', 'zh', 'es' type i18nOptions = Record ``` diff --git a/packages/core/package.json b/packages/core/package.json index 39ca6dc71..d23f27c2b 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/core", - "version": "2.23.0", + "version": "2.23.1-alpha.1", "description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized 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", @@ -96,7 +96,7 @@ "nanoid": "^4.0.0", "rxjs": "^7.5.5", "svelte": "^3.49.0", - "svelte-i18n": "^3.3.13", + "svelte-i18n": "^4.0.1", "viem": "2.12.0" }, "engines": { diff --git a/packages/core/src/i18n/en.json b/packages/core/src/i18n/en.json index d5d2d7658..7dd4640d2 100644 --- a/packages/core/src/i18n/en.json +++ b/packages/core/src/i18n/en.json @@ -39,7 +39,9 @@ "subheading": "Connection Successful!", "paragraph": "Your wallet is now connected to {app}" }, - "mainText": "Connected" + "mainText": "Connected", + "accountSelected": "Account Selected", + "availableWallet": "available wallet" } }, "modals": { diff --git a/packages/core/src/i18n/zh.json b/packages/core/src/i18n/zh.json index 8183b962e..d6d6d187f 100644 --- a/packages/core/src/i18n/zh.json +++ b/packages/core/src/i18n/zh.json @@ -39,7 +39,9 @@ "subheading": "连接成功!", "paragraph": "您的钱包现已连接到{app}" }, - "mainText": "已连接" + "mainText": "已连接", + "accountSelected": "已选择账户", + "availableWallet": "可用钱包" } }, "modals": { diff --git a/packages/core/src/provider.ts b/packages/core/src/provider.ts index 497d0fc37..6ee34f2b1 100644 --- a/packages/core/src/provider.ts +++ b/packages/core/src/provider.ts @@ -1,4 +1,4 @@ -import { fromEventPattern, Observable } from 'rxjs' +import { fromEventPattern, type Observable } from 'rxjs' import { filter, takeUntil, take, share, switchMap } from 'rxjs/operators' import partition from 'lodash.partition' import { isAddress, weiHexToEth } from '@web3-onboard/common' diff --git a/packages/core/src/views/connect/Index.svelte b/packages/core/src/views/connect/Index.svelte index 510e286a9..148bfd061 100644 --- a/packages/core/src/views/connect/Index.svelte +++ b/packages/core/src/views/connect/Index.svelte @@ -1,8 +1,5 @@