diff --git a/docs/package.json b/docs/package.json index 5990eb1ff..99fbff2a5 100644 --- a/docs/package.json +++ b/docs/package.json @@ -52,7 +52,7 @@ "@web3-onboard/blocto": "^2.0.0-alpha.1", "@web3-onboard/cede-store": "^2.0.2", "@web3-onboard/coinbase": "^2.2.4", - "@web3-onboard/core": "^2.20.3-alpha.1", + "@web3-onboard/core": "^2.20.4-alpha.1", "@web3-onboard/dcent": "^2.2.7", "@web3-onboard/enkrypt": "^2.0.4", "@web3-onboard/fortmatic": "^2.0.19", @@ -64,20 +64,20 @@ "@web3-onboard/injected-wallets": "^2.10.1", "@web3-onboard/keepkey": "^2.3.7", "@web3-onboard/keystone": "^2.3.7", - "@web3-onboard/ledger": "^2.4.6", + "@web3-onboard/ledger": "^2.5.0-alpha.1", "@web3-onboard/magic": "^2.1.7", "@web3-onboard/mew-wallet": "^2.0.4", "@web3-onboard/phantom": "^2.0.2", "@web3-onboard/portis": "^2.1.7", "@web3-onboard/sequence": "^2.0.8", - "@web3-onboard/taho": "^2.0.4", + "@web3-onboard/taho": "^2.0.5-alpha.1", "@web3-onboard/torus": "^2.2.5", "@web3-onboard/transaction-preview": "^2.0.8", "@web3-onboard/trezor": "^2.4.2", "@web3-onboard/trust": "^2.0.4", - "@web3-onboard/uauth": "^2.0.5", + "@web3-onboard/uauth": "^2.1.0-alpha.1", "@web3-onboard/venly": "^2.0.0", - "@web3-onboard/walletconnect": "^2.3.9", + "@web3-onboard/walletconnect": "^2.4.0-alpha.2", "@web3-onboard/web3auth": "^2.2.3", "@web3-onboard/xdefi": "^2.0.4", "@web3-onboard/zeal": "^2.0.4", diff --git a/docs/src/lib/services/onboard.js b/docs/src/lib/services/onboard.js index 9d1e1256a..36d0d3435 100644 --- a/docs/src/lib/services/onboard.js +++ b/docs/src/lib/services/onboard.js @@ -69,7 +69,7 @@ const intiOnboard = async (theme) => { mobileLinks: ['rainbow', 'metamask', 'argent', 'trust', 'imtoken', 'pillar'] } }) - const ledger = ledgerModule() + const ledger = ledgerModule({ projectId: 'f6bd6e2911b56f5ac3bc8b2d0e2d7ad5' }) const keystone = keystoneModule() const keepkey = keepkeyModule() const gnosis = gnosisModule() @@ -99,7 +99,8 @@ const intiOnboard = async (theme) => { const uauthOptions = { clientID: 'a25c3a65-a1f2-46cc-a515-a46fe7acb78c', redirectUri: 'http://localhost:8080/', - scope: 'openid wallet email:optional humanity_check:optional profile:optional social:optional' + scope: 'openid wallet email:optional humanity_check:optional profile:optional social:optional', + walletConnectProjectId: 'f6bd6e2911b56f5ac3bc8b2d0e2d7ad5' } const uauth = uauthModule(uauthOptions) 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 13eb3608b..4bf355902 100644 --- a/docs/src/routes/docs/[...3]modules/[...1]core/+page.md +++ b/docs/src/routes/docs/[...3]modules/[...1]core/+page.md @@ -19,6 +19,7 @@ This is the core package that contains all of the UI and logic to be able to sea :::admonition type="tip" _note: Release 2.24.0 moves the default position of the account center from topRight to bottomRight. To reset your application to topRight, include the following when initializing onboard:_ + ```typescript accountCenter: { desktop: { @@ -31,6 +32,7 @@ _note: Release 2.24.0 moves the default position of the account center from topR } } ``` + ::: ## Install @@ -279,6 +281,10 @@ type ConnectModalOptions = { * Defaults to `https://www.blocknative.com/blog/metamask-wont-connect-web3-wallet-troubleshooting` */ wheresMyWalletLink?: string + /** + * Hide the where is my wallet link notice displayed in the connect modal + */ + removeWhereIsMyWalletWarning?: boolean /** * @deprecated Has no effect unless `@web3-onboard/unstoppable-resolution` * package has been added and passed into the web3-onboard initialization diff --git a/docs/src/routes/docs/[...4]wallets/[...13]ledger/+page.md b/docs/src/routes/docs/[...4]wallets/[...13]ledger/+page.md index c16e39990..41de7ec78 100644 --- a/docs/src/routes/docs/[...4]wallets/[...13]ledger/+page.md +++ b/docs/src/routes/docs/[...4]wallets/[...13]ledger/+page.md @@ -28,12 +28,44 @@ npm install @web3-onboard/core @web3-onboard/ledger ## Options ```typescript -interface LedgerOptions { +type LedgerOptionsWCv1 = { + /** + * @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 + */ + walletConnectVersion?: 1 + enableDebugLogs?: boolean chainId?: number bridge?: string infuraId?: string rpc?: { [chainId: number]: string } } + +type LedgerOptionsWCv2 = { + walletConnectVersion: 2 + enableDebugLogs?: boolean + /** + * Project ID associated with [WalletConnect account](https://cloud.walletconnect.com) + */ + projectId: string + /** + * 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 + */ + requiredChains?: string[] | number[] + requiredMethods?: string[] + /** + * 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 + */ + optionalMethods?: string[] + requiredEvents?: string[] + optionalEvents?: string[] +} + +type LedgerOptions = LedgerOptionsWCv1 | LedgerOptionsWCv2 ``` ## Usage @@ -42,7 +74,16 @@ interface LedgerOptions { import Onboard from '@web3-onboard/core' import ledgerModule from '@web3-onboard/ledger' -const ledger = ledgerModule() +const ledger = ledgerModule({ + /** + * Project ID associated with [WalletConnect account](https://cloud.walletconnect.com) + */ + projectId: 'abc123...', + /** + * Chains required to be supported by all wallets connecting to your DApp + */ + requiredChains: [1, 137] +}) const onboard = Onboard({ // ... other Onboard options diff --git a/docs/src/routes/docs/[...4]wallets/[...23]uauth/+page.md b/docs/src/routes/docs/[...4]wallets/[...23]uauth/+page.md index d8b5e420f..36639a6c8 100644 --- a/docs/src/routes/docs/[...4]wallets/[...23]uauth/+page.md +++ b/docs/src/routes/docs/[...4]wallets/[...23]uauth/+page.md @@ -32,15 +32,49 @@ Follow the [Login Client Congifuration Docs](https://docs.unstoppabledomains.com ```typescript type UauthInitOptions = { - clientID: string // required and will throw an error if not included: links dapp to Unstoppable Domains for customization - redirectUri: string // required and will throw an error if not included: used for pop-up and callback redirection - scope?: string // default = 'openid wallet' - shouldLoginWithRedirect?: boolean // if true, redirects to your callback page - 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 + /** + * Required and will throw an error if not included: links dapp to Unstoppable Domains for customization + */ + clientID: string + /** + * Required and will throw an error if not included: used for pop-up and callback redirection + */ + redirectUri: string + /** + * Optional string: Default = 'openid wallet' + */ + scope?: string + /** + * Optional boolean: If true, redirects to your callback page + */ + shouldLoginWithRedirect?: boolean + /** + * Project ID associated with [WalletConnect account](https://cloud.walletconnect.com) + */ + walletConnectProjectId: string + /** + * Defaults to version: 2 + */ + version?: 2 + /** + * List of Required Chain(s) ID for wallets to support in number format (integer or hex) + * Defaults to [1] - Ethereum + */ + 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 + /** + * 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 + /** + * Optional function to handle WalletConnect URI when it becomes available + */ + handleUri?: (uri: string) => Promise } ``` @@ -52,21 +86,18 @@ import uauthModule from '@web3-onboard/uauth' // initialize the module with options const uauth = uauthModule({ - clientID: 'YOUR_CLIENT_ID', - redirectUri: 'YOUR_REDIRECT_URI', - scope?: 'YOUR_SCOPES', - shouldLoginWithRedirect?: false - bridge?: 'YOUR_CUSTOM_BRIDGE_SERVER', - qrcodeModalOptions?: { - mobileLinks: ['rainbow', 'metamask', 'argent', 'trust', 'imtoken', 'pillar'] - }, - connectFirstChainId?: true + clientID: 'a25c3a65-a1f2-46cc-a515-a46fe7acb78c', + walletConnectProjectId: 'f6bd6e2911b56f5ac3bc8b2d0e2d7ad5', + redirectUri: 'http://localhost:8080/', + scope: + 'openid wallet email:optional humanity_check:optional profile:optional social:optional' }) // can also initialize with basic options... // const uauth = uauthModule({ // clientID: "YOUR_CLIENT_ID", -// redirectUri: "YOUR_REDIRECT_URI" +// redirectUri: "YOUR_REDIRECT_URI", +// walletConnectProjectId: 'f6bd6e2911b56f5ac3bc8b2d0e2d7ad5', // }) const onboard = Onboard({ 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..577f68dc0 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({ diff --git a/docs/yarn.lock b/docs/yarn.lock index 8ff139b4d..9f2c4393d 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -2556,10 +2556,10 @@ rxjs "^6.6.3" typescript "^4.6.2" -"@ledgerhq/connect-kit-loader@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@ledgerhq/connect-kit-loader/-/connect-kit-loader-1.0.2.tgz#8554e16943f86cc2a5f6348a14dfe6e5bd0c572a" - integrity sha512-TQ21IjcZOw/scqypaVFY3jHVqI7X7Hta3qN/us6FvTol3AY06UmrhhXGww0E9xHmAbdX241ddwXEiMBSQZFr9g== +"@ledgerhq/connect-kit-loader@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/connect-kit-loader/-/connect-kit-loader-1.1.0.tgz#10343b78ef13436818bf3453568a559c0eeb9d48" + integrity sha512-HUy12FEczoWY2FPubnsm1uOA8tkVWc0j90i47suThV3C9NL2xx69ZAIEU3Ytzs2bwLek9S1Q2S1VQJvA+3Ygkg== "@lit-labs/ssr-dom-shim@^1.0.0", "@lit-labs/ssr-dom-shim@^1.1.0": version "1.1.1" @@ -4016,7 +4016,7 @@ "@walletconnect/window-metadata" "1.0.0" detect-browser "5.2.0" -"@walletconnect/client@^1.7.1", "@walletconnect/client@^1.8.0": +"@walletconnect/client@^1.8.0": version "1.8.0" resolved "https://registry.yarnpkg.com/@walletconnect/client/-/client-1.8.0.tgz#6f46b5499c7c861c651ff1ebe5da5b66225ca696" integrity sha512-svyBQ14NHx6Cs2j4TpkQaBI/2AF4+LXz64FojTjMtV4VMMhl81jSO1vNeg+yYhQzvjcGH/GpSwixjyCW0xFBOQ== @@ -4026,10 +4026,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" @@ -4042,8 +4042,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" @@ -4085,19 +4085,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": @@ -4218,15 +4218,59 @@ 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.4": + version "2.5.4" + resolved "https://registry.yarnpkg.com/@walletconnect/modal-core/-/modal-core-2.5.4.tgz#7d739a90a9cf103067eea46507ea649e8dada436" + integrity sha512-ISe4LqmEDFU7b6rLgonqaEtMXzG6ko13HA7S8Ty3d7GgfAEe29LM1dq3zo8ehEOghhofhj1PiiNfvaogZKzT1g== + dependencies: + buffer "6.0.3" + valtio "1.10.6" + +"@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: + buffer "6.0.3" + valtio "1.10.6" + +"@walletconnect/modal-ui@2.5.4": + version "2.5.4" + resolved "https://registry.yarnpkg.com/@walletconnect/modal-ui/-/modal-ui-2.5.4.tgz#0433fb0226dd47e17fede620c5a5ff332baed155" + integrity sha512-5qLLjwbE3YC4AsCVhf8J87otklkApcQ5DCMykOcS0APPv8lKQ46JxpQhfWwRYaUkuIiHonI9h1YxFARDkoaI9g== dependencies: - "@web3modal/core" "2.4.3" - "@web3modal/ui" "2.4.3" + "@walletconnect/modal-core" "2.5.4" + lit "2.7.5" + motion "10.16.2" + qrcode "1.5.3" -"@walletconnect/qrcode-modal@^1.7.1", "@walletconnect/qrcode-modal@^1.8.0": +"@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.4": + version "2.5.4" + resolved "https://registry.yarnpkg.com/@walletconnect/modal/-/modal-2.5.4.tgz#66659051f9c0f35c151d3a8d940f8c64d42fab74" + integrity sha512-JAKMcCd4JQvSEr7pNitg3OBke4DN1JyaQ7bdi3x4T7oLgOr9Y88qdkeOXko/0aJonDHJsM88hZ10POQWmKfEMA== + dependencies: + "@walletconnect/modal-core" "2.5.4" + "@walletconnect/modal-ui" "2.5.4" + +"@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.8.0": version "1.8.0" resolved "https://registry.yarnpkg.com/@walletconnect/qrcode-modal/-/qrcode-modal-1.8.0.tgz#ddd6f5c9b7ee52c16adf9aacec2a3eac4994caea" integrity sha512-BueaFefaAi8mawE45eUtztg3ZFbsAH4DDXh1UNwdUlsvFMjqcYzLUG0xZvDd6z2eOpbgDg2N3bl6gF0KONj1dg== @@ -4280,19 +4324,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.8.0": @@ -4323,10 +4367,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" @@ -4340,26 +4384,25 @@ resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-1.8.0.tgz#3f5e85b2d6b149337f727ab8a71b8471d8d9a195" integrity sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg== -"@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" @@ -4369,7 +4412,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" @@ -4470,10 +4513,10 @@ ethers "5.5.4" joi "17.9.1" -"@web3-onboard/core@^2.20.3-alpha.1": - version "2.20.3-alpha.1" - resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.20.3-alpha.1.tgz#4ffd0eb7293c6fcd05860012be9b0af9b038f169" - integrity sha512-oqcNhEcgtmxeiwMF1BIxZQHEvZwHpUSUkCRwn3gheu28UWCB3bnSSiEuH2vzH8loQEqmj4LSi/bDzGHV3LdOWA== +"@web3-onboard/core@^2.20.4-alpha.1": + version "2.20.4-alpha.1" + resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.20.4-alpha.1.tgz#fb28c5fb68af989a9ef96fa05376de58e7c03af8" + integrity sha512-B4NPf2zSIry+wKTBDlN+gKfaAFSqQ8jYJ7V9un7llGXwllc6Zf91GiIUYecluk8UaanogYGRrTMR0njTPIsN0w== dependencies: "@web3-onboard/common" "^2.3.3" bignumber.js "^9.0.0" @@ -4598,14 +4641,15 @@ "@web3-onboard/common" "^2.3.3" "@web3-onboard/hw-common" "^2.3.0" -"@web3-onboard/ledger@^2.4.6": - version "2.4.6" - resolved "https://registry.yarnpkg.com/@web3-onboard/ledger/-/ledger-2.4.6.tgz#1e92c2a5b59920f9ee70294314854dcea905e18d" - integrity sha512-TuWtZvhaxRXNKHRoqryt6cFRVpmVo3z4Zvos4+FS1/ZaNB5aBgZAH3MGWZhX0OFAKRki8JyOWVFJNdM7yUO4pA== +"@web3-onboard/ledger@^2.5.0-alpha.1": + version "2.5.0-alpha.1" + resolved "https://registry.yarnpkg.com/@web3-onboard/ledger/-/ledger-2.5.0-alpha.1.tgz#3552a580f15bcb9c037f27e88b70a9d60a83faec" + integrity sha512-l53egi5Ncy0hFG1Nij+toLm/3OjL+PTyyuigHdnHcey8R8fVBdaYIRKSpilMyuN0/luSk/ttSGL+5lBK8rurlw== dependencies: - "@ethersproject/providers" "^5.5.0" - "@ledgerhq/connect-kit-loader" "^1.0.2" - "@walletconnect/client" "^1.7.1" + "@ledgerhq/connect-kit-loader" "^1.1.0" + "@walletconnect/client" "^1.8.0" + "@walletconnect/ethereum-provider" "2.8.4" + "@walletconnect/modal" "2.5.4" "@web3-onboard/common" "^2.3.3" rxjs "^7.5.2" @@ -4650,10 +4694,10 @@ "0xsequence" "^0.43.1" "@web3-onboard/common" "^2.3.3" -"@web3-onboard/taho@^2.0.4": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@web3-onboard/taho/-/taho-2.0.4.tgz#5566531c666c62dba2b95ba1a7c269702ab8c169" - integrity sha512-1cObIJEJZSg9o/SdsNqZP3V9t8/KJ+ZcTuQgc1quExWbUpWMafE7ASusyOU5jsy3gKo4+xI147MAw4AjRJUXiw== +"@web3-onboard/taho@^2.0.5-alpha.1": + version "2.0.5-alpha.1" + resolved "https://registry.yarnpkg.com/@web3-onboard/taho/-/taho-2.0.5-alpha.1.tgz#ae0306a17a0426253fe706e7d0df393e40959f03" + integrity sha512-6ErW3+d7H1LD3rlABHYCReBhM84a33+axNWkPZONYcdd3zgfyTlmPKMi1JWYpX89hbK1y09f+yAX73bTP3/UAA== dependencies: "@web3-onboard/common" "^2.3.3" tallyho-detect-provider "^1.0.0" @@ -4702,15 +4746,17 @@ dependencies: "@web3-onboard/common" "^2.3.3" -"@web3-onboard/uauth@^2.0.5": - version "2.0.5" - resolved "https://registry.yarnpkg.com/@web3-onboard/uauth/-/uauth-2.0.5.tgz#d6be8e5cb8fda6117ef2524b8313e03f16971391" - integrity sha512-bl0lvaZ20oPTEXNYR+LiXoE2CjK75GUMWSgF1Ub70NPAsJ4ryGw9vWlfcjd7bnMkOSwK6oaLSu2UN7j2omApGg== +"@web3-onboard/uauth@^2.1.0-alpha.1": + version "2.1.0-alpha.1" + resolved "https://registry.yarnpkg.com/@web3-onboard/uauth/-/uauth-2.1.0-alpha.1.tgz#1c666c4e0537ab36c90f0fc442b10ed0fe6d7109" + integrity sha512-q0FuDPaRNKI/G3yLFVBgWwnqkhjr0a2pRBAd0p97RMbk/pJ3fAKUZaYTWN3UQ1eTDMQcnOaGtw3MOGX5GNpyhg== dependencies: "@ethersproject/providers" "^5.5.0" "@uauth/js" "^2.4.0" - "@walletconnect/client" "^1.7.1" - "@walletconnect/qrcode-modal" "^1.7.1" + "@walletconnect/client" "^1.8.0" + "@walletconnect/ethereum-provider" "2.8.4" + "@walletconnect/modal" "2.5.5" + "@walletconnect/qrcode-modal" "^1.8.0" "@web3-onboard/common" "^2.3.3" joi "17.9.1" rxjs "^7.5.2" @@ -4723,15 +4769,15 @@ "@venly/web3-provider" "^3.1.1" "@web3-onboard/common" "^2.3.1" -"@web3-onboard/walletconnect@^2.3.9": - version "2.3.9" - resolved "https://registry.yarnpkg.com/@web3-onboard/walletconnect/-/walletconnect-2.3.9.tgz#a569db39db61c927fee70744c5fcf015dad47042" - integrity sha512-0n1UesJLNNU33j/I0X4QHVL8AhFb6Oyo/ZU3EEYeDBev2Cis1A6Bvl38BfmeBBMdBOZBxeTOC2kNeRjvvvpzhA== +"@web3-onboard/walletconnect@^2.4.0-alpha.2": + version "2.4.0-alpha.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/walletconnect/-/walletconnect-2.4.0-alpha.2.tgz#8c959c51194b8703bb174075feb5874e115cea6d" + integrity sha512-qyDZT4iw7EQrk7HLi+G9LMON13Z//w+ipQFH0NHZPuLVaQ/w6oS7HD+bFQHYsC9Xn7XMrE/sGRCw8wEX3de4ZA== dependencies: "@ethersproject/providers" "5.5.0" "@walletconnect/client" "^1.8.0" - "@walletconnect/ethereum-provider" "2.8.0" - "@walletconnect/modal" "2.4.3" + "@walletconnect/ethereum-provider" "2.8.4" + "@walletconnect/modal" "2.5.5" "@walletconnect/qrcode-modal" "^1.8.0" "@web3-onboard/common" "^2.3.3" rxjs "^7.5.2" @@ -4962,24 +5008,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" - JSONStream@^1.3.5: version "1.3.5" resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0" @@ -6737,7 +6765,7 @@ eip-712@^1.0.0: "@noble/hashes" "^1.0.0" superstruct "^0.15.3" -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== @@ -12643,10 +12671,10 @@ uuid@^8.3.2: resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== -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" diff --git a/examples/with-sveltekit/package.json b/examples/with-sveltekit/package.json index 15309369f..f74a50464 100644 --- a/examples/with-sveltekit/package.json +++ b/examples/with-sveltekit/package.json @@ -27,7 +27,7 @@ "svelte-preprocess": "^5.0.1", "tslib": "^2.5.0", "typescript": "^4.9.5", - "vite": "^4.0.4" + "vite": "^4.0.5" }, "type": "module", "dependencies": { diff --git a/examples/with-sveltekit/yarn.lock b/examples/with-sveltekit/yarn.lock index 67a9d6ba6..04681480a 100644 --- a/examples/with-sveltekit/yarn.lock +++ b/examples/with-sveltekit/yarn.lock @@ -142,7 +142,7 @@ "@ethersproject/properties" "^5.5.0" "@ethersproject/strings" "^5.5.0" -"@ethersproject/abi@^5.0.1", "@ethersproject/abi@^5.5.0": +"@ethersproject/abi@^5.5.0": version "5.7.0" resolved "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.7.0.tgz#b3f3e045bbbeed1af3947335c247ad625a44e449" integrity sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA== @@ -898,6 +898,11 @@ resolved "https://registry.yarnpkg.com/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.0.0.tgz#427e19a2765681fd83411cd72c55ba80a01e0523" integrity sha512-ic93MBXfApIFTrup4a70M/+ddD8xdt2zxxj9sRwHQzhS9ag/syqkD8JPdTXsc1gUy2K8TTirhlCqyTEM/sifNw== +"@lit-labs/ssr-dom-shim@^1.1.0": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.1.1.tgz#64df34e2f12e68e78ac57e571d25ec07fa460ca9" + integrity sha512-kXOeFbfCm4fFf2A3WwVEeQj55tMZa8c8/f9AKHMobQMkzNUfUj+antR3fRPaZJawsa1aZiP/Da3ndpZrwEe4rQ== + "@lit/reactive-element@^1.3.0", "@lit/reactive-element@^1.6.0": version "1.6.1" resolved "https://registry.yarnpkg.com/@lit/reactive-element/-/reactive-element-1.6.1.tgz#0d958b6d479d0e3db5fc1132ecc4fa84be3f0b93" @@ -915,10 +920,10 @@ "@motionone/utils" "^10.15.1" tslib "^2.3.1" -"@motionone/dom@^10.15.5": - version "10.15.5" - resolved "https://registry.yarnpkg.com/@motionone/dom/-/dom-10.15.5.tgz#4af18f8136d85c2fc997cac98121c969f6731802" - integrity sha512-Xc5avlgyh3xukU9tydh9+8mB8+2zAq+WlLsC3eEIp7Ax7DnXgY7Bj/iv0a4X2R9z9ZFZiaXK3BO0xMYHKbAAdA== +"@motionone/dom@^10.16.2": + version "10.16.2" + resolved "https://registry.yarnpkg.com/@motionone/dom/-/dom-10.16.2.tgz#0c44df8ee3d1cfc50ee11d27050b27824355a61a" + integrity sha512-bnuHdNbge1FutZXv+k7xub9oPWcF0hsu8y1HTH/qg6av58YI0VufZ3ngfC7p2xhMJMnoh0LXFma2EGTgPeCkeg== dependencies: "@motionone/animation" "^10.15.1" "@motionone/generators" "^10.15.1" @@ -944,12 +949,12 @@ "@motionone/utils" "^10.15.1" tslib "^2.3.1" -"@motionone/svelte@^10.15.5": - version "10.15.5" - resolved "https://registry.yarnpkg.com/@motionone/svelte/-/svelte-10.15.5.tgz#f36b40101ec1db122820598089f42e831f6cf5f5" - integrity sha512-Xyxtgp7BlVnSBwcoFmXGHUVnpNktzeXsEifu2NJJWc7VGuxutDsBZxNdz80qvpLIC5MeBa1wh7GGegZzTm1msg== +"@motionone/svelte@^10.16.2": + version "10.16.2" + resolved "https://registry.yarnpkg.com/@motionone/svelte/-/svelte-10.16.2.tgz#0b37c3b12927814d31d24941d1ca0ff49981b444" + integrity sha512-38xsroKrfK+aHYhuQlE6eFcGy0EwrB43Q7RGjF73j/kRUTcLNu/LAaKiLLsN5lyqVzCgTBVt4TMT/ShWbTbc5Q== dependencies: - "@motionone/dom" "^10.15.5" + "@motionone/dom" "^10.16.2" tslib "^2.3.1" "@motionone/types@^10.15.1": @@ -966,12 +971,12 @@ hey-listen "^1.0.8" tslib "^2.3.1" -"@motionone/vue@^10.15.5": - version "10.15.5" - resolved "https://registry.yarnpkg.com/@motionone/vue/-/vue-10.15.5.tgz#3101c62b2fce06b3f3072b9ff0f551213eb02476" - integrity sha512-cUENrLYAolUacHvCgU+8wF9OgSlVutfWbHMLERI/bElCJ+e2YVQvG/CpGhIM5fYOOJzuvg2T2wHmLLmvJoavEw== +"@motionone/vue@^10.16.2": + version "10.16.2" + resolved "https://registry.yarnpkg.com/@motionone/vue/-/vue-10.16.2.tgz#faf13afc27620a2df870c71c58a04ee8de8dea65" + integrity sha512-7/dEK/nWQXOkJ70bqb2KyNfSWbNvWqKKq1C8juj+0Mg/AorgD8O5wE3naddK0G+aXuNMqRuc4jlsYHHWHtIzVw== dependencies: - "@motionone/dom" "^10.15.5" + "@motionone/dom" "^10.16.2" tslib "^2.3.1" "@nodelib/fs.scandir@2.1.5": @@ -1337,17 +1342,6 @@ "@typescript-eslint/types" "5.49.0" eslint-visitor-keys "^3.3.0" -"@unstoppabledomains/resolution@^8.0": - version "8.5.0" - resolved "https://registry.yarnpkg.com/@unstoppabledomains/resolution/-/resolution-8.5.0.tgz#7f65146fb3bc69bfae8699c4ed1c61f3d6f0096c" - integrity sha512-csqExbiK8F5mRKoHlDZjGuIEuvi63O8PSyhUcGhnTi76Il5fCREAGNVdTiRxagPPYoxCO+Xmf6kThwtmiws1Ow== - dependencies: - "@ethersproject/abi" "^5.0.1" - bn.js "^4.4.0" - cross-fetch "^3.1.4" - crypto-js "^4.1.1" - elliptic "^6.5.4" - "@walletconnect/browser-utils@^1.8.0": version "1.8.0" resolved "https://registry.npmjs.org/@walletconnect/browser-utils/-/browser-utils-1.8.0.tgz#33c10e777aa6be86c713095b5206d63d32df0951" @@ -1369,14 +1363,15 @@ "@walletconnect/types" "^1.8.0" "@walletconnect/utils" "^1.8.0" -"@walletconnect/core@2.7.0": - version "2.7.0" - resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.7.0.tgz#26f19710958648e401968ab2fd427d6b07fb3b37" - integrity sha512-xUeFPpElybgn1a+lknqtHleei4VyuV/4qWgB1nP8qQUAO6a5pNsioODrnB2VAPdUHJYBdx2dCt2maRk6g53IPQ== +"@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== dependencies: "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-provider" "^1.0.12" - "@walletconnect/jsonrpc-utils" "^1.0.7" + "@walletconnect/jsonrpc-provider" "1.0.13" + "@walletconnect/jsonrpc-types" "1.0.3" + "@walletconnect/jsonrpc-utils" "1.0.8" "@walletconnect/jsonrpc-ws-connection" "^1.0.11" "@walletconnect/keyvaluestorage" "^1.0.2" "@walletconnect/logger" "^2.0.1" @@ -1384,8 +1379,8 @@ "@walletconnect/relay-auth" "^1.0.4" "@walletconnect/safe-json" "^1.0.2" "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.7.0" - "@walletconnect/utils" "2.7.0" + "@walletconnect/types" "2.8.0" + "@walletconnect/utils" "2.8.0" events "^3.3.0" lodash.isequal "4.5.0" uint8arrays "^3.1.0" @@ -1430,19 +1425,19 @@ dependencies: tslib "1.14.1" -"@walletconnect/ethereum-provider@2.7.0": - version "2.7.0" - resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.7.0.tgz#5aaf10ce8de9269904b7714428554f1a64b7932d" - integrity sha512-6TwQ05zi6DP1TP1XNgSvLbmCmLf/sz7kLTfMaVk45YYHNgYTTBlXqkyjUpQZI9lpq+uXLBbHn/jx2OGhOPUP0Q== - dependencies: - "@walletconnect/jsonrpc-http-connection" "^1.0.4" - "@walletconnect/jsonrpc-provider" "^1.0.11" - "@walletconnect/jsonrpc-types" "^1.0.2" - "@walletconnect/jsonrpc-utils" "^1.0.7" - "@walletconnect/sign-client" "2.7.0" - "@walletconnect/types" "2.7.0" - "@walletconnect/universal-provider" "2.7.0" - "@walletconnect/utils" "2.7.0" +"@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== + 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" events "^3.3.0" "@walletconnect/events@^1.0.1": @@ -1471,25 +1466,33 @@ "@walletconnect/types" "^1.8.0" "@walletconnect/utils" "^1.8.0" -"@walletconnect/jsonrpc-http-connection@^1.0.4": - version "1.0.6" - resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-http-connection/-/jsonrpc-http-connection-1.0.6.tgz#48c41cf3e5ac9add9425420b345615dc438594cd" - integrity sha512-/3zSqDi7JDN06E4qm0NmVYMitngXfh21UWwy8zeJcBeJc+Jcs094EbLsIxtziIIKTCCbT88lWuTjl1ZujxN7cw== +"@walletconnect/jsonrpc-http-connection@^1.0.7": + version "1.0.7" + resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-http-connection/-/jsonrpc-http-connection-1.0.7.tgz#a6973569b8854c22da707a759d241e4f5c2d5a98" + integrity sha512-qlfh8fCfu8LOM9JRR9KE0s0wxP6ZG9/Jom8M0qsoIQeKF3Ni0FyV4V1qy/cc7nfI46SLQLSl4tgWSfLiE1swyQ== dependencies: "@walletconnect/jsonrpc-utils" "^1.0.6" "@walletconnect/safe-json" "^1.0.1" cross-fetch "^3.1.4" tslib "1.14.1" -"@walletconnect/jsonrpc-provider@^1.0.11", "@walletconnect/jsonrpc-provider@^1.0.12": - version "1.0.12" - resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.12.tgz#965408d99fc889d49c194cd207804282805f45ed" - integrity sha512-6uI2y5281gloZSzICOjk+CVC7CVu0MhtMt2Yzpj05lPb0pzm/bK2oZ2ibxwLerPrqpNt/5bIFVRmoOgPw1mHAQ== +"@walletconnect/jsonrpc-provider@1.0.13", "@walletconnect/jsonrpc-provider@^1.0.13": + version "1.0.13" + resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.13.tgz#9a74da648d015e1fffc745f0c7d629457f53648b" + integrity sha512-K73EpThqHnSR26gOyNEL+acEex3P7VWZe6KE12ZwKzAt2H4e5gldZHbjsu2QR9cLeJ8AXuO7kEMOIcRv1QEc7g== dependencies: - "@walletconnect/jsonrpc-utils" "^1.0.7" + "@walletconnect/jsonrpc-utils" "^1.0.8" "@walletconnect/safe-json" "^1.0.2" tslib "1.14.1" +"@walletconnect/jsonrpc-types@1.0.3", "@walletconnect/jsonrpc-types@^1.0.3": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.3.tgz#65e3b77046f1a7fa8347ae02bc1b841abe6f290c" + integrity sha512-iIQ8hboBl3o5ufmJ8cuduGad0CQm3ZlsHtujv9Eu16xq89q+BG7Nh5VLxxUgmtpnrePgFkTwXirCTkwJH1v+Yw== + dependencies: + keyvaluestorage-interface "^1.0.0" + tslib "1.14.1" + "@walletconnect/jsonrpc-types@^1.0.1": version "1.0.1" resolved "https://registry.npmjs.org/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.1.tgz#a96b4bb2bcc8838a70e06f15c1b5ab11c47d8e95" @@ -1505,6 +1508,15 @@ keyvaluestorage-interface "^1.0.0" tslib "1.14.1" +"@walletconnect/jsonrpc-utils@1.0.8", "@walletconnect/jsonrpc-utils@^1.0.8": + version "1.0.8" + resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.8.tgz#82d0cc6a5d6ff0ecc277cb35f71402c91ad48d72" + integrity sha512-vdeb03bD8VzJUL6ZtzRYsFMq1eZQcM3EAzT0a3st59dyLfJ0wq+tKMpmGH7HlB7waD858UWgfIcudbPFsbzVdw== + dependencies: + "@walletconnect/environment" "^1.0.1" + "@walletconnect/jsonrpc-types" "^1.0.3" + tslib "1.14.1" + "@walletconnect/jsonrpc-utils@^1.0.3": version "1.0.3" resolved "https://registry.npmjs.org/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.3.tgz#5bd49865eef0eae48e8b45a06731dc18691cf8c7" @@ -1563,6 +1575,14 @@ resolved "https://registry.npmjs.org/@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== + dependencies: + "@web3modal/core" "2.4.3" + "@web3modal/ui" "2.4.3" + "@walletconnect/qrcode-modal@^1.8.0": version "1.8.0" resolved "https://registry.yarnpkg.com/@walletconnect/qrcode-modal/-/qrcode-modal-1.8.0.tgz#ddd6f5c9b7ee52c16adf9aacec2a3eac4994caea" @@ -1623,19 +1643,19 @@ dependencies: tslib "1.14.1" -"@walletconnect/sign-client@2.7.0": - version "2.7.0" - resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.7.0.tgz#c08c90a1fc95340d5d40d2cfd88f59d4d385a676" - integrity sha512-K99xa6GSFS04U+140yrIEi/VJJJ0Q1ov4jCaiqa9euILDKxlBsM7m5GR+9sq6oYyj18SluJY4CJTdeOXUJlarA== +"@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== dependencies: - "@walletconnect/core" "2.7.0" + "@walletconnect/core" "2.8.0" "@walletconnect/events" "^1.0.1" "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-utils" "^1.0.7" + "@walletconnect/jsonrpc-utils" "1.0.8" "@walletconnect/logger" "^2.0.1" "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.7.0" - "@walletconnect/utils" "2.7.0" + "@walletconnect/types" "2.8.0" + "@walletconnect/utils" "2.8.0" events "^3.3.0" "@walletconnect/socket-transport@^1.8.0": @@ -1654,14 +1674,14 @@ dependencies: tslib "1.14.1" -"@walletconnect/types@2.7.0": - version "2.7.0" - resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.7.0.tgz#af639c463d0d80d0fd03da80f2fc593c73a93ae9" - integrity sha512-aMUDUtO79WSBtC/bDetE6aFwdgwJr0tJ8nC8gnAl5ELsrjygEKCn6M8Q+v6nP9svG9yf5Rds4cImxCT6BWwTyw== +"@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== dependencies: "@walletconnect/events" "^1.0.1" "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-types" "^1.0.2" + "@walletconnect/jsonrpc-types" "1.0.3" "@walletconnect/keyvaluestorage" "^1.0.2" "@walletconnect/logger" "^2.0.1" events "^3.3.0" @@ -1671,41 +1691,40 @@ resolved "https://registry.npmjs.org/@walletconnect/types/-/types-1.8.0.tgz#3f5e85b2d6b149337f727ab8a71b8471d8d9a195" integrity sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg== -"@walletconnect/universal-provider@2.7.0": - version "2.7.0" - resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.7.0.tgz#4bb36b353d2c2d7c466e89e2d8c576727c4388d0" - integrity sha512-aAIudO3ZlKD16X36VnXChpxBB6/JLK1SCJBfidk7E0GE2S4xr1xW5jXGSGS4Z+wIkNZXK0n7ULSK3PZ7mPBdog== +"@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== dependencies: - "@walletconnect/jsonrpc-http-connection" "^1.0.4" - "@walletconnect/jsonrpc-provider" "^1.0.11" + "@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.7.0" - "@walletconnect/types" "2.7.0" - "@walletconnect/utils" "2.7.0" + "@walletconnect/sign-client" "2.8.0" + "@walletconnect/types" "2.8.0" + "@walletconnect/utils" "2.8.0" eip1193-provider "1.0.1" events "^3.3.0" -"@walletconnect/utils@2.7.0": - version "2.7.0" - resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.7.0.tgz#18482834b8a27e0515ef160a1ff7e4632c9d77f5" - integrity sha512-k32jrQeyJsNZPdmtmg85Y3QgaS5YfzYSPrAxRC2uUD1ts7rrI6P5GG2iXNs3AvWKOuCgsp/PqU8s7AC7CRUscw== +"@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== dependencies: "@stablelib/chacha20poly1305" "1.0.1" "@stablelib/hkdf" "1.0.1" "@stablelib/random" "^1.0.2" "@stablelib/sha256" "1.0.1" "@stablelib/x25519" "^1.0.3" - "@walletconnect/jsonrpc-utils" "^1.0.7" "@walletconnect/relay-api" "^1.0.9" "@walletconnect/safe-json" "^1.0.2" "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.7.0" + "@walletconnect/types" "2.8.0" "@walletconnect/window-getters" "^1.0.1" "@walletconnect/window-metadata" "^1.0.1" detect-browser "5.3.0" - query-string "7.1.1" + query-string "7.1.3" uint8arrays "^3.1.0" "@walletconnect/utils@^1.8.0": @@ -1748,22 +1767,21 @@ "@walletconnect/window-getters" "^1.0.1" tslib "1.14.1" -"@web3-onboard/common@^2.3.1": - version "2.3.1" - resolved "https://registry.yarnpkg.com/@web3-onboard/common/-/common-2.3.1.tgz#69ad0d5167e5103086c34a4f7e8af90681d71be4" - integrity sha512-VRIsJLW92Q+bu6w9WSlTrPIk0vGmFvVwnoAKy1ubKuBvSKKhMUmrnv8N5tusr0mk+gcUuUdDF6gLDCABqrfC7g== +"@web3-onboard/common@^2.3.3": + version "2.3.3" + resolved "https://registry.yarnpkg.com/@web3-onboard/common/-/common-2.3.3.tgz#02096e967dbed272c0637cda955902b96a0fce06" + integrity sha512-Ytppszqe77VY8WglRdr/Lfx+HmcZ2hXQEkBA23JaVYmzKvP/mC6j+sjGUD8CgXDpRRxyKoiRj6nz95GRABie6Q== dependencies: bignumber.js "^9.1.0" ethers "5.5.4" joi "17.9.1" -"@web3-onboard/core@^2.16.1-alpha.2": - version "2.16.2" - resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.16.2.tgz#49b46d539e54d170e445065ff4017d8a53c90835" - integrity sha512-ONIMVt35i2kEJclCa9L8Gf2q71nIogtyyvXZTQuxZXvlN1DSECTXir6xuzb9iezd8QuxWBdtZcWzLZnf5KimkQ== +"@web3-onboard/core@^2.17.0": + version "2.20.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.20.2.tgz#06c35b2d39a119950d3d850d23e2126f6f77c1f5" + integrity sha512-XrdOatA00ULnPleQbAbXppGGVErUZpscrauoXy/Zt8qpr7i+NQSeRD2/fllfx5JP6wI0whP8ZoVb9yRp52Ii0Q== dependencies: - "@unstoppabledomains/resolution" "^8.0" - "@web3-onboard/common" "^2.3.1" + "@web3-onboard/common" "^2.3.3" bignumber.js "^9.0.0" bnc-sdk "^4.6.7" bowser "^2.11.0" @@ -1777,53 +1795,45 @@ svelte "^3.49.0" svelte-i18n "^3.3.13" -"@web3-onboard/injected-wallets@^2.8.5-alpha.1": - version "2.8.5-alpha.1" - resolved "https://registry.yarnpkg.com/@web3-onboard/injected-wallets/-/injected-wallets-2.8.5-alpha.1.tgz#6730e569cd8b045413935cc570d1a06ba3f76bf5" - integrity sha512-Q+oGP+BP4tvP15pVtOlsM7Xl8jY4NeWgjKUpf4UJXe0xCoIrIac5Gw8+G5bv+g8buax7ayCpJlApcHqcSOJA5g== +"@web3-onboard/injected-wallets@^2.8.5": + version "2.10.1" + resolved "https://registry.yarnpkg.com/@web3-onboard/injected-wallets/-/injected-wallets-2.10.1.tgz#d4a45ba897c578819544805399761c61b8173166" + integrity sha512-PhmMI+RNeGowL2cfmp7/v3atrJ8KsjKXgXs6CofwMzDxQXfu1DwXdIh+Hd2Py/ZeRgOEeAehf63gftaVvfn/9g== dependencies: - "@web3-onboard/common" "^2.3.1" + "@web3-onboard/common" "^2.3.3" joi "17.9.1" lodash.uniqby "^4.7.0" -"@web3-onboard/walletconnect@^2.3.6-alpha.1": - version "2.3.6-alpha.1" - resolved "https://registry.yarnpkg.com/@web3-onboard/walletconnect/-/walletconnect-2.3.6-alpha.1.tgz#a945996da013dea57588c5c1b12771afd1ff965e" - integrity sha512-T0FKoAjYqfmkWbPsSd1HJpAWo8ybgjIygvoYSfqPGUXsptZyMNHCYxvJys+npdRDKRwjHNHvh3bK0hO/w7owGw== +"@web3-onboard/walletconnect@^2.3.6": + version "2.3.9" + resolved "https://registry.yarnpkg.com/@web3-onboard/walletconnect/-/walletconnect-2.3.9.tgz#a569db39db61c927fee70744c5fcf015dad47042" + integrity sha512-0n1UesJLNNU33j/I0X4QHVL8AhFb6Oyo/ZU3EEYeDBev2Cis1A6Bvl38BfmeBBMdBOZBxeTOC2kNeRjvvvpzhA== dependencies: "@ethersproject/providers" "5.5.0" "@walletconnect/client" "^1.8.0" - "@walletconnect/ethereum-provider" "2.7.0" + "@walletconnect/ethereum-provider" "2.8.0" + "@walletconnect/modal" "2.4.3" "@walletconnect/qrcode-modal" "^1.8.0" - "@web3-onboard/common" "^2.3.1" - "@web3modal/standalone" "2.2.2" + "@web3-onboard/common" "^2.3.3" rxjs "^7.5.2" -"@web3modal/core@2.2.2": - version "2.2.2" - resolved "https://registry.yarnpkg.com/@web3modal/core/-/core-2.2.2.tgz#1e282dc45bddb11c04f1c93abce570bac1b9a620" - integrity sha512-RKbYNIEVP5Hwiva68PWXExbkTFLUTasneyRpcjoQSM4BIh78qXp1YMt0nyTvFdHmHQEGxXEMCuRG5qoE97uMHA== +"@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.3" + valtio "1.10.5" -"@web3modal/standalone@2.2.2": - version "2.2.2" - resolved "https://registry.yarnpkg.com/@web3modal/standalone/-/standalone-2.2.2.tgz#2d5ce74bbb7f112b31da32049620afa75c4a4686" - integrity sha512-c05kkTFNGZqnjJ3n2C8uo+wWL6ut1jexGYAyTvbweDengdsOr8LDo0VpK5V3XSKCV2fFcPh5JE9H1aA4jpnZPg== +"@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.2.2" - "@web3modal/ui" "2.2.2" - -"@web3modal/ui@2.2.2": - version "2.2.2" - resolved "https://registry.yarnpkg.com/@web3modal/ui/-/ui-2.2.2.tgz#f1c1ac908230d4214c35891a5d922c118353eaf2" - integrity sha512-PAuMOuk4sZ4UGjucGMZKzu6Qu56XtFsgLaqOn8ZgP2RkZmYEBGSG9mUQVzJd3XzfzAy1T91Wmqp/3TI3m0pXuQ== - dependencies: - "@web3modal/core" "2.2.2" - lit "2.6.1" - motion "10.15.5" - qrcode "1.5.1" + "@web3modal/core" "2.4.3" + lit "2.7.5" + motion "10.16.2" + qrcode "1.5.3" acorn-jsx@^5.3.2: version "5.3.2" @@ -1944,7 +1954,7 @@ bn.js@4.11.8: resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" integrity sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA== -bn.js@^4.11.9, bn.js@^4.4.0: +bn.js@^4.11.9: version "4.12.0" resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== @@ -2164,11 +2174,6 @@ crypto-es@^1.2.2: resolved "https://registry.yarnpkg.com/crypto-es/-/crypto-es-1.2.7.tgz#754a6d52319a94fb4eb1f119297f17196b360f88" integrity sha512-UUqiVJ2gUuZFmbFsKmud3uuLcNP2+Opt+5ysmljycFCyhA0+T16XJmo1ev/t5kMChMqWh7IEvURNCqsg+SjZGQ== -crypto-js@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.1.1.tgz#9e485bcf03521041bd85844786b83fb7619736cf" - integrity sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw== - d@1, d@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" @@ -2189,7 +2194,7 @@ decamelize@^1.2.0: resolved "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== -decode-uri-component@^0.2.0: +decode-uri-component@^0.2.0, decode-uri-component@^0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9" integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== @@ -2265,7 +2270,7 @@ eip1193-provider@1.0.1: dependencies: "@json-rpc-tools/provider" "^1.5.5" -elliptic@6.5.4, elliptic@^6.5.4: +elliptic@6.5.4: version "6.5.4" resolved "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ== @@ -2997,29 +3002,30 @@ levn@^0.4.1: prelude-ls "^1.2.1" type-check "~0.4.0" -lit-element@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/lit-element/-/lit-element-3.2.2.tgz#d148ab6bf4c53a33f707a5168e087725499e5f2b" - integrity sha512-6ZgxBR9KNroqKb6+htkyBwD90XGRiqKDHVrW/Eh0EZ+l+iC+u+v+w3/BA5NGi4nizAVHGYvQBHUDuSmLjPp7NQ== +lit-element@^3.3.0: + version "3.3.2" + resolved "https://registry.yarnpkg.com/lit-element/-/lit-element-3.3.2.tgz#9913bf220b85065f0e5f1bb8878cc44f36b50cfa" + integrity sha512-xXAeVWKGr4/njq0rGC9dethMnYCq5hpKYrgQZYTzawt9YQhMiXfD+T1RgrdY3NamOxwq2aXlb0vOI6e29CKgVQ== dependencies: + "@lit-labs/ssr-dom-shim" "^1.1.0" "@lit/reactive-element" "^1.3.0" - lit-html "^2.2.0" + lit-html "^2.7.0" -lit-html@^2.2.0, lit-html@^2.6.0: - version "2.6.1" - resolved "https://registry.yarnpkg.com/lit-html/-/lit-html-2.6.1.tgz#eb29f0b0c2ab54ea77379db11fc011b0c71f1cda" - integrity sha512-Z3iw+E+3KKFn9t2YKNjsXNEu/LRLI98mtH/C6lnFg7kvaqPIzPn124Yd4eT/43lyqrejpc5Wb6BHq3fdv4S8Rw== +lit-html@^2.7.0: + version "2.7.4" + resolved "https://registry.yarnpkg.com/lit-html/-/lit-html-2.7.4.tgz#6d75001977c206683685b9d76594a516afda2954" + integrity sha512-/Jw+FBpeEN+z8X6PJva5n7+0MzCVAH2yypN99qHYYkq8bI+j7I39GH+68Z/MZD6rGKDK9RpzBw7CocfmHfq6+g== dependencies: "@types/trusted-types" "^2.0.2" -lit@2.6.1: - version "2.6.1" - resolved "https://registry.yarnpkg.com/lit/-/lit-2.6.1.tgz#5951a2098b9bde5b328c73b55c15fdc0eefd96d7" - integrity sha512-DT87LD64f8acR7uVp7kZfhLRrHkfC/N4BVzAtnw9Yg8087mbBJ//qedwdwX0kzDbxgPccWRW6mFwGbRQIxy0pw== +lit@2.7.5: + version "2.7.5" + resolved "https://registry.yarnpkg.com/lit/-/lit-2.7.5.tgz#60bc82990cfad169d42cd786999356dcf79b035f" + integrity sha512-i/cH7Ye6nBDUASMnfwcictBnsTN91+aBjXoTHF2xARghXScKxpD4F4WYI+VLXg9lqbMinDfvoI7VnZXjyHgdfQ== dependencies: "@lit/reactive-element" "^1.6.0" - lit-element "^3.2.0" - lit-html "^2.6.0" + lit-element "^3.3.0" + lit-html "^2.7.0" locate-path@^3.0.0: version "3.0.0" @@ -3162,17 +3168,17 @@ mkdirp@^0.5.1: dependencies: minimist "^1.2.6" -motion@10.15.5: - version "10.15.5" - resolved "https://registry.yarnpkg.com/motion/-/motion-10.15.5.tgz#d336ddbdd37bc28bb99fbb243fe309df6c685ad6" - integrity sha512-ejP6KioN4pigTGxL93APzOnvtLklParL59UQB2T3HWXQBxFcIp5/7YXFmkgiA6pNKKzjvnLhnonRBN5iSFMnNw== +motion@10.16.2: + version "10.16.2" + resolved "https://registry.yarnpkg.com/motion/-/motion-10.16.2.tgz#7dc173c6ad62210a7e9916caeeaf22c51e598d21" + integrity sha512-p+PurYqfUdcJZvtnmAqu5fJgV2kR0uLFQuBKtLeFVTrYEVllI99tiOTSefVNYuip9ELTEkepIIDftNdze76NAQ== dependencies: "@motionone/animation" "^10.15.1" - "@motionone/dom" "^10.15.5" - "@motionone/svelte" "^10.15.5" + "@motionone/dom" "^10.16.2" + "@motionone/svelte" "^10.16.2" "@motionone/types" "^10.15.1" "@motionone/utils" "^10.15.1" - "@motionone/vue" "^10.15.5" + "@motionone/vue" "^10.16.2" mri@^1.1.0: version "1.2.0" @@ -3416,10 +3422,10 @@ process-warning@^1.0.0: resolved "https://registry.yarnpkg.com/process-warning/-/process-warning-1.0.0.tgz#980a0b25dc38cd6034181be4b7726d89066b4616" integrity sha512-du4wfLyj4yCZq1VupnVSZmRsPJsNuxoDQFdCFHLaYiEbFBD7QE0a+I4D7hOxrVnh78QE/YipFAj9lXHiXocV+Q== -proxy-compare@2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/proxy-compare/-/proxy-compare-2.5.0.tgz#0387c5e4d283ba9b1c0353bb20def4449b06bbd2" - integrity sha512-f1us0OsVAJ3tdIMXGQx2lmseYS4YXe4W+sKF5g5ww/jV+5ogMadPt+sIZ+88Ga9kvMJsrRNWzCrKPpr6pMWYbA== +proxy-compare@2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/proxy-compare/-/proxy-compare-2.5.1.tgz#17818e33d1653fbac8c2ec31406bce8a2966f600" + integrity sha512-oyfc0Tx87Cpwva5ZXezSp5V9vht1c7dZBhvuV/y3ctkgMVUmiAGDVeeB0dKhGSyT0v1ZTEQYpe/RXlBVBNuCLA== punycode@^2.1.0: version "2.1.1" @@ -3439,10 +3445,10 @@ qrcode@1.4.4: pngjs "^3.3.0" yargs "^13.2.4" -qrcode@1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/qrcode/-/qrcode-1.5.1.tgz#0103f97317409f7bc91772ef30793a54cd59f0cb" - integrity sha512-nS8NJ1Z3md8uTjKtP+SGGhfqmTCs5flU/xR623oI0JX+Wepz9R8UrRVCTBTJm3qGw3rH6jJ6MUHjkDx15cxSSg== +qrcode@1.5.3: + version "1.5.3" + resolved "https://registry.yarnpkg.com/qrcode/-/qrcode-1.5.3.tgz#03afa80912c0dccf12bc93f615a535aad1066170" + integrity sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg== dependencies: dijkstrajs "^1.0.1" encode-utf8 "^1.0.3" @@ -3458,12 +3464,12 @@ query-string@6.13.5: split-on-first "^1.0.0" strict-uri-encode "^2.0.0" -query-string@7.1.1: - version "7.1.1" - resolved "https://registry.yarnpkg.com/query-string/-/query-string-7.1.1.tgz#754620669db978625a90f635f12617c271a088e1" - integrity sha512-MplouLRDHBZSG9z7fpuAAcI7aAYjDLhtsiVZsevsfaHWDS2IDdORKbSd1kWUA+V4zyva/HZoSfpwnYMMQDhb0w== +query-string@7.1.3: + version "7.1.3" + resolved "https://registry.yarnpkg.com/query-string/-/query-string-7.1.3.tgz#a1cf90e994abb113a325804a972d98276fe02328" + integrity sha512-hh2WYhq4fi8+b+/2Kg9CEge4fDPvHS534aOOvOZeQ3+Vf2mCFsaFBYj0i+iXcAq6I9Vzp5fjMFBlONvayDC1qg== dependencies: - decode-uri-component "^0.2.0" + decode-uri-component "^0.2.2" filter-obj "^1.1.0" split-on-first "^1.0.0" strict-uri-encode "^2.0.0" @@ -3634,9 +3640,9 @@ scrypt-js@3.0.1: integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA== semver@^7.3.7: - version "7.3.7" - resolved "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f" - integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g== + version "7.5.3" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.3.tgz#161ce8c2c6b4b3bdca6caadc9fa3317a4c4fe88e" + integrity sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ== dependencies: lru-cache "^6.0.0" @@ -3978,18 +3984,18 @@ util-deprecate@^1.0.1: resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== -valtio@1.10.3: - version "1.10.3" - resolved "https://registry.yarnpkg.com/valtio/-/valtio-1.10.3.tgz#273eda9ba6459869798b4f58c84514e18fb80ed8" - integrity sha512-t3Ez/+baJ+Z5tIyeaI6nCAbW/hrmcq2jditwg/X++o5IvCdiGirQKTOv1kJq0glgUo13v5oABCVGcinggBfiKw== +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== dependencies: - proxy-compare "2.5.0" + proxy-compare "2.5.1" use-sync-external-store "1.2.0" -vite@^4.0.4: - version "4.0.4" - resolved "https://registry.npmjs.org/vite/-/vite-4.0.4.tgz#4612ce0b47bbb233a887a54a4ae0c6e240a0da31" - integrity sha512-xevPU7M8FU0i/80DMR+YhgrzR5KS2ORy1B4xcX/cXLsvnUWvfHuqMmVU6N0YiJ4JWGRJJsLCgjEzKjG9/GKoSw== +vite@^4.0.5: + version "4.0.5" + resolved "https://registry.yarnpkg.com/vite/-/vite-4.0.5.tgz#634f0bd1edf8bb8468ed42a1c3fd938c67d2f94b" + integrity sha512-7m87RC+caiAxG+8j3jObveRLqaWA/neAdCat6JAZwMkSWqFHOvg8MYe5fAQxVBRAuKAQ1S6XDh3CBQuLNbY33w== dependencies: esbuild "^0.16.3" postcss "^8.4.20" diff --git a/examples/with-vite-react/package.json b/examples/with-vite-react/package.json index da8d36f18..4c226531a 100644 --- a/examples/with-vite-react/package.json +++ b/examples/with-vite-react/package.json @@ -38,7 +38,7 @@ "buffer": "^6.0.3", "node-stdlib-browser": "^1.2.0", "typescript": "^4.6.4", - "vite": "^3.1.8", + "vite": "^3.2.7", "vite-plugin-node-stdlib-browser": "^0.1.1" } } diff --git a/examples/with-vite-react/yarn.lock b/examples/with-vite-react/yarn.lock index 731ee953d..0a51d657d 100644 --- a/examples/with-vite-react/yarn.lock +++ b/examples/with-vite-react/yarn.lock @@ -2934,10 +2934,10 @@ "@walletconnect/types" "^1.8.0" "@walletconnect/utils" "^1.8.0" -"@walletconnect/core@2.7.0": - version "2.7.0" - resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.7.0.tgz#26f19710958648e401968ab2fd427d6b07fb3b37" - integrity sha512-xUeFPpElybgn1a+lknqtHleei4VyuV/4qWgB1nP8qQUAO6a5pNsioODrnB2VAPdUHJYBdx2dCt2maRk6g53IPQ== +"@walletconnect/core@2.7.4": + version "2.7.4" + resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.7.4.tgz#1471215ca8cc08ae4719ca1bb6d45dd1b49dea3a" + integrity sha512-nDJJZALZJI8l8JvjwZE4UmUzDzQBnTTJlQa/rc5MoGYtir0hfsQEl3sPkPcXbkkW5q+cHiynXsDcgM4740fmNQ== dependencies: "@walletconnect/heartbeat" "1.2.1" "@walletconnect/jsonrpc-provider" "^1.0.12" @@ -2949,8 +2949,8 @@ "@walletconnect/relay-auth" "^1.0.4" "@walletconnect/safe-json" "^1.0.2" "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.7.0" - "@walletconnect/utils" "2.7.0" + "@walletconnect/types" "2.7.4" + "@walletconnect/utils" "2.7.4" events "^3.3.0" lodash.isequal "4.5.0" uint8arrays "^3.1.0" @@ -2995,19 +2995,19 @@ dependencies: tslib "1.14.1" -"@walletconnect/ethereum-provider@2.7.0": - version "2.7.0" - resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.7.0.tgz#5aaf10ce8de9269904b7714428554f1a64b7932d" - integrity sha512-6TwQ05zi6DP1TP1XNgSvLbmCmLf/sz7kLTfMaVk45YYHNgYTTBlXqkyjUpQZI9lpq+uXLBbHn/jx2OGhOPUP0Q== +"@walletconnect/ethereum-provider@2.7.4": + version "2.7.4" + resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.7.4.tgz#777ad9a6229f88f766a986bb5cffaa3ff1575c0b" + integrity sha512-R5hcByY9zIsvyTHFUS+3xqtzs2REezED4tZFyXk0snJjWlnlL2EdeHaCjr5n+SIZDin4CMj1EAFC0ZrM4KoA4Q== dependencies: "@walletconnect/jsonrpc-http-connection" "^1.0.4" "@walletconnect/jsonrpc-provider" "^1.0.11" "@walletconnect/jsonrpc-types" "^1.0.2" "@walletconnect/jsonrpc-utils" "^1.0.7" - "@walletconnect/sign-client" "2.7.0" - "@walletconnect/types" "2.7.0" - "@walletconnect/universal-provider" "2.7.0" - "@walletconnect/utils" "2.7.0" + "@walletconnect/sign-client" "2.7.4" + "@walletconnect/types" "2.7.4" + "@walletconnect/universal-provider" "2.7.4" + "@walletconnect/utils" "2.7.4" events "^3.3.0" "@walletconnect/events@^1.0.1": @@ -3172,19 +3172,19 @@ dependencies: tslib "1.14.1" -"@walletconnect/sign-client@2.7.0": - version "2.7.0" - resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.7.0.tgz#c08c90a1fc95340d5d40d2cfd88f59d4d385a676" - integrity sha512-K99xa6GSFS04U+140yrIEi/VJJJ0Q1ov4jCaiqa9euILDKxlBsM7m5GR+9sq6oYyj18SluJY4CJTdeOXUJlarA== +"@walletconnect/sign-client@2.7.4": + version "2.7.4" + resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.7.4.tgz#e07db5856f9e45945080a169bbd9cb6849576bac" + integrity sha512-hZoCB51GB4u32yxzYnxp8dpzXgo6E7ZWUVOgnihmoMPjgJahPtvB/Ip9jYxI3fuV+ZPQYNlxQgEvR9X+2fLz+g== dependencies: - "@walletconnect/core" "2.7.0" + "@walletconnect/core" "2.7.4" "@walletconnect/events" "^1.0.1" "@walletconnect/heartbeat" "1.2.1" "@walletconnect/jsonrpc-utils" "^1.0.7" "@walletconnect/logger" "^2.0.1" "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.7.0" - "@walletconnect/utils" "2.7.0" + "@walletconnect/types" "2.7.4" + "@walletconnect/utils" "2.7.4" events "^3.3.0" "@walletconnect/socket-transport@^1.8.0": @@ -3203,10 +3203,10 @@ dependencies: tslib "1.14.1" -"@walletconnect/types@2.7.0": - version "2.7.0" - resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.7.0.tgz#af639c463d0d80d0fd03da80f2fc593c73a93ae9" - integrity sha512-aMUDUtO79WSBtC/bDetE6aFwdgwJr0tJ8nC8gnAl5ELsrjygEKCn6M8Q+v6nP9svG9yf5Rds4cImxCT6BWwTyw== +"@walletconnect/types@2.7.4": + version "2.7.4" + resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.7.4.tgz#958864e7ef497206a24db0ca629a478ca8e1cc08" + integrity sha512-Nagfz8DqLxf0UlVd7xopgBX60EJp1xUEq7J30ALlTbWqEhCHuLK/qPk5vGdJ9Q6+ZDpTW9ShLq1DNf+5nVpVDQ== dependencies: "@walletconnect/events" "^1.0.1" "@walletconnect/heartbeat" "1.2.1" @@ -3220,26 +3220,26 @@ resolved "https://registry.npmjs.org/@walletconnect/types/-/types-1.8.0.tgz#3f5e85b2d6b149337f727ab8a71b8471d8d9a195" integrity sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg== -"@walletconnect/universal-provider@2.7.0": - version "2.7.0" - resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.7.0.tgz#4bb36b353d2c2d7c466e89e2d8c576727c4388d0" - integrity sha512-aAIudO3ZlKD16X36VnXChpxBB6/JLK1SCJBfidk7E0GE2S4xr1xW5jXGSGS4Z+wIkNZXK0n7ULSK3PZ7mPBdog== +"@walletconnect/universal-provider@2.7.4": + version "2.7.4" + resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.7.4.tgz#f21dcaf89c102bda79f13e92c45833f8f1196775" + integrity sha512-suH3o5LpTX7hlx5lU98oLdEM0Ws5ZysjQ4Zr6EWIK1DVT8EDdWbw49ggJSW9IYRLQ2xG22jDvmTIdFAexYOgng== dependencies: "@walletconnect/jsonrpc-http-connection" "^1.0.4" "@walletconnect/jsonrpc-provider" "^1.0.11" "@walletconnect/jsonrpc-types" "^1.0.2" "@walletconnect/jsonrpc-utils" "^1.0.7" "@walletconnect/logger" "^2.0.1" - "@walletconnect/sign-client" "2.7.0" - "@walletconnect/types" "2.7.0" - "@walletconnect/utils" "2.7.0" + "@walletconnect/sign-client" "2.7.4" + "@walletconnect/types" "2.7.4" + "@walletconnect/utils" "2.7.4" eip1193-provider "1.0.1" events "^3.3.0" -"@walletconnect/utils@2.7.0": - version "2.7.0" - resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.7.0.tgz#18482834b8a27e0515ef160a1ff7e4632c9d77f5" - integrity sha512-k32jrQeyJsNZPdmtmg85Y3QgaS5YfzYSPrAxRC2uUD1ts7rrI6P5GG2iXNs3AvWKOuCgsp/PqU8s7AC7CRUscw== +"@walletconnect/utils@2.7.4": + version "2.7.4" + resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.7.4.tgz#314a164aabb7551dae4ac58e63312c9ae6369e1e" + integrity sha512-2WEeKB9h/FQvyNmIBYwLtjdLm3Oo55EwtJoxkC00SA7xjf8jYxZ8q2y4P/CJP8oO5ruxBK5Ft0smKvPHXsE58Q== dependencies: "@stablelib/chacha20poly1305" "1.0.1" "@stablelib/hkdf" "1.0.1" @@ -3250,11 +3250,11 @@ "@walletconnect/relay-api" "^1.0.9" "@walletconnect/safe-json" "^1.0.2" "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.7.0" + "@walletconnect/types" "2.7.4" "@walletconnect/window-getters" "^1.0.1" "@walletconnect/window-metadata" "^1.0.1" detect-browser "5.3.0" - query-string "7.1.1" + query-string "7.1.3" uint8arrays "^3.1.0" "@walletconnect/utils@^1.8.0": @@ -3297,13 +3297,13 @@ "@walletconnect/window-getters" "^1.0.1" tslib "1.14.1" -"@web3-onboard/coinbase@^2.2.1-alpha.1": - version "2.2.2" - resolved "https://registry.yarnpkg.com/@web3-onboard/coinbase/-/coinbase-2.2.2.tgz#a08bfc5c946fb2a3b57a3487a157e102881860ee" - integrity sha512-GVYmZeNSj4QDaQFw60S2854c4tZsFf9l4egaN7asBzChny2hD1tuoFPRsVarYkelj2FT1OAYe4id5CPKVd2r6g== +"@web3-onboard/coinbase@^2.2.1": + version "2.2.4" + resolved "https://registry.yarnpkg.com/@web3-onboard/coinbase/-/coinbase-2.2.4.tgz#7e7f82e631816ab7ddcab8d94df6d1513baada50" + integrity sha512-XnQejTC51ZqYm4sT+RH3tr1yWcbuZXTWXRZeIHEWiJchVBE4K9goPxhB03PX8ZQ9TDt/bUTEkl7Qfyp6bhKTKw== dependencies: "@coinbase/wallet-sdk" "^3.6.0" - "@web3-onboard/common" "^2.3.1" + "@web3-onboard/common" "^2.3.3" "@web3-onboard/common@^2.2.3": version "2.2.3" @@ -3314,21 +3314,21 @@ ethers "5.5.4" joi "^17.6.1" -"@web3-onboard/common@^2.3.1": - version "2.3.1" - resolved "https://registry.yarnpkg.com/@web3-onboard/common/-/common-2.3.1.tgz#69ad0d5167e5103086c34a4f7e8af90681d71be4" - integrity sha512-VRIsJLW92Q+bu6w9WSlTrPIk0vGmFvVwnoAKy1ubKuBvSKKhMUmrnv8N5tusr0mk+gcUuUdDF6gLDCABqrfC7g== +"@web3-onboard/common@^2.3.3": + version "2.3.3" + resolved "https://registry.yarnpkg.com/@web3-onboard/common/-/common-2.3.3.tgz#02096e967dbed272c0637cda955902b96a0fce06" + integrity sha512-Ytppszqe77VY8WglRdr/Lfx+HmcZ2hXQEkBA23JaVYmzKvP/mC6j+sjGUD8CgXDpRRxyKoiRj6nz95GRABie6Q== dependencies: bignumber.js "^9.1.0" ethers "5.5.4" joi "17.9.1" -"@web3-onboard/core@^2.17.0-alpha.1": - version "2.17.0-alpha.1" - resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.17.0-alpha.1.tgz#fd6a72c467718fc6b836398db90e5ad17d4a5b14" - integrity sha512-/02QJ2SBXomYalvheLEZuf2JD8rjal3P+ik3K6TSM9OUXJ0GMwkB1h+TV4CxwqSFIqI3KNz3x2raQRMXcomFxQ== +"@web3-onboard/core@^2.20.0": + version "2.20.0" + resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.20.0.tgz#e023cdfc21a496acbf23730e469ee9d11167faa3" + integrity sha512-YAVRwoP7QjRJREiMtuDbNWzOwjR59QvIEH7Jl14TpwpIgx0WIGegQK7yJnmZIyWZpHZELof2m6HoFAEy6OjFpA== dependencies: - "@web3-onboard/common" "^2.3.1" + "@web3-onboard/common" "^2.3.3" bignumber.js "^9.0.0" bnc-sdk "^4.6.7" bowser "^2.11.0" @@ -3342,94 +3342,94 @@ svelte "^3.49.0" svelte-i18n "^3.3.13" -"@web3-onboard/dcent@^2.2.4-alpha.1": - version "2.2.5" - resolved "https://registry.yarnpkg.com/@web3-onboard/dcent/-/dcent-2.2.5.tgz#edb1a32c78ccda1c78854d34880745c8dc741bdf" - integrity sha512-dzqniOvq0+M8yI5kGtgZVkGeIdGsAM8xTutwwj3f4a5Pcu31HzKnRwuugtEiFeIusID8jMHp99MU2JmUeHdaHw== +"@web3-onboard/dcent@^2.2.4": + version "2.2.7" + resolved "https://registry.yarnpkg.com/@web3-onboard/dcent/-/dcent-2.2.7.tgz#f7de77d85fde96158321635eab4baad911a0b9dd" + integrity sha512-ajGtg0OJh+QN0d4SZJaTOgbtPmbMT+VYqxRMIapNa8L+07cVoukwM4RaksqOc69AjosKuPK0TFQa2m5NPu4hpQ== dependencies: "@ethereumjs/tx" "^3.4.0" "@ethersproject/providers" "^5.5.0" - "@web3-onboard/common" "^2.3.1" - "@web3-onboard/hw-common" "^2.2.1" + "@web3-onboard/common" "^2.3.3" + "@web3-onboard/hw-common" "^2.3.0" eth-dcent-keyring "^0.2.2" -"@web3-onboard/fortmatic@^2.0.16-alpha.1": - version "2.0.17" - resolved "https://registry.yarnpkg.com/@web3-onboard/fortmatic/-/fortmatic-2.0.17.tgz#2cb3e9667fd33b1e7898239a0d8fcedb7461c310" - integrity sha512-K+VWtPeP7Eq+dqMlgl48dAJ+Sh2Pg88f0uMdqqedCzmJujduOAd7tHI/3ns/plr3BZDVnug+ei1DhO+eoBowpA== +"@web3-onboard/fortmatic@^2.0.16": + version "2.0.19" + resolved "https://registry.yarnpkg.com/@web3-onboard/fortmatic/-/fortmatic-2.0.19.tgz#56f3a3e791bc78019fa7e32cf2f3fac7891b6938" + integrity sha512-pZiD8qpbLkvv7VeDPjq99s1ulXuT3uOUnnPPBVxAF4vQgPrJZAa+cIiHJBArKRom9qMhNT/xEBTWy4sN5d+6TA== dependencies: - "@web3-onboard/common" "^2.3.1" + "@web3-onboard/common" "^2.3.3" fortmatic "^2.2.1" -"@web3-onboard/gnosis@^2.1.7-alpha.1": - version "2.1.8" - resolved "https://registry.yarnpkg.com/@web3-onboard/gnosis/-/gnosis-2.1.8.tgz#ca09d381afc24321a6223d880d81182e0983a1ec" - integrity sha512-y1riDkLOc25s6z+jKx9IM2P5Ha0srUGNN1qA9Tgtts7Klwe6hWQiBbp8KUeXUmqx1IvCo0MXkOagZFVU+eQbeA== +"@web3-onboard/gnosis@^2.1.7": + version "2.1.10" + resolved "https://registry.yarnpkg.com/@web3-onboard/gnosis/-/gnosis-2.1.10.tgz#ca62d23780749a9e69d96b4480c7d79c81d80211" + integrity sha512-rUrRPdyDxeq/DRqsCPZ75JH0TcnETfeclVwUnam31DeFGtBFbOXYhHhCXnjWcQYFxqdNBaqoZuMfjrvTi+NC2g== dependencies: "@gnosis.pm/safe-apps-provider" "^0.9.2" "@gnosis.pm/safe-apps-sdk" "^6.1.1" - "@web3-onboard/common" "^2.3.1" + "@web3-onboard/common" "^2.3.3" -"@web3-onboard/hw-common@^2.2.0", "@web3-onboard/hw-common@^2.2.1": - version "2.2.1" - resolved "https://registry.yarnpkg.com/@web3-onboard/hw-common/-/hw-common-2.2.1.tgz#aae5b0323e6ee56b0cd6c23731955078ff69962d" - integrity sha512-KdYXaa2OulL4ghGAsopN9A4lx28IBKIeBgFNZm7hmY7kwZWY5I7E3CxbXdyubySmQQcXTeEvOXBpC2z0CLZeiA== +"@web3-onboard/hw-common@^2.3.0": + version "2.3.0" + resolved "https://registry.yarnpkg.com/@web3-onboard/hw-common/-/hw-common-2.3.0.tgz#715d35c4039515e3f8ec839643e6d4c49097891f" + integrity sha512-ai5gwaXHxMOgov+TKuy2yUtBf7b2Vq8c28L9tSx4Hl8Q2IM6boGZQEqfW6Hw0GHu/Ez+MxRR5+M6nfwFBf8JRw== dependencies: "@ethereumjs/common" "2.6.2" - "@web3-onboard/common" "^2.3.1" + "@web3-onboard/common" "^2.3.3" ethers "5.5.4" joi "17.9.1" rxjs "^7.5.2" -"@web3-onboard/injected-wallets@^2.8.5-alpha.1": - version "2.8.5-alpha.1" - resolved "https://registry.yarnpkg.com/@web3-onboard/injected-wallets/-/injected-wallets-2.8.5-alpha.1.tgz#6730e569cd8b045413935cc570d1a06ba3f76bf5" - integrity sha512-Q+oGP+BP4tvP15pVtOlsM7Xl8jY4NeWgjKUpf4UJXe0xCoIrIac5Gw8+G5bv+g8buax7ayCpJlApcHqcSOJA5g== +"@web3-onboard/injected-wallets@^2.8.5": + version "2.9.0" + resolved "https://registry.yarnpkg.com/@web3-onboard/injected-wallets/-/injected-wallets-2.9.0.tgz#e074dbc48516edf82f235c09fa936b18be19e533" + integrity sha512-GrbbodUVqguBxf9YDz+DlIGYJ2wSBdwj8/2C4QMMcCbnx5NtSlamSXiRQngTMn7AIm4fnSHOwdyAeEi8Q/k2fg== dependencies: - "@web3-onboard/common" "^2.3.1" + "@web3-onboard/common" "^2.3.3" joi "17.9.1" lodash.uniqby "^4.7.0" -"@web3-onboard/keepkey@^2.3.4-alpha.1": - version "2.3.5" - resolved "https://registry.yarnpkg.com/@web3-onboard/keepkey/-/keepkey-2.3.5.tgz#4e3b2a293ff063b75b353bc75109b2da40662100" - integrity sha512-O1QeFIxVrEhylSvwzC2HdzkDai+zKsDGeF1GgWy7s0//z6pQeu1C6jHububoQ1MAJRDfxk6mnBr7W8DNDc8qkQ== +"@web3-onboard/keepkey@^2.3.4": + version "2.3.7" + resolved "https://registry.yarnpkg.com/@web3-onboard/keepkey/-/keepkey-2.3.7.tgz#843f26f8a1ae45428126bdf3eade4bc28f0283fe" + integrity sha512-LBhvE/gdpXCdiXm95dqL7z/1ERaLUOGv9Apz2m3TQdp24uZ+WkdFo+jogMcJOXGm1l+wL1mD4WcFBUfE6GbDLA== dependencies: "@ethersproject/providers" "^5.5.0" "@shapeshiftoss/hdwallet-core" "^1.15.2" "@shapeshiftoss/hdwallet-keepkey-webusb" "^1.15.2" - "@web3-onboard/common" "^2.3.1" - "@web3-onboard/hw-common" "^2.2.1" + "@web3-onboard/common" "^2.3.3" + "@web3-onboard/hw-common" "^2.3.0" ethereumjs-util "^7.1.3" -"@web3-onboard/keystone@^2.3.4-alpha.1": - version "2.3.5" - resolved "https://registry.yarnpkg.com/@web3-onboard/keystone/-/keystone-2.3.5.tgz#eaca3860ab0bb7a57a8ac344ae54dfbb7de2080a" - integrity sha512-YvgVIh9Gl/MeiMOdUlRi5JD8t9bZh8Eesf9JCG3P7KN65dIiEICXuHEXl3ke9VWa/qKgeTs0BrdDR4U8R+/F3Q== +"@web3-onboard/keystone@^2.3.4": + version "2.3.7" + resolved "https://registry.yarnpkg.com/@web3-onboard/keystone/-/keystone-2.3.7.tgz#e8355a9ffcaa36baf8033a10010b86aa8ebb4d06" + integrity sha512-9KdRQJ3htg9uSF3t8o2a5T32aQ+J2VA0mKYaXns2ZgsSznd4WqvQFuyrQi015b0rn6zkXM3BKFcMhu0OJtRwHw== dependencies: "@ethereumjs/tx" "^3.4.0" "@ethersproject/providers" "^5.5.0" "@keystonehq/eth-keyring" "^0.14.00.3" - "@web3-onboard/common" "^2.3.1" - "@web3-onboard/hw-common" "^2.2.0" + "@web3-onboard/common" "^2.3.3" + "@web3-onboard/hw-common" "^2.3.0" -"@web3-onboard/ledger@^2.4.3-alpha.1": - version "2.4.4" - resolved "https://registry.yarnpkg.com/@web3-onboard/ledger/-/ledger-2.4.4.tgz#da6d3c16ae8d6ec75d0e9eea410a81c6705cd635" - integrity sha512-RwJRMZ+GBbUl5nQLKh4ALdYyD7hA+rr11ZTSycSd5FgPNUhU84NunZXKihVo+m/pYboEwDVX1a1Vf5fR036AFw== +"@web3-onboard/ledger@^2.4.3": + version "2.4.6" + resolved "https://registry.yarnpkg.com/@web3-onboard/ledger/-/ledger-2.4.6.tgz#1e92c2a5b59920f9ee70294314854dcea905e18d" + integrity sha512-TuWtZvhaxRXNKHRoqryt6cFRVpmVo3z4Zvos4+FS1/ZaNB5aBgZAH3MGWZhX0OFAKRki8JyOWVFJNdM7yUO4pA== dependencies: "@ethersproject/providers" "^5.5.0" "@ledgerhq/connect-kit-loader" "^1.0.2" "@walletconnect/client" "^1.7.1" - "@web3-onboard/common" "^2.3.1" + "@web3-onboard/common" "^2.3.3" rxjs "^7.5.2" -"@web3-onboard/magic@^2.1.4-alpha.1": - version "2.1.5" - resolved "https://registry.yarnpkg.com/@web3-onboard/magic/-/magic-2.1.5.tgz#826c590bfdb9d2d73bab10d43f2da58f82dc7c33" - integrity sha512-HGVmLGVZF4oMX6JpR+GasA7YSdPQP5+oN+YNUXFfxPNPv4JT/P0puaDF7jxhMDx8KdCOS7IQ4JwCYyVYbBc0Lg== +"@web3-onboard/magic@^2.1.4": + version "2.1.7" + resolved "https://registry.yarnpkg.com/@web3-onboard/magic/-/magic-2.1.7.tgz#93e23486d1b7d28e5a9d6043274dea719d8076f1" + integrity sha512-jb8jZaY3W+8dEj5gBiUoGbj6cq6NEBSbHpGYGRFCCAL7X/JZZ+j9R5Mz7tzuO5PvMPWhFLzKK2C1ntfv2Kbhjg== dependencies: - "@web3-onboard/common" "^2.3.1" + "@web3-onboard/common" "^2.3.3" joi "17.9.1" magic-sdk "^8.1.0" rxjs "^7.5.2" @@ -3444,30 +3444,30 @@ optionalDependencies: "@myetherwallet/mewconnect-web-client" "^2.2.0-beta.14" -"@web3-onboard/portis@^2.1.4-alpha.1": - version "2.1.5" - resolved "https://registry.yarnpkg.com/@web3-onboard/portis/-/portis-2.1.5.tgz#5a6547cbfe317e49e8645a412de70795e2f14c9d" - integrity sha512-NQQNxYU7+EWViv9igU17zDavbjL6fb4bOqvRP6RgzZEtUODT/GT0VqnEQ8tZBoI3oiau0Z09k/kGWt/jdDd6gg== +"@web3-onboard/portis@^2.1.4": + version "2.1.7" + resolved "https://registry.yarnpkg.com/@web3-onboard/portis/-/portis-2.1.7.tgz#20fbdda697a63b7bcbef3056ea67a3312e7f85ca" + integrity sha512-K3Bqr8BlewdDCruaZwP7IP7jGKvKTWXwEVWzvkhW7MzJsAzVhOR29ZdSO1Htt+v7kORCDybDZzGSjZ7wF6EXLA== dependencies: "@portis/web3" "^4.0.6" - "@web3-onboard/common" "^2.3.1" + "@web3-onboard/common" "^2.3.3" -"@web3-onboard/react@^2.8.0-alpha.1": - version "2.8.0-alpha.1" - resolved "https://registry.yarnpkg.com/@web3-onboard/react/-/react-2.8.0-alpha.1.tgz#0fd8da967366cff24abce50f088c4a65edb3e16d" - integrity sha512-0o9d4l0a302Zv1MBWQ0+WO23hNjC+FZhiK3zg7yc/sfZvawCeZ6jb39DPHsR/siuf8bwgwmF4wDVclD8SG3y1A== +"@web3-onboard/react@^2.8.0": + version "2.8.5" + resolved "https://registry.yarnpkg.com/@web3-onboard/react/-/react-2.8.5.tgz#0660f2e4b070222c78213430fc8af34acb3ce2e9" + integrity sha512-oXRa6VK4p/WX8tnIwScYtN+f6O/yi3VX05Uet9vtuHuJGemlnhf8VwpUoWRIKdBpoqrqnAwH1zHuDLjtcBdJiQ== dependencies: - "@web3-onboard/common" "^2.3.1" - "@web3-onboard/core" "^2.17.0-alpha.1" + "@web3-onboard/common" "^2.3.3" + "@web3-onboard/core" "^2.20.0" use-sync-external-store "1.0.0" -"@web3-onboard/sequence@^2.0.5-alpha.1": - version "2.0.6" - resolved "https://registry.yarnpkg.com/@web3-onboard/sequence/-/sequence-2.0.6.tgz#c4e95b5b7c3c17976d00324104ef032bc78e6569" - integrity sha512-hDcaEJQq+2bjpjHmVbERg6mL9IA1YqRa9DXulecZbW6NrVrUcdrrK3wTY5w7B7I3V9DZ1q1P2rX/IsPNwDSckQ== +"@web3-onboard/sequence@^2.0.5": + version "2.0.8" + resolved "https://registry.yarnpkg.com/@web3-onboard/sequence/-/sequence-2.0.8.tgz#6779194662b8d0e5052e7aa0aa375686ca0c2973" + integrity sha512-AWQCrTXemDu2WBsau5ReoMNw4esg/DWwqG7q/zdtYNxvXFCwmQgM6LNjkMcrcAb3MSrAt4KPQIErAzNYEIJbKA== dependencies: "0xsequence" "^0.43.1" - "@web3-onboard/common" "^2.3.1" + "@web3-onboard/common" "^2.3.3" "@web3-onboard/tallyho@^2.0.1": version "2.0.1" @@ -3478,67 +3478,67 @@ tallyho-detect-provider "^1.0.0" tallyho-onboarding "^1.0.2" -"@web3-onboard/torus@^2.2.2-alpha.1": - version "2.2.3" - resolved "https://registry.yarnpkg.com/@web3-onboard/torus/-/torus-2.2.3.tgz#45234aba230bb8c1085d753c800cde9e979f32ee" - integrity sha512-j0utwKIQsI5kZD3LHIwqkQsYwW1P8YVZltQ7hcEFjKuO1qdCU6YfctRlNfDj2wrwd0bZw3B8Rs6+hxF88FufCQ== +"@web3-onboard/torus@^2.2.2": + version "2.2.5" + resolved "https://registry.yarnpkg.com/@web3-onboard/torus/-/torus-2.2.5.tgz#5f15b02c8ad63ba14976368eed1d4b66ffa17039" + integrity sha512-JBHIbS+bBUU48Hc8Rd5AL47VeZCm4lyy0E/4q3NZvHCmx15ea3Hk1kMvQK6/0bvigIOdZIIEpkUs810bgWSL7w== dependencies: "@toruslabs/torus-embed" "1.38.2" - "@web3-onboard/common" "^2.3.1" + "@web3-onboard/common" "^2.3.3" -"@web3-onboard/trezor@^2.4.0-alpha.1": - version "2.4.0-alpha.1" - resolved "https://registry.yarnpkg.com/@web3-onboard/trezor/-/trezor-2.4.0-alpha.1.tgz#75c9270ed1ea16f51c22bc92b3c3440746f94837" - integrity sha512-DQYHowua38zlEiosCGw8jWnNuKsPlltn0daZrFUE9p8ulVLaErg/+DrLzjtL4izCHaz1pPrl8g+sCAp81MOO7g== +"@web3-onboard/trezor@^2.4.0": + version "2.4.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/trezor/-/trezor-2.4.2.tgz#49a485467d970ae872288c07eccb7adf18782622" + integrity sha512-XMi5xn41HhMKnZhPj9n+5WScEsgHRzXz/XYKMbKJRfndVgHgbo/kO3DxL9fwfdUoW/mewRfO5wiN1hf7qyN2VQ== dependencies: "@ethereumjs/tx" "^3.4.0" "@ethersproject/providers" "^5.5.0" "@trezor/connect-web" "^9.0.8" - "@web3-onboard/common" "^2.3.1" - "@web3-onboard/hw-common" "^2.2.1" + "@web3-onboard/common" "^2.3.3" + "@web3-onboard/hw-common" "^2.3.0" buffer "^6.0.3" eth-crypto "^2.1.0" ethereumjs-util "^7.1.3" hdkey "^2.0.1" -"@web3-onboard/walletconnect@^2.3.6-alpha.1": - version "2.3.6-alpha.1" - resolved "https://registry.yarnpkg.com/@web3-onboard/walletconnect/-/walletconnect-2.3.6-alpha.1.tgz#a945996da013dea57588c5c1b12771afd1ff965e" - integrity sha512-T0FKoAjYqfmkWbPsSd1HJpAWo8ybgjIygvoYSfqPGUXsptZyMNHCYxvJys+npdRDKRwjHNHvh3bK0hO/w7owGw== +"@web3-onboard/walletconnect@^2.3.6": + version "2.3.8" + resolved "https://registry.yarnpkg.com/@web3-onboard/walletconnect/-/walletconnect-2.3.8.tgz#2c57e7fb57f6105736bcc94cfe85712133352b97" + integrity sha512-u/4utKyjp/v2qcM6WVpLervqMIUn2SIpw5Lgf/7Qo6EvpCLfaqBz1KqZZf9hPQaoROFSLi0D2FqC98NcD5S1tQ== dependencies: "@ethersproject/providers" "5.5.0" "@walletconnect/client" "^1.8.0" - "@walletconnect/ethereum-provider" "2.7.0" + "@walletconnect/ethereum-provider" "2.7.4" "@walletconnect/qrcode-modal" "^1.8.0" - "@web3-onboard/common" "^2.3.1" - "@web3modal/standalone" "2.2.2" + "@web3-onboard/common" "^2.3.3" + "@web3modal/standalone" "2.4.1" rxjs "^7.5.2" -"@web3modal/core@2.2.2": - version "2.2.2" - resolved "https://registry.yarnpkg.com/@web3modal/core/-/core-2.2.2.tgz#1e282dc45bddb11c04f1c93abce570bac1b9a620" - integrity sha512-RKbYNIEVP5Hwiva68PWXExbkTFLUTasneyRpcjoQSM4BIh78qXp1YMt0nyTvFdHmHQEGxXEMCuRG5qoE97uMHA== +"@web3modal/core@2.4.1": + version "2.4.1" + resolved "https://registry.yarnpkg.com/@web3modal/core/-/core-2.4.1.tgz#9b0a60aa88ef8518de7a30bab1278b2c9f046012" + integrity sha512-v6Y/eQJSI2YfUTv8rGqjFabqdk3ZPjx6Fe7j5Q8fw0ZWF1YRGM3mySG457qtKQ7D7E1kNKA3BHbaOZ3pgQoG6A== dependencies: buffer "6.0.3" - valtio "1.10.3" + valtio "1.10.5" -"@web3modal/standalone@2.2.2": - version "2.2.2" - resolved "https://registry.yarnpkg.com/@web3modal/standalone/-/standalone-2.2.2.tgz#2d5ce74bbb7f112b31da32049620afa75c4a4686" - integrity sha512-c05kkTFNGZqnjJ3n2C8uo+wWL6ut1jexGYAyTvbweDengdsOr8LDo0VpK5V3XSKCV2fFcPh5JE9H1aA4jpnZPg== +"@web3modal/standalone@2.4.1": + version "2.4.1" + resolved "https://registry.yarnpkg.com/@web3modal/standalone/-/standalone-2.4.1.tgz#e10330583ce7b550ba676e4c595ac8ea8715bcdb" + integrity sha512-ZrI5LwWeT9sd8A3FdIX/gBp3ZrzrX882Ln1vJN0LTCmeP2OUsYcW5bPxjv1PcJ1YUBY7Tg4aTgMUnAVTTuqb+w== dependencies: - "@web3modal/core" "2.2.2" - "@web3modal/ui" "2.2.2" + "@web3modal/core" "2.4.1" + "@web3modal/ui" "2.4.1" -"@web3modal/ui@2.2.2": - version "2.2.2" - resolved "https://registry.yarnpkg.com/@web3modal/ui/-/ui-2.2.2.tgz#f1c1ac908230d4214c35891a5d922c118353eaf2" - integrity sha512-PAuMOuk4sZ4UGjucGMZKzu6Qu56XtFsgLaqOn8ZgP2RkZmYEBGSG9mUQVzJd3XzfzAy1T91Wmqp/3TI3m0pXuQ== +"@web3modal/ui@2.4.1": + version "2.4.1" + resolved "https://registry.yarnpkg.com/@web3modal/ui/-/ui-2.4.1.tgz#c1c5a8bf4cd749febd15411ec710b22215e66e56" + integrity sha512-x1ceyd3mMJsIHs5UUTLvE+6qyCjhyjL6gB/wVmTDbwASHSQIVyshQJ+s7BwIEMP/pbAsYDg+/M8EiUuE+/E/kg== dependencies: - "@web3modal/core" "2.2.2" - lit "2.6.1" + "@web3modal/core" "2.4.1" + lit "2.7.4" motion "10.15.5" - qrcode "1.5.1" + qrcode "1.5.3" JSONStream@^1.3.5: version "1.3.5" @@ -4827,7 +4827,7 @@ decimal.js@^10.2.0: resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.4.3.tgz#1044092884d245d1b7f65725fa4ad4c6f781cc23" integrity sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA== -decode-uri-component@^0.2.0: +decode-uri-component@^0.2.0, decode-uri-component@^0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9" integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== @@ -7160,30 +7160,30 @@ lie@3.1.1: dependencies: immediate "~3.0.5" -lit-element@^3.2.0: - version "3.3.1" - resolved "https://registry.yarnpkg.com/lit-element/-/lit-element-3.3.1.tgz#9dcb950b1fadf156dacf3ded8d7d51a8cf16a966" - integrity sha512-Gl+2409uXWbf7n6cCl7Kzasm7zjT9xmdwi2BhLNi70sRKAgRkqueDu5mSIH3hPYMM0/vqBCdPXod3NbGkRA2ww== +lit-element@^3.3.0: + version "3.3.2" + resolved "https://registry.yarnpkg.com/lit-element/-/lit-element-3.3.2.tgz#9913bf220b85065f0e5f1bb8878cc44f36b50cfa" + integrity sha512-xXAeVWKGr4/njq0rGC9dethMnYCq5hpKYrgQZYTzawt9YQhMiXfD+T1RgrdY3NamOxwq2aXlb0vOI6e29CKgVQ== dependencies: "@lit-labs/ssr-dom-shim" "^1.1.0" "@lit/reactive-element" "^1.3.0" lit-html "^2.7.0" -lit-html@^2.6.0, lit-html@^2.7.0: +lit-html@^2.7.0: version "2.7.2" resolved "https://registry.yarnpkg.com/lit-html/-/lit-html-2.7.2.tgz#e4593da022298d8029ae3f67d10d322c18152d3d" integrity sha512-ZJCfKlA2XELu5tn7XuzOziGFGvf1SeQm+ngLWoJ8bXtSkRrrR3ms6SWy+gsdxeYwySLij5xAhdd2C3EX0ftxdQ== dependencies: "@types/trusted-types" "^2.0.2" -lit@2.6.1: - version "2.6.1" - resolved "https://registry.yarnpkg.com/lit/-/lit-2.6.1.tgz#5951a2098b9bde5b328c73b55c15fdc0eefd96d7" - integrity sha512-DT87LD64f8acR7uVp7kZfhLRrHkfC/N4BVzAtnw9Yg8087mbBJ//qedwdwX0kzDbxgPccWRW6mFwGbRQIxy0pw== +lit@2.7.4: + version "2.7.4" + resolved "https://registry.yarnpkg.com/lit/-/lit-2.7.4.tgz#ca63d27fda178dbffae0faf2c882b9910e40842c" + integrity sha512-cgD7xrZoYr21mbrkZIuIrj98YTMw/snJPg52deWVV4A8icLyNHI3bF70xsJeAgwTuiq5Kkd+ZR8gybSJDCPB7g== dependencies: "@lit/reactive-element" "^1.6.0" - lit-element "^3.2.0" - lit-html "^2.6.0" + lit-element "^3.3.0" + lit-html "^2.7.0" localforage@^1.7.4: version "1.10.0" @@ -7617,11 +7617,16 @@ nano-json-stream-parser@^0.1.2: resolved "https://registry.npmjs.org/nano-json-stream-parser/-/nano-json-stream-parser-0.1.2.tgz#0cc8f6d0e2b622b479c40d499c46d64b755c6f5f" integrity sha512-9MqxMH/BSJC7dnLsEMPyfN5Dvoo49IsPFYMcHw3Bcfc2kN0lpHRBSzlMSVx4HGyJ7s9B31CyBTVehWJoQ8Ctew== -nanoid@^3.3.1, nanoid@^3.3.4: +nanoid@^3.3.1: version "3.3.4" resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab" integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw== +nanoid@^3.3.6: + version "3.3.6" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.6.tgz#443380c856d6e9f9824267d960b4236ad583ea4c" + integrity sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA== + nanoid@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/nanoid/-/nanoid-4.0.0.tgz#6e144dee117609232c3f415c34b0e550e64999a5" @@ -8129,21 +8134,12 @@ pocket-js-core@0.0.3: dependencies: axios "^0.18.0" -postcss@^8.4.14: - version "8.4.18" - resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.18.tgz#6d50046ea7d3d66a85e0e782074e7203bc7fbca2" - integrity sha512-Wi8mWhncLJm11GATDaQKobXSNEYGUHeQLiQqDFG1qQ5UTDPTEvKw0Xt5NsTpktGTwLps3ByrWsBrG0rB8YQ9oA== - dependencies: - nanoid "^3.3.4" - picocolors "^1.0.0" - source-map-js "^1.0.2" - -postcss@^8.4.16: - version "8.4.17" - resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.17.tgz#f87863ec7cd353f81f7ab2dec5d67d861bbb1be5" - integrity sha512-UNxNOLQydcOFi41yHNMcKRZ39NeXlr8AxGuZJsdub8vIb12fHzcq37DTU/QtbI6WLxNg2gF9Z+8qtRwTj1UI1Q== +postcss@^8.4.14, postcss@^8.4.18: + version "8.4.24" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.24.tgz#f714dba9b2284be3cc07dbd2fc57ee4dc972d2df" + integrity sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg== dependencies: - nanoid "^3.3.4" + nanoid "^3.3.6" picocolors "^1.0.0" source-map-js "^1.0.2" @@ -8253,10 +8249,10 @@ proxy-addr@~2.0.7: forwarded "0.2.0" ipaddr.js "1.9.1" -proxy-compare@2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/proxy-compare/-/proxy-compare-2.5.0.tgz#0387c5e4d283ba9b1c0353bb20def4449b06bbd2" - integrity sha512-f1us0OsVAJ3tdIMXGQx2lmseYS4YXe4W+sKF5g5ww/jV+5ogMadPt+sIZ+88Ga9kvMJsrRNWzCrKPpr6pMWYbA== +proxy-compare@2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/proxy-compare/-/proxy-compare-2.5.1.tgz#17818e33d1653fbac8c2ec31406bce8a2966f600" + integrity sha512-oyfc0Tx87Cpwva5ZXezSp5V9vht1c7dZBhvuV/y3ctkgMVUmiAGDVeeB0dKhGSyT0v1ZTEQYpe/RXlBVBNuCLA== prr@~1.0.1: version "1.0.1" @@ -8351,7 +8347,17 @@ qrcode@1.4.4: pngjs "^3.3.0" yargs "^13.2.4" -qrcode@1.5.1, qrcode@^1.5.0: +qrcode@1.5.3: + version "1.5.3" + resolved "https://registry.yarnpkg.com/qrcode/-/qrcode-1.5.3.tgz#03afa80912c0dccf12bc93f615a535aad1066170" + integrity sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg== + dependencies: + dijkstrajs "^1.0.1" + encode-utf8 "^1.0.3" + pngjs "^5.0.0" + yargs "^15.3.1" + +qrcode@^1.5.0: version "1.5.1" resolved "https://registry.npmjs.org/qrcode/-/qrcode-1.5.1.tgz#0103f97317409f7bc91772ef30793a54cd59f0cb" integrity sha512-nS8NJ1Z3md8uTjKtP+SGGhfqmTCs5flU/xR623oI0JX+Wepz9R8UrRVCTBTJm3qGw3rH6jJ6MUHjkDx15cxSSg== @@ -8382,12 +8388,12 @@ query-string@6.13.5: split-on-first "^1.0.0" strict-uri-encode "^2.0.0" -query-string@7.1.1: - version "7.1.1" - resolved "https://registry.yarnpkg.com/query-string/-/query-string-7.1.1.tgz#754620669db978625a90f635f12617c271a088e1" - integrity sha512-MplouLRDHBZSG9z7fpuAAcI7aAYjDLhtsiVZsevsfaHWDS2IDdORKbSd1kWUA+V4zyva/HZoSfpwnYMMQDhb0w== +query-string@7.1.3: + version "7.1.3" + resolved "https://registry.yarnpkg.com/query-string/-/query-string-7.1.3.tgz#a1cf90e994abb113a325804a972d98276fe02328" + integrity sha512-hh2WYhq4fi8+b+/2Kg9CEge4fDPvHS534aOOvOZeQ3+Vf2mCFsaFBYj0i+iXcAq6I9Vzp5fjMFBlONvayDC1qg== dependencies: - decode-uri-component "^0.2.0" + decode-uri-component "^0.2.2" filter-obj "^1.1.0" split-on-first "^1.0.0" strict-uri-encode "^2.0.0" @@ -8775,10 +8781,10 @@ rollup-pluginutils@^2.8.1: dependencies: estree-walker "^0.6.1" -rollup@~2.78.0: - version "2.78.1" - resolved "https://registry.npmjs.org/rollup/-/rollup-2.78.1.tgz#52fe3934d9c83cb4f7c4cb5fb75d88591be8648f" - integrity sha512-VeeCgtGi4P+o9hIg+xz4qQpRl6R401LWEXBmxYKOV4zlF82lyhgh2hTZnheFUbANE8l2A41F458iwj2vEYaXJg== +rollup@^2.79.1: + version "2.79.1" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.79.1.tgz#bedee8faef7c9f93a2647ac0108748f497f081c7" + integrity sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw== optionalDependencies: fsevents "~2.3.2" @@ -9739,12 +9745,12 @@ uuid@^8.3.2: resolved "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== -valtio@1.10.3: - version "1.10.3" - resolved "https://registry.yarnpkg.com/valtio/-/valtio-1.10.3.tgz#273eda9ba6459869798b4f58c84514e18fb80ed8" - integrity sha512-t3Ez/+baJ+Z5tIyeaI6nCAbW/hrmcq2jditwg/X++o5IvCdiGirQKTOv1kJq0glgUo13v5oABCVGcinggBfiKw== +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== dependencies: - proxy-compare "2.5.0" + proxy-compare "2.5.1" use-sync-external-store "1.2.0" varint@5.0.0: @@ -9785,15 +9791,15 @@ vite-plugin-node-stdlib-browser@^0.1.1: dependencies: "@rollup/plugin-inject" "^4.0.4" -vite@^3.1.8: - version "3.1.8" - resolved "https://registry.npmjs.org/vite/-/vite-3.1.8.tgz#fa29144167d19b773baffd65b3972ea4c12359c9" - integrity sha512-m7jJe3nufUbuOfotkntGFupinL/fmuTNuQmiVE7cH2IZMuf4UbfbGYMUT3jVWgGYuRVLY9j8NnrRqgw5rr5QTg== +vite@^3.2.7: + version "3.2.7" + resolved "https://registry.yarnpkg.com/vite/-/vite-3.2.7.tgz#35a62826bd4d6b778ae5db8766d023bcd4e7bef3" + integrity sha512-29pdXjk49xAP0QBr0xXqu2s5jiQIXNvE/xwd0vUizYT2Hzqe4BksNNoWllFVXJf4eLZ+UlVQmXfB4lWrc+t18g== dependencies: esbuild "^0.15.9" - postcss "^8.4.16" + postcss "^8.4.18" resolve "^1.22.1" - rollup "~2.78.0" + rollup "^2.79.1" optionalDependencies: fsevents "~2.3.2" diff --git a/examples/with-vuejs-v2/package.json b/examples/with-vuejs-v2/package.json index e852002e9..9b936d4f5 100644 --- a/examples/with-vuejs-v2/package.json +++ b/examples/with-vuejs-v2/package.json @@ -13,7 +13,7 @@ "vue-template-compiler": "2.7.14" }, "devDependencies": { - "vite": "^4.0.4", + "vite": "^4.0.5", "vite-plugin-vue2": "^2.0.3" } } diff --git a/examples/with-vuejs-v2/yarn.lock b/examples/with-vuejs-v2/yarn.lock index 353ee9bfa..a03f178e6 100644 --- a/examples/with-vuejs-v2/yarn.lock +++ b/examples/with-vuejs-v2/yarn.lock @@ -516,7 +516,7 @@ "@ethersproject/properties" "^5.5.0" "@ethersproject/strings" "^5.5.0" -"@ethersproject/abi@^5.0.1", "@ethersproject/abi@^5.5.0": +"@ethersproject/abi@^5.5.0": version "5.7.0" resolved "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.7.0.tgz#b3f3e045bbbeed1af3947335c247ad625a44e449" integrity sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA== @@ -1230,9 +1230,9 @@ dependencies: "@hapi/hoek" "^9.0.0" -"@sideway/formula@^3.0.0": +"@sideway/formula@^3.0.1": version "3.0.1" - resolved "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz#80fcbcbaf7ce031e0ef2dd29b1bfc7c3f583611f" + resolved "https://registry.yarnpkg.com/@sideway/formula/-/formula-3.0.1.tgz#80fcbcbaf7ce031e0ef2dd29b1bfc7c3f583611f" integrity sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg== "@sideway/pinpoint@^2.0.0": @@ -1245,17 +1245,6 @@ resolved "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.14.tgz#94e175b53623384bff1f354cdb3197a8d63cdbe5" integrity sha512-5d2RhCard1nQUC3aHcq/gHzWYO6K0WJmAbjO7mQJgCQKtZpgXxv1rOM6O/dBDhDYYVutk1sciOgNSe+5YyfM8A== -"@unstoppabledomains/resolution@^8.0": - version "8.4.0" - resolved "https://registry.npmjs.org/@unstoppabledomains/resolution/-/resolution-8.4.0.tgz#bcfba87898c5acd65bf15556a9737728daad7a89" - integrity sha512-bjJPF5YGwyd3p3pJuWOiz5YegVsmKDiwjJNWxhibnVYgzIWhaTt8dv6runxLTs761Rlwz37TLQvvBqJ8/KnzvA== - dependencies: - "@ethersproject/abi" "^5.0.1" - bn.js "^4.4.0" - cross-fetch "^3.1.4" - crypto-js "^4.1.1" - elliptic "^6.5.4" - "@vue/babel-helper-vue-jsx-merge-props@^1.2.1", "@vue/babel-helper-vue-jsx-merge-props@^1.4.0": version "1.4.0" resolved "https://registry.npmjs.org/@vue/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-1.4.0.tgz#8d53a1e21347db8edbe54d339902583176de09f2" @@ -1391,28 +1380,27 @@ dependencies: vue-demi "*" -"@web3-onboard/common@^2.2.3": - version "2.2.3" - resolved "https://registry.npmjs.org/@web3-onboard/common/-/common-2.2.3.tgz#fc0841186d84cf017f4cf0368dcd349e6ed8dc8b" - integrity sha512-ZI0XuCpxtuL9XGgeWglXR6rhgLP261EMEstjonxy8ptuOKLlTJcgvL7wSx2MjNDO3i/qmb/PGQpInvxYx5klSA== +"@web3-onboard/common@^2.3.3": + version "2.3.3" + resolved "https://registry.yarnpkg.com/@web3-onboard/common/-/common-2.3.3.tgz#02096e967dbed272c0637cda955902b96a0fce06" + integrity sha512-Ytppszqe77VY8WglRdr/Lfx+HmcZ2hXQEkBA23JaVYmzKvP/mC6j+sjGUD8CgXDpRRxyKoiRj6nz95GRABie6Q== dependencies: bignumber.js "^9.1.0" ethers "5.5.4" - joi "^17.6.1" + joi "17.9.1" -"@web3-onboard/core@^2.14.1": - version "2.14.1" - resolved "https://registry.npmjs.org/@web3-onboard/core/-/core-2.14.1.tgz#20d5f8196cdd4455a6e2daa69319fb697733934c" - integrity sha512-d5rG4wg2gOUsgiNAaAucJOzDdIM2WTxLPBN/sXR1V6eWatn6YcXyduW7Nr0n1Hl/2d8eRnlHTeSeb9YA50niVw== +"@web3-onboard/core@^2.20.0": + version "2.20.0" + resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.20.0.tgz#e023cdfc21a496acbf23730e469ee9d11167faa3" + integrity sha512-YAVRwoP7QjRJREiMtuDbNWzOwjR59QvIEH7Jl14TpwpIgx0WIGegQK7yJnmZIyWZpHZELof2m6HoFAEy6OjFpA== dependencies: - "@unstoppabledomains/resolution" "^8.0" - "@web3-onboard/common" "^2.2.3" + "@web3-onboard/common" "^2.3.3" bignumber.js "^9.0.0" - bnc-sdk "^4.6.5" + bnc-sdk "^4.6.7" bowser "^2.11.0" ethers "5.5.3" eventemitter3 "^4.0.7" - joi "^17.6.1" + joi "17.9.1" lodash.merge "^4.6.2" lodash.partition "^4.6.0" nanoid "^4.0.0" @@ -1420,24 +1408,24 @@ svelte "^3.49.0" svelte-i18n "^3.3.13" -"@web3-onboard/injected-wallets@^2.6.2": - version "2.6.2" - resolved "https://registry.npmjs.org/@web3-onboard/injected-wallets/-/injected-wallets-2.6.2.tgz#d6bebd623098c06868ad5c4efdaceb90082732e3" - integrity sha512-vOUWluIiYSrsC1TyFNFA0GXzcAFcfgy4mG6iXGJSjbNx9/54VilM6UtSaVhXb4diqQZyinuZj18UexdSxDAcfQ== +"@web3-onboard/injected-wallets@^2.8.3-alpha.1": + version "2.9.0" + resolved "https://registry.yarnpkg.com/@web3-onboard/injected-wallets/-/injected-wallets-2.9.0.tgz#e074dbc48516edf82f235c09fa936b18be19e533" + integrity sha512-GrbbodUVqguBxf9YDz+DlIGYJ2wSBdwj8/2C4QMMcCbnx5NtSlamSXiRQngTMn7AIm4fnSHOwdyAeEi8Q/k2fg== dependencies: - "@web3-onboard/common" "^2.2.3" - joi "^17.6.1" + "@web3-onboard/common" "^2.3.3" + joi "17.9.1" lodash.uniqby "^4.7.0" -"@web3-onboard/vue@^2.5.1": - version "2.5.1" - resolved "https://registry.npmjs.org/@web3-onboard/vue/-/vue-2.5.1.tgz#60f12ece27b0efe8b6159d36d1a6ccb8e9c63ca0" - integrity sha512-jxZxQiobkzGDs+zNku24xmqueMn2CB2gYqpPJG03yA7gqf4+mu1QuEmzR6mY2S7xey/I9eZLviICXQlfhFO2Pg== +"@web3-onboard/vue@^2.5.7-alpha.3": + version "2.7.4" + resolved "https://registry.yarnpkg.com/@web3-onboard/vue/-/vue-2.7.4.tgz#36b192d8ea121f0585b9dac22e6dc75039412747" + integrity sha512-mkQ/XimBKPrgo0g/2wvTVTbpuUBM6WkqUvxdXLh6GGcmIoJM2n1C76EcV4D0QT91O5igWgjxFj++Xjvp4qaOBw== dependencies: "@vueuse/core" "^8.4.2" "@vueuse/rxjs" "^8.2.0" - "@web3-onboard/common" "^2.2.3" - "@web3-onboard/core" "^2.14.1" + "@web3-onboard/common" "^2.3.3" + "@web3-onboard/core" "^2.20.0" vue-demi "^0.12.4" aes-js@3.0.0: @@ -1467,7 +1455,7 @@ bluebird@^3.1.1, bluebird@^3.7.2: resolved "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== -bn.js@^4.11.9, bn.js@^4.4.0: +bn.js@^4.11.9: version "4.12.0" resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== @@ -1477,10 +1465,10 @@ bn.js@^5.2.1: resolved "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz#0bc527a6a0d18d0aa8d5b0538ce4a77dccfa7b70" integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ== -bnc-sdk@^4.6.5: - version "4.6.5" - resolved "https://registry.npmjs.org/bnc-sdk/-/bnc-sdk-4.6.5.tgz#9f91eb2f213c0c4abf8b5f134f673a3f9a981ea2" - integrity sha512-W++M1kY5SensQUpig+EXqKEOfRgKrrobd8l3r9oOa06xJmxmMH4DPUm28IcESVX6NWj4I+bhgghOVDh/SFdE8Q== +bnc-sdk@^4.6.7: + version "4.6.7" + resolved "https://registry.yarnpkg.com/bnc-sdk/-/bnc-sdk-4.6.7.tgz#138a22e04c95c2c697fb836092358d21957e2114" + integrity sha512-jIQ6cmeRBgvH/YDLuYRr2+kxDGcAAi0SOvjlO5nQ5cWdbslw+ASWftd1HmxiVLNCiwEH5bSc/t8a0agZ5njTUQ== dependencies: crypto-es "^1.2.2" nanoid "^3.3.1" @@ -1568,23 +1556,11 @@ convert-source-map@^1.7.0: resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== -cross-fetch@^3.1.4: - version "3.1.5" - resolved "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz#e1389f44d9e7ba767907f7af8454787952ab534f" - integrity sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw== - dependencies: - node-fetch "2.6.7" - crypto-es@^1.2.2: version "1.2.7" resolved "https://registry.npmjs.org/crypto-es/-/crypto-es-1.2.7.tgz#754a6d52319a94fb4eb1f119297f17196b360f88" integrity sha512-UUqiVJ2gUuZFmbFsKmud3uuLcNP2+Opt+5ysmljycFCyhA0+T16XJmo1ev/t5kMChMqWh7IEvURNCqsg+SjZGQ== -crypto-js@^4.1.1: - version "4.1.1" - resolved "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz#9e485bcf03521041bd85844786b83fb7619736cf" - integrity sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw== - cssesc@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" @@ -1625,7 +1601,7 @@ electron-to-chromium@^1.4.284: resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz#61046d1e4cab3a25238f6bf7413795270f125592" integrity sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA== -elliptic@6.5.4, elliptic@^6.5.4: +elliptic@6.5.4: version "6.5.4" resolved "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ== @@ -1929,15 +1905,15 @@ is-promise@^2.2.2: resolved "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz#39ab959ccbf9a774cf079f7b40c7a26f763135f1" integrity sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ== -joi@^17.6.1: - version "17.7.0" - resolved "https://registry.npmjs.org/joi/-/joi-17.7.0.tgz#591a33b1fe1aca2bc27f290bcad9b9c1c570a6b3" - integrity sha512-1/ugc8djfn93rTE3WRKdCzGGt/EtiYKxITMO4Wiv6q5JL1gl9ePt4kBsl1S499nbosspfctIQTpYIhSmHA3WAg== +joi@17.9.1: + version "17.9.1" + resolved "https://registry.yarnpkg.com/joi/-/joi-17.9.1.tgz#74899b9fa3646904afa984a11df648eca66c9018" + integrity sha512-FariIi9j6QODKATGBrEX7HZcja8Bsh3rfdGYy/Sb65sGlZWK/QWesU1ghk7aJWDj95knjXlQfSmzFSPPkLVsfw== dependencies: "@hapi/hoek" "^9.0.0" "@hapi/topo" "^5.0.0" "@sideway/address" "^4.1.3" - "@sideway/formula" "^3.0.0" + "@sideway/formula" "^3.0.1" "@sideway/pinpoint" "^2.0.0" js-sha3@0.8.0: @@ -2079,13 +2055,6 @@ next-tick@1, next-tick@^1.1.0: resolved "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb" integrity sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ== -node-fetch@2.6.7: - version "2.6.7" - resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" - integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== - dependencies: - whatwg-url "^5.0.0" - node-releases@^2.0.8: version "2.0.8" resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.8.tgz#0f349cdc8fcfa39a92ac0be9bc48b7706292b9ae" @@ -2292,11 +2261,6 @@ to-fast-properties@^2.0.0: resolved "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== -tr46@~0.0.3: - version "0.0.3" - resolved "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" - integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== - tslib@^1.9.0: version "1.14.1" resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" @@ -2370,10 +2334,10 @@ vite-plugin-vue2@^2.0.3: source-map "^0.7.3" vue-template-babel-compiler "^1.2.0" -vite@^4.0.4: - version "4.0.4" - resolved "https://registry.npmjs.org/vite/-/vite-4.0.4.tgz#4612ce0b47bbb233a887a54a4ae0c6e240a0da31" - integrity sha512-xevPU7M8FU0i/80DMR+YhgrzR5KS2ORy1B4xcX/cXLsvnUWvfHuqMmVU6N0YiJ4JWGRJJsLCgjEzKjG9/GKoSw== +vite@^4.0.5: + version "4.0.5" + resolved "https://registry.yarnpkg.com/vite/-/vite-4.0.5.tgz#634f0bd1edf8bb8468ed42a1c3fd938c67d2f94b" + integrity sha512-7m87RC+caiAxG+8j3jObveRLqaWA/neAdCat6JAZwMkSWqFHOvg8MYe5fAQxVBRAuKAQ1S6XDh3CBQuLNbY33w== dependencies: esbuild "^0.16.3" postcss "^8.4.20" @@ -2431,19 +2395,6 @@ vue@^2.7.14: "@vue/compiler-sfc" "2.7.14" csstype "^3.1.0" -webidl-conversions@^3.0.0: - version "3.0.1" - resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" - integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== - -whatwg-url@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" - integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== - dependencies: - tr46 "~0.0.3" - webidl-conversions "^3.0.0" - ws@7.4.6: version "7.4.6" resolved "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c" diff --git a/examples/with-vuejs/package.json b/examples/with-vuejs/package.json index 78bfa1f76..dc800ff7a 100644 --- a/examples/with-vuejs/package.json +++ b/examples/with-vuejs/package.json @@ -21,6 +21,6 @@ "eslint": "^8.33.0", "eslint-plugin-vue": "^9.9.0", "prettier": "^2.8.3", - "vite": "^4.0.4" + "vite": "^4.0.5" } } diff --git a/examples/with-vuejs/yarn.lock b/examples/with-vuejs/yarn.lock index d891fb840..51fbb7e08 100644 --- a/examples/with-vuejs/yarn.lock +++ b/examples/with-vuejs/yarn.lock @@ -147,21 +147,6 @@ "@ethersproject/properties" "^5.5.0" "@ethersproject/strings" "^5.5.0" -"@ethersproject/abi@^5.0.1": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.7.0.tgz" - integrity sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA== - dependencies: - "@ethersproject/address" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/constants" "^5.7.0" - "@ethersproject/hash" "^5.7.0" - "@ethersproject/keccak256" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - "@ethersproject/abi@^5.5.0": version "5.6.4" resolved "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.6.4.tgz" @@ -203,19 +188,6 @@ "@ethersproject/transactions" "^5.6.2" "@ethersproject/web" "^5.6.1" -"@ethersproject/abstract-provider@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz" - integrity sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw== - dependencies: - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/networks" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/transactions" "^5.7.0" - "@ethersproject/web" "^5.7.0" - "@ethersproject/abstract-signer@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.5.0.tgz" @@ -238,17 +210,6 @@ "@ethersproject/logger" "^5.6.0" "@ethersproject/properties" "^5.6.0" -"@ethersproject/abstract-signer@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz" - integrity sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ== - dependencies: - "@ethersproject/abstract-provider" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/address@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/address/-/address-5.5.0.tgz" @@ -271,17 +232,6 @@ "@ethersproject/logger" "^5.6.0" "@ethersproject/rlp" "^5.6.1" -"@ethersproject/address@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/address/-/address-5.7.0.tgz" - integrity sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA== - dependencies: - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/keccak256" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/rlp" "^5.7.0" - "@ethersproject/base64@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.5.0.tgz" @@ -296,13 +246,6 @@ dependencies: "@ethersproject/bytes" "^5.6.1" -"@ethersproject/base64@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.7.0.tgz" - integrity sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/basex@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/basex/-/basex-5.5.0.tgz" @@ -337,15 +280,6 @@ "@ethersproject/logger" "^5.6.0" bn.js "^5.2.1" -"@ethersproject/bignumber@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/bignumber/-/bignumber-5.7.0.tgz" - integrity sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - bn.js "^5.2.1" - "@ethersproject/bytes@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.5.0.tgz" @@ -360,13 +294,6 @@ dependencies: "@ethersproject/logger" "^5.6.0" -"@ethersproject/bytes@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.7.0.tgz" - integrity sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A== - dependencies: - "@ethersproject/logger" "^5.7.0" - "@ethersproject/constants@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/constants/-/constants-5.5.0.tgz" @@ -381,13 +308,6 @@ dependencies: "@ethersproject/bignumber" "^5.6.2" -"@ethersproject/constants@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/constants/-/constants-5.7.0.tgz" - integrity sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA== - dependencies: - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/contracts@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/contracts/-/contracts-5.5.0.tgz" @@ -432,21 +352,6 @@ "@ethersproject/properties" "^5.6.0" "@ethersproject/strings" "^5.6.1" -"@ethersproject/hash@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.7.0.tgz" - integrity sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g== - dependencies: - "@ethersproject/abstract-signer" "^5.7.0" - "@ethersproject/address" "^5.7.0" - "@ethersproject/base64" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/keccak256" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - "@ethersproject/hdnode@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/hdnode/-/hdnode-5.5.0.tgz" @@ -537,14 +442,6 @@ "@ethersproject/bytes" "^5.6.1" js-sha3 "0.8.0" -"@ethersproject/keccak256@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.7.0.tgz" - integrity sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg== - dependencies: - "@ethersproject/bytes" "^5.7.0" - js-sha3 "0.8.0" - "@ethersproject/logger@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.5.0.tgz" @@ -555,11 +452,6 @@ resolved "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.6.0.tgz" integrity sha512-BiBWllUROH9w+P21RzoxJKzqoqpkyM1pRnEKG69bulE9TSQD8SAIvTQqIMZmmCO8pUNkgLP1wndX1gKghSpBmg== -"@ethersproject/logger@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.7.0.tgz" - integrity sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig== - "@ethersproject/networks@5.5.2": version "5.5.2" resolved "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.5.2.tgz" @@ -574,13 +466,6 @@ dependencies: "@ethersproject/logger" "^5.6.0" -"@ethersproject/networks@^5.7.0": - version "5.7.1" - resolved "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.7.1.tgz" - integrity sha512-n/MufjFYv3yFcUyfhnXotyDlNdFb7onmkSy8aQERi2PjNcnWQ66xXxa3XlS8nCcA8aJKJjIIMNJTC7tu80GwpQ== - dependencies: - "@ethersproject/logger" "^5.7.0" - "@ethersproject/pbkdf2@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/pbkdf2/-/pbkdf2-5.5.0.tgz" @@ -611,13 +496,6 @@ dependencies: "@ethersproject/logger" "^5.6.0" -"@ethersproject/properties@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/properties/-/properties-5.7.0.tgz" - integrity sha512-J87jy8suntrAkIZtecpxEPxY//szqr1mlBaYlQ0r4RCaiD2hjheqF9s1LVE8vVuJCXisjIP+JgtK/Do54ej4Sw== - dependencies: - "@ethersproject/logger" "^5.7.0" - "@ethersproject/providers@5.5.2": version "5.5.2" resolved "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.5.2.tgz" @@ -700,14 +578,6 @@ "@ethersproject/bytes" "^5.6.1" "@ethersproject/logger" "^5.6.0" -"@ethersproject/rlp@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/rlp/-/rlp-5.7.0.tgz" - integrity sha512-rBxzX2vK8mVF7b0Tol44t5Tb8gomOHkj5guL+HhzQ1yBh/ydjGnpw6at+X6Iw0Kp3OzzzkcKp8N9r0W4kYSs9w== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/sha2@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/sha2/-/sha2-5.5.0.tgz" @@ -750,18 +620,6 @@ elliptic "6.5.4" hash.js "1.1.7" -"@ethersproject/signing-key@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/signing-key/-/signing-key-5.7.0.tgz" - integrity sha512-MZdy2nL3wO0u7gkB4nA/pEf8lu1TlFswPNmy8AiYkfKTdO6eXBJyUdmHO/ehm/htHw9K/qF8ujnTyUAD+Ry54Q== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - bn.js "^5.2.1" - elliptic "6.5.4" - hash.js "1.1.7" - "@ethersproject/solidity@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/solidity/-/solidity-5.5.0.tgz" @@ -792,15 +650,6 @@ "@ethersproject/constants" "^5.6.1" "@ethersproject/logger" "^5.6.0" -"@ethersproject/strings@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.7.0.tgz" - integrity sha512-/9nu+lj0YswRNSH0NXYqrh8775XNyEdUQAuf3f+SmOrnVewcJ5SBNAjF7lpgehKi4abvNNXyf+HX86czCdJ8Mg== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/constants" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/transactions@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/transactions/-/transactions-5.5.0.tgz" @@ -831,21 +680,6 @@ "@ethersproject/rlp" "^5.6.1" "@ethersproject/signing-key" "^5.6.2" -"@ethersproject/transactions@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/transactions/-/transactions-5.7.0.tgz" - integrity sha512-kmcNicCp1lp8qanMTC3RIikGgoJ80ztTyvtsFvCYpSCfkjhD0jZ2LOrnbcuxuToLIUYYf+4XwD1rP+B/erDIhQ== - dependencies: - "@ethersproject/address" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/constants" "^5.7.0" - "@ethersproject/keccak256" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/rlp" "^5.7.0" - "@ethersproject/signing-key" "^5.7.0" - "@ethersproject/units@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/units/-/units-5.5.0.tgz" @@ -898,17 +732,6 @@ "@ethersproject/properties" "^5.6.0" "@ethersproject/strings" "^5.6.1" -"@ethersproject/web@^5.7.0": - version "5.7.1" - resolved "https://registry.npmjs.org/@ethersproject/web/-/web-5.7.1.tgz" - integrity sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w== - dependencies: - "@ethersproject/base64" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - "@ethersproject/wordlists@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/wordlists/-/wordlists-5.5.0.tgz" @@ -1034,7 +857,7 @@ dependencies: "@hapi/hoek" "^9.0.0" -"@sideway/formula@^3.0.0": +"@sideway/formula@^3.0.1": version "3.0.1" resolved "https://registry.yarnpkg.com/@sideway/formula/-/formula-3.0.1.tgz#80fcbcbaf7ce031e0ef2dd29b1bfc7c3f583611f" integrity sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg== @@ -1049,17 +872,6 @@ resolved "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.14.tgz" integrity sha512-5d2RhCard1nQUC3aHcq/gHzWYO6K0WJmAbjO7mQJgCQKtZpgXxv1rOM6O/dBDhDYYVutk1sciOgNSe+5YyfM8A== -"@unstoppabledomains/resolution@^8.0": - version "8.4.0" - resolved "https://registry.npmjs.org/@unstoppabledomains/resolution/-/resolution-8.4.0.tgz" - integrity sha512-bjJPF5YGwyd3p3pJuWOiz5YegVsmKDiwjJNWxhibnVYgzIWhaTt8dv6runxLTs761Rlwz37TLQvvBqJ8/KnzvA== - dependencies: - "@ethersproject/abi" "^5.0.1" - bn.js "^4.4.0" - cross-fetch "^3.1.4" - crypto-js "^4.1.1" - elliptic "^6.5.4" - "@vitejs/plugin-vue@^4.0.0": version "4.0.0" resolved "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-4.0.0.tgz" @@ -1198,28 +1010,27 @@ dependencies: vue-demi "*" -"@web3-onboard/common@^2.2.3": - version "2.2.3" - resolved "https://registry.npmjs.org/@web3-onboard/common/-/common-2.2.3.tgz" - integrity sha512-ZI0XuCpxtuL9XGgeWglXR6rhgLP261EMEstjonxy8ptuOKLlTJcgvL7wSx2MjNDO3i/qmb/PGQpInvxYx5klSA== +"@web3-onboard/common@^2.3.3": + version "2.3.3" + resolved "https://registry.yarnpkg.com/@web3-onboard/common/-/common-2.3.3.tgz#02096e967dbed272c0637cda955902b96a0fce06" + integrity sha512-Ytppszqe77VY8WglRdr/Lfx+HmcZ2hXQEkBA23JaVYmzKvP/mC6j+sjGUD8CgXDpRRxyKoiRj6nz95GRABie6Q== dependencies: bignumber.js "^9.1.0" ethers "5.5.4" - joi "^17.6.1" + joi "17.9.1" -"@web3-onboard/core@^2.14.1": - version "2.14.1" - resolved "https://registry.npmjs.org/@web3-onboard/core/-/core-2.14.1.tgz" - integrity sha512-d5rG4wg2gOUsgiNAaAucJOzDdIM2WTxLPBN/sXR1V6eWatn6YcXyduW7Nr0n1Hl/2d8eRnlHTeSeb9YA50niVw== +"@web3-onboard/core@^2.20.0": + version "2.20.0" + resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.20.0.tgz#e023cdfc21a496acbf23730e469ee9d11167faa3" + integrity sha512-YAVRwoP7QjRJREiMtuDbNWzOwjR59QvIEH7Jl14TpwpIgx0WIGegQK7yJnmZIyWZpHZELof2m6HoFAEy6OjFpA== dependencies: - "@unstoppabledomains/resolution" "^8.0" - "@web3-onboard/common" "^2.2.3" + "@web3-onboard/common" "^2.3.3" bignumber.js "^9.0.0" - bnc-sdk "^4.6.5" + bnc-sdk "^4.6.7" bowser "^2.11.0" ethers "5.5.3" eventemitter3 "^4.0.7" - joi "^17.6.1" + joi "17.9.1" lodash.merge "^4.6.2" lodash.partition "^4.6.0" nanoid "^4.0.0" @@ -1227,24 +1038,24 @@ svelte "^3.49.0" svelte-i18n "^3.3.13" -"@web3-onboard/injected-wallets@^2.6.2": - version "2.6.2" - resolved "https://registry.npmjs.org/@web3-onboard/injected-wallets/-/injected-wallets-2.6.2.tgz" - integrity sha512-vOUWluIiYSrsC1TyFNFA0GXzcAFcfgy4mG6iXGJSjbNx9/54VilM6UtSaVhXb4diqQZyinuZj18UexdSxDAcfQ== +"@web3-onboard/injected-wallets@^2.8.3-alpha.1": + version "2.9.0" + resolved "https://registry.yarnpkg.com/@web3-onboard/injected-wallets/-/injected-wallets-2.9.0.tgz#e074dbc48516edf82f235c09fa936b18be19e533" + integrity sha512-GrbbodUVqguBxf9YDz+DlIGYJ2wSBdwj8/2C4QMMcCbnx5NtSlamSXiRQngTMn7AIm4fnSHOwdyAeEi8Q/k2fg== dependencies: - "@web3-onboard/common" "^2.2.3" - joi "^17.6.1" + "@web3-onboard/common" "^2.3.3" + joi "17.9.1" lodash.uniqby "^4.7.0" -"@web3-onboard/vue@^2.5.1": - version "2.5.1" - resolved "https://registry.npmjs.org/@web3-onboard/vue/-/vue-2.5.1.tgz" - integrity sha512-jxZxQiobkzGDs+zNku24xmqueMn2CB2gYqpPJG03yA7gqf4+mu1QuEmzR6mY2S7xey/I9eZLviICXQlfhFO2Pg== +"@web3-onboard/vue@^2.5.7-alpha.3": + version "2.7.4" + resolved "https://registry.yarnpkg.com/@web3-onboard/vue/-/vue-2.7.4.tgz#36b192d8ea121f0585b9dac22e6dc75039412747" + integrity sha512-mkQ/XimBKPrgo0g/2wvTVTbpuUBM6WkqUvxdXLh6GGcmIoJM2n1C76EcV4D0QT91O5igWgjxFj++Xjvp4qaOBw== dependencies: "@vueuse/core" "^8.4.2" "@vueuse/rxjs" "^8.2.0" - "@web3-onboard/common" "^2.2.3" - "@web3-onboard/core" "^2.14.1" + "@web3-onboard/common" "^2.3.3" + "@web3-onboard/core" "^2.20.0" vue-demi "^0.12.4" acorn-jsx@^5.3.2: @@ -1309,7 +1120,7 @@ bignumber.js@^9.1.0: resolved "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.1.tgz" integrity sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig== -bn.js@^4.11.9, bn.js@^4.4.0: +bn.js@^4.11.9: version "4.12.0" resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz" integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== @@ -1319,10 +1130,10 @@ bn.js@^5.2.1: resolved "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz" integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ== -bnc-sdk@^4.6.5: - version "4.6.5" - resolved "https://registry.npmjs.org/bnc-sdk/-/bnc-sdk-4.6.5.tgz" - integrity sha512-W++M1kY5SensQUpig+EXqKEOfRgKrrobd8l3r9oOa06xJmxmMH4DPUm28IcESVX6NWj4I+bhgghOVDh/SFdE8Q== +bnc-sdk@^4.6.7: + version "4.6.7" + resolved "https://registry.yarnpkg.com/bnc-sdk/-/bnc-sdk-4.6.7.tgz#138a22e04c95c2c697fb836092358d21957e2114" + integrity sha512-jIQ6cmeRBgvH/YDLuYRr2+kxDGcAAi0SOvjlO5nQ5cWdbslw+ASWftd1HmxiVLNCiwEH5bSc/t8a0agZ5njTUQ== dependencies: crypto-es "^1.2.2" nanoid "^3.3.1" @@ -1382,13 +1193,6 @@ concat-map@0.0.1: resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== -cross-fetch@^3.1.4: - version "3.1.5" - resolved "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz" - integrity sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw== - dependencies: - node-fetch "2.6.7" - cross-spawn@^7.0.2: version "7.0.3" resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz" @@ -1403,11 +1207,6 @@ crypto-es@^1.2.2: resolved "https://registry.npmjs.org/crypto-es/-/crypto-es-1.2.7.tgz" integrity sha512-UUqiVJ2gUuZFmbFsKmud3uuLcNP2+Opt+5ysmljycFCyhA0+T16XJmo1ev/t5kMChMqWh7IEvURNCqsg+SjZGQ== -crypto-js@^4.1.1: - version "4.1.1" - resolved "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz" - integrity sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw== - cssesc@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz" @@ -1442,7 +1241,7 @@ doctrine@^3.0.0: dependencies: esutils "^2.0.2" -elliptic@6.5.4, elliptic@^6.5.4: +elliptic@6.5.4: version "6.5.4" resolved "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz" integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ== @@ -1917,15 +1716,15 @@ isexe@^2.0.0: resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== -joi@^17.6.1: - version "17.7.0" - resolved "https://registry.npmjs.org/joi/-/joi-17.7.0.tgz" - integrity sha512-1/ugc8djfn93rTE3WRKdCzGGt/EtiYKxITMO4Wiv6q5JL1gl9ePt4kBsl1S499nbosspfctIQTpYIhSmHA3WAg== +joi@17.9.1: + version "17.9.1" + resolved "https://registry.yarnpkg.com/joi/-/joi-17.9.1.tgz#74899b9fa3646904afa984a11df648eca66c9018" + integrity sha512-FariIi9j6QODKATGBrEX7HZcja8Bsh3rfdGYy/Sb65sGlZWK/QWesU1ghk7aJWDj95knjXlQfSmzFSPPkLVsfw== dependencies: "@hapi/hoek" "^9.0.0" "@hapi/topo" "^5.0.0" "@sideway/address" "^4.1.3" - "@sideway/formula" "^3.0.0" + "@sideway/formula" "^3.0.1" "@sideway/pinpoint" "^2.0.0" js-sdsl@^4.1.4: @@ -2051,13 +1850,6 @@ natural-compare@^1.4.0: resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== -node-fetch@2.6.7: - version "2.6.7" - resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz" - integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== - dependencies: - whatwg-url "^5.0.0" - nth-check@^2.0.1: version "2.1.1" resolved "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz" @@ -2146,16 +1938,7 @@ postcss-selector-parser@^6.0.9: cssesc "^3.0.0" util-deprecate "^1.0.2" -postcss@^8.1.10: - version "8.4.14" - resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.14.tgz" - integrity sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig== - dependencies: - nanoid "^3.3.4" - picocolors "^1.0.0" - source-map-js "^1.0.2" - -postcss@^8.4.20: +postcss@^8.1.10, postcss@^8.4.20: version "8.4.21" resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz" integrity sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg== @@ -2263,9 +2046,9 @@ scrypt-js@3.0.1: integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA== semver@^7.3.5, semver@^7.3.6: - version "7.3.7" - resolved "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz" - integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g== + version "7.5.3" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.3.tgz#161ce8c2c6b4b3bdca6caadc9fa3317a4c4fe88e" + integrity sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ== dependencies: lru-cache "^6.0.0" @@ -2356,11 +2139,6 @@ tiny-glob@^0.2.6: globalyzer "0.1.0" globrex "^0.1.2" -tr46@~0.0.3: - version "0.0.3" - resolved "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" - integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== - tslib@^1.9.0: version "1.14.1" resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" @@ -2395,10 +2173,10 @@ util-deprecate@^1.0.2: resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== -vite@^4.0.4: - version "4.0.4" - resolved "https://registry.npmjs.org/vite/-/vite-4.0.4.tgz" - integrity sha512-xevPU7M8FU0i/80DMR+YhgrzR5KS2ORy1B4xcX/cXLsvnUWvfHuqMmVU6N0YiJ4JWGRJJsLCgjEzKjG9/GKoSw== +vite@^4.0.5: + version "4.0.5" + resolved "https://registry.yarnpkg.com/vite/-/vite-4.0.5.tgz#634f0bd1edf8bb8468ed42a1c3fd938c67d2f94b" + integrity sha512-7m87RC+caiAxG+8j3jObveRLqaWA/neAdCat6JAZwMkSWqFHOvg8MYe5fAQxVBRAuKAQ1S6XDh3CBQuLNbY33w== dependencies: esbuild "^0.16.3" postcss "^8.4.20" @@ -2448,19 +2226,6 @@ vue@^3.2.45: "@vue/server-renderer" "3.2.45" "@vue/shared" "3.2.45" -webidl-conversions@^3.0.0: - version "3.0.1" - resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" - integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== - -whatwg-url@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz" - integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== - dependencies: - tr46 "~0.0.3" - webidl-conversions "^3.0.0" - which@^2.0.1: version "2.0.2" resolved "https://registry.npmjs.org/which/-/which-2.0.2.tgz" diff --git a/package.json b/package.json index 09ff3f5dd..1a7906b79 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "web3-onboard-monorepo", - "version": "2.24.1", + "version": "2.24.2", "private": true, "workspaces": { "packages": [ diff --git a/packages/core/README.md b/packages/core/README.md index 29185c9b7..c0e971720 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -7,6 +7,7 @@ This is the core package that contains all of the UI and logic to be able to seamlessly connect user's wallets to your app and track the state of those wallets. Onboard no longer contains any wallet specific code, so wallets need to be passed in upon initialization. _Tip: Release 2.24.0 moves the default position of the account center from topRight to bottomRight. To reset your application to topRight, include the following when initializing onboard:_ + ```typescript accountCenter: { desktop: { @@ -246,6 +247,10 @@ type ConnectModalOptions = { * Defaults to `https://www.blocknative.com/blog/metamask-wont-connect-web3-wallet-troubleshooting` */ wheresMyWalletLink?: string + /** + * Hide the where is my wallet link notice displayed in the connect modal + */ + removeWhereIsMyWalletWarning?: boolean /** * @deprecated Has no effect unless `@web3-onboard/unstoppable-resolution` * package has been added and passed into the web3-onboard initialization diff --git a/packages/core/package.json b/packages/core/package.json index 0d012e3a8..104dc73d6 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", "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/types.ts b/packages/core/src/types.ts index eb4739a02..fb7d1518f 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -179,7 +179,7 @@ export interface AppState { locale: Locale notify: Notify notifications: Notification[] - connect: ConnectModalOptions, + connect: ConnectModalOptions appMetadata: AppMetadata } @@ -243,6 +243,10 @@ export type ConnectModalOptions = { * metamask-wont-connect-web3-wallet-troubleshooting` */ wheresMyWalletLink?: string + /** + * Hide the where is my wallet link notice displayed in the connect modal + */ + removeWhereIsMyWalletWarning?: boolean /** * @deprecated Has no effect unless `@web3-onboard/unstoppable-resolution` * package has been added and passed into the web3-onboard initialization @@ -429,7 +433,7 @@ export type Action = | AddNotificationAction | RemoveNotificationAction | UpdateAllWalletsAction - | UpdateConnectModalAction + | UpdateConnectModalAction | UpdateAppMetadataAction export type AddChainsAction = { type: 'add_chains'; payload: Chain[] } diff --git a/packages/core/src/validation.ts b/packages/core/src/validation.ts index 5737190c3..e540d0510 100644 --- a/packages/core/src/validation.ts +++ b/packages/core/src/validation.ts @@ -202,6 +202,7 @@ const connectModalOptions = Joi.object({ autoConnectAllPreviousWallet: Joi.boolean(), iDontHaveAWalletLink: Joi.string(), wheresMyWalletLink: Joi.string(), + removeWhereIsMyWalletWarning: Joi.boolean(), disableUDResolution: Joi.boolean() }) diff --git a/packages/core/src/views/connect/SelectingWallet.svelte b/packages/core/src/views/connect/SelectingWallet.svelte index 2a171b5ef..f0cacd639 100644 --- a/packages/core/src/views/connect/SelectingWallet.svelte +++ b/packages/core/src/views/connect/SelectingWallet.svelte @@ -88,20 +88,25 @@ connectingWalletLabel !== wallet.label} /> {/each} -
- -
{$_('connect.selectingWallet.whyDontISeeMyWallet', { - default: en.connect.selectingWallet.whyDontISeeMyWallet - })}
- {$_('connect.selectingWallet.learnMore', { - default: en.connect.selectingWallet.learnMore - })} -
-
+ {#if !connect.removeWhereIsMyWalletWarning} +
+ +
+ {$_('connect.selectingWallet.whyDontISeeMyWallet', { + default: en.connect.selectingWallet.whyDontISeeMyWallet + })} +
+ {$_('connect.selectingWallet.learnMore', { + default: en.connect.selectingWallet.learnMore + })} +
+
+ {/if} 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 f94f69998..9241b3ba4 100644 --- a/packages/demo/package.json +++ b/packages/demo/package.json @@ -27,7 +27,7 @@ "@web3-onboard/cede-store": "^2.0.2", "@web3-onboard/blocto": "2.0.0", "@web3-onboard/coinbase": "^2.2.3", - "@web3-onboard/core": "^2.20.3", + "@web3-onboard/core": "^2.20.4", "@web3-onboard/dcent": "^2.2.7", "@web3-onboard/enkrypt": "^2.0.3", "@web3-onboard/fortmatic": "^2.0.18", @@ -39,20 +39,20 @@ "@web3-onboard/injected-wallets": "^2.10.1", "@web3-onboard/keepkey": "^2.3.7", "@web3-onboard/keystone": "^2.3.7", - "@web3-onboard/ledger": "^2.4.5", + "@web3-onboard/ledger": "^2.5.0", "@web3-onboard/magic": "^2.1.6", "@web3-onboard/mew-wallet": "^2.0.3", "@web3-onboard/phantom": "^2.0.1", "@web3-onboard/portis": "^2.1.6", "@web3-onboard/sequence": "^2.0.7", - "@web3-onboard/taho": "^2.0.3", + "@web3-onboard/taho": "^2.0.5", "@web3-onboard/torus": "^2.2.4", "@web3-onboard/transaction-preview": "^2.0.7", "@web3-onboard/trezor": "^2.4.2", "@web3-onboard/trust": "^2.0.3", - "@web3-onboard/uauth": "^2.0.4", + "@web3-onboard/uauth": "^2.1.0", "@web3-onboard/venly": "^2.0.0", - "@web3-onboard/walletconnect": "^2.3.10-alpha.1", + "@web3-onboard/walletconnect": "^2.4.0", "@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..2dd7d6a70 100644 --- a/packages/demo/src/App.svelte +++ b/packages/demo/src/App.svelte @@ -41,7 +41,7 @@ import { share } from 'rxjs/operators' import VConsole from 'vconsole' import blocknativeIcon from './blocknative-icon.js' - import DappAuth from '@dapperlabs/dappauth'; + import DappAuth from '@dapperlabs/dappauth' if (window.innerWidth < 700) { new VConsole() @@ -77,7 +77,7 @@ // displayUnavailable: true, // || // display specific unavailable wallets - displayUnavailable: [ProviderLabel.MetaMask, ProviderLabel.Trust], + displayUnavailable: [ProviderLabel.MetaMask, ProviderLabel.Trust] // but only show Binance and Bitski wallet if they are available // filter: { // [ProviderLabel.Binance]: 'unavailable', @@ -115,20 +115,8 @@ const coinbaseWallet = coinbaseModule() const walletConnect = walletConnectModule({ - connectFirstChainId: true, - version: 2, handleUri: uri => console.log(uri), projectId: 'f6bd6e2911b56f5ac3bc8b2d0e2d7ad5', - qrcodeModalOptions: { - mobileLinks: [ - 'rainbow', - 'metamask', - 'argent', - 'trust', - 'imtoken', - 'pillar' - ] - }, requiredChains:[1, 56] }) const portis = portisModule({ @@ -146,7 +134,7 @@ const torus = torusModule() const infinityWallet = infinityWalletModule() - const ledger = ledgerModule() + const ledger = ledgerModule({ projectId: 'f6bd6e2911b56f5ac3bc8b2d0e2d7ad5' }) const keepkey = keepkeyModule() const keystone = keystoneModule() const gnosis = gnosisModule() @@ -169,6 +157,7 @@ const uauthOptions = { clientID: 'a25c3a65-a1f2-46cc-a515-a46fe7acb78c', + walletConnectProjectId: 'f6bd6e2911b56f5ac3bc8b2d0e2d7ad5', redirectUri: 'http://localhost:8080/', scope: 'openid wallet email:optional humanity_check:optional profile:optional social:optional' @@ -304,7 +293,7 @@ ], connect: { // disableClose: true, - autoConnectLastWallet: true, + // removeWhereIsMyWalletWarning: true, autoConnectAllPreviousWallet: true }, appMetadata: { @@ -463,8 +452,8 @@ const signer = ethersProvider?.getSigner() const addr = await signer?.getAddress() const signature = await signer?.signMessage(signMsg) - let verifySign = false; - let recoveredAddress = null; + let verifySign = false + let recoveredAddress = null try { recoveredAddress = recoverAddress( @@ -473,15 +462,21 @@ ) verifySign = recoveredAddress === addr } catch (error) { - console.error('Error recovering addressL', error); - verifySign = false + console.error('Error recovering address', error) } // contract wallets verify EIP-1654 - const verifySignBy1654 = new DappAuth(provider); - const isAuthorizedSigner = await verifySignBy1654.isAuthorizedSigner(signMsg, signature, address); + const verifySignBy1654 = new DappAuth(provider) + const isAuthorizedSigner = await verifySignBy1654.isAuthorizedSigner( + signMsg, + signature, + address + ) if (!verifySign && !isAuthorizedSigner) { - console.error("Signature failed. Recovered address doesn' match signing address."); + console.error( + "Signature failed. Recovered address doesn' match signing address." + ) + verifySign = recoveredAddress === addr } console.log({ signMsg, signature, recoveredAddress, addr }) @@ -664,31 +659,31 @@ }}>Send Success Notification - - + on:click={() => + onboard.state.actions.customNotification({ + message: + 'This is a custom DApp success notification to use however you want', + autoDismiss: 0, + type: 'pending' + })}>Send Pending Notification + +
Update appMetadata
diff --git a/packages/ledger/README.md b/packages/ledger/README.md index f2fb30e30..66d9f8ea8 100644 --- a/packages/ledger/README.md +++ b/packages/ledger/README.md @@ -9,12 +9,44 @@ ### Options ```typescript -interface LedgerOptions { +type LedgerOptionsWCv1 = { + /** + * @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 + */ + walletConnectVersion?: 1 + enableDebugLogs?: boolean chainId?: number bridge?: string infuraId?: string rpc?: { [chainId: number]: string } } + +type LedgerOptionsWCv2 = { + walletConnectVersion: 2 + enableDebugLogs?: boolean + /** + * Project ID associated with [WalletConnect account](https://cloud.walletconnect.com) + */ + projectId: string + /** + * 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 + */ + requiredChains?: string[] | number[] + requiredMethods?: string[] + /** + * 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 + */ + optionalMethods?: string[] + requiredEvents?: string[] + optionalEvents?: string[] +} + +type LedgerOptions = LedgerOptionsWCv1 | LedgerOptionsWCv2 ``` ### Usage @@ -23,7 +55,16 @@ interface LedgerOptions { import Onboard from '@web3-onboard/core' import ledgerModule from '@web3-onboard/ledger' -const ledger = ledgerModule() +const ledger = ledgerModule({ + /** + * Project ID associated with [WalletConnect account](https://cloud.walletconnect.com) + */ + projectId: 'abc123...', + /** + * Chains required to be supported by all wallets connecting to your DApp + */ + requiredChains: [1, 137] +}) const onboard = Onboard({ // ... other Onboard options @@ -45,7 +86,16 @@ You may decide that on certain platforms you do not want to display this wallet import Onboard from '@web3-onboard/core' import ledgerModule from '@web3-onboard/ledger' -const ledger = ledgerModule() +const ledger = ledgerModule({ + /** + * Project ID associated with [WalletConnect account](https://cloud.walletconnect.com) + */ + projectId: 'abc123...', + /** + * Chains required to be supported by all wallets connecting to your DApp + */ + requiredChains: [1, 137] +}) const onboard = Onboard({ // ... other Onboard options diff --git a/packages/ledger/package.json b/packages/ledger/package.json index 264c26ae8..3fec1b88e 100644 --- a/packages/ledger/package.json +++ b/packages/ledger/package.json @@ -1,7 +1,7 @@ { "name": "@web3-onboard/ledger", - "version": "2.4.6", - "description": "Ledger hardare 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.", + "version": "2.5.0", + "description": "Ledger hardware wallet module for connecting to Web3-Onboard. 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", "Web3", @@ -55,12 +55,14 @@ }, "license": "MIT", "devDependencies": { + "@walletconnect/types": "^2.7.0", "typescript": "^4.5.5" }, "dependencies": { - "@ethersproject/providers": "^5.5.0", - "@ledgerhq/connect-kit-loader": "^1.0.2", - "@walletconnect/client": "^1.7.1", + "@ledgerhq/connect-kit-loader": "^1.1.0", + "@walletconnect/client": "^1.8.0", + "@walletconnect/ethereum-provider": "2.8.4", + "@walletconnect/modal":"2.5.4", "@web3-onboard/common": "^2.3.3", "rxjs": "^7.5.2" } diff --git a/packages/ledger/src/index.ts b/packages/ledger/src/index.ts index e39f951ba..d95136363 100644 --- a/packages/ledger/src/index.ts +++ b/packages/ledger/src/index.ts @@ -1,279 +1,59 @@ -import { - Chain, - WalletInit, - GetInterfaceHelpers, - EIP1193Provider, - ProviderAccounts -} from '@web3-onboard/common' -import type { EthereumProvider } from '@ledgerhq/connect-kit-loader' -import type { StaticJsonRpcProvider as StaticJsonRpcProviderType } from '@ethersproject/providers' -import WalletConnect from '@walletconnect/client' - -const isHexString = (value: string | number) => { - if (typeof value !== 'string' || !value.match(/^0x[0-9A-Fa-f]*$/)) { - return false - } - - return true -} - -interface LedgerOptions { +import type { WalletInit } from '@web3-onboard/common' +import v1 from './v1' +import v2 from './v2' + +export type LedgerOptionsWCv1 = { + /** + * @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 + */ + walletConnectVersion?: 1 + enableDebugLogs?: boolean chainId?: number bridge?: string infuraId?: string rpc?: { [chainId: number]: string } } -function ledger(options?: LedgerOptions): WalletInit { - return () => { - return { - label: 'Ledger', - getIcon: async () => (await import('./icon.js')).default, - getInterface: async ({ chains, EventEmitter }: GetInterfaceHelpers) => { - const { - loadConnectKit, - SupportedProviders, - SupportedProviderImplementations - } = await import('@ledgerhq/connect-kit-loader') - - const connectKit = await loadConnectKit() - connectKit.enableDebugLogs() - const checkSupportResult = connectKit.checkSupport({ - providerType: SupportedProviders.Ethereum, - chainId: options?.chainId, - infuraId: options?.infuraId, - rpc: options?.rpc - }) - - // get the Ledger provider instance, it can be either Ledger Connect - // or WalletConnect - const instance = (await connectKit.getProvider()) as EthereumProvider - - // return the Ledger Connect provider - if ( - checkSupportResult.providerImplementation === - SupportedProviderImplementations.LedgerConnect - ) { - return { - provider: instance as EIP1193Provider - } - } - - // fallback to WalletConnect on unsupported platforms - const { StaticJsonRpcProvider } = await import( - '@ethersproject/providers' - ) - const { ProviderRpcError, ProviderRpcErrorCode } = await import( - '@web3-onboard/common' - ) - const { default: WalletConnect } = await import('@walletconnect/client') - const { Subject, fromEvent } = await import('rxjs') - const { takeUntil, take } = await import('rxjs/operators') - const connector = instance.connector as WalletConnect - const emitter = new EventEmitter() - - class EthProvider { - public request: EIP1193Provider['request'] - public connector: InstanceType - public chains: Chain[] - public disconnect: EIP1193Provider['disconnect'] - public emit: typeof EventEmitter['emit'] - public on: typeof EventEmitter['on'] - public removeListener: typeof EventEmitter['removeListener'] - - private disconnected$: InstanceType - private providers: Record - - constructor({ - connector, - chains - }: { - connector: InstanceType - chains: Chain[] - }) { - this.emit = emitter.emit.bind(emitter) - this.on = emitter.on.bind(emitter) - this.removeListener = emitter.removeListener.bind(emitter) - this.connector = connector - this.chains = chains - this.disconnected$ = new Subject() - this.providers = {} - - // listen for session updates - fromEvent(this.connector, 'session_update', (error, payload) => { - if (error) { - throw error - } - - return payload - }) - .pipe(takeUntil(this.disconnected$)) - .subscribe({ - next: ({ params }) => { - const [{ accounts, chainId }] = params - this.emit('accountsChanged', accounts) - const hexChainId = isHexString(chainId) - ? chainId - : `0x${chainId.toString(16)}` - this.emit('chainChanged', hexChainId) - }, - error: console.warn - }) - - // listen for disconnect event - fromEvent(this.connector, 'disconnect', (error, payload) => { - if (error) { - throw error - } - - return payload - }) - .pipe(takeUntil(this.disconnected$)) - .subscribe({ - next: () => { - this.emit('accountsChanged', []) - this.disconnected$.next(true) - typeof localStorage !== 'undefined' && - localStorage.removeItem('walletconnect') - }, - error: console.warn - }) - - this.disconnect = () => this.connector.killSession() - - this.request = async ({ method, params }) => { - if (method === 'eth_chainId') { - return isHexString(this.connector.chainId) - ? this.connector.chainId - : `0x${this.connector.chainId.toString(16)}` - } - - if (method === 'eth_requestAccounts') { - return new Promise((resolve, reject) => { - // Check if connection is already established - if (!this.connector.connected) { - resolve((instance as any).request({ method })) - } else { - const { accounts, chainId } = this.connector.session - - const hexChainId = isHexString(chainId) - ? chainId - : `0x${chainId.toString(16)}` - - this.emit('chainChanged', hexChainId) - return resolve(accounts) - } - - // Subscribe to connection events - fromEvent(this.connector, 'connect', (error, payload) => { - if (error) { - throw error - } - - return payload - }) - .pipe(take(1)) - .subscribe({ - next: ({ params }) => { - const [{ accounts, chainId }] = params - this.emit('accountsChanged', accounts) - - const hexChainId = isHexString(chainId) - ? chainId - : `0x${chainId.toString(16)}` - this.emit('chainChanged', hexChainId) - resolve(accounts) - }, - error: reject - }) - }) - } - - if (method === 'eth_selectAccounts') { - throw new ProviderRpcError({ - code: ProviderRpcErrorCode.UNSUPPORTED_METHOD, - message: `The Provider does not support the requested method: ${method}` - }) - } - - if (method == 'wallet_switchEthereumChain') { - throw new ProviderRpcError({ - code: ProviderRpcErrorCode.UNSUPPORTED_METHOD, - message: `The Provider does not support the requested method: ${method}` - }) - } - - // @ts-ignore - if (method === 'eth_sendTransaction') { - // @ts-ignore - return this.connector.sendTransaction(params[0]) - } - - // @ts-ignore - if (method === 'eth_signTransaction') { - // @ts-ignore - return this.connector.signTransaction(params[0]) - } - - // @ts-ignore - if (method === 'personal_sign') { - // @ts-ignore - return this.connector.signPersonalMessage(params) - } - - // @ts-ignore - if (method === 'eth_sign') { - // @ts-ignore - return this.connector.signMessage(params) - } - - // @ts-ignore - if (method.includes('eth_signTypedData')) { - // @ts-ignore - return this.connector.signTypedData(params) - } - - if (method === 'eth_accounts') { - return this.connector.sendCustomRequest({ - id: 1337, - jsonrpc: '2.0', - method, - params - }) - } - - const chainId = await this.request({ method: 'eth_chainId' }) - - if (!this.providers[chainId]) { - const currentChain = chains.find(({ id }) => id === chainId) +export type LedgerOptionsWCv2 = { + walletConnectVersion: 2 + enableDebugLogs?: boolean + /** + * Project ID associated with [WalletConnect account](https://cloud.walletconnect.com) + */ + projectId: string + /** + * 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 + */ + requiredChains?: string[] | number[] + requiredMethods?: string[] + /** + * 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 + */ + optionalMethods?: string[] + requiredEvents?: string[] + optionalEvents?: string[] +} - if (!currentChain) { - throw new ProviderRpcError({ - code: ProviderRpcErrorCode.CHAIN_NOT_ADDED, - message: `The Provider does not have a rpcUrl to make a request for the requested method: ${method}` - }) - } +export type LedgerOptions = LedgerOptionsWCv1 | LedgerOptionsWCv2 - this.providers[chainId] = new StaticJsonRpcProvider( - currentChain.rpcUrl - ) - } +export const isHexString = (value: string | number) => { + if (typeof value !== 'string' || !value.match(/^0x[0-9A-Fa-f]*$/)) { + return false + } - return this.providers[chainId].send( - method, - // @ts-ignore - params - ) - } - } - } + return true +} - return { - provider: new EthProvider({ chains, connector }) - } - } - } - } +function ledger(options?: LedgerOptions): WalletInit { + const walletConnectVersion = options?.walletConnectVersion || 2 + return walletConnectVersion === 1 + ? v1(options as LedgerOptionsWCv1) + : v2(options as LedgerOptionsWCv2) } export default ledger diff --git a/packages/ledger/src/v1.ts b/packages/ledger/src/v1.ts new file mode 100644 index 000000000..5245749db --- /dev/null +++ b/packages/ledger/src/v1.ts @@ -0,0 +1,305 @@ +import { + Chain, + WalletInit, + GetInterfaceHelpers, + EIP1193Provider, + ProviderAccounts, + ChainId, + AccountAddress +} from '@web3-onboard/common' +import type { EthereumProvider } from '@ledgerhq/connect-kit-loader' +import type { StaticJsonRpcProvider as StaticJsonRpcProviderType } from '@ethersproject/providers' +import WalletConnect from '@walletconnect/client' +import { isHexString, LedgerOptionsWCv1 } from './index.js' + +function ledger(options: LedgerOptionsWCv1 = { walletConnectVersion: 1 }): WalletInit { + return () => { + return { + label: 'Ledger', + getIcon: async () => (await import('./icon.js')).default, + getInterface: async ({ chains, EventEmitter }: GetInterfaceHelpers) => { + const { + loadConnectKit, + SupportedProviders, + SupportedProviderImplementations + } = await import('@ledgerhq/connect-kit-loader') + + const connectKit = await loadConnectKit() + if (options.enableDebugLogs) { + connectKit.enableDebugLogs() + } + const checkSupportResult = connectKit.checkSupport({ + providerType: SupportedProviders.Ethereum, + chainId: options?.chainId, + infuraId: options?.infuraId, + rpc: options?.rpc + }) + + // get the Ledger provider instance, it can be either Ledger Connect + // or WalletConnect + const instance = (await connectKit.getProvider()) as EthereumProvider + + // return the Ledger Extension provider + if ( + checkSupportResult.providerImplementation === + SupportedProviderImplementations.LedgerConnect + ) { + return { + provider: instance + } + } + + // fallback to WalletConnect on unsupported platforms + const { StaticJsonRpcProvider } = await import( + '@ethersproject/providers' + ) + const { ProviderRpcError, ProviderRpcErrorCode } = await import( + '@web3-onboard/common' + ) + const { default: WalletConnect } = await import('@walletconnect/client') + const { Subject, fromEvent } = await import('rxjs') + const { takeUntil, take } = await import('rxjs/operators') + const connector = instance.connector as WalletConnect + const emitter = new EventEmitter() + + class EthProvider { + public request: EIP1193Provider['request'] + public connector: InstanceType + public chains: Chain[] + public disconnect: EIP1193Provider['disconnect'] + public emit: typeof EventEmitter['emit'] + public on: typeof EventEmitter['on'] + public removeListener: typeof EventEmitter['removeListener'] + + private disconnected$: InstanceType + private providers: Record + + constructor({ + connector, + chains + }: { + connector: InstanceType + chains: Chain[] + }) { + this.emit = emitter.emit.bind(emitter) + this.on = emitter.on.bind(emitter) + this.removeListener = emitter.removeListener.bind(emitter) + + this.connector = connector + this.chains = chains + this.disconnected$ = new Subject() + this.providers = {} + let activeChain: ChainId + + // listen for session updates + fromEvent(this.connector, 'session_update', (error, payload) => { + if (error) { + throw error + } + return payload + }) + .pipe(takeUntil(this.disconnected$)) + .subscribe({ + next: ({ params }) => { + const [{ accounts, chainId }] = params + const lowerCaseAccounts = accounts.map( + (accountAddress: AccountAddress) => + accountAddress.toLowerCase() + ) + this.emit('accountsChanged', lowerCaseAccounts) + const hexChainId = isHexString(chainId) + ? chainId + : `0x${chainId.toString(16)}` + if (!activeChain || activeChain !== hexChainId) { + this.emit('chainChanged', hexChainId) + activeChain = hexChainId + } + }, + error: console.warn + }) + + // listen for disconnect event + fromEvent(this.connector, 'disconnect', (error, payload) => { + if (error) { + throw error + } + + return payload + }) + .pipe(takeUntil(this.disconnected$)) + .subscribe({ + next: () => { + this.emit('accountsChanged', []) + this.disconnected$.next(true) + typeof localStorage !== 'undefined' && + localStorage.removeItem('walletconnect') + }, + error: console.warn + }) + + this.disconnect = () => this.connector.killSession() + + this.request = async ({ method, params }) => { + if (method === 'eth_chainId') { + return isHexString(this.connector.chainId) + ? this.connector.chainId + : `0x${this.connector.chainId.toString(16)}` + } + + if (method === 'eth_requestAccounts') { + return new Promise((resolve, reject) => { + // Subscribe to connection events + fromEvent(this.connector, 'connect', (error, payload) => { + if (error) { + throw error + } + + return payload + }) + .pipe(take(1)) + .subscribe({ + next: ({ params }) => { + const [{ accounts, chainId }] = params + const lowerCaseAccounts = accounts.map( + (accountAddress: AccountAddress) => + accountAddress.toLowerCase() + ) + this.emit('accountsChanged', lowerCaseAccounts) + const hexChainId = isHexString(chainId) + ? chainId + : `0x${chainId.toString(16)}` + if (!activeChain) activeChain = hexChainId + this.emit('chainChanged', hexChainId) + resolve(lowerCaseAccounts) + }, + error: reject + }) + + // Check if connection is already established + if (!this.connector.connected) { + resolve(instance.request({ method, params })) + } else { + const { accounts, chainId } = this.connector.session + const hexChainId = isHexString(chainId) + ? chainId + : `0x${chainId.toString(16)}` + + this.emit('chainChanged', hexChainId) + if (!activeChain) activeChain = hexChainId as ChainId + const lowerCaseAccounts = accounts.map( + (accountAddress: AccountAddress) => + accountAddress.toLowerCase() + ) + return resolve(lowerCaseAccounts) + } + }) + } + + if (method === 'eth_selectAccounts') { + throw new ProviderRpcError({ + code: ProviderRpcErrorCode.UNSUPPORTED_METHOD, + message: `The Provider does not support the requested method: ${method}` + }) + } + + if (method == 'wallet_switchEthereumChain') { + if (!params) { + throw new ProviderRpcError({ + code: ProviderRpcErrorCode.INVALID_PARAMS, + message: `The Provider requires a chainId to be passed in as an argument` + }) + } + const chainIdObj = params[0] as { chainId?: number } + if ( + !chainIdObj.hasOwnProperty('chainId') || + typeof chainIdObj['chainId'] === 'undefined' + ) { + throw new ProviderRpcError({ + code: ProviderRpcErrorCode.INVALID_PARAMS, + message: `The Provider requires a chainId to be passed in as an argument` + }) + } + return this.connector.sendCustomRequest({ + method: 'wallet_switchEthereumChain', + params: [ + { + chainId: chainIdObj.chainId + } + ] + }) + } + + // @ts-ignore + if (method === 'eth_sendTransaction') { + // @ts-ignore + return this.connector.sendTransaction(params[0]) + } + + // @ts-ignore + if (method === 'eth_signTransaction') { + // @ts-ignore + return this.connector.signTransaction(params[0]) + } + + // @ts-ignore + if (method === 'personal_sign') { + // @ts-ignore + return this.connector.signPersonalMessage(params) + } + + // @ts-ignore + if (method === 'eth_sign') { + // @ts-ignore + return this.connector.signMessage(params) + } + + // @ts-ignore + if (method.includes('eth_signTypedData')) { + // @ts-ignore + return this.connector.signTypedData(params) + } + + if (method === 'eth_accounts') { + return this.connector.sendCustomRequest({ + id: 1337, + jsonrpc: '2.0', + method, + params + }) + } + + const chainId = await this.request({ method: 'eth_chainId' }) + + if (!this.providers[chainId]) { + const currentChain = chains.find(({ id }) => id === chainId) + + if (!currentChain) { + throw new ProviderRpcError({ + code: ProviderRpcErrorCode.CHAIN_NOT_ADDED, + message: `The Provider does not have a rpcUrl to make a request for the requested method: ${method}` + }) + } + + this.providers[chainId] = new StaticJsonRpcProvider( + currentChain.rpcUrl + ) + } + + return this.providers[chainId].send( + method, + // @ts-ignore + params + ) + } + } + } + + return { + provider: new EthProvider({ chains, connector }) + } + } + } + } +} + +export default ledger diff --git a/packages/ledger/src/v2.ts b/packages/ledger/src/v2.ts new file mode 100644 index 000000000..ebfd2748c --- /dev/null +++ b/packages/ledger/src/v2.ts @@ -0,0 +1,292 @@ +import { + Chain, + WalletInit, + EIP1193Provider, + ProviderAccounts, + createEIP1193Provider +} from '@web3-onboard/common' +import type { + EthereumProvider as LedgerEthereumProvider +} from '@ledgerhq/connect-kit-loader' +import { isHexString, LedgerOptionsWCv2 } from './index.js' +import type { JQueryStyleEventEmitter } from 'rxjs/internal/observable/fromEvent' + +// methods that require user interaction +const defaultOptionalMethods = [ + 'eth_sendTransaction', + 'eth_signTransaction', + 'personal_sign', + 'eth_sign', + 'eth_signTypedData', + 'eth_signTypedData_v4' +] + +function ledger(options?: LedgerOptionsWCv2): WalletInit { + if (!options?.projectId) { + throw new Error( + 'WalletConnect requires a projectId. Please visit https://cloud.walletconnect.com to get one.' + ) + } + + return () => { + return { + label: 'Ledger', + getIcon: async () => (await import('./icon.js')).default, + getInterface: async ({ chains, EventEmitter }) => { + const { + loadConnectKit, + SupportedProviders, + SupportedProviderImplementations + } = await import('@ledgerhq/connect-kit-loader') + + const connectKit = await loadConnectKit() + if (options?.enableDebugLogs) { + connectKit.enableDebugLogs() + } + + // accept both hex and decimal chain ids + const requiredChains = options?.requiredChains?.map((id) => ( + (typeof id === 'string' && isHexString(id)) + ? parseInt(id, 16) + : id as number + )) + + const optionalMethods = + options.optionalMethods && Array.isArray(options.optionalMethods) + ? [...options.optionalMethods, ...defaultOptionalMethods] + : defaultOptionalMethods + + + const checkSupportResult = connectKit.checkSupport({ + providerType: SupportedProviders.Ethereum, + walletConnectVersion: 2, + projectId: options?.projectId, + chains: requiredChains, + optionalChains: chains.map(({ id }) => parseInt(id, 16)), + methods: options?.requiredMethods, + optionalMethods, + events: options?.requiredEvents, + optionalEvents: options?.optionalEvents, + rpcMap: chains + .map(({ id, rpcUrl }) => ({ id, rpcUrl })) + .reduce((rpcMap: Record, { id, rpcUrl }) => { + rpcMap[parseInt(id, 16)] = rpcUrl || '' + return rpcMap + }, {}), + }) + + // get the provider instance, it can be either the Ledger Extension + // or WalletConnect + const instance = (await connectKit.getProvider()) as LedgerEthereumProvider + + // return the Ledger Extension provider + if ( + checkSupportResult.providerImplementation === + SupportedProviderImplementations.LedgerConnect + ) { + return { + provider: instance + } + } + + const { ProviderRpcError, ProviderRpcErrorCode } = await import( + '@web3-onboard/common' + ) + const { default: EthereumProvider } = await import( + '@walletconnect/ethereum-provider' + ) + const { Subject, fromEvent } = await import('rxjs') + const { takeUntil, take } = await import('rxjs/operators') + + const connector = instance as unknown as InstanceType + const emitter = new EventEmitter() + + class EthProvider { + public request: EIP1193Provider['request'] + public connector: InstanceType + public chains: Chain[] + public disconnect: EIP1193Provider['disconnect'] + public emit: typeof EventEmitter['emit'] + public on: typeof EventEmitter['on'] + public removeListener: typeof EventEmitter['removeListener'] + + private disconnected$: InstanceType + + constructor({ + connector, + chains + }: { + connector: InstanceType + chains: Chain[] + }) { + this.emit = emitter.emit.bind(emitter) + this.on = emitter.on.bind(emitter) + this.removeListener = emitter.removeListener.bind(emitter) + + this.connector = connector + this.chains = chains + this.disconnected$ = new Subject() + + // listen for accountsChanged + fromEvent(this.connector, 'accountsChanged', payload => payload) + .pipe(takeUntil(this.disconnected$)) + .subscribe({ + next: accounts => { + this.emit('accountsChanged', accounts) + }, + error: console.warn + }) + + // listen for chainChanged + fromEvent( + this.connector as JQueryStyleEventEmitter, + 'chainChanged', + (payload: number) => payload + ) + .pipe(takeUntil(this.disconnected$)) + .subscribe({ + next: chainId => { + const hexChainId = isHexString(chainId) + ? chainId + : `0x${chainId.toString(16)}` + this.emit('chainChanged', hexChainId) + }, + error: console.warn + }) + + // listen for disconnect event + fromEvent( + this.connector as JQueryStyleEventEmitter, + 'session_delete', + (payload: string) => payload + ) + .pipe(takeUntil(this.disconnected$)) + .subscribe({ + next: () => { + this.emit('accountsChanged', []) + this.disconnected$.next(true) + typeof localStorage !== 'undefined' && + localStorage.removeItem('walletconnect') + }, + error: console.warn + }) + + this.disconnect = () => { + if (this.connector.session) this.connector.disconnect() + } + + const checkForSession = () => { + const session = this.connector.session + if (session) { + this.emit('accountsChanged', this.connector.accounts) + this.emit('chainChanged', this.connector.chainId) + } + } + checkForSession() + + this.request = async ({ method, params }) => { + if (method === 'eth_chainId') { + return isHexString(this.connector.chainId) + ? this.connector.chainId + : `0x${this.connector.chainId.toString(16)}` + } + + if (method === 'eth_requestAccounts') { + return new Promise( + async (resolve, reject) => { + // Subscribe to connection events + fromEvent( + this.connector as JQueryStyleEventEmitter< + any, + { chainId: number } + >, + 'connect', + (payload: { chainId: number | string }) => payload + ) + .pipe(take(1)) + .subscribe({ + next: ({ chainId }) => { + this.emit('accountsChanged', this.connector.accounts) + const hexChainId = isHexString(chainId) + ? chainId + : `0x${chainId.toString(16)}` + this.emit('chainChanged', hexChainId) + resolve(this.connector.accounts) + }, + error: reject + }) + + // Check if connection is already established + if (!this.connector.session) { + await instance.request({ method }).catch((err: Error) => { + console.error('err creating new session: ', err) + reject( + new ProviderRpcError({ + code: 4001, + message: 'User rejected the request.' + }) + ) + }) + } else { + // update ethereum provider to load accounts & chainId + const accounts = this.connector.accounts + const chainId = this.connector.chainId + const hexChainId = `0x${chainId.toString(16)}` + this.emit('chainChanged', hexChainId) + return resolve(accounts) + } + } + ) + } + + if (method === 'eth_selectAccounts') { + throw new ProviderRpcError({ + code: ProviderRpcErrorCode.UNSUPPORTED_METHOD, + message: `The Provider does not support the requested method: ${method}` + }) + } + + if (method == 'wallet_switchEthereumChain') { + if (!params) { + throw new ProviderRpcError({ + code: ProviderRpcErrorCode.INVALID_PARAMS, + message: `The Provider requires a chainId to be passed in as an argument` + }) + } + const chainIdObj = params[0] as { chainId?: number } + if ( + !chainIdObj.hasOwnProperty('chainId') || + typeof chainIdObj['chainId'] === 'undefined' + ) { + throw new ProviderRpcError({ + code: ProviderRpcErrorCode.INVALID_PARAMS, + message: `The Provider requires a chainId to be passed in as an argument` + }) + } + return this.connector.request({ + method: 'wallet_switchEthereumChain', + params: [ + { + chainId: chainIdObj.chainId + } + ] + }) + } + + return this.connector.request>({ + method, + params + }) + } + } + } + + return { + provider: new EthProvider({ chains, connector }) + } + } + } + } +} + +export default ledger diff --git a/packages/react/package.json b/packages/react/package.json index bd92f512e..80ff87459 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", "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", "use-sync-external-store": "1.0.0" }, "peerDependencies": { diff --git a/packages/taho/package.json b/packages/taho/package.json index 79192c817..9e6acd9d9 100644 --- a/packages/taho/package.json +++ b/packages/taho/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/taho", - "version": "2.0.4", + "version": "2.0.5", "description": "Taho 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.", "keywords": [ "Ethereum", diff --git a/packages/taho/src/icon.ts b/packages/taho/src/icon.ts index c9f2358e7..e5de7d7a8 100644 --- a/packages/taho/src/icon.ts +++ b/packages/taho/src/icon.ts @@ -1,5 +1,5 @@ export default ` - + diff --git a/packages/tallyho/package.json b/packages/tallyho/package.json index 3967e5d40..fe0220e53 100644 --- a/packages/tallyho/package.json +++ b/packages/tallyho/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/tallyho", - "version": "2.0.6", + "version": "2.0.7", "description": "(DEPRECATED. Use @web3-onboard/taho instead) Tally Ho (now named Taho Wallet) 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.", "keywords": [ "Ethereum", diff --git a/packages/tallyho/src/icon.ts b/packages/tallyho/src/icon.ts index c9f2358e7..e5de7d7a8 100644 --- a/packages/tallyho/src/icon.ts +++ b/packages/tallyho/src/icon.ts @@ -1,5 +1,5 @@ export default ` - + diff --git a/packages/uauth/README.md b/packages/uauth/README.md index f18fc0427..da6662a8d 100644 --- a/packages/uauth/README.md +++ b/packages/uauth/README.md @@ -12,20 +12,54 @@ ## Options -Follow the [Login Client Congifuration Docs](https://docs.unstoppabledomains.com/login-with-unstoppable/login-integration-guides/login-client-configuration/) on the Unstoppable Domains website to get setup with your clientID and redirectUri. +Follow the [Login Client Congifuration Docs](https://docs.unstoppabledomains.com/login-with-unstoppable/login-integration-guides/login-client-configuration/) on the Unstoppable Domains website to get setup with your clientID and redirectUri. **Note:** The Redirection URI value(s) in the client configuration MUST exactly match the redirect_uri parameter value used in `UauthInitOptions`. More specifics can be found in the [Rules for Redirect URIs Docs](https://docs.unstoppabledomains.com/login-with-unstoppable/login-integration-guides/login-client-configuration/#rules-for-redirect-uris). ```typescript type UauthInitOptions = { - clientID: string // required and will throw an error if not included: links dapp to Unstoppable Domains for customization - redirectUri: string // required and will throw an error if not included: used for pop-up and callback redirection - scope?: string // default = 'openid wallet' - shouldLoginWithRedirect?: boolean // if true, redirects to your callback page - 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 + /** + * Required and will throw an error if not included: links dapp to Unstoppable Domains for customization + */ + clientID: string + /** + * Required and will throw an error if not included: used for pop-up and callback redirection + */ + redirectUri: string + /** + * Optional string: Default = 'openid wallet' + */ + scope?: string + /** + * Optional boolean: If true, redirects to your callback page + */ + shouldLoginWithRedirect?: boolean + /** + * Project ID associated with [WalletConnect account](https://cloud.walletconnect.com) + */ + walletConnectProjectId: string + /** + * Defaults to version: 2 + */ + version?: 2 + /** + * List of Required Chain(s) ID for wallets to support in number format (integer or hex) + * Defaults to [1] - Ethereum + */ + 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 + /** + * 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 + /** + * Optional function to handle WalletConnect URI when it becomes available + */ + handleUri?: (uri: string) => Promise } ``` @@ -37,21 +71,18 @@ import uauthModule from '@web3-onboard/uauth' // initialize the module with options const uauth = uauthModule({ - clientID: 'YOUR_CLIENT_ID', - redirectUri: 'YOUR_REDIRECT_URI', - scope?: 'YOUR_SCOPES', - shouldLoginWithRedirect?: false - bridge?: 'YOUR_CUSTOM_BRIDGE_SERVER', - qrcodeModalOptions?: { - mobileLinks: ['rainbow', 'metamask', 'argent', 'trust', 'imtoken', 'pillar'] - }, - connectFirstChainId?: true + clientID: 'a25c3a65-a1f2-46cc-a515-a46fe7acb78c', + walletConnectProjectId: 'f6bd6e2911b56f5ac3bc8b2d0e2d7ad5', + redirectUri: 'http://localhost:8080/', + scope: + 'openid wallet email:optional humanity_check:optional profile:optional social:optional' }) // can also initialize with basic options... // const uauth = uauthModule({ // clientID: "YOUR_CLIENT_ID", -// redirectUri: "YOUR_REDIRECT_URI" +// redirectUri: "YOUR_REDIRECT_URI", +// walletConnectProjectId: 'f6bd6e2911b56f5ac3bc8b2d0e2d7ad5', // }) const onboard = Onboard({ @@ -69,7 +100,7 @@ console.log(connectedWallets) ### Accessing the UAuth configuration When Unstoppable Domains is connected the UAuth user instance is exposed. -This can be used to get information related to the user scopes requested through the `UauthInitOptions`. +This can be used to get information related to the user scopes requested through the `UauthInitOptions`. ```typescript const wallets$ = onboard.state.select('wallets').pipe(share()) diff --git a/packages/uauth/package.json b/packages/uauth/package.json index fa11a6cd2..71b236008 100644 --- a/packages/uauth/package.json +++ b/packages/uauth/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/uauth", - "version": "2.0.5", + "version": "2.1.0", "description": "Unstoppable Domains 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", @@ -58,13 +58,16 @@ }, "license": "MIT", "devDependencies": { - "typescript": "^4.5.5" + "typescript": "^4.5.5", + "@walletconnect/types": "^2.7.0" }, "dependencies": { "@uauth/js": "^2.4.0", "@ethersproject/providers": "^5.5.0", - "@walletconnect/client": "^1.7.1", - "@walletconnect/qrcode-modal": "^1.7.1", + "@walletconnect/client": "^1.8.0", + "@walletconnect/ethereum-provider": "2.8.4", + "@walletconnect/modal": "2.5.5", + "@walletconnect/qrcode-modal": "^1.8.0", "@web3-onboard/common": "^2.3.3", "joi": "17.9.1", "rxjs": "^7.5.2" diff --git a/packages/uauth/src/index.ts b/packages/uauth/src/index.ts index 51eb0b30f..3ddc8b2b9 100644 --- a/packages/uauth/src/index.ts +++ b/packages/uauth/src/index.ts @@ -1,15 +1,17 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */ -import type { StaticJsonRpcProvider as StaticJsonRpcProviderType } from '@ethersproject/providers' import type { UserInfo } from '@uauth/js' import type { UauthInitOptions } from './types.js' -import { validateUauthInitOptions } from './validation.js' -import { - WalletInit, - createEIP1193Provider, - EIP1193Provider, +import type { CoreTypes } from '@walletconnect/types' +import type { EthereumProvider } from '@walletconnect/ethereum-provider' +import type { JQueryStyleEventEmitter } from 'rxjs/internal/observable/fromEvent' +import type { Chain, - ProviderAccounts + ProviderAccounts, + WalletInit, + EIP1193Provider } from '@web3-onboard/common' +import { validateUauthInitOptions } from './validation.js' +import { createEIP1193Provider } from '@web3-onboard/common' const isHexString = (value: string | number) => { if (typeof value !== 'string' || !value.match(/^0x[0-9A-Fa-f]*$/)) { @@ -34,15 +36,17 @@ function uauth(options: UauthInitOptions): WalletInit { redirectUri, scope = 'openid wallet', shouldLoginWithRedirect, - bridge = 'https://bridge.walletconnect.org', - qrcodeModalOptions, - connectFirstChainId + walletConnectProjectId, + requiredChains, + optionalChains, + additionalOptionalMethods, + handleUri } = options || {} return { label: 'Unstoppable', getIcon: async () => (await import('./icon.js')).default, - getInterface: async ({ chains, EventEmitter }) => { + getInterface: async ({ chains, EventEmitter, appMetadata }) => { const UAuth = await import('@uauth/js') const uauthInstance = new UAuth.default({ clientID: clientID, @@ -93,39 +97,97 @@ function uauth(options: UauthInitOptions): WalletInit { ((window as any).web3 && (window as any).web3.currentProvider) provider = createEIP1193Provider(provider) } else if (user.wallet_type_hint === 'walletconnect') { - const { StaticJsonRpcProvider } = await import( - '@ethersproject/providers' - ) - + // methods that require user interaction + const methods = [ + 'eth_sendTransaction', + 'eth_signTransaction', + 'personal_sign', + 'eth_sign', + 'eth_signTypedData', + 'eth_signTypedData_v4' + ] const { ProviderRpcError, ProviderRpcErrorCode } = await import( '@web3-onboard/common' ) - const { default: WalletConnect } = await import( - '@walletconnect/client' + const { default: EthereumProvider } = await import( + '@walletconnect/ethereum-provider' ) - // This is a cjs module and therefor depending on build tooling - // sometimes it will be nested in the { default } object and - // other times it will be the actual import - let QRCodeModal = (await import('@walletconnect/qrcode-modal')) - .default - - // @ts-ignore - TS thinks that there is no default property on the `QRCodeModal` but sometimes there is - QRCodeModal = QRCodeModal.default || QRCodeModal - const { Subject, fromEvent } = await import('rxjs') const { takeUntil, take } = await import('rxjs/operators') - const connector = new WalletConnect({ - bridge + const getMetaData = (): CoreTypes.Metadata | undefined => { + if (!appMetadata) return undefined + const wcMetaData: CoreTypes.Metadata = { + name: appMetadata.name, + description: appMetadata.description || '', + url: appMetadata.explore || appMetadata.gettingStartedGuide || '', + icons: [] + } + + if (appMetadata.icon !== undefined && appMetadata.icon.length) { + wcMetaData.icons = [appMetadata.icon] + } + if (appMetadata.logo !== undefined && appMetadata.logo.length) { + wcMetaData.icons = wcMetaData.icons.length + ? [...wcMetaData.icons, appMetadata.logo] + : [appMetadata.logo] + } + + return wcMetaData + } + + // default to mainnet + const requiredChainsParsed: number[] = + Array.isArray(requiredChains) && + requiredChains.length && + requiredChains.every(num => !isNaN(num)) + ? // @ts-ignore + // Required as WC package does not support hex numbers + 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: walletConnectProjectId, + chains: requiredChainsParsed, // default to mainnet + optionalChains: optionalChainsParsed, + optionalMethods, + showQrModal: true, + rpcMap: chains + .map(({ id, rpcUrl }) => ({ id, rpcUrl })) + .reduce((rpcMap: Record, { id, rpcUrl }) => { + rpcMap[parseInt(id, 16)] = rpcUrl || '' + return rpcMap + }, {}), + metadata: getMetaData() }) const emitter = new EventEmitter() - class EthProvider { public request: EIP1193Provider['request'] - public connector: InstanceType + public connector: InstanceType public chains: Chain[] public disconnect: EIP1193Provider['disconnect'] // @ts-ignore @@ -136,13 +198,12 @@ function uauth(options: UauthInitOptions): WalletInit { public removeListener: typeof EventEmitter['removeListener'] private disconnected$: InstanceType - private providers: Record constructor({ connector, chains }: { - connector: InstanceType + connector: InstanceType chains: Chain[] }) { this.emit = emitter.emit.bind(emitter) @@ -152,21 +213,29 @@ function uauth(options: UauthInitOptions): WalletInit { this.connector = connector this.chains = chains this.disconnected$ = new Subject() - this.providers = {} - // @ts-ignore listen for session updates - fromEvent(this.connector, 'session_update', (error, payload) => { - if (error) { - throw error - } - - return payload - }) + // listen for accountsChanged + fromEvent(this.connector, 'accountsChanged', payload => payload) .pipe(takeUntil(this.disconnected$)) .subscribe({ - next: ({ params }) => { - const [{ accounts, chainId }] = params + next: payload => { + const accounts = Array.isArray(payload) + ? payload + : [payload] this.emit('accountsChanged', accounts) + }, + error: console.warn + }) + + // listen for chainChanged + fromEvent( + this.connector as JQueryStyleEventEmitter, + 'chainChanged', + (payload: number) => payload + ) + .pipe(takeUntil(this.disconnected$)) + .subscribe({ + next: chainId => { const hexChainId = isHexString(chainId) ? chainId : `0x${chainId.toString(16)}` @@ -175,14 +244,12 @@ function uauth(options: UauthInitOptions): WalletInit { error: console.warn }) - // @ts-ignore listen for disconnect event - fromEvent(this.connector, 'disconnect', (error, payload) => { - if (error) { - throw error - } - - return payload - }) + // listen for disconnect event + fromEvent( + this.connector as JQueryStyleEventEmitter, + 'session_delete', + (payload: string) => payload + ) .pipe(takeUntil(this.disconnected$)) .subscribe({ next: () => { @@ -194,7 +261,35 @@ function uauth(options: UauthInitOptions): WalletInit { error: console.warn }) - this.disconnect = () => this.connector.killSession() + this.disconnect = () => { + if (this.connector.session) this.connector.disconnect() + } + + if (options && handleUri) { + // listen for uri event + fromEvent( + this.connector as JQueryStyleEventEmitter, + 'display_uri', + (payload: string) => payload + ) + .pipe(takeUntil(this.disconnected$)) + .subscribe(async uri => { + try { + handleUri && (await handleUri(uri)) + } catch (error) { + throw `An error occurred when handling the URI. Error: ${error}` + } + }) + } + + const checkForSession = () => { + const session = this.connector.session + if (session) { + this.emit('accountsChanged', this.connector.accounts) + this.emit('chainChanged', this.connector.chainId) + } + } + checkForSession() this.request = async ({ method, params }) => { if (method === 'eth_chainId') { @@ -204,61 +299,55 @@ function uauth(options: UauthInitOptions): WalletInit { } if (method === 'eth_requestAccounts') { - return new Promise((resolve, reject) => { - // Check if connection is already established - if (!this.connector.connected) { - // create new session - this.connector - .createSession( - connectFirstChainId - ? { chainId: parseInt(chains[0].id, 16) } - : undefined - ) - .then(() => { - QRCodeModal.open( - this.connector.uri, - () => - reject( - new ProviderRpcError({ - code: 4001, - message: 'User rejected the request.' - }) - ), - qrcodeModalOptions - ) + return new Promise( + async (resolve, reject) => { + // Subscribe to connection events + fromEvent( + this.connector as JQueryStyleEventEmitter< + any, + { chainId: number } + >, + 'connect', + (payload: { chainId: number | string }) => payload + ) + .pipe(take(1)) + .subscribe({ + next: ({ chainId }) => { + this.emit( + 'accountsChanged', + this.connector.accounts + ) + const hexChainId = isHexString(chainId) + ? chainId + : `0x${chainId.toString(16)}` + this.emit('chainChanged', hexChainId) + resolve(this.connector.accounts) + }, + error: reject }) - } else { - const { accounts, chainId } = this.connector.session - const hexChainId = isHexString(chainId) - ? chainId - : `0x${chainId.toString(16)}` - this.emit('chainChanged', hexChainId) - return resolve(accounts) - } - // @ts-ignore Subscribe to connection events - fromEvent(this.connector, 'connect', (error, payload) => { - if (error) { - throw error + // Check if connection is already established + if (!this.connector.session) { + // create new session + await this.connector.connect().catch(err => { + console.error('err creating new session: ', err) + reject( + new ProviderRpcError({ + code: 4001, + message: 'User rejected the request.' + }) + ) + }) + } else { + // update ethereum provider to load accounts & chainId + const accounts = this.connector.accounts + const chainId = this.connector.chainId + const hexChainId = `0x${chainId.toString(16)}` + this.emit('chainChanged', hexChainId) + return resolve(accounts) } - - return payload - }) - .pipe(take(1)) - .subscribe({ - next: ({ params }) => { - const [{ accounts, chainId }] = params - this.emit('accountsChanged', accounts) - const hexChainId = isHexString(chainId) - ? chainId - : `0x${chainId.toString(16)}` - this.emit('chainChanged', hexChainId) - QRCodeModal.close() - resolve(accounts) - }, - error: reject - }) - }) + } + ) } if (method === 'eth_selectAccounts') { @@ -285,77 +374,27 @@ function uauth(options: UauthInitOptions): WalletInit { message: `The Provider requires a chainId to be passed in as an argument` }) } - return this.connector.updateSession({ - chainId: chainIdObj.chainId, - accounts: this.connector.accounts - }) - } - - // @ts-ignore - if (method === 'eth_sendTransaction') { - // @ts-ignore - return this.connector.sendTransaction(params[0]) - } - - // @ts-ignore - if (method === 'eth_signTransaction') { - // @ts-ignore - return this.connector.signTransaction(params[0]) - } - - // @ts-ignore - if (method === 'personal_sign') { - // @ts-ignore - return this.connector.signPersonalMessage(params) - } - - // @ts-ignore - if (method === 'eth_sign') { - // @ts-ignore - return this.connector.signMessage(params) - } - - // @ts-ignore - if (method.includes('eth_signTypedData')) { - // @ts-ignore - return this.connector.signTypedData(params) - } - - if (method === 'eth_accounts') { - return this.connector.sendCustomRequest({ - id: 1337, - jsonrpc: '2.0', - method, - params + return this.connector.request({ + method: 'wallet_switchEthereumChain', + params: [ + { + chainId: chainIdObj.chainId + } + ] }) } - const chainId = await this.request({ method: 'eth_chainId' }) - - if (!this.providers[chainId]) { - const currentChain = chains.find(({ id }) => id === chainId) - - if (!currentChain) { - throw new ProviderRpcError({ - code: ProviderRpcErrorCode.CHAIN_NOT_ADDED, - message: `The Provider does not have a rpcUrl to make a request for the requested method: ${method}` - }) - } - - this.providers[chainId] = new StaticJsonRpcProvider( - currentChain.rpcUrl - ) - } - - return this.providers[chainId].send( + return this.connector.request>({ method, - // @ts-ignore params - ) + }) } } } - provider = new EthProvider({ chains, connector }) + + return { + provider: new EthProvider({ chains, connector }) + } } return { provider, diff --git a/packages/uauth/src/types.ts b/packages/uauth/src/types.ts index def42a1a1..193142540 100644 --- a/packages/uauth/src/types.ts +++ b/packages/uauth/src/types.ts @@ -1,3 +1,5 @@ +import { EthereumProviderOptions } from '@walletconnect/ethereum-provider/dist/types/EthereumProvider' + export type UauthInitOptions = { /** * Required and will throw an error if not included: links dapp to Unstoppable Domains for customization @@ -16,17 +18,26 @@ export type UauthInitOptions = { */ shouldLoginWithRedirect?: boolean /** - * Optional url string: default = 'https://bridge.walletconnect.org' + * Project ID associated with [WalletConnect account](https://cloud.walletconnect.com) */ - bridge?: string - qrcodeModalOptions?: { - /** - * Optional array of strings: Set the order and list of mobile linking wallets - */ - mobileLinks: string[] - } + walletConnectProjectId: string /** - * Optional boolean: If true, connects to the first network chain provided + * List of Required Chain(s) ID for wallets to support in number format (integer or hex) + * Defaults to [1] - Ethereum */ - connectFirstChainId?: boolean + 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 + /** + * 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 + /** + * Optional function to handle WalletConnect URI when it becomes available + */ + handleUri?: (uri: string) => Promise } diff --git a/packages/uauth/src/validation.ts b/packages/uauth/src/validation.ts index 8acfa71b7..a8932d784 100644 --- a/packages/uauth/src/validation.ts +++ b/packages/uauth/src/validation.ts @@ -6,11 +6,11 @@ const uauthOptions = Joi.object({ redirectUri: Joi.string().required(), scope: Joi.string().allow(null), shouldLoginWithRedirect: Joi.boolean().allow(null), - bridge: Joi.string().allow(null), - qrcodeModalOptions: { - mobileLinks: Joi.array().allow(null) - }, - connectFirstChainId: Joi.boolean().allow(null) + walletConnectProjectId: Joi.string().required(), + requiredChains: Joi.array().items(Joi.number()), + optionalChains: Joi.array().items(Joi.number()), + additionalOptionalMethods: Joi.array().items(Joi.string()), + handleUri: Joi.function() }) type ValidateReturn = Joi.ValidationResult | null diff --git a/packages/vue/package.json b/packages/vue/package.json index 8e4369ba5..e52f3ba4a 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", "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", "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..65798ed07 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", "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..29bb38d3e 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,26 @@ 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)) + + 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 +144,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 8f75cb9c6..cd7534b8a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1523,10 +1523,10 @@ rxjs "^6.6.3" typescript "^4.6.2" -"@ledgerhq/connect-kit-loader@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@ledgerhq/connect-kit-loader/-/connect-kit-loader-1.0.2.tgz#8554e16943f86cc2a5f6348a14dfe6e5bd0c572a" - integrity sha512-TQ21IjcZOw/scqypaVFY3jHVqI7X7Hta3qN/us6FvTol3AY06UmrhhXGww0E9xHmAbdX241ddwXEiMBSQZFr9g== +"@ledgerhq/connect-kit-loader@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/connect-kit-loader/-/connect-kit-loader-1.1.0.tgz#10343b78ef13436818bf3453568a559c0eeb9d48" + integrity sha512-HUy12FEczoWY2FPubnsm1uOA8tkVWc0j90i47suThV3C9NL2xx69ZAIEU3Ytzs2bwLek9S1Q2S1VQJvA+3Ygkg== "@lit-labs/ssr-dom-shim@^1.0.0", "@lit-labs/ssr-dom-shim@^1.1.0": version "1.1.0" @@ -3392,17 +3392,6 @@ dependencies: vue-demi "*" -"@walletconnect/browser-utils@^1.7.1": - version "1.7.1" - resolved "https://registry.yarnpkg.com/@walletconnect/browser-utils/-/browser-utils-1.7.1.tgz#2a28846cd4d73166debbbf7d470e78ba25616f5e" - integrity sha512-y6KvxPhi52sWzS0/HtA3EhdgmtG8mXcxdc26YURDOVC/BJh3MxV8E16JFrT4InylOqYJs6dcSLWVfcnJaiPtZw== - dependencies: - "@walletconnect/safe-json" "1.0.0" - "@walletconnect/types" "^1.7.1" - "@walletconnect/window-getters" "1.0.0" - "@walletconnect/window-metadata" "1.0.0" - detect-browser "5.2.0" - "@walletconnect/browser-utils@^1.8.0": version "1.8.0" resolved "https://registry.yarnpkg.com/@walletconnect/browser-utils/-/browser-utils-1.8.0.tgz#33c10e777aa6be86c713095b5206d63d32df0951" @@ -3414,16 +3403,6 @@ "@walletconnect/window-metadata" "1.0.0" detect-browser "5.2.0" -"@walletconnect/client@^1.7.1": - version "1.7.1" - resolved "https://registry.yarnpkg.com/@walletconnect/client/-/client-1.7.1.tgz#aaa74199bdc0605db9ac2ecdf8a463b271586d3b" - integrity sha512-xD8B8s1hL7Z5vJwb3L0u1bCVAk6cRQfIY9ycymf7KkmIhkAONQJNf2Y0C0xIpbPp2fdn9VwnSfLm5Ed/Ht/1IA== - dependencies: - "@walletconnect/core" "^1.7.1" - "@walletconnect/iso-crypto" "^1.7.1" - "@walletconnect/types" "^1.7.1" - "@walletconnect/utils" "^1.7.1" - "@walletconnect/client@^1.8.0": version "1.8.0" resolved "https://registry.yarnpkg.com/@walletconnect/client/-/client-1.8.0.tgz#6f46b5499c7c861c651ff1ebe5da5b66225ca696" @@ -3434,10 +3413,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,21 +3429,12 @@ "@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" -"@walletconnect/core@^1.7.1": - version "1.7.1" - resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-1.7.1.tgz#321c14d63af81241658b028022e0e5fa6dc7f374" - integrity sha512-qO+4wykyRNiq3HEuaAA2pW2PDnMM4y7pyPAgiCwfHiqF4PpWvtcdB301hI0K5am9ghuqKZMy1HlE9LWNOEBvcw== - dependencies: - "@walletconnect/socket-transport" "^1.7.1" - "@walletconnect/types" "^1.7.1" - "@walletconnect/utils" "^1.7.1" - "@walletconnect/core@^1.8.0": version "1.8.0" resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-1.8.0.tgz#6b2748b90c999d9d6a70e52e26a8d5e8bfeaa81e" @@ -3474,17 +3444,6 @@ "@walletconnect/types" "^1.8.0" "@walletconnect/utils" "^1.8.0" -"@walletconnect/crypto@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@walletconnect/crypto/-/crypto-1.0.1.tgz#d4c1b1cd5dd1be88fe9a82dfc54cadbbb3f9d325" - integrity sha512-IgUReNrycIFxkGgq8YT9HsosCkhutakWD9Q411PR0aJfxpEa/VKJeaLRtoz6DvJpztWStwhIHnAbBoOVR72a6g== - dependencies: - "@walletconnect/encoding" "^1.0.0" - "@walletconnect/environment" "^1.0.0" - "@walletconnect/randombytes" "^1.0.1" - aes-js "^3.1.2" - hash.js "^1.1.7" - "@walletconnect/crypto@^1.0.2": version "1.0.2" resolved "https://registry.yarnpkg.com/@walletconnect/crypto/-/crypto-1.0.2.tgz#3fcc2b2cde6f529a19eadd883dc555cd0e861992" @@ -3496,14 +3455,6 @@ aes-js "^3.1.2" hash.js "^1.1.7" -"@walletconnect/encoding@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@walletconnect/encoding/-/encoding-1.0.0.tgz#e24190cb5e803526f9dfd7191fb0e4dc53c6d864" - integrity sha512-4nkJFnS0QF5JdieG/3VPD1/iEWkLSZ14EBInLZ00RWxmC6EMZrzAeHNAWIgm+xP3NK0lqz+7lEsmWGtcl5gYnQ== - dependencies: - is-typedarray "1.0.0" - typedarray-to-buffer "3.1.5" - "@walletconnect/encoding@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@walletconnect/encoding/-/encoding-1.0.1.tgz#93c18ce9478c3d5283dbb88c41eb2864b575269a" @@ -3524,19 +3475,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": @@ -3556,15 +3507,6 @@ "@walletconnect/time" "^1.0.2" tslib "1.14.1" -"@walletconnect/iso-crypto@^1.7.1": - version "1.7.1" - resolved "https://registry.yarnpkg.com/@walletconnect/iso-crypto/-/iso-crypto-1.7.1.tgz#c463bb5874686c2f21344e2c7f3cf4d71c34ca70" - integrity sha512-qMiW0kLN6KCjnLMD50ijIj1lQqjNjGszGUwrSVUiS2/Dp4Ecx+4QEtHbmVwGEkfx4kelYPFpDJV3ZJpQ4Kqg/g== - dependencies: - "@walletconnect/crypto" "^1.0.1" - "@walletconnect/types" "^1.7.1" - "@walletconnect/utils" "^1.7.1" - "@walletconnect/iso-crypto@^1.8.0": version "1.8.0" resolved "https://registry.yarnpkg.com/@walletconnect/iso-crypto/-/iso-crypto-1.8.0.tgz#44ddf337c4f02837c062dbe33fa7ab36789df451" @@ -3601,13 +3543,6 @@ keyvaluestorage-interface "^1.0.0" tslib "1.14.1" -"@walletconnect/jsonrpc-types@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.0.tgz#fa75ad5e8f106a2e33287b1e6833e22ed0225055" - integrity sha512-11QXNq5H1PKZk7bP8SxgmCw3HRaDuPOVE+wObqEvmhc7OWYUZqfuaaMb+OXGRSOHL3sbC+XHfdeCxFTMXSFyng== - dependencies: - keyvaluestorage-interface "^1.0.0" - "@walletconnect/jsonrpc-types@^1.0.2": version "1.0.2" resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.2.tgz#b79519f679cd6a5fa4a1bea888f27c1916689a20" @@ -3625,14 +3560,6 @@ "@walletconnect/jsonrpc-types" "^1.0.3" tslib "1.14.1" -"@walletconnect/jsonrpc-utils@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.0.tgz#1a2f668d606e8f0b6e7d8fdebae86001bd037a3f" - integrity sha512-qUHbKUK6sHeHn67qtHZoLoYk5hS6x1arTPjKDRkY93/6Fx+ZmNIpdm1owX3l6aYueyegJ7mz43FpvYHUqJ8xcw== - dependencies: - "@walletconnect/environment" "^1.0.0" - "@walletconnect/jsonrpc-types" "^1.0.0" - "@walletconnect/jsonrpc-utils@^1.0.3": version "1.0.4" resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.4.tgz#2009ba3907b02516f2caacd2fb871ff0d472b2cb" @@ -3699,25 +3626,57 @@ 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.4": + version "2.5.4" + resolved "https://registry.yarnpkg.com/@walletconnect/modal-core/-/modal-core-2.5.4.tgz#7d739a90a9cf103067eea46507ea649e8dada436" + integrity sha512-ISe4LqmEDFU7b6rLgonqaEtMXzG6ko13HA7S8Ty3d7GgfAEe29LM1dq3zo8ehEOghhofhj1PiiNfvaogZKzT1g== dependencies: - "@web3modal/core" "2.4.3" - "@web3modal/ui" "2.4.3" + buffer "6.0.3" + valtio "1.10.6" -"@walletconnect/qrcode-modal@^1.7.1": - version "1.7.1" - resolved "https://registry.yarnpkg.com/@walletconnect/qrcode-modal/-/qrcode-modal-1.7.1.tgz#89b19c2eb6466ec237ccd597388d7a1b1b946067" - integrity sha512-m/4lSx3pgj8V2eHVJcGnxBKUSCNFtyVIcg5tqbSJHi9HjKIBxvRq4D5M4X4yEpgXYtRmTucihxNCrj2zQrmlSQ== +"@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: - "@walletconnect/browser-utils" "^1.7.1" - "@walletconnect/mobile-registry" "^1.4.0" - "@walletconnect/types" "^1.7.1" - copy-to-clipboard "^3.3.1" - preact "10.4.1" - qrcode "1.4.4" + buffer "6.0.3" + valtio "1.10.6" + +"@walletconnect/modal-ui@2.5.4": + version "2.5.4" + resolved "https://registry.yarnpkg.com/@walletconnect/modal-ui/-/modal-ui-2.5.4.tgz#0433fb0226dd47e17fede620c5a5ff332baed155" + integrity sha512-5qLLjwbE3YC4AsCVhf8J87otklkApcQ5DCMykOcS0APPv8lKQ46JxpQhfWwRYaUkuIiHonI9h1YxFARDkoaI9g== + dependencies: + "@walletconnect/modal-core" "2.5.4" + lit "2.7.5" + motion "10.16.2" + qrcode "1.5.3" + +"@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.4": + version "2.5.4" + resolved "https://registry.yarnpkg.com/@walletconnect/modal/-/modal-2.5.4.tgz#66659051f9c0f35c151d3a8d940f8c64d42fab74" + integrity sha512-JAKMcCd4JQvSEr7pNitg3OBke4DN1JyaQ7bdi3x4T7oLgOr9Y88qdkeOXko/0aJonDHJsM88hZ10POQWmKfEMA== + dependencies: + "@walletconnect/modal-core" "2.5.4" + "@walletconnect/modal-ui" "2.5.4" + +"@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.8.0": version "1.8.0" @@ -3731,15 +3690,6 @@ preact "10.4.1" qrcode "1.4.4" -"@walletconnect/randombytes@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@walletconnect/randombytes/-/randombytes-1.0.1.tgz#87f0f02d9206704ce1c9e23f07d3b28898c48385" - integrity sha512-YJTyq69i0PtxVg7osEpKfvjTaWuAsR49QEcqGKZRKVQWMbGXBZ65fovemK/SRgtiFRv0V8PwsrlKSheqzfPNcg== - dependencies: - "@walletconnect/encoding" "^1.0.0" - "@walletconnect/environment" "^1.0.0" - randombytes "^2.1.0" - "@walletconnect/randombytes@^1.0.2": version "1.0.2" resolved "https://registry.yarnpkg.com/@walletconnect/randombytes/-/randombytes-1.0.2.tgz#95c644251a15e6675f58fbffc9513a01486da49c" @@ -3788,30 +3738,21 @@ 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": - version "1.7.1" - resolved "https://registry.yarnpkg.com/@walletconnect/socket-transport/-/socket-transport-1.7.1.tgz#cc4c8dcf21c40b805812ecb066b2abb156fdb146" - integrity sha512-Gu1RPro0eLe+HHtLhq/1T5TNFfO/HW2z3BnWuUYuJ/F8w1U9iK7+4LMHe+LTgwgWy9Ybcb2k0tiO5e3LgjHBHQ== - dependencies: - "@walletconnect/types" "^1.7.1" - "@walletconnect/utils" "^1.7.1" - ws "7.5.3" - "@walletconnect/socket-transport@^1.8.0": version "1.8.0" resolved "https://registry.yarnpkg.com/@walletconnect/socket-transport/-/socket-transport-1.8.0.tgz#9a1128a249628a0be11a0979b522fe82b44afa1b" @@ -3840,10 +3781,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" @@ -3852,11 +3793,6 @@ "@walletconnect/logger" "^2.0.1" events "^3.3.0" -"@walletconnect/types@^1.7.1": - version "1.7.1" - resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-1.7.1.tgz#86cc3832e02415dc9f518f3dcb5366722afbfc03" - integrity sha512-X0NunEUgq46ExDcKo7BnnFpFhuZ89bZ04/1FtohNziBWcP2Mblp2yf+FN7iwmZiuZ3bRTb8J1O4oJH2JGP9I7A== - "@walletconnect/types@^1.8.0": version "1.8.0" resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-1.8.0.tgz#3f5e85b2d6b149337f727ab8a71b8471d8d9a195" @@ -3874,26 +3810,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,26 +3838,13 @@ "@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" query-string "7.1.3" uint8arrays "^3.1.0" -"@walletconnect/utils@^1.7.1": - version "1.7.1" - resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-1.7.1.tgz#f858d5f22425a4c2da2a28ae493bde7f2eecf815" - integrity sha512-7Lig9rruqTMaFuwEhBrArq1QgzIf2NuzO6J3sCUYCZh60EQ7uIZjekaDonQjiQJAbfYcgWUBm8qa0PG1TzYN3Q== - dependencies: - "@walletconnect/browser-utils" "^1.7.1" - "@walletconnect/encoding" "^1.0.0" - "@walletconnect/jsonrpc-utils" "^1.0.0" - "@walletconnect/types" "^1.7.1" - bn.js "4.11.8" - js-sha3 "0.8.0" - query-string "6.13.5" - "@walletconnect/utils@^1.8.0": version "1.8.0" resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-1.8.0.tgz#2591a197c1fa7429941fe428876088fda6632060" @@ -4197,24 +4119,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 +6172,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 +12205,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"