diff --git a/docs/src/routes/docs/[...4]wallets/[...24]walletconnect/+page.md b/docs/src/routes/docs/[...4]wallets/[...24]walletconnect/+page.md index 7469bf8ae..454e1ed42 100644 --- a/docs/src/routes/docs/[...4]wallets/[...24]walletconnect/+page.md +++ b/docs/src/routes/docs/[...4]wallets/[...24]walletconnect/+page.md @@ -7,7 +7,7 @@ title: WalletConnect Wallet module for connecting WalletConnect to web3-onboard, currently supporting both v1 and v2. :::admonition type=warning -_Not all Wallets support WalletConnect V2 currently. For an up to date list please see the [WalletConnect Explorer](https://explorer.walletconnect.com/?version=2)_ +_Version 1 of WalletConnect has been deprecated by the WC team and the WC bridge is not available. Upgrading to use WalletConnect v2 is recommended. Support will be completely removed from Web3-Onboard in the future_ ::: ## Install @@ -33,11 +33,6 @@ npm install @web3-onboard/walletconnect ```typescript type WalletConnectOptions = { - bridge?: string // default = 'https://bridge.walletconnect.org' - qrcodeModalOptions?: { - mobileLinks: string[] // set the order and list of mobile linking wallets - } - connectFirstChainId?: boolean // if true, connects to the first network chain provided /** * Optional function to handle WalletConnect URI when it becomes available */ @@ -45,9 +40,23 @@ type WalletConnectOptions = { } & ( | { /** - * Defaults to version: 1 - this behavior will be deprecated after the WalletConnect v1 sunset + * @deprecated + * Version 1 of WalletConnect has been deprecated by the WC team and the WC bridge is not available. + * To use version 1 a custom bridge url will need to be provided. + * Support will be completely remove from Web3-Onboard in the future */ - version?: 1 + version: 1 + /** + * 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' + */ + bridge: string + connectFirstChainId?: boolean + qrcodeModalOptions?: { + mobileLinks: string[] + } } | { /** @@ -55,20 +64,28 @@ type WalletConnectOptions = { */ projectId: string /** - * Defaults to version: 1 - this behavior will be deprecated after the WalletConnect v1 sunset + * Defaults to version: 2 */ - version: 2 + version?: 2 /** * List of Required Chain(s) ID for wallets to support in number format (integer or hex) * Defaults to [1] - Ethereum - * The chains defined within the web3-onboard config will define the - * optional chains for the WalletConnect module */ requiredChains?: number[] | undefined + /** + * List of Optional Chain(s) ID for wallets to support in number format (integer or hex) + * Defaults to the chains provided within the web3-onboard init chain property + */ + optionalChains?: number[] | undefined /** * `undefined` by default, see https://docs.walletconnect.com/2.0/web/walletConnectModal/options */ qrModalOptions?: EthereumProviderOptions['qrModalOptions'] + /** + * Additional methods to be added to the default list of ['eth_sendTransaction', 'eth_signTransaction', 'personal_sign', 'eth_sign', 'eth_signTypedData', 'eth_signTypedData_v4'] + * Passed methods to be included along with the defaults methods - see https://docs.walletconnect.com/2.0/web/walletConnectModal/options + */ + additionalOptionalMethods?: string[] | undefined } ) ``` @@ -79,24 +96,11 @@ type WalletConnectOptions = { import Onboard from '@web3-onboard/core' import walletConnectModule from '@web3-onboard/walletconnect' -const wcV1InitOptions = { - bridge: 'YOUR_CUSTOM_BRIDGE_SERVER', - qrcodeModalOptions: { - mobileLinks: ['metamask', 'argent', 'trust'] - }, - connectFirstChainId: true -} - const wcV2InitOptions = { - version: 2, /** * Project ID associated with [WalletConnect account](https://cloud.walletconnect.com) */ projectId: 'abc123...', - /** - * Optional function to handle WalletConnect URI when it becomes available - */ - handleUri: (uri) => console.log(uri), /** * Chains required to be supported by all wallets connecting to your DApp */ @@ -104,11 +108,11 @@ const wcV2InitOptions = { } // initialize the module with options -// If version isn't set it will default to V1 until V1 sunset -const walletConnect = walletConnectModule(wcV2InitOptions || wcV1InitOptions) +// If version isn't set it will default to V2 - V1 support will be completely removed shortly as it is deprecated +const walletConnect = walletConnectModule(wcV2InitOptions) // can also initialize with no options... -// Defaults to V1 until V1 sunset +// Defaults to V2 - V1 support will be completely removed shortly as it is deprecated // const walletConnect = walletConnectModule() const onboard = Onboard({ @@ -116,16 +120,7 @@ const onboard = Onboard({ wallets: [ 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' - } - // ... - ] + ] }) const connectedWallets = await onboard.connectWallet() diff --git a/packages/core/package.json b/packages/core/package.json index 0d012e3a8..2e5a9ba5a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/core", - "version": "2.20.3", + "version": "2.20.4-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", diff --git a/packages/core/src/views/connect/Sidebar.svelte b/packages/core/src/views/connect/Sidebar.svelte index 708c47a77..10f9e17f3 100644 --- a/packages/core/src/views/connect/Sidebar.svelte +++ b/packages/core/src/views/connect/Sidebar.svelte @@ -186,9 +186,9 @@ {@html defaultBnIcon} {/if} - {#if $_(`connect.${step}.sidebar.heading`, { default: '' })} + {#if $_(`connect.${step}.sidebar.header`, { default: '' })}
- {$_(`connect.${step}.sidebar.heading`, { + {$_(`connect.${step}.sidebar.header`, { default: heading })}
diff --git a/packages/demo/package.json b/packages/demo/package.json index 691f2505a..96c7f7a34 100644 --- a/packages/demo/package.json +++ b/packages/demo/package.json @@ -52,7 +52,7 @@ "@web3-onboard/trust": "^2.0.3", "@web3-onboard/uauth": "^2.0.4", "@web3-onboard/venly": "^2.0.0", - "@web3-onboard/walletconnect": "^2.3.10-alpha.1", + "@web3-onboard/walletconnect": "^2.4.0-alpha.1", "@web3-onboard/web3auth": "^2.2.2", "@web3-onboard/xdefi": "^2.0.3", "@web3-onboard/zeal": "^2.0.3", diff --git a/packages/demo/src/App.svelte b/packages/demo/src/App.svelte index b4f2007ed..234c92332 100644 --- a/packages/demo/src/App.svelte +++ b/packages/demo/src/App.svelte @@ -116,7 +116,6 @@ const walletConnect = walletConnectModule({ connectFirstChainId: true, - version: 2, handleUri: uri => console.log(uri), projectId: 'f6bd6e2911b56f5ac3bc8b2d0e2d7ad5', qrcodeModalOptions: { diff --git a/packages/react/package.json b/packages/react/package.json index bd92f512e..88898e587 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/react", - "version": "2.8.8", + "version": "2.8.9-alpha.1", "description": "A collection of React hooks for integrating Web3-Onboard in to React and Next.js projects. 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, 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", @@ -63,7 +63,7 @@ }, "dependencies": { "@web3-onboard/common": "^2.3.3", - "@web3-onboard/core": "^2.20.3", + "@web3-onboard/core": "^2.20.4-alpha.1", "use-sync-external-store": "1.0.0" }, "peerDependencies": { diff --git a/packages/vue/package.json b/packages/vue/package.json index 8e4369ba5..a0e30cf17 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/vue", - "version": "2.7.7", + "version": "2.7.8-alpha.1", "description": "A collection of Vue Composables for integrating Web3-Onboard in to a Vue or Nuxt project. 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, 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", @@ -63,7 +63,7 @@ "@vueuse/core": "^8.4.2", "@vueuse/rxjs": "^8.2.0", "@web3-onboard/common": "^2.3.3", - "@web3-onboard/core": "^2.20.3", + "@web3-onboard/core": "^2.20.4-alpha.1", "vue-demi": "^0.12.4" }, "peerDependencies": { diff --git a/packages/walletconnect/README.md b/packages/walletconnect/README.md index eae2c6daf..f01e1a090 100644 --- a/packages/walletconnect/README.md +++ b/packages/walletconnect/README.md @@ -6,19 +6,14 @@ `npm i @web3-onboard/core @web3-onboard/walletconnect` -## Not all Wallets support WalletConnect V2 currently +## Version 1 of WalletConnect has been deprecated -_For an up to date list please see the [WalletConnect Explorer](https://explorer.walletconnect.com/?version=2)_ +_Version 1 of WalletConnect has been deprecated by the WC team and the WC bridge is not available. If wanting to continue to use WalletConnect V1 a custom bridge URL is required. Support will be completely removed from Web3-Onboard in the future_ ## Options ```typescript type WalletConnectOptions = { - bridge?: string // default = 'https://bridge.walletconnect.org' - qrcodeModalOptions?: { - mobileLinks: string[] // set the order and list of mobile linking wallets - } - connectFirstChainId?: boolean // if true, connects to the first network chain provided /** * Optional function to handle WalletConnect URI when it becomes available */ @@ -26,9 +21,23 @@ type WalletConnectOptions = { } & ( | { /** - * Defaults to version: 1 - this behavior will be deprecated after the WalletConnect v1 sunset + * @deprecated + * Version 1 of WalletConnect has been deprecated by the WC team and the WC bridge is not available. + * To use version 1 a custom bridge url will need to be provided. + * Support will be completely remove from Web3-Onboard in the future */ - version?: 1 + version: 1 + /** + * 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' + */ + bridge: string + connectFirstChainId?: boolean + qrcodeModalOptions?: { + mobileLinks: string[] + } } | { /** @@ -36,20 +45,28 @@ type WalletConnectOptions = { */ projectId: string /** - * Defaults to version: 1 - this behavior will be deprecated after the WalletConnect v1 sunset + * Defaults to version: 2 */ - version: 2 + version?: 2 /** * List of Required Chain(s) ID for wallets to support in number format (integer or hex) * Defaults to [1] - Ethereum - * The chains defined within the web3-onboard config will define the - * optional chains for the WalletConnect module */ requiredChains?: number[] | undefined + /** + * List of Optional Chain(s) ID for wallets to support in number format (integer or hex) + * Defaults to the chains provided within the web3-onboard init chain property + */ + optionalChains?: number[] | undefined /** * `undefined` by default, see https://docs.walletconnect.com/2.0/web/walletConnectModal/options */ qrModalOptions?: EthereumProviderOptions['qrModalOptions'] + /** + * Additional methods to be added to the default list of ['eth_sendTransaction', 'eth_signTransaction', 'personal_sign', 'eth_sign', 'eth_signTypedData', 'eth_signTypedData_v4'] + * Passed methods to be included along with the defaults methods - see https://docs.walletconnect.com/2.0/web/walletConnectModal/options + */ + additionalOptionalMethods?: string[] | undefined } ) ``` @@ -60,16 +77,7 @@ type WalletConnectOptions = { import Onboard from '@web3-onboard/core' import walletConnectModule from '@web3-onboard/walletconnect' -const wcV1InitOptions = { - bridge: 'YOUR_CUSTOM_BRIDGE_SERVER', - qrcodeModalOptions: { - mobileLinks: ['metamask', 'argent', 'trust'] - }, - connectFirstChainId: true -} - const wcV2InitOptions = { - version: 2, /** * Project ID associated with [WalletConnect account](https://cloud.walletconnect.com) */ @@ -81,11 +89,11 @@ const wcV2InitOptions = { } // initialize the module with options -// If version isn't set it will default to V1 until V1 sunset -const walletConnect = walletConnectModule(wcV2InitOptions || wcV1InitOptions) +// If version isn't set it will default to V2 - V1 support will be completely removed shortly as it is deprecated +const walletConnect = walletConnectModule(wcV2InitOptions) // can also initialize with no options... -// Defaults to V1 until V1 sunset +// Defaults to V2 - V1 support will be completely removed shortly as it is deprecated // const walletConnect = walletConnectModule() const onboard = Onboard({ diff --git a/packages/walletconnect/package.json b/packages/walletconnect/package.json index a0334e096..09c8c6db6 100644 --- a/packages/walletconnect/package.json +++ b/packages/walletconnect/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/walletconnect", - "version": "2.3.10-alpha.1", + "version": "2.4.0-alpha.1", "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", @@ -62,7 +62,7 @@ "@ethersproject/providers": "5.5.0", "@walletconnect/client": "^1.8.0", "@walletconnect/ethereum-provider": "2.8.4", - "@walletconnect/modal":"2.5.4", + "@walletconnect/modal":"2.5.5", "@walletconnect/qrcode-modal": "^1.8.0", "@web3-onboard/common": "^2.3.3", "rxjs": "^7.5.2" diff --git a/packages/walletconnect/src/index.ts b/packages/walletconnect/src/index.ts index dd6b5e406..5a908a6c4 100644 --- a/packages/walletconnect/src/index.ts +++ b/packages/walletconnect/src/index.ts @@ -8,17 +8,26 @@ export type WalletConnectOptions = { * Optional function to handle WalletConnect URI when it becomes available */ handleUri?: (uri: string) => Promise - connectFirstChainId?: boolean - bridge?: string - qrcodeModalOptions?: { - mobileLinks: string[] - } } & ( | { /** - * Defaults to version: 1 - this behavior will be deprecated after the WalletConnect v1 sunset + * @deprecated + * Version 1 of WalletConnect has been deprecated by the WC team and the WC bridge is not available. + * To use version 1 a custom bridge url will need to be provided. + * Support will be completely remove from Web3-Onboard in the future + */ + version: 1 + /** + * 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 option can be found here: 'https://derelay.rabby.io' */ - version?: 1 + bridge: string + connectFirstChainId?: boolean + qrcodeModalOptions?: { + mobileLinks: string[] + } } | { /** @@ -26,20 +35,28 @@ export type WalletConnectOptions = { */ projectId: string /** - * Defaults to version: 1 - this behavior will be deprecated after the WalletConnect v1 sunset + * Defaults to version: 2 */ - version: 2 + version?: 2 /** * List of Required Chain(s) ID for wallets to support in number format (integer or hex) * Defaults to [1] - Ethereum - * The chains defined within the web3-onboard config will define the - * optional chains for the WalletConnect module */ requiredChains?: number[] | undefined + /** + * List of Optional Chain(s) ID for wallets to support in number format (integer or hex) + * Defaults to the chains provided within the web3-onboard init chain property + */ + optionalChains?: number[] | undefined /** * `undefined` by default, see https://docs.walletconnect.com/2.0/web/walletConnectModal/options */ qrModalOptions?: EthereumProviderOptions['qrModalOptions'] + /** + * Additional methods to be added to the default list of ['eth_sendTransaction', 'eth_signTransaction', 'personal_sign', 'eth_sign', 'eth_signTypedData', 'eth_signTypedData_v4'] + * Passed methods to be included along with the defaults methods - see https://docs.walletconnect.com/2.0/web/walletConnectModal/options + */ + additionalOptionalMethods?: string[] | undefined } ) @@ -51,9 +68,9 @@ export const isHexString = (value: string | number) => { return true } -function walletConnect(options?: WalletConnectOptions): WalletInit { - const version = (options && options.version) || 1 - return version === 1 ? v1(options) : v2(options) +function walletConnect(options: WalletConnectOptions): WalletInit { + options.version = options.version || 2 + return options.version === 2 ? v2(options) : v1(options) } export default walletConnect diff --git a/packages/walletconnect/src/v1.ts b/packages/walletconnect/src/v1.ts index ee060105e..dd31651e3 100644 --- a/packages/walletconnect/src/v1.ts +++ b/packages/walletconnect/src/v1.ts @@ -7,17 +7,22 @@ import type { ChainId, AccountAddress } from '@web3-onboard/common' -import { isHexString, WalletConnectOptions } from './index.js' - -function walletConnect( - options: WalletConnectOptions = { version: 1 } -): WalletInit { - const { - bridge = 'https://bridge.walletconnect.org', - qrcodeModalOptions, - connectFirstChainId, - handleUri - } = options || {} +import type { WalletConnectOptions } from './index.js' +import { isHexString } from './index.js' + +function walletConnect(options: WalletConnectOptions): WalletInit { + if (options.version !== 1) throw `WalletConnect version must be set to 1 to initialize - note version 1 has been deprecated by the WalletConnect team` + + const { bridge, qrcodeModalOptions, connectFirstChainId, handleUri } = + options || {} + + console.warn( + `Wallet Connect version 1 support has been deprecated by the WalletConnect team. Please consider using version 2. See docs for more details.` + ) + + if (!bridge) { + throw `WalletConnect version 1 requires a bridge to be passed in. The WalletConnect team has remove support for the bridge. Please upgrade to version 2 of WalletConnect or pass in a custom bridge URL.` + } return () => { return { diff --git a/packages/walletconnect/src/v2.ts b/packages/walletconnect/src/v2.ts index e02c83a80..0e260950a 100644 --- a/packages/walletconnect/src/v2.ts +++ b/packages/walletconnect/src/v2.ts @@ -6,8 +6,9 @@ import type { WalletInit, EIP1193Provider } from '@web3-onboard/common' -import { JQueryStyleEventEmitter } from 'rxjs/internal/observable/fromEvent' -import { isHexString, WalletConnectOptions } from './index.js' +import type { WalletConnectOptions } from './index.js' +import type { JQueryStyleEventEmitter } from 'rxjs/internal/observable/fromEvent' +import { isHexString } from './index.js' // methods that require user interaction const methods = [ @@ -19,13 +20,20 @@ const methods = [ 'eth_signTypedData_v4' ] -function walletConnect(options?: WalletConnectOptions): WalletInit { - if (!options || options.version !== 2) { +function walletConnect(options: WalletConnectOptions): WalletInit { + if (options.version !== 2 || !options.projectId) { throw new Error( 'WalletConnect requires a projectId. Please visit https://cloud.walletconnect.com to get one.' ) } - const { projectId, handleUri, requiredChains, qrModalOptions } = options + const { + projectId, + handleUri, + requiredChains, + optionalChains, + qrModalOptions, + additionalOptionalMethods + } = options return () => { return { @@ -74,11 +82,28 @@ function walletConnect(options?: WalletConnectOptions): WalletInit { requiredChains.map(chainID => parseInt(chainID)) : [1] + // Defaults to the chains provided within the web3-onboard init chain property + const optionalChainsParsed: number[] = + Array.isArray(optionalChains) && + optionalChains.length && + optionalChains.every(num => !isNaN(num)) + ? // @ts-ignore + // Required as WC package does not support hex numbers + optionalChains.map(chainID => parseInt(chainID)) + : chains.map(({ id }) => parseInt(id, 16)) + + console.log(optionalChainsParsed, chains.map(({ id }) => parseInt(id, 16))) + + const optionalMethods = + additionalOptionalMethods && Array.isArray(additionalOptionalMethods) + ? [...additionalOptionalMethods, ...methods] + : methods + const connector = await EthereumProvider.init({ projectId, chains: requiredChainsParsed, // default to mainnet - optionalChains: chains.map(({ id }) => parseInt(id, 16)), - optionalMethods: methods, + optionalChains: optionalChainsParsed, + optionalMethods, showQrModal: true, rpcMap: chains .map(({ id, rpcUrl }) => ({ id, rpcUrl })) @@ -121,7 +146,8 @@ function walletConnect(options?: WalletConnectOptions): WalletInit { fromEvent(this.connector, 'accountsChanged', payload => payload) .pipe(takeUntil(this.disconnected$)) .subscribe({ - next: accounts => { + next: payload => { + const accounts = Array.isArray(payload) ? payload : [payload] this.emit('accountsChanged', accounts) }, error: console.warn diff --git a/yarn.lock b/yarn.lock index 7dd013eea..ebbcaeb98 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3434,10 +3434,10 @@ "@walletconnect/types" "^1.8.0" "@walletconnect/utils" "^1.8.0" -"@walletconnect/core@2.8.0": - version "2.8.0" - resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.8.0.tgz#f694e1562413c4eb700f6b3a83fa7964342100c0" - integrity sha512-pl7x4sq1nuU0ixA9wF2ecjDecUzIauKr7ZwC29rs9qTcmDpxgJbbOdZwaSl+dJlf1bHC87adVLf5KAkwwo9PzQ== +"@walletconnect/core@2.8.4": + version "2.8.4" + resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.8.4.tgz#fc207c8fa35a53e30012b0c85b6ca933cec7d955" + integrity sha512-3CQHud4As0kPRvlW1w/wSWS2F3yXlAo5kSEJyRWLRPqXG+aSCVWM8cVM8ch5yoeyNIfOHhEINdsYMuJG1+yIJQ== dependencies: "@walletconnect/heartbeat" "1.2.1" "@walletconnect/jsonrpc-provider" "1.0.13" @@ -3450,8 +3450,8 @@ "@walletconnect/relay-auth" "^1.0.4" "@walletconnect/safe-json" "^1.0.2" "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.8.0" - "@walletconnect/utils" "2.8.0" + "@walletconnect/types" "2.8.4" + "@walletconnect/utils" "2.8.4" events "^3.3.0" lodash.isequal "4.5.0" uint8arrays "^3.1.0" @@ -3524,19 +3524,19 @@ dependencies: tslib "1.14.1" -"@walletconnect/ethereum-provider@2.8.0": - version "2.8.0" - resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.8.0.tgz#15e9efa37b7c2455cd30c883f5698c89e481b163" - integrity sha512-nVVJtZUpoeurFjoEPYlrUHkT3YleCpEC9YAMKJyEIB3MZZInttcGxGyi0vwFQ+trCfuX8RrdKUPQ952NvxvCvw== +"@walletconnect/ethereum-provider@2.8.4": + version "2.8.4" + resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.8.4.tgz#c627c237b479194efc542b8475596bae12fde52d" + integrity sha512-z7Yz4w8t3eEFv8vQ8DLCgDWPah2aIIyC0iQdwhXgJenQTVuz7JJZRrJUUntzudipHK/owA394c1qTPF0rsMSeQ== 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/sign-client" "2.8.0" - "@walletconnect/types" "2.8.0" - "@walletconnect/universal-provider" "2.8.0" - "@walletconnect/utils" "2.8.0" + "@walletconnect/sign-client" "2.8.4" + "@walletconnect/types" "2.8.4" + "@walletconnect/universal-provider" "2.8.4" + "@walletconnect/utils" "2.8.4" events "^3.3.0" "@walletconnect/events@^1.0.1": @@ -3699,13 +3699,31 @@ resolved "https://registry.yarnpkg.com/@walletconnect/mobile-registry/-/mobile-registry-1.4.0.tgz#502cf8ab87330841d794819081e748ebdef7aee5" integrity sha512-ZtKRio4uCZ1JUF7LIdecmZt7FOLnX72RPSY7aUVu7mj7CSfxDwUn6gBuK6WGtH+NZCldBqDl5DenI5fFSvkKYw== -"@walletconnect/modal@2.4.3": - version "2.4.3" - resolved "https://registry.yarnpkg.com/@walletconnect/modal/-/modal-2.4.3.tgz#e213f2129415a059763e1f3d51da3c90eb39498b" - integrity sha512-YcvkfBN7qBdZk0juUxnbPsyA9n0v15PK+7vL55u1v1mgMhPosvUU2dMIcPqlan+TgSPByo7moEBbHtCbYZpLVw== +"@walletconnect/modal-core@2.5.5": + version "2.5.5" + resolved "https://registry.yarnpkg.com/@walletconnect/modal-core/-/modal-core-2.5.5.tgz#dc2ee96b1dd7cd9a1dc5e276c46068ee6349616a" + integrity sha512-M2BKcI5aqnGfMAz+MgTsvnTRzD25uz9YJ3/xuzy+ovgFCl2VCGH2Vdrf6Ptu+UR6UMuPdssG1TXXe1rd907Dxw== dependencies: - "@web3modal/core" "2.4.3" - "@web3modal/ui" "2.4.3" + buffer "6.0.3" + valtio "1.10.6" + +"@walletconnect/modal-ui@2.5.5": + version "2.5.5" + resolved "https://registry.yarnpkg.com/@walletconnect/modal-ui/-/modal-ui-2.5.5.tgz#f2ab96ab72f0f1325252224560ec610b73d1684c" + integrity sha512-g0LJ/gRhZ5E30gk4GnMpDlQzLFWyRjsJp57s9rZmlVkry5mfhCZ3Oh0mfgv2/ILVxdB4fUo1BjatKyOpSogOmg== + dependencies: + "@walletconnect/modal-core" "2.5.5" + lit "2.7.5" + motion "10.16.2" + qrcode "1.5.3" + +"@walletconnect/modal@2.5.5": + version "2.5.5" + resolved "https://registry.yarnpkg.com/@walletconnect/modal/-/modal-2.5.5.tgz#703eb076af4442dcd14a3b0b87863f17283f6514" + integrity sha512-y1PH1xXzFDtVZErfQErPPJzPU9DKLp4M0IEaza8LfegqHfTFaGa0s3AL+i5+7FIk9+5OHSv0Wv+e5tmSZt96yA== + dependencies: + "@walletconnect/modal-core" "2.5.5" + "@walletconnect/modal-ui" "2.5.5" "@walletconnect/qrcode-modal@^1.7.1": version "1.7.1" @@ -3788,19 +3806,19 @@ dependencies: tslib "1.14.1" -"@walletconnect/sign-client@2.8.0": - version "2.8.0" - resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.8.0.tgz#735dc8bf120242584fb2ff22c6a3d672c1fae1a1" - integrity sha512-+l9qwvVeUGk0fBQsgx6yb6hdGYt8uQ3a9jR9GgsJvm8FjFh1oUzTKqFnG7XdhCBnzFnbSoLr41Xe8PbN8qoUSw== +"@walletconnect/sign-client@2.8.4": + version "2.8.4" + resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.8.4.tgz#35e7cfe9442c65d7f667a7c20f1a5ee7e2a6e576" + integrity sha512-eRvWtKBAgzo/rbIkw+rkKco2ulSW8Wor/58UsOBsl9DKr1rIazZd4ZcUdaTjg9q8AT1476IQakCAIuv+1FvJwQ== dependencies: - "@walletconnect/core" "2.8.0" + "@walletconnect/core" "2.8.4" "@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.8.0" - "@walletconnect/utils" "2.8.0" + "@walletconnect/types" "2.8.4" + "@walletconnect/utils" "2.8.4" events "^3.3.0" "@walletconnect/socket-transport@^1.7.1": @@ -3840,10 +3858,10 @@ "@walletconnect/logger" "^2.0.1" events "^3.3.0" -"@walletconnect/types@2.8.0": - version "2.8.0" - resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.8.0.tgz#f8a5f09ee2b31abed231966e7e1eebd22be058a2" - integrity sha512-FMeGK3lGXFDwcs5duoN74xL1aLrkgYqnavWE0DnFPt2i1QmSUITU9c8f88EDh8uPXANd2WIYOItm0DVCNxLGGA== +"@walletconnect/types@2.8.4": + version "2.8.4" + resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.8.4.tgz#23fad8593b094c7564d72f179e33b1cac9324a88" + integrity sha512-Fgqe87R7rjMOGSvx28YPLTtXM6jj+oUOorx8cE+jEw2PfpWp5myF21aCdaMBR39h0QHij5H1Z0/W9e7gm4oC1Q== dependencies: "@walletconnect/events" "^1.0.1" "@walletconnect/heartbeat" "1.2.1" @@ -3874,26 +3892,25 @@ "@walletconnect/logger" "^2.0.1" events "^3.3.0" -"@walletconnect/universal-provider@2.8.0": - version "2.8.0" - resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.8.0.tgz#134f6873742f672c2424969335f9cc75d1532d17" - integrity sha512-BMsGiINI3rT7DRyDJM7miuWG6vDVE0PV6zMcCXIMDYYPay7zFvJxv2VHEx9an4MutrvQR76NTRyG//i1K84VOQ== +"@walletconnect/universal-provider@2.8.4": + version "2.8.4" + resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.8.4.tgz#7b62a76a7d99ea41c67374da54aaa4f1b4bc1d03" + integrity sha512-JRpOXKIciRMzd03zZxM1WDsYHo/ZS86zZrZ1aCHW1d45ZLP7SbGPRHzZgBY3xrST26yTvWIlRfTUEYn50fzB1g== 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.8.0" - "@walletconnect/types" "2.8.0" - "@walletconnect/utils" "2.8.0" - eip1193-provider "1.0.1" + "@walletconnect/sign-client" "2.8.4" + "@walletconnect/types" "2.8.4" + "@walletconnect/utils" "2.8.4" events "^3.3.0" -"@walletconnect/utils@2.8.0": - version "2.8.0" - resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.8.0.tgz#c219e78fd2c35062cf3e37f84961afde8da9b9a1" - integrity sha512-Q8OwMtUevIn1+64LXyTMLlhH58k3UOAjU5b3smYZ7CEEmwEGpOTfTDAWrB3v+ZDIhjyqP94+8fuvKIbcVLKLWA== +"@walletconnect/utils@2.8.4": + version "2.8.4" + resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.8.4.tgz#8dbd3beaef39388be2398145a5f9a061a0317518" + integrity sha512-NGw6BINYNeT9JrQrnxldAPheO2ymRrwGrgfExZMyrkb1MShnIX4nzo4KirKInM4LtrY6AA/v0Lu3ooUdfO+xIg== dependencies: "@stablelib/chacha20poly1305" "1.0.1" "@stablelib/hkdf" "1.0.1" @@ -3903,7 +3920,7 @@ "@walletconnect/relay-api" "^1.0.9" "@walletconnect/safe-json" "^1.0.2" "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.8.0" + "@walletconnect/types" "2.8.4" "@walletconnect/window-getters" "^1.0.1" "@walletconnect/window-metadata" "^1.0.1" detect-browser "5.3.0" @@ -3984,6 +4001,25 @@ "@walletconnect/window-getters" "^1.0.1" tslib "1.14.1" +"@web3-onboard/core@^2.20.3": + version "2.20.3" + resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.20.3.tgz#e123979f9360057cd184d715fdedc9f0bbf45941" + integrity sha512-2fm8kJ4T4DXvPNU7rjWCAxFFEZXx2Xz7LiUCg+qXvhiHzJBBxGOBbL81HwZk9hR3eZzWwQt9tLmbFx0G2uREow== + dependencies: + "@web3-onboard/common" "^2.3.3" + bignumber.js "^9.0.0" + bnc-sdk "^4.6.7" + bowser "^2.11.0" + ethers "5.5.3" + eventemitter3 "^4.0.7" + joi "17.9.1" + lodash.merge "^4.6.2" + lodash.partition "^4.6.0" + nanoid "^4.0.0" + rxjs "^7.5.5" + svelte "^3.49.0" + svelte-i18n "^3.3.13" + "@web3-react/abstract-connector@^6.0.7": version "6.0.7" resolved "https://registry.yarnpkg.com/@web3-react/abstract-connector/-/abstract-connector-6.0.7.tgz#401b3c045f1e0fab04256311be49d5144e9badc6" @@ -4197,24 +4233,6 @@ "@web3auth/base-evm-adapter" "^5.2.0" "@web3auth/ethereum-provider" "^5.2.0" -"@web3modal/core@2.4.3": - version "2.4.3" - resolved "https://registry.yarnpkg.com/@web3modal/core/-/core-2.4.3.tgz#ea6d3911e52a132c70defb7584f869d09a8af974" - integrity sha512-7Z/sDe9RIYQ2k9ITcxgEa/u7FvlI76vcVVZn9UY4ISivefqrH4JAS3GX4JmVNUUlovwuiZdyqBv4llAQOMK6Rg== - dependencies: - buffer "6.0.3" - valtio "1.10.5" - -"@web3modal/ui@2.4.3": - version "2.4.3" - resolved "https://registry.yarnpkg.com/@web3modal/ui/-/ui-2.4.3.tgz#986c6bed528dccab679c734ff531e42f6605c5b2" - integrity sha512-J989p8CdtEhI9gZHf/rZ/WFqYlrAHWw9GmAhFoiNODwjAp0BoG/uoaPiijJMchXdngihZOjLGCQwDXU16DHiKg== - dependencies: - "@web3modal/core" "2.4.3" - lit "2.7.5" - motion "10.16.2" - qrcode "1.5.3" - "@webassemblyjs/ast@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.11.1.tgz#2bfd767eae1a6996f432ff7e8d7fc75679c0b6a7" @@ -6268,7 +6286,7 @@ eip-712@^0.4.3: keccak "^3.0.1" superstruct "^0.10.12" -eip1193-provider@1.0.1, eip1193-provider@^1.0.1: +eip1193-provider@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/eip1193-provider/-/eip1193-provider-1.0.1.tgz#420d29cf4f6c443e3f32e718fb16fafb250637c3" integrity sha512-kSuqwQ26d7CzuS/t3yRXo2Su2cVH0QfvyKbr2H7Be7O5YDyIq4hQGCNTo5wRdP07bt+E2R/8nPCzey4ojBHf7g== @@ -12301,10 +12319,10 @@ v8-compile-cache@^2.0.3: resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== -valtio@1.10.5: - version "1.10.5" - resolved "https://registry.yarnpkg.com/valtio/-/valtio-1.10.5.tgz#7852125e3b774b522827d96bd9c76d285c518678" - integrity sha512-jTp0k63VXf4r5hPoaC6a6LCG4POkVSh629WLi1+d5PlajLsbynTMd7qAgEiOSPxzoX5iNvbN7iZ/k/g29wrNiQ== +valtio@1.10.6: + version "1.10.6" + resolved "https://registry.yarnpkg.com/valtio/-/valtio-1.10.6.tgz#80ed00198b949939863a0fa56ae687abb417fc4f" + integrity sha512-SxN1bHUmdhW6V8qsQTpCgJEwp7uHbntuH0S9cdLQtiohuevwBksbpXjwj5uDMA7bLwg1WKyq9sEpZrx3TIMrkA== dependencies: proxy-compare "2.5.1" use-sync-external-store "1.2.0"