From e66e2b7ebdc245853b7f741aa7cb4ff27ffecb0a Mon Sep 17 00:00:00 2001 From: Ruben Marcus Date: Tue, 8 Oct 2024 17:34:44 +0100 Subject: [PATCH 1/8] eth-wallet --- packages/react/package.json | 22 ++++--- packages/react/src/wallet/bitte-wallet.ts | 6 +- packages/react/src/wallet/wallet.ts | 7 ++- packages/react/src/wallet/web3-modal.ts | 77 +++++++++++++++++++++++ 4 files changed, 102 insertions(+), 10 deletions(-) create mode 100644 packages/react/src/wallet/web3-modal.ts diff --git a/packages/react/package.json b/packages/react/package.json index 30e725bd..267a44c0 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -24,12 +24,20 @@ "dependencies": { "@mintbase-js/data": "0.6.2", "@mintbase-js/wallet": "0.6.2", - "@near-wallet-selector/core": "8.9.12", - "@near-wallet-selector/here-wallet": "8.9.12", - "@near-wallet-selector/meteor-wallet": "8.9.12", - "@near-wallet-selector/modal-ui": "8.9.12", - "@near-wallet-selector/my-near-wallet": "8.9.12", + "@near-wallet-selector/core": "8.9.13", + "@near-wallet-selector/ethereum-wallets": "8.9.13", + "@near-wallet-selector/here-wallet": "8.9.13", + "@near-wallet-selector/meteor-wallet": "8.9.13", + "@near-wallet-selector/modal-ui": "8.9.13", + "@near-wallet-selector/my-near-wallet": "8.9.13", + "@tanstack/react-query": "5.24.8", + "@wagmi/connectors": "5.0.10", + "@wagmi/core": "2.10.5", + "@web3modal/wagmi": "5.0.6", + "near-api-js": "^5.0.0", "react": "^18.2.0", - "react-dom": "^18.2.0" + "react-dom": "^18.2.0", + "viem": "2.16.2", + "wagmi": "2.10.5" } -} +} \ No newline at end of file diff --git a/packages/react/src/wallet/bitte-wallet.ts b/packages/react/src/wallet/bitte-wallet.ts index 4073ccda..71bf381d 100644 --- a/packages/react/src/wallet/bitte-wallet.ts +++ b/packages/react/src/wallet/bitte-wallet.ts @@ -26,6 +26,8 @@ import { ConnectionTimeoutError } from './wallet'; import { setupMeteorWallet } from '@near-wallet-selector/meteor-wallet'; import { setupHereWallet } from '@near-wallet-selector/here-wallet'; import { setupMyNearWallet } from '@near-wallet-selector/my-near-wallet'; +import { wagmiConfig, web3Modal } from './web3-modal'; +import { setupEthereumWallets } from "@near-wallet-selector/ethereum-wallets"; const SUPPORT = '- further help available on our telegram channel: https://t.me/mintdev'; @@ -34,10 +36,12 @@ export const ERROR_MESSAGES = { WALLET_CONNECTION_NOT_FOUND: `Wallet connection not received after ${WALLET_CONNECTION_TIMEOUT}ms - ${SUPPORT}`, }; +const alwaysOnboardDuringSignIn = true; export const SUPPORTED_NEAR_WALLETS: Array =[ setupMeteorWallet(), setupMyNearWallet(), setupHereWallet(), + setupEthereumWallets({ wagmiConfig, web3Modal, alwaysOnboardDuringSignIn }), ]; export type WalletSelectorComponents = { @@ -234,4 +238,4 @@ export const BitteWalletAuth = { return owner; }, -}; +}; \ No newline at end of file diff --git a/packages/react/src/wallet/wallet.ts b/packages/react/src/wallet/wallet.ts index d3be749d..599e425f 100644 --- a/packages/react/src/wallet/wallet.ts +++ b/packages/react/src/wallet/wallet.ts @@ -15,7 +15,8 @@ import { import { setupHereWallet } from '@near-wallet-selector/here-wallet'; import { setupMeteorWallet } from '@near-wallet-selector/meteor-wallet'; import { setupMyNearWallet } from '@near-wallet-selector/my-near-wallet'; - +import { wagmiConfig, web3Modal } from './web3-modal'; +import { setupEthereumWallets } from "@near-wallet-selector/ethereum-wallets"; import { setupBitteWallet, setupMintbaseWallet } from '@mintbase-js/wallet'; import type { @@ -33,10 +34,12 @@ export const ERROR_MESSAGES = { WALLET_CONNECTION_NOT_FOUND: `Wallet connection not received after ${WALLET_CONNECTION_TIMEOUT}ms - ${SUPPORT}`, }; +const alwaysOnboardDuringSignIn = true; export const SUPPORTED_NEAR_WALLETS: Array =[ setupMeteorWallet(), setupMyNearWallet(), setupHereWallet(), + setupEthereumWallets({ wagmiConfig, web3Modal, alwaysOnboardDuringSignIn }), ]; // mintbase SDK wallet functionality wraps @@ -293,4 +296,4 @@ export const signMessage = async ( // // const verified = createdPublicKey.verify(new Uint8Array(sha256.array(stringified)), Buffer.from(signature, 'base64')); // return false; -// }; +// }; \ No newline at end of file diff --git a/packages/react/src/wallet/web3-modal.ts b/packages/react/src/wallet/web3-modal.ts new file mode 100644 index 00000000..be15dfa9 --- /dev/null +++ b/packages/react/src/wallet/web3-modal.ts @@ -0,0 +1,77 @@ +import { reconnect, http, createConfig } from "@wagmi/core"; +import { walletConnect, injected } from "wagmi/connectors"; +import { createWeb3Modal } from "@web3modal/wagmi"; + +const evmWalletChains = { + testnet: { + nearEnv: "testnet", + chainId: 398, + walletExplorerUrl: "https://eth-explorer-testnet.near.org", + explorerUrl: "https://testnet.nearblocks.io", + ethRpcForNear: "https://eth-rpc.testnet.near.org", + nearNativeRpc: "https://rpc.testnet.near.org" + }, + mainnet: { + chainId: 397, + nearEnv: "mainnet", + walletExplorerUrl: "https://eth-explorer.near.org", + explorerUrl: "https://nearblocks.io", + ethRpcForNear: "https://eth-rpc.mainnet.near.org", + nearNativeRpc: "https://rpc.mainnet.near.org" + } +}; + +const EVMWalletChain = evmWalletChains.mainnet; + +// see more here: https://docs.reown.com/appkit/react/core/installation#cloud-configuration +// please replace it with your own one +const reownProjectId = 'b6facfc0dfb00812382fe1b7bcc07069'; + +const onMainnet = true; // you need to put smth like NetworkId == "mainnet"; here +const nearChain = { + id: EVMWalletChain.chainId, + name: `NEAR Protocol${ onMainnet ? "" : " Testnet"}`, + nativeCurrency: { + decimals: 18, + name: "NEAR", + symbol: "NEAR", + }, + rpcUrls: { + default: { http: [EVMWalletChain.ethRpcForNear] }, + public: { http: [EVMWalletChain.ethRpcForNear] }, + }, + blockExplorers: { + default: { + name: "NEAR Explorer", + url: EVMWalletChain.walletExplorerUrl, + }, + }, + testnet: !onMainnet, +}; + +const metadata = { + name: "Bitte Wallet", + description: "Near Wallet Connect to EVM", + url: "wallet.bitte.ai", + icons: [], +}; + +export const wagmiConfig = createConfig({ + chains: [nearChain], + transports: { + [nearChain.id]: http(), + }, + connectors: [ + walletConnect({ projectId: reownProjectId, metadata, showQrModal: false }), + injected({ shimDisconnect: true }), + ], +}); + +// Needed to be called to preserve the login state if your will reload the page +reconnect(wagmiConfig); + +export const web3Modal : any = createWeb3Modal({ + wagmiConfig: wagmiConfig, + // Get a project ID at https://cloud.walletconnect.com + projectId: reownProjectId, +}); \ No newline at end of file From ebdfbe75a2ce36a81f7467c564bc8fc17b8b601a Mon Sep 17 00:00:00 2001 From: Ruben Marcus Date: Tue, 8 Oct 2024 19:06:23 +0100 Subject: [PATCH 2/8] test wagmi --- packages/react/package.json | 2 +- packages/react/src/wallet/web3-modal.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react/package.json b/packages/react/package.json index 267a44c0..78482c82 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -4,7 +4,7 @@ "description": "React app tools for Mintbase JS SDK", "main": "lib/index.js", "scripts": { - "build": "tsc", + "build": "tsc --noEmitOnError false --skipLibCheck ", "watch": "tsc && tsc --watch & jest --watch --coverage", "lint": "eslint . --fix --ext ts --ext tsx" }, diff --git a/packages/react/src/wallet/web3-modal.ts b/packages/react/src/wallet/web3-modal.ts index be15dfa9..b94e41f9 100644 --- a/packages/react/src/wallet/web3-modal.ts +++ b/packages/react/src/wallet/web3-modal.ts @@ -1,6 +1,7 @@ import { reconnect, http, createConfig } from "@wagmi/core"; import { walletConnect, injected } from "wagmi/connectors"; import { createWeb3Modal } from "@web3modal/wagmi"; +import type { Config } from "@wagmi/core/dist/types/createConfig" const evmWalletChains = { testnet: { @@ -56,7 +57,7 @@ const metadata = { icons: [], }; -export const wagmiConfig = createConfig({ +export const wagmiConfig : Config = createConfig({ chains: [nearChain], transports: { [nearChain.id]: http(), From a1fdbb0173b778eb6ddfcce6dd4e25fef0859e0e Mon Sep 17 00:00:00 2001 From: Ruben Marcus Date: Tue, 8 Oct 2024 19:44:14 +0100 Subject: [PATCH 3/8] lock --- package-lock.json | 2855 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 2636 insertions(+), 219 deletions(-) diff --git a/package-lock.json b/package-lock.json index 879401e6..40556f7a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -55,6 +55,11 @@ "typescript": "^4.8.4" } }, + "node_modules/@adraffy/ens-normalize": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.0.tgz", + "integrity": "sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q==" + }, "node_modules/@ampproject/remapping": { "version": "2.3.0", "dev": true, @@ -1102,7 +1107,6 @@ }, "node_modules/@babel/runtime": { "version": "7.24.6", - "dev": true, "license": "MIT", "dependencies": { "regenerator-runtime": "^0.14.0" @@ -1162,6 +1166,47 @@ "dev": true, "license": "MIT" }, + "node_modules/@coinbase/wallet-sdk": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/@coinbase/wallet-sdk/-/wallet-sdk-4.0.3.tgz", + "integrity": "sha512-y/OGEjlvosikjfB+wk+4CVb9OxD1ob9cidEBLI5h8Hxaf/Qoob2XoVT1uvhtAzBx34KpGYSd+alKvh/GCRre4Q==", + "dependencies": { + "buffer": "^6.0.3", + "clsx": "^1.2.1", + "eventemitter3": "^5.0.1", + "keccak": "^3.0.3", + "preact": "^10.16.0", + "sha.js": "^2.4.11" + } + }, + "node_modules/@coinbase/wallet-sdk/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/@coinbase/wallet-sdk/node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==" + }, "node_modules/@cspotcode/source-map-support": { "version": "0.8.1", "dev": true, @@ -1182,6 +1227,53 @@ "@jridgewell/sourcemap-codec": "^1.4.10" } }, + "node_modules/@ethereumjs/common": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-3.2.0.tgz", + "integrity": "sha512-pksvzI0VyLgmuEF2FA/JR/4/y6hcPq8OUail3/AvycBaW1d5VSauOZzqGvJ3RTmR4MU35lWE8KseKOsEhrFRBA==", + "dependencies": { + "@ethereumjs/util": "^8.1.0", + "crc-32": "^1.2.0" + } + }, + "node_modules/@ethereumjs/rlp": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", + "integrity": "sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==", + "bin": { + "rlp": "bin/rlp" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@ethereumjs/tx": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-4.2.0.tgz", + "integrity": "sha512-1nc6VO4jtFd172BbSnTnDQVr9IYBFl1y4xPzZdtkrkKIncBCkdbgfdRV+MiTkJYAtTxvV12GRZLqBFT1PNK6Yw==", + "dependencies": { + "@ethereumjs/common": "^3.2.0", + "@ethereumjs/rlp": "^4.0.1", + "@ethereumjs/util": "^8.1.0", + "ethereum-cryptography": "^2.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@ethereumjs/util": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-8.1.0.tgz", + "integrity": "sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==", + "dependencies": { + "@ethereumjs/rlp": "^4.0.1", + "ethereum-cryptography": "^2.0.0", + "micro-ftch": "^0.3.1" + }, + "engines": { + "node": ">=14" + } + }, "node_modules/@google-cloud/firestore": { "version": "6.8.0", "license": "Apache-2.0", @@ -4045,6 +4137,304 @@ "@lit-labs/ssr-dom-shim": "^1.0.0" } }, + "node_modules/@metamask/eth-json-rpc-provider": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@metamask/eth-json-rpc-provider/-/eth-json-rpc-provider-1.0.1.tgz", + "integrity": "sha512-whiUMPlAOrVGmX8aKYVPvlKyG4CpQXiNNyt74vE1xb5sPvmx5oA7B/kOi/JdBvhGQq97U1/AVdXEdk2zkP8qyA==", + "dependencies": { + "@metamask/json-rpc-engine": "^7.0.0", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^5.0.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@metamask/eth-json-rpc-provider/node_modules/@metamask/utils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-5.0.2.tgz", + "integrity": "sha512-yfmE79bRQtnMzarnKfX7AEJBwFTxvTyw3nBQlu/5rmGXrjAeAMltoGxO62TFurxrQAFMNa/fEjIHNvungZp0+g==", + "dependencies": { + "@ethereumjs/tx": "^4.1.2", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "semver": "^7.3.8", + "superstruct": "^1.0.3" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@metamask/eth-json-rpc-provider/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@metamask/json-rpc-engine": { + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/@metamask/json-rpc-engine/-/json-rpc-engine-7.3.3.tgz", + "integrity": "sha512-dwZPq8wx9yV3IX2caLi9q9xZBw2XeIoYqdyihDDDpuHVCEiqadJLwqM3zy+uwf6F1QYQ65A8aOMQg1Uw7LMLNg==", + "dependencies": { + "@metamask/rpc-errors": "^6.2.1", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^8.3.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/json-rpc-middleware-stream": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@metamask/json-rpc-middleware-stream/-/json-rpc-middleware-stream-6.0.2.tgz", + "integrity": "sha512-jtyx3PRfc1kqoLpYveIVQNwsxYKefc64/LCl9h9Da1m3nUKEvypbYuXSIwi237qvOjKmNHQKsDOZg6f4uBf62Q==", + "dependencies": { + "@metamask/json-rpc-engine": "^7.3.2", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^8.3.0", + "readable-stream": "^3.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/object-multiplex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@metamask/object-multiplex/-/object-multiplex-2.0.0.tgz", + "integrity": "sha512-+ItrieVZie3j2LfYE0QkdW3dsEMfMEp419IGx1zyeLqjRZ14iQUPRO0H6CGgfAAoC0x6k2PfCAGRwJUA9BMrqA==", + "dependencies": { + "once": "^1.4.0", + "readable-stream": "^3.6.2" + }, + "engines": { + "node": "^16.20 || ^18.16 || >=20" + } + }, + "node_modules/@metamask/onboarding": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@metamask/onboarding/-/onboarding-1.0.1.tgz", + "integrity": "sha512-FqHhAsCI+Vacx2qa5mAFcWNSrTcVGMNjzxVgaX8ECSny/BJ9/vgXP9V7WF/8vb9DltPeQkxr+Fnfmm6GHfmdTQ==", + "dependencies": { + "bowser": "^2.9.0" + } + }, + "node_modules/@metamask/providers": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/@metamask/providers/-/providers-15.0.0.tgz", + "integrity": "sha512-FXvL1NQNl6I7fMOJTfQYcBlBZ33vSlm6w80cMpmn8sJh0Lb7wcBpe02UwBsNlARnI+Qsr26XeDs6WHUHQh8CuA==", + "dependencies": { + "@metamask/json-rpc-engine": "^7.3.2", + "@metamask/json-rpc-middleware-stream": "^6.0.2", + "@metamask/object-multiplex": "^2.0.0", + "@metamask/rpc-errors": "^6.2.1", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^8.3.0", + "detect-browser": "^5.2.0", + "extension-port-stream": "^3.0.0", + "fast-deep-equal": "^3.1.3", + "is-stream": "^2.0.0", + "readable-stream": "^3.6.2", + "webextension-polyfill": "^0.10.0" + }, + "engines": { + "node": "^18.18 || >=20" + } + }, + "node_modules/@metamask/rpc-errors": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@metamask/rpc-errors/-/rpc-errors-6.4.0.tgz", + "integrity": "sha512-1ugFO1UoirU2esS3juZanS/Fo8C8XYocCuBpfZI5N7ECtoG+zu0wF+uWZASik6CkO6w9n/Iebt4iI4pT0vptpg==", + "dependencies": { + "@metamask/utils": "^9.0.0", + "fast-safe-stringify": "^2.0.6" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/rpc-errors/node_modules/@metamask/utils": { + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-9.2.1.tgz", + "integrity": "sha512-/u663aUaB6+Xe75i3Mt/1cCljm41HDYIsna5oBrwGvgkY2zH7/9k9Zjd706cxoAbxN7QgLSVAReUiGnuxCuXrQ==", + "dependencies": { + "@ethereumjs/tx": "^4.2.0", + "@metamask/superstruct": "^3.1.0", + "@noble/hashes": "^1.3.1", + "@scure/base": "^1.1.3", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "pony-cause": "^2.1.10", + "semver": "^7.5.4", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/rpc-errors/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@metamask/safe-event-emitter": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@metamask/safe-event-emitter/-/safe-event-emitter-3.1.1.tgz", + "integrity": "sha512-ihb3B0T/wJm1eUuArYP4lCTSEoZsClHhuWyfo/kMX3m/odpqNcPfsz5O2A3NT7dXCAgWPGDQGPqygCpgeniKMw==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@metamask/sdk": { + "version": "0.20.5", + "resolved": "https://registry.npmjs.org/@metamask/sdk/-/sdk-0.20.5.tgz", + "integrity": "sha512-BEL3BKbb0O09QgOzvyPH5xUONl2uicS9WT1AYhZ8yR4ytz5fhyHWJzs8Q/cwgm1qIdn3eumnjXfgA6pKirWa3A==", + "dependencies": { + "@metamask/onboarding": "^1.0.1", + "@metamask/providers": "^15.0.0", + "@metamask/sdk-communication-layer": "0.20.5", + "@metamask/sdk-install-modal-web": "0.20.4", + "@types/dom-screen-wake-lock": "^1.0.0", + "bowser": "^2.9.0", + "cross-fetch": "^4.0.0", + "debug": "^4.3.4", + "eciesjs": "^0.3.15", + "eth-rpc-errors": "^4.0.3", + "eventemitter2": "^6.4.7", + "i18next": "22.5.1", + "i18next-browser-languagedetector": "7.1.0", + "obj-multiplex": "^1.0.0", + "pump": "^3.0.0", + "qrcode-terminal-nooctal": "^0.12.1", + "react-native-webview": "^11.26.0", + "readable-stream": "^3.6.2", + "rollup-plugin-visualizer": "^5.9.2", + "socket.io-client": "^4.5.1", + "util": "^0.12.4", + "uuid": "^8.3.2" + }, + "peerDependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, + "node_modules/@metamask/sdk-communication-layer": { + "version": "0.20.5", + "resolved": "https://registry.npmjs.org/@metamask/sdk-communication-layer/-/sdk-communication-layer-0.20.5.tgz", + "integrity": "sha512-Y3pzg1GBB7tDUCUsyhvlhxQ+h/pDrTjO2yUwjCJj2S8Nx5OtdRv/foRGfbDHkfYt6Z9ANRfivWU2U6El17B24A==", + "dependencies": { + "bufferutil": "^4.0.8", + "date-fns": "^2.29.3", + "debug": "^4.3.4", + "utf-8-validate": "^6.0.3", + "uuid": "^8.3.2" + }, + "peerDependencies": { + "cross-fetch": "^4.0.0", + "eciesjs": "^0.3.16", + "eventemitter2": "^6.4.7", + "readable-stream": "^3.6.2", + "socket.io-client": "^4.5.1" + } + }, + "node_modules/@metamask/sdk-communication-layer/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@metamask/sdk-install-modal-web": { + "version": "0.20.4", + "resolved": "https://registry.npmjs.org/@metamask/sdk-install-modal-web/-/sdk-install-modal-web-0.20.4.tgz", + "integrity": "sha512-AX3mTr0IDpS0ajV83okTaixG+2wIxTVbgvEuQgAj2Ed7PWAdiZ1aX93AVcaCgkOWhTf267z7mXCSuBDpBCje9g==", + "dependencies": { + "qr-code-styling": "^1.6.0-rc.1" + }, + "peerDependencies": { + "i18next": "22.5.1", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-i18next": "^13.2.2", + "react-native": "*" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-dom": { + "optional": true + }, + "react-native": { + "optional": true + } + } + }, + "node_modules/@metamask/sdk/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@metamask/superstruct": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@metamask/superstruct/-/superstruct-3.1.0.tgz", + "integrity": "sha512-N08M56HdOgBfRKkrgCMZvQppkZGcArEop3kixNEtVbJKm6P9Cfg0YkI6X0s1g78sNrj2fWUwvJADdZuzJgFttA==", + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/utils": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-8.5.0.tgz", + "integrity": "sha512-I6bkduevXb72TIM9q2LRO63JSsF9EXduh3sBr9oybNX2hNNpr/j1tEjXrsG0Uabm4MJ1xkGAQEMwifvKZIkyxQ==", + "dependencies": { + "@ethereumjs/tx": "^4.2.0", + "@metamask/superstruct": "^3.0.0", + "@noble/hashes": "^1.3.1", + "@scure/base": "^1.1.3", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "pony-cause": "^2.1.10", + "semver": "^7.5.4", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/utils/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@meteorwallet/sdk": { "version": "1.0.9", "dependencies": { @@ -4629,6 +5019,78 @@ "webidl-conversions": "^3.0.0" } }, + "node_modules/@near-wallet-selector/ethereum-wallets": { + "version": "8.9.13", + "resolved": "https://registry.npmjs.org/@near-wallet-selector/ethereum-wallets/-/ethereum-wallets-8.9.13.tgz", + "integrity": "sha512-I80o6QCzy7tEQ0+QF2mMBMXmYmBl1Yp2wf781Vl5tu6h6yEhWuDi0h3v0bgMzIxDH1ZpFmddxP9nog/0N+Lmtw==", + "dependencies": { + "@near-wallet-selector/core": "8.9.13", + "@near-wallet-selector/wallet-utils": "8.9.13", + "@wagmi/core": "2.11.6", + "bs58": "5.0.0", + "viem": "2.16.2" + }, + "peerDependencies": { + "near-api-js": "^1.0.0 || ^2.0.0" + } + }, + "node_modules/@near-wallet-selector/ethereum-wallets/node_modules/@near-wallet-selector/core": { + "version": "8.9.13", + "resolved": "https://registry.npmjs.org/@near-wallet-selector/core/-/core-8.9.13.tgz", + "integrity": "sha512-ufI2yctF2N7+D6s5QaSs9Bqorh8xPH48wuBEvTbArJ6z9qvSCNsK9ZO5Mt5BFfO64ovmcflOOUBtZ4/BcNO6aQ==", + "dependencies": { + "borsh": "0.7.0", + "events": "3.3.0", + "js-sha256": "0.9.0", + "rxjs": "7.8.1" + }, + "peerDependencies": { + "@near-js/providers": "latest", + "near-api-js": "4.0.3" + } + }, + "node_modules/@near-wallet-selector/ethereum-wallets/node_modules/@near-wallet-selector/wallet-utils": { + "version": "8.9.13", + "resolved": "https://registry.npmjs.org/@near-wallet-selector/wallet-utils/-/wallet-utils-8.9.13.tgz", + "integrity": "sha512-+aoKVGW+FULRO7pN1jb232jbt3PB8RBY5K8Xj/oMxutjlXrE50QyOr1GfTEtaylCp86iMTGEexdSqtIFbQ4v/A==", + "dependencies": { + "@near-wallet-selector/core": "8.9.13" + }, + "peerDependencies": { + "near-api-js": "4.0.3" + } + }, + "node_modules/@near-wallet-selector/ethereum-wallets/node_modules/@wagmi/core": { + "version": "2.11.6", + "resolved": "https://registry.npmjs.org/@wagmi/core/-/core-2.11.6.tgz", + "integrity": "sha512-Ohk7Bh+Q8kjzxEHImIq98CnPduz8n1a5bdwJi6F7zU3h62crhlVq7fZBYoBhoDgmX0ROVOMr8WW3XU3XhRwUOw==", + "dependencies": { + "eventemitter3": "5.0.1", + "mipd": "0.0.5", + "zustand": "4.4.1" + }, + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "@tanstack/query-core": ">=5.0.0", + "typescript": ">=5.0.4", + "viem": "2.x" + }, + "peerDependenciesMeta": { + "@tanstack/query-core": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/@near-wallet-selector/ethereum-wallets/node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==" + }, "node_modules/@near-wallet-selector/here-wallet": { "version": "8.9.12", "resolved": "https://registry.npmjs.org/@near-wallet-selector/here-wallet/-/here-wallet-8.9.12.tgz", @@ -7250,24 +7712,238 @@ "dev": true, "license": "MIT" }, - "node_modules/@sigstore/bundle": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@sigstore/bundle/-/bundle-1.1.0.tgz", - "integrity": "sha512-PFutXEy0SmQxYI4texPw3dd2KewuNqv7OuK1ZFtY2fM754yhvG2KdgwIhRnoEE2uHdtdGNQ8s0lb94dW9sELog==", - "dev": true, + "node_modules/@safe-global/safe-apps-provider": { + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/@safe-global/safe-apps-provider/-/safe-apps-provider-0.18.1.tgz", + "integrity": "sha512-V4a05A3EgJcriqtDoJklDz1BOinWhC6P0hjUSxshA4KOZM7rGPCTto/usXs09zr1vvL28evl/NldSTv97j2bmg==", "dependencies": { - "@sigstore/protobuf-specs": "^0.2.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "@safe-global/safe-apps-sdk": "^8.1.0", + "events": "^3.3.0" } }, - "node_modules/@sigstore/core": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@sigstore/core/-/core-1.1.0.tgz", - "integrity": "sha512-JzBqdVIyqm2FRQCulY6nbQzMpJJpSiJ8XXWMhtOX9eKgaXXpfNOF53lzQEjIydlStnd/eFtuC1dW4VYdD93oRg==", - "dev": true, - "engines": { + "node_modules/@safe-global/safe-apps-sdk": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@safe-global/safe-apps-sdk/-/safe-apps-sdk-8.1.0.tgz", + "integrity": "sha512-XJbEPuaVc7b9n23MqlF6c+ToYIS3f7P2Sel8f3cSBQ9WORE4xrSuvhMpK9fDSFqJ7by/brc+rmJR/5HViRr0/w==", + "dependencies": { + "@safe-global/safe-gateway-typescript-sdk": "^3.5.3", + "viem": "^1.0.0" + } + }, + "node_modules/@safe-global/safe-apps-sdk/node_modules/@noble/hashes": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", + "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@safe-global/safe-apps-sdk/node_modules/@scure/bip32": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.2.tgz", + "integrity": "sha512-N1ZhksgwD3OBlwTv3R6KFEcPojl/W4ElJOeCZdi+vuI5QmTFwLq3OFf2zd2ROpKvxFdgZ6hUpb0dx9bVNEwYCA==", + "dependencies": { + "@noble/curves": "~1.2.0", + "@noble/hashes": "~1.3.2", + "@scure/base": "~1.1.2" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@safe-global/safe-apps-sdk/node_modules/@scure/bip39": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.1.tgz", + "integrity": "sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==", + "dependencies": { + "@noble/hashes": "~1.3.0", + "@scure/base": "~1.1.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@safe-global/safe-apps-sdk/node_modules/abitype": { + "version": "0.9.8", + "resolved": "https://registry.npmjs.org/abitype/-/abitype-0.9.8.tgz", + "integrity": "sha512-puLifILdm+8sjyss4S+fsUN09obiT1g2YW6CtcQF+QDzxR0euzgEB29MZujC6zMk2a6SVmtttq1fc6+YFA7WYQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wagmi-dev" + } + ], + "peerDependencies": { + "typescript": ">=5.0.4", + "zod": "^3 >=3.19.1" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, + "node_modules/@safe-global/safe-apps-sdk/node_modules/isows": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.3.tgz", + "integrity": "sha512-2cKei4vlmg2cxEjm3wVSqn8pcoRF/LX/wpifuuNquFO4SQmPwarClT+SUCA2lt+l581tTeZIPIZuIDo2jWN1fg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wagmi-dev" + } + ], + "peerDependencies": { + "ws": "*" + } + }, + "node_modules/@safe-global/safe-apps-sdk/node_modules/viem": { + "version": "1.21.4", + "resolved": "https://registry.npmjs.org/viem/-/viem-1.21.4.tgz", + "integrity": "sha512-BNVYdSaUjeS2zKQgPs+49e5JKocfo60Ib2yiXOWBT6LuVxY1I/6fFX3waEtpXvL1Xn4qu+BVitVtMh9lyThyhQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "dependencies": { + "@adraffy/ens-normalize": "1.10.0", + "@noble/curves": "1.2.0", + "@noble/hashes": "1.3.2", + "@scure/bip32": "1.3.2", + "@scure/bip39": "1.2.1", + "abitype": "0.9.8", + "isows": "1.0.3", + "ws": "8.13.0" + }, + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@safe-global/safe-apps-sdk/node_modules/ws": { + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/@safe-global/safe-gateway-typescript-sdk": { + "version": "3.22.2", + "resolved": "https://registry.npmjs.org/@safe-global/safe-gateway-typescript-sdk/-/safe-gateway-typescript-sdk-3.22.2.tgz", + "integrity": "sha512-Y0yAxRaB98LFp2Dm+ACZqBSdAmI3FlpH/LjxOZ94g/ouuDJecSq0iR26XZ5QDuEL8Rf+L4jBJaoDC08CD0KkJw==", + "engines": { + "node": ">=16" + } + }, + "node_modules/@scure/base": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", + "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip32": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.4.0.tgz", + "integrity": "sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg==", + "dependencies": { + "@noble/curves": "~1.4.0", + "@noble/hashes": "~1.4.0", + "@scure/base": "~1.1.6" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip32/node_modules/@noble/curves": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", + "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", + "dependencies": { + "@noble/hashes": "1.4.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip32/node_modules/@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip39": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.3.0.tgz", + "integrity": "sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ==", + "dependencies": { + "@noble/hashes": "~1.4.0", + "@scure/base": "~1.1.6" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip39/node_modules/@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@sigstore/bundle": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@sigstore/bundle/-/bundle-1.1.0.tgz", + "integrity": "sha512-PFutXEy0SmQxYI4texPw3dd2KewuNqv7OuK1ZFtY2fM754yhvG2KdgwIhRnoEE2uHdtdGNQ8s0lb94dW9sELog==", + "dev": true, + "dependencies": { + "@sigstore/protobuf-specs": "^0.2.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@sigstore/core": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@sigstore/core/-/core-1.1.0.tgz", + "integrity": "sha512-JzBqdVIyqm2FRQCulY6nbQzMpJJpSiJ8XXWMhtOX9eKgaXXpfNOF53lzQEjIydlStnd/eFtuC1dW4VYdD93oRg==", + "dev": true, + "engines": { "node": "^16.14.0 || >=18.0.0" } }, @@ -7575,6 +8251,11 @@ "@sinonjs/commons": "^3.0.0" } }, + "node_modules/@socket.io/component-emitter": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.2.tgz", + "integrity": "sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==" + }, "node_modules/@stablelib/aead": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@stablelib/aead/-/aead-1.0.1.tgz", @@ -7721,6 +8402,30 @@ "@stablelib/wipe": "^1.0.1" } }, + "node_modules/@tanstack/query-core": { + "version": "5.24.8", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.24.8.tgz", + "integrity": "sha512-yH7KnfXMf10p1U5GffTQzFi2Miiw6WJZImGYGdV7eqa5ZbKO8qVx9lOA9SfhIaJXomrMp1Yz5w/CBhVM3yWeTA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/react-query": { + "version": "5.24.8", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.24.8.tgz", + "integrity": "sha512-jB3JS9SzDmBySk9VVOTPt/0ixWEb3K3dy9IExlVl/1NouY3N7HzAqG/1d4m6E9eFfKJoLvA/hBksaLu0lw627A==", + "dependencies": { + "@tanstack/query-core": "5.24.8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^18.0.0" + } + }, "node_modules/@testing-library/react": { "version": "13.4.0", "dev": true, @@ -7969,6 +8674,19 @@ "@types/node": "*" } }, + "node_modules/@types/debug": { + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", + "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/dom-screen-wake-lock": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@types/dom-screen-wake-lock/-/dom-screen-wake-lock-1.0.3.tgz", + "integrity": "sha512-3Iten7X3Zgwvk6kh6/NRdwN7WbZ760YgFCsF5AxDifltUQzW1RaW+WRmcVtgwFzLjaNu64H+0MPJ13yRa8g3Dw==" + }, "node_modules/@types/glob": { "version": "8.1.0", "license": "MIT", @@ -8186,6 +8904,11 @@ "integrity": "sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==", "dev": true }, + "node_modules/@types/ms": { + "version": "0.7.34", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.34.tgz", + "integrity": "sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==" + }, "node_modules/@types/node": { "version": "18.11.9", "license": "MIT" @@ -8237,6 +8960,14 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/secp256k1": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.6.tgz", + "integrity": "sha512-hHxJU6PAEUn0TP4S/ZOzuTUvJWuZ6eIKeNKb5RBpODvSl6hp1Wrw4s7ATY50rklRCScUDpHzVA/DQdSjJ3UoYQ==", + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/stack-utils": { "version": "2.0.3", "dev": true, @@ -8444,6 +9175,64 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@wagmi/connectors": { + "version": "5.0.10", + "resolved": "https://registry.npmjs.org/@wagmi/connectors/-/connectors-5.0.10.tgz", + "integrity": "sha512-rTCC+gVHw0Z/n2wo0Bea+uMzPiH2FVpbShMPOdhJ0qTItf8JPkUIxFrjg01x/OikHTgc0bu3IP7v+7iQzyUuEQ==", + "dependencies": { + "@coinbase/wallet-sdk": "4.0.3", + "@metamask/sdk": "0.20.5", + "@safe-global/safe-apps-provider": "0.18.1", + "@safe-global/safe-apps-sdk": "8.1.0", + "@walletconnect/ethereum-provider": "2.13.0", + "@walletconnect/modal": "2.6.2", + "cbw-sdk": "npm:@coinbase/wallet-sdk@3.9.3" + }, + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "@wagmi/core": "2.10.5", + "typescript": ">=5.0.4", + "viem": "2.x" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@wagmi/core": { + "version": "2.10.5", + "resolved": "https://registry.npmjs.org/@wagmi/core/-/core-2.10.5.tgz", + "integrity": "sha512-BvqFEdJTTepOKtPnacq7oE8gUZ4llzdxmPSBEYePArd1dvP/e5gwwfS5/8VBcvDvGcoX4N0lw5A4NNOJKL0Q+A==", + "dependencies": { + "eventemitter3": "5.0.1", + "mipd": "0.0.5", + "zustand": "4.4.1" + }, + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "@tanstack/query-core": ">=5.0.0", + "typescript": ">=5.0.4", + "viem": "2.x" + }, + "peerDependenciesMeta": { + "@tanstack/query-core": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/@wagmi/core/node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==" + }, "node_modules/@walletconnect/core": { "version": "2.13.0", "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.13.0.tgz", @@ -8468,24 +9257,6 @@ "uint8arrays": "3.1.0" } }, - "node_modules/@walletconnect/core/node_modules/@walletconnect/keyvaluestorage": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.1.1.tgz", - "integrity": "sha512-V7ZQq2+mSxAq7MrRqDxanTzu2RcElfK1PfNYiaVnJgJ7Q7G7hTVwF8voIBx92qsRyGHZihrwNPHuZd1aKkd0rA==", - "dependencies": { - "@walletconnect/safe-json": "^1.0.1", - "idb-keyval": "^6.2.1", - "unstorage": "^1.9.0" - }, - "peerDependencies": { - "@react-native-async-storage/async-storage": "1.x" - }, - "peerDependenciesMeta": { - "@react-native-async-storage/async-storage": { - "optional": true - } - } - }, "node_modules/@walletconnect/environment": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@walletconnect/environment/-/environment-1.0.1.tgz", @@ -8499,6 +9270,23 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, + "node_modules/@walletconnect/ethereum-provider": { + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/@walletconnect/ethereum-provider/-/ethereum-provider-2.13.0.tgz", + "integrity": "sha512-dnpW8mmLpWl1AZUYGYZpaAfGw1HFkL0WSlhk5xekx3IJJKn4pLacX2QeIOo0iNkzNQxZfux1AK4Grl1DvtzZEA==", + "dependencies": { + "@walletconnect/jsonrpc-http-connection": "1.0.8", + "@walletconnect/jsonrpc-provider": "1.0.14", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/modal": "2.6.2", + "@walletconnect/sign-client": "2.13.0", + "@walletconnect/types": "2.13.0", + "@walletconnect/universal-provider": "2.13.0", + "@walletconnect/utils": "2.13.0", + "events": "3.3.0" + } + }, "node_modules/@walletconnect/events": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@walletconnect/events/-/events-1.0.1.tgz", @@ -8523,6 +9311,25 @@ "events": "^3.3.0" } }, + "node_modules/@walletconnect/jsonrpc-http-connection": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-http-connection/-/jsonrpc-http-connection-1.0.8.tgz", + "integrity": "sha512-+B7cRuaxijLeFDJUq5hAzNyef3e3tBDIxyaCNmFtjwnod5AGis3RToNqzFU33vpVcxFhofkpE7Cx+5MYejbMGw==", + "dependencies": { + "@walletconnect/jsonrpc-utils": "^1.0.6", + "@walletconnect/safe-json": "^1.0.1", + "cross-fetch": "^3.1.4", + "events": "^3.3.0" + } + }, + "node_modules/@walletconnect/jsonrpc-http-connection/node_modules/cross-fetch": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.8.tgz", + "integrity": "sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==", + "dependencies": { + "node-fetch": "^2.6.12" + } + }, "node_modules/@walletconnect/jsonrpc-provider": { "version": "1.0.14", "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.14.tgz", @@ -8588,6 +9395,24 @@ } } }, + "node_modules/@walletconnect/keyvaluestorage": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.1.1.tgz", + "integrity": "sha512-V7ZQq2+mSxAq7MrRqDxanTzu2RcElfK1PfNYiaVnJgJ7Q7G7hTVwF8voIBx92qsRyGHZihrwNPHuZd1aKkd0rA==", + "dependencies": { + "@walletconnect/safe-json": "^1.0.1", + "idb-keyval": "^6.2.1", + "unstorage": "^1.9.0" + }, + "peerDependencies": { + "@react-native-async-storage/async-storage": "1.x" + }, + "peerDependenciesMeta": { + "@react-native-async-storage/async-storage": { + "optional": true + } + } + }, "node_modules/@walletconnect/logger": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/@walletconnect/logger/-/logger-2.1.2.tgz", @@ -8703,72 +9528,461 @@ "events": "3.3.0" } }, - "node_modules/@walletconnect/types/node_modules/@walletconnect/keyvaluestorage": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.1.1.tgz", - "integrity": "sha512-V7ZQq2+mSxAq7MrRqDxanTzu2RcElfK1PfNYiaVnJgJ7Q7G7hTVwF8voIBx92qsRyGHZihrwNPHuZd1aKkd0rA==", + "node_modules/@walletconnect/universal-provider": { + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/@walletconnect/universal-provider/-/universal-provider-2.13.0.tgz", + "integrity": "sha512-B5QvO8pnk5Bqn4aIt0OukGEQn2Auk9VbHfhQb9cGwgmSCd1GlprX/Qblu4gyT5+TjHMb1Gz5UssUaZWTWbDhBg==", "dependencies": { - "@walletconnect/safe-json": "^1.0.1", - "idb-keyval": "^6.2.1", - "unstorage": "^1.9.0" + "@walletconnect/jsonrpc-http-connection": "1.0.8", + "@walletconnect/jsonrpc-provider": "1.0.14", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/logger": "2.1.2", + "@walletconnect/sign-client": "2.13.0", + "@walletconnect/types": "2.13.0", + "@walletconnect/utils": "2.13.0", + "events": "3.3.0" + } + }, + "node_modules/@walletconnect/utils": { + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.13.0.tgz", + "integrity": "sha512-q1eDCsRHj5iLe7fF8RroGoPZpdo2CYMZzQSrw1iqL+2+GOeqapxxuJ1vaJkmDUkwgklfB22ufqG6KQnz78sD4w==", + "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/relay-api": "1.0.10", + "@walletconnect/safe-json": "1.0.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.13.0", + "@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" + } + }, + "node_modules/@walletconnect/window-getters": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@walletconnect/window-getters/-/window-getters-1.0.1.tgz", + "integrity": "sha512-vHp+HqzGxORPAN8gY03qnbTMnhqIwjeRJNOMOAzePRg4xVEEE2WvYsI9G2NMjOknA8hnuYbU3/hwLcKbjhc8+Q==", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/window-getters/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@walletconnect/window-metadata": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@walletconnect/window-metadata/-/window-metadata-1.0.1.tgz", + "integrity": "sha512-9koTqyGrM2cqFRW517BPY/iEtUDx2r1+Pwwu5m7sJ7ka79wi3EyqhqcICk/yDmv6jAS1rjKgTKXlEhanYjijcA==", + "dependencies": { + "@walletconnect/window-getters": "^1.0.1", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/window-metadata/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@web3modal/common": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@web3modal/common/-/common-5.0.6.tgz", + "integrity": "sha512-VRLjA8FvHsnA3s0B+7ZbiXE5scQAZE7100RbbrjTjyJbseiU/W9gGoGcKW2NyBmfBrGQY3SXs62CCqcVQNMT4A==", + "dependencies": { + "bignumber.js": "9.1.2", + "dayjs": "1.11.10" + } + }, + "node_modules/@web3modal/core": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@web3modal/core/-/core-5.0.6.tgz", + "integrity": "sha512-C3g2V/fYfV34mmn/h7YFsi8VSFXnaj508pHps0H3t/9UrKsEdvbl91rvxbWg7tulh4ZtMK4SOJVmuoEgbzGcaw==", + "dependencies": { + "@web3modal/common": "5.0.6", + "@web3modal/wallet": "5.0.6", + "valtio": "1.11.2" + } + }, + "node_modules/@web3modal/polyfills": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@web3modal/polyfills/-/polyfills-5.0.6.tgz", + "integrity": "sha512-nisOsY9s0eU5ljYw8xIhrSDnMJAncB2bUIRwXYQGrI5Ly+jVd3XeINDtsOAsFVRz08+IC+H1eFt8DZEV1rKpFQ==", + "dependencies": { + "buffer": "6.0.3" + } + }, + "node_modules/@web3modal/polyfills/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/@web3modal/scaffold": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@web3modal/scaffold/-/scaffold-5.0.6.tgz", + "integrity": "sha512-KqcFJH5V8pMh4OHLV7dsTZTCNXUjsB7EKPEPpyq9bru60fiCz5PniS6nWRrZEmS7+BMNDr3cv/SVvg3+Rrvl+g==", + "dependencies": { + "@web3modal/common": "5.0.6", + "@web3modal/core": "5.0.6", + "@web3modal/scaffold-ui": "5.0.6", + "@web3modal/scaffold-utils": "5.0.6", + "@web3modal/siwe": "5.0.6", + "@web3modal/ui": "5.0.6", + "@web3modal/wallet": "5.0.6", + "lit": "3.1.0" + } + }, + "node_modules/@web3modal/scaffold-react": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@web3modal/scaffold-react/-/scaffold-react-5.0.6.tgz", + "integrity": "sha512-6hcJSOQrBTe9Cgz7GEldcggWUKoWpLHf6bKieW0xAcfRWZUEU3jPJz79Y/zj7jNf+Z8lvARPP8qPmyB8uI0upg==", + "dependencies": { + "@web3modal/scaffold": "5.0.6" }, "peerDependencies": { - "@react-native-async-storage/async-storage": "1.x" + "react": ">=17", + "react-dom": ">=17" }, "peerDependenciesMeta": { - "@react-native-async-storage/async-storage": { + "react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, + "node_modules/@web3modal/scaffold-ui": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@web3modal/scaffold-ui/-/scaffold-ui-5.0.6.tgz", + "integrity": "sha512-U5NK+CML+e88cLcUUPBydI9o7kPxbhHL+JNPwxXWyCHfGFPuSYesuxKQKTp4ZL5wZ6FUI1RbgwDT9CX65+D4Qw==", + "dependencies": { + "@web3modal/common": "5.0.6", + "@web3modal/core": "5.0.6", + "@web3modal/scaffold-utils": "5.0.6", + "@web3modal/siwe": "5.0.6", + "@web3modal/ui": "5.0.6", + "@web3modal/wallet": "5.0.6", + "lit": "3.1.0" + } + }, + "node_modules/@web3modal/scaffold-ui/node_modules/@lit/reactive-element": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.0.4.tgz", + "integrity": "sha512-GFn91inaUa2oHLak8awSIigYz0cU0Payr1rcFsrkf5OJ5eSPxElyZfKh0f2p9FsTiZWXQdWGJeXZICEfXXYSXQ==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.2.0" + } + }, + "node_modules/@web3modal/scaffold-ui/node_modules/lit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.0.tgz", + "integrity": "sha512-rzo/hmUqX8zmOdamDAeydfjsGXbbdtAFqMhmocnh2j9aDYqbu0fjXygjCa0T99Od9VQ/2itwaGrjZz/ZELVl7w==", + "dependencies": { + "@lit/reactive-element": "^2.0.0", + "lit-element": "^4.0.0", + "lit-html": "^3.1.0" + } + }, + "node_modules/@web3modal/scaffold-ui/node_modules/lit-element": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.1.1.tgz", + "integrity": "sha512-HO9Tkkh34QkTeUmEdNYhMT8hzLid7YlMlATSi1q4q17HE5d9mrrEHJ/o8O2D0cMi182zK1F3v7x0PWFjrhXFew==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.2.0", + "@lit/reactive-element": "^2.0.4", + "lit-html": "^3.2.0" + } + }, + "node_modules/@web3modal/scaffold-ui/node_modules/lit-html": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.2.1.tgz", + "integrity": "sha512-qI/3lziaPMSKsrwlxH/xMgikhQ0EGOX2ICU73Bi/YHFvz2j/yMCIrw4+puF2IpQ4+upd3EWbvnHM9+PnJn48YA==", + "dependencies": { + "@types/trusted-types": "^2.0.2" + } + }, + "node_modules/@web3modal/scaffold-utils": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@web3modal/scaffold-utils/-/scaffold-utils-5.0.6.tgz", + "integrity": "sha512-/yNwlo/SlvY0Vi3kr/qoUCdhz978A7XlUqdcnk4mdEBFs0X0BzJbdfQ75xuKHXD+1ZU38HTV3lRH/XAbxbT5IA==", + "dependencies": { + "@web3modal/core": "5.0.6", + "@web3modal/polyfills": "5.0.6", + "valtio": "1.11.2" + } + }, + "node_modules/@web3modal/scaffold-vue": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@web3modal/scaffold-vue/-/scaffold-vue-5.0.6.tgz", + "integrity": "sha512-uannt8oVKjBFDXSY4wcAgK7oRyMOU/BLPA9duxYbVXcCTYeJSfv9v6/70Xb/CA0oIIW4MH2neqbbwzYGSTx1Eg==", + "dependencies": { + "@web3modal/scaffold": "5.0.6" + }, + "peerDependencies": { + "vue": ">=3" + }, + "peerDependenciesMeta": { + "vue": { "optional": true } } }, - "node_modules/@walletconnect/utils": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.13.0.tgz", - "integrity": "sha512-q1eDCsRHj5iLe7fF8RroGoPZpdo2CYMZzQSrw1iqL+2+GOeqapxxuJ1vaJkmDUkwgklfB22ufqG6KQnz78sD4w==", + "node_modules/@web3modal/scaffold/node_modules/@lit/reactive-element": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.0.4.tgz", + "integrity": "sha512-GFn91inaUa2oHLak8awSIigYz0cU0Payr1rcFsrkf5OJ5eSPxElyZfKh0f2p9FsTiZWXQdWGJeXZICEfXXYSXQ==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.2.0" + } + }, + "node_modules/@web3modal/scaffold/node_modules/lit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.0.tgz", + "integrity": "sha512-rzo/hmUqX8zmOdamDAeydfjsGXbbdtAFqMhmocnh2j9aDYqbu0fjXygjCa0T99Od9VQ/2itwaGrjZz/ZELVl7w==", + "dependencies": { + "@lit/reactive-element": "^2.0.0", + "lit-element": "^4.0.0", + "lit-html": "^3.1.0" + } + }, + "node_modules/@web3modal/scaffold/node_modules/lit-element": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.1.1.tgz", + "integrity": "sha512-HO9Tkkh34QkTeUmEdNYhMT8hzLid7YlMlATSi1q4q17HE5d9mrrEHJ/o8O2D0cMi182zK1F3v7x0PWFjrhXFew==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.2.0", + "@lit/reactive-element": "^2.0.4", + "lit-html": "^3.2.0" + } + }, + "node_modules/@web3modal/scaffold/node_modules/lit-html": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.2.1.tgz", + "integrity": "sha512-qI/3lziaPMSKsrwlxH/xMgikhQ0EGOX2ICU73Bi/YHFvz2j/yMCIrw4+puF2IpQ4+upd3EWbvnHM9+PnJn48YA==", + "dependencies": { + "@types/trusted-types": "^2.0.2" + } + }, + "node_modules/@web3modal/siwe": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@web3modal/siwe/-/siwe-5.0.6.tgz", + "integrity": "sha512-2Z4Ho4aysguZIUSgiA+MkQiK4fL2QwTI2m3WI/BmbwNf7BpMWGKawO4dhzNtpLGUU2BeEPXYfLG9XhxOFllRUQ==", + "dependencies": { + "@walletconnect/utils": "2.12.0", + "@web3modal/core": "5.0.6", + "@web3modal/scaffold-utils": "5.0.6", + "lit": "3.1.0", + "valtio": "1.11.2" + } + }, + "node_modules/@web3modal/siwe/node_modules/@lit/reactive-element": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.0.4.tgz", + "integrity": "sha512-GFn91inaUa2oHLak8awSIigYz0cU0Payr1rcFsrkf5OJ5eSPxElyZfKh0f2p9FsTiZWXQdWGJeXZICEfXXYSXQ==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.2.0" + } + }, + "node_modules/@web3modal/siwe/node_modules/@walletconnect/heartbeat": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@walletconnect/heartbeat/-/heartbeat-1.2.1.tgz", + "integrity": "sha512-yVzws616xsDLJxuG/28FqtZ5rzrTA4gUjdEMTbWB5Y8V1XHRmqq4efAxCw5ie7WjbXFSUyBHaWlMR+2/CpQC5Q==", + "dependencies": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/time": "^1.0.2", + "tslib": "1.14.1" + } + }, + "node_modules/@web3modal/siwe/node_modules/@walletconnect/jsonrpc-types": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.3.tgz", + "integrity": "sha512-iIQ8hboBl3o5ufmJ8cuduGad0CQm3ZlsHtujv9Eu16xq89q+BG7Nh5VLxxUgmtpnrePgFkTwXirCTkwJH1v+Yw==", + "dependencies": { + "keyvaluestorage-interface": "^1.0.0", + "tslib": "1.14.1" + } + }, + "node_modules/@web3modal/siwe/node_modules/@walletconnect/types": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.12.0.tgz", + "integrity": "sha512-uhB3waGmujQVJcPgJvGOpB8RalgYSBT+HpmVbfl4Qe0xJyqpRUo4bPjQa0UYkrHaW20xIw94OuP4+FMLYdeemg==", + "dependencies": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-types": "1.0.3", + "@walletconnect/keyvaluestorage": "^1.1.1", + "@walletconnect/logger": "^2.0.1", + "events": "^3.3.0" + } + }, + "node_modules/@web3modal/siwe/node_modules/@walletconnect/utils": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.12.0.tgz", + "integrity": "sha512-GIpfHUe1Bjp1Tjda0SkJEizKOT2biuv7VPFnKsOLT1T+8QxEP9NruC+K2UUEvijS1Qr/LKH9P5004RYNgrch+w==", "dependencies": { "@stablelib/chacha20poly1305": "1.0.1", "@stablelib/hkdf": "1.0.1", - "@stablelib/random": "1.0.2", + "@stablelib/random": "^1.0.2", "@stablelib/sha256": "1.0.1", - "@stablelib/x25519": "1.0.3", - "@walletconnect/relay-api": "1.0.10", - "@walletconnect/safe-json": "1.0.2", - "@walletconnect/time": "1.0.2", - "@walletconnect/types": "2.13.0", - "@walletconnect/window-getters": "1.0.1", - "@walletconnect/window-metadata": "1.0.1", + "@stablelib/x25519": "^1.0.3", + "@walletconnect/relay-api": "^1.0.9", + "@walletconnect/safe-json": "^1.0.2", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.12.0", + "@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" + "uint8arrays": "^3.1.0" } }, - "node_modules/@walletconnect/window-getters": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@walletconnect/window-getters/-/window-getters-1.0.1.tgz", - "integrity": "sha512-vHp+HqzGxORPAN8gY03qnbTMnhqIwjeRJNOMOAzePRg4xVEEE2WvYsI9G2NMjOknA8hnuYbU3/hwLcKbjhc8+Q==", + "node_modules/@web3modal/siwe/node_modules/lit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.0.tgz", + "integrity": "sha512-rzo/hmUqX8zmOdamDAeydfjsGXbbdtAFqMhmocnh2j9aDYqbu0fjXygjCa0T99Od9VQ/2itwaGrjZz/ZELVl7w==", "dependencies": { - "tslib": "1.14.1" + "@lit/reactive-element": "^2.0.0", + "lit-element": "^4.0.0", + "lit-html": "^3.1.0" } }, - "node_modules/@walletconnect/window-getters/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + "node_modules/@web3modal/siwe/node_modules/lit-element": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.1.1.tgz", + "integrity": "sha512-HO9Tkkh34QkTeUmEdNYhMT8hzLid7YlMlATSi1q4q17HE5d9mrrEHJ/o8O2D0cMi182zK1F3v7x0PWFjrhXFew==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.2.0", + "@lit/reactive-element": "^2.0.4", + "lit-html": "^3.2.0" + } }, - "node_modules/@walletconnect/window-metadata": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@walletconnect/window-metadata/-/window-metadata-1.0.1.tgz", - "integrity": "sha512-9koTqyGrM2cqFRW517BPY/iEtUDx2r1+Pwwu5m7sJ7ka79wi3EyqhqcICk/yDmv6jAS1rjKgTKXlEhanYjijcA==", + "node_modules/@web3modal/siwe/node_modules/lit-html": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.2.1.tgz", + "integrity": "sha512-qI/3lziaPMSKsrwlxH/xMgikhQ0EGOX2ICU73Bi/YHFvz2j/yMCIrw4+puF2IpQ4+upd3EWbvnHM9+PnJn48YA==", "dependencies": { - "@walletconnect/window-getters": "^1.0.1", - "tslib": "1.14.1" + "@types/trusted-types": "^2.0.2" } }, - "node_modules/@walletconnect/window-metadata/node_modules/tslib": { + "node_modules/@web3modal/siwe/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, + "node_modules/@web3modal/ui": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@web3modal/ui/-/ui-5.0.6.tgz", + "integrity": "sha512-Rywu2V2p8RFo3mLLcnaqyJMVPH176qii4IxIs+wuNh49KNqWvCaJ0gp/k54X3xt+yyi3VH3pnsS9EG7wPGm+7Q==", + "dependencies": { + "lit": "3.1.0", + "qrcode": "1.5.3" + } + }, + "node_modules/@web3modal/ui/node_modules/@lit/reactive-element": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.0.4.tgz", + "integrity": "sha512-GFn91inaUa2oHLak8awSIigYz0cU0Payr1rcFsrkf5OJ5eSPxElyZfKh0f2p9FsTiZWXQdWGJeXZICEfXXYSXQ==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.2.0" + } + }, + "node_modules/@web3modal/ui/node_modules/lit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.0.tgz", + "integrity": "sha512-rzo/hmUqX8zmOdamDAeydfjsGXbbdtAFqMhmocnh2j9aDYqbu0fjXygjCa0T99Od9VQ/2itwaGrjZz/ZELVl7w==", + "dependencies": { + "@lit/reactive-element": "^2.0.0", + "lit-element": "^4.0.0", + "lit-html": "^3.1.0" + } + }, + "node_modules/@web3modal/ui/node_modules/lit-element": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.1.1.tgz", + "integrity": "sha512-HO9Tkkh34QkTeUmEdNYhMT8hzLid7YlMlATSi1q4q17HE5d9mrrEHJ/o8O2D0cMi182zK1F3v7x0PWFjrhXFew==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.2.0", + "@lit/reactive-element": "^2.0.4", + "lit-html": "^3.2.0" + } + }, + "node_modules/@web3modal/ui/node_modules/lit-html": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.2.1.tgz", + "integrity": "sha512-qI/3lziaPMSKsrwlxH/xMgikhQ0EGOX2ICU73Bi/YHFvz2j/yMCIrw4+puF2IpQ4+upd3EWbvnHM9+PnJn48YA==", + "dependencies": { + "@types/trusted-types": "^2.0.2" + } + }, + "node_modules/@web3modal/wagmi": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@web3modal/wagmi/-/wagmi-5.0.6.tgz", + "integrity": "sha512-ZS898MQN/w4nWe9q7F65vMO7TbJAJA3/Bz9NyLkDEJUvzdG1JWRggs5g8U0ZjlpfTbKKV2masgh9GnOrzjI+GQ==", + "dependencies": { + "@walletconnect/ethereum-provider": "2.13.0", + "@web3modal/polyfills": "5.0.6", + "@web3modal/scaffold": "5.0.6", + "@web3modal/scaffold-react": "5.0.6", + "@web3modal/scaffold-utils": "5.0.6", + "@web3modal/scaffold-vue": "5.0.6", + "@web3modal/siwe": "5.0.6" + }, + "peerDependencies": { + "@wagmi/connectors": ">=4", + "@wagmi/core": ">=2.0.0", + "react": ">=17", + "react-dom": ">=17", + "viem": ">=2.0.0", + "vue": ">=3" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-dom": { + "optional": true + }, + "vue": { + "optional": true + } + } + }, + "node_modules/@web3modal/wallet": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@web3modal/wallet/-/wallet-5.0.6.tgz", + "integrity": "sha512-kJbp8cYHgvHc2t/lRESFrVyE8nC5jFwv1X7xpkDSrRJP+461D9UsKFWiQHW1MzDy30+D7HOaMQso/EPt8H1p0A==", + "dependencies": { + "@walletconnect/logger": "2.1.2", + "@web3modal/polyfills": "5.0.6", + "zod": "3.22.4" + } + }, "node_modules/@whatwg-node/events": { "version": "0.0.2", "dev": true, @@ -8872,6 +10086,26 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, + "node_modules/abitype": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.0.4.tgz", + "integrity": "sha512-UivtYZOGJGE8rsrM/N5vdRkUpqEZVmuTumfTuolm7m/6O09wprd958rx8kUBwVAAAhQDveGAgD0GJdBuR8s6tw==", + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "typescript": ">=5.0.4", + "zod": "^3 >=3.22.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, "node_modules/abort-controller": { "version": "3.0.0", "license": "MIT", @@ -9282,6 +10516,14 @@ "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==", "dev": true }, + "node_modules/async-mutex": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.2.6.tgz", + "integrity": "sha512-Hs4R+4SPgamu6rSGW8C7cV9gaWUKEHykfzCCvIRuaVv636Ju10ZdeUbvb4TBEW0INuq2DHZqXbK4Nd3yG4RaRw==", + "dependencies": { + "tslib": "^2.0.0" + } + }, "node_modules/asynckit": { "version": "0.4.0", "license": "MIT" @@ -9307,7 +10549,6 @@ }, "node_modules/available-typed-arrays": { "version": "1.0.7", - "dev": true, "license": "MIT", "dependencies": { "possible-typed-array-names": "^1.0.0" @@ -9642,6 +10883,11 @@ "base-x": "^3.0.2" } }, + "node_modules/bowser": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", + "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==" + }, "node_modules/brace-expansion": { "version": "1.1.11", "dev": true, @@ -9755,6 +11001,18 @@ "dev": true, "license": "MIT" }, + "node_modules/bufferutil": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.8.tgz", + "integrity": "sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==", + "hasInstallScript": true, + "dependencies": { + "node-gyp-build": "^4.3.0" + }, + "engines": { + "node": ">=6.14.2" + } + }, "node_modules/builtins": { "version": "5.1.0", "dev": true, @@ -9918,7 +11176,6 @@ }, "node_modules/call-bind": { "version": "1.0.7", - "dev": true, "license": "MIT", "dependencies": { "es-define-property": "^1.0.0", @@ -10014,6 +11271,51 @@ "node": ">= 10" } }, + "node_modules/cbw-sdk": { + "name": "@coinbase/wallet-sdk", + "version": "3.9.3", + "resolved": "https://registry.npmjs.org/@coinbase/wallet-sdk/-/wallet-sdk-3.9.3.tgz", + "integrity": "sha512-N/A2DRIf0Y3PHc1XAMvbBUu4zisna6qAdqABMZwBMNEfWrXpAwx16pZGkYCLGE+Rvv1edbcB2LYDRnACNcmCiw==", + "dependencies": { + "bn.js": "^5.2.1", + "buffer": "^6.0.3", + "clsx": "^1.2.1", + "eth-block-tracker": "^7.1.0", + "eth-json-rpc-filters": "^6.0.0", + "eventemitter3": "^5.0.1", + "keccak": "^3.0.3", + "preact": "^10.16.0", + "sha.js": "^2.4.11" + } + }, + "node_modules/cbw-sdk/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/cbw-sdk/node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==" + }, "node_modules/chalk": { "version": "2.4.2", "dev": true, @@ -10500,6 +11802,14 @@ "node": ">=0.10.0" } }, + "node_modules/clsx": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", + "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==", + "engines": { + "node": ">=6" + } + }, "node_modules/cmd-shim": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/cmd-shim/-/cmd-shim-6.0.1.tgz", @@ -10817,8 +12127,7 @@ "node_modules/core-util-is": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "dev": true + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" }, "node_modules/cosmiconfig": { "version": "7.1.0", @@ -10849,6 +12158,17 @@ "typescript": ">=4" } }, + "node_modules/crc-32": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", + "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==", + "bin": { + "crc32": "bin/crc32.njs" + }, + "engines": { + "node": ">=0.8" + } + }, "node_modules/create-jest": { "version": "29.7.0", "dev": true, @@ -11121,6 +12441,21 @@ "dev": true, "license": "MIT" }, + "node_modules/date-fns": { + "version": "2.30.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", + "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==", + "dependencies": { + "@babel/runtime": "^7.21.0" + }, + "engines": { + "node": ">=0.11" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/date-fns" + } + }, "node_modules/dateformat": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", @@ -11130,6 +12465,11 @@ "node": "*" } }, + "node_modules/dayjs": { + "version": "1.11.10", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz", + "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==" + }, "node_modules/debounce": { "version": "1.2.1", "dev": true, @@ -11255,7 +12595,6 @@ }, "node_modules/define-data-property": { "version": "1.1.4", - "dev": true, "license": "MIT", "dependencies": { "es-define-property": "^1.0.0", @@ -11273,7 +12612,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", - "dev": true, "engines": { "node": ">=8" } @@ -11492,6 +12830,16 @@ "safe-buffer": "^5.0.1" } }, + "node_modules/eciesjs": { + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/eciesjs/-/eciesjs-0.3.20.tgz", + "integrity": "sha512-Rz5AB8v9+xmMdS/R7RzWPe/R8DP5QfyrkA6ce4umJopoB5su2H2aDy/GcgIfwhmCwxnBkqGf/PbGzmKcGtIgGA==", + "dependencies": { + "@types/secp256k1": "^4.0.6", + "futoin-hkdf": "^1.5.3", + "secp256k1": "^5.0.0" + } + }, "node_modules/ejs": { "version": "3.1.10", "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", @@ -11578,6 +12926,46 @@ "once": "^1.4.0" } }, + "node_modules/engine.io-client": { + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.6.1.tgz", + "integrity": "sha512-aYuoak7I+R83M/BBPIOs2to51BmFIpC1wZe6zZzMrT2llVsHy5cvcmdsJgP2Qz6smHu+sD9oexiSUAVd8OfBPw==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1", + "engine.io-parser": "~5.2.1", + "ws": "~8.17.1", + "xmlhttprequest-ssl": "~2.1.1" + } + }, + "node_modules/engine.io-client/node_modules/ws": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/engine.io-parser": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.3.tgz", + "integrity": "sha512-HqD3yTBfnBxIrbnM1DoD6Pcq8NECnh8d4As1Qgh0z5Gg3jRRIqijury0CL3ghu/edArpUYiYqQiDUQBIs4np3Q==", + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/enquirer": { "version": "2.3.6", "dev": true, @@ -11693,7 +13081,6 @@ }, "node_modules/es-define-property": { "version": "1.0.0", - "dev": true, "license": "MIT", "dependencies": { "get-intrinsic": "^1.2.4" @@ -11704,7 +13091,6 @@ }, "node_modules/es-errors": { "version": "1.3.0", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -12239,47 +13625,161 @@ "version": "4.0.1", "license": "BSD-2-Clause", "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eth-block-tracker": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/eth-block-tracker/-/eth-block-tracker-7.1.0.tgz", + "integrity": "sha512-8YdplnuE1IK4xfqpf4iU7oBxnOYAc35934o083G8ao+8WM8QQtt/mVlAY6yIAdY1eMeLqg4Z//PZjJGmWGPMRg==", + "dependencies": { + "@metamask/eth-json-rpc-provider": "^1.0.0", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^5.0.1", + "json-rpc-random-id": "^1.0.1", + "pify": "^3.0.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/eth-block-tracker/node_modules/@metamask/utils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-5.0.2.tgz", + "integrity": "sha512-yfmE79bRQtnMzarnKfX7AEJBwFTxvTyw3nBQlu/5rmGXrjAeAMltoGxO62TFurxrQAFMNa/fEjIHNvungZp0+g==", + "dependencies": { + "@ethereumjs/tx": "^4.1.2", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "semver": "^7.3.8", + "superstruct": "^1.0.3" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/eth-block-tracker/node_modules/pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "engines": { + "node": ">=4" + } + }, + "node_modules/eth-block-tracker/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": ">=4" + "node": ">=10" } }, - "node_modules/esquery": { - "version": "1.5.0", - "dev": true, - "license": "BSD-3-Clause", + "node_modules/eth-json-rpc-filters": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/eth-json-rpc-filters/-/eth-json-rpc-filters-6.0.1.tgz", + "integrity": "sha512-ITJTvqoCw6OVMLs7pI8f4gG92n/St6x80ACtHodeS+IXmO0w+t1T5OOzfSt7KLSMLRkVUoexV7tztLgDxg+iig==", "dependencies": { - "estraverse": "^5.1.0" + "@metamask/safe-event-emitter": "^3.0.0", + "async-mutex": "^0.2.6", + "eth-query": "^2.1.2", + "json-rpc-engine": "^6.1.0", + "pify": "^5.0.0" }, "engines": { - "node": ">=0.10" + "node": ">=14.0.0" } }, - "node_modules/esrecurse": { - "version": "4.3.0", - "dev": true, - "license": "BSD-2-Clause", + "node_modules/eth-query": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/eth-query/-/eth-query-2.1.2.tgz", + "integrity": "sha512-srES0ZcvwkR/wd5OQBRA1bIJMww1skfGS0s8wlwK3/oNP4+wnds60krvu5R1QbpRQjMmpG5OMIWro5s7gvDPsA==", "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" + "json-rpc-random-id": "^1.0.0", + "xtend": "^4.0.1" } }, - "node_modules/estraverse": { - "version": "5.3.0", - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" + "node_modules/eth-rpc-errors": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-4.0.3.tgz", + "integrity": "sha512-Z3ymjopaoft7JDoxZcEb3pwdGh7yiYMhOwm2doUt6ASXlMavpNlK6Cre0+IMl2VSGyEU9rkiperQhp5iRxn5Pg==", + "dependencies": { + "fast-safe-stringify": "^2.0.6" } }, - "node_modules/esutils": { - "version": "2.0.3", - "license": "BSD-2-Clause", + "node_modules/ethereum-cryptography": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.2.1.tgz", + "integrity": "sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg==", + "dependencies": { + "@noble/curves": "1.4.2", + "@noble/hashes": "1.4.0", + "@scure/bip32": "1.4.0", + "@scure/bip39": "1.3.0" + } + }, + "node_modules/ethereum-cryptography/node_modules/@noble/curves": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", + "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", + "dependencies": { + "@noble/hashes": "1.4.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ethereum-cryptography/node_modules/@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", "engines": { - "node": ">=0.10.0" + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, "node_modules/event-target-shim": { @@ -12289,6 +13789,11 @@ "node": ">=6" } }, + "node_modules/eventemitter2": { + "version": "6.4.9", + "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-6.4.9.tgz", + "integrity": "sha512-JEPTiaOt9f04oa6NOkc4aH+nVp5I3wEjpHbIPqfgCdD5v5bUzy7xQqwcVO2aDQgOWhI28da57HksMrzK9HlRxg==" + }, "node_modules/eventemitter3": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", @@ -12410,6 +13915,18 @@ "version": "3.0.2", "license": "MIT" }, + "node_modules/extension-port-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-3.0.0.tgz", + "integrity": "sha512-an2S5quJMiy5bnZKEf6AkfH/7r8CzHvhchU40gxN+OM6HPhe7Z9T1FUychcf2M9PpPOO0Hf7BAEfJkw2TDIBDw==", + "dependencies": { + "readable-stream": "^3.6.2 || ^4.4.2", + "webextension-polyfill": ">=0.10.0 <1.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/external-editor": { "version": "3.1.0", "dev": true, @@ -12488,6 +14005,11 @@ "node": ">=6" } }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" + }, "node_modules/fast-text-encoding": { "version": "1.0.6", "license": "Apache-2.0" @@ -12707,7 +14229,6 @@ }, "node_modules/for-each": { "version": "0.3.3", - "dev": true, "license": "MIT", "dependencies": { "is-callable": "^1.1.3" @@ -12853,7 +14374,6 @@ }, "node_modules/function-bind": { "version": "1.1.2", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -12888,6 +14408,14 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/futoin-hkdf": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/futoin-hkdf/-/futoin-hkdf-1.5.3.tgz", + "integrity": "sha512-SewY5KdMpaoCeh7jachEWFsh1nNlaDjNHZXWqL5IGwtpEYHTgkr2+AMCgNwKWkcc0wpSYrZfR7he4WdmHFtDxQ==", + "engines": { + "node": ">=8" + } + }, "node_modules/gauge": { "version": "4.0.4", "dev": true, @@ -12997,7 +14525,6 @@ }, "node_modules/get-intrinsic": { "version": "1.2.4", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -13465,7 +14992,6 @@ }, "node_modules/gopd": { "version": "1.0.1", - "dev": true, "license": "MIT", "dependencies": { "get-intrinsic": "^1.1.3" @@ -13673,7 +15199,6 @@ }, "node_modules/has-property-descriptors": { "version": "1.0.2", - "dev": true, "license": "MIT", "dependencies": { "es-define-property": "^1.0.0" @@ -13684,7 +15209,6 @@ }, "node_modules/has-proto": { "version": "1.0.3", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -13695,7 +15219,6 @@ }, "node_modules/has-symbols": { "version": "1.0.3", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -13706,7 +15229,6 @@ }, "node_modules/has-tostringtag": { "version": "1.0.2", - "dev": true, "license": "MIT", "dependencies": { "has-symbols": "^1.0.3" @@ -13734,7 +15256,6 @@ }, "node_modules/hasown": { "version": "2.0.2", - "dev": true, "license": "MIT", "dependencies": { "function-bind": "^1.1.2" @@ -13887,6 +15408,36 @@ "ms": "^2.0.0" } }, + "node_modules/i18next": { + "version": "22.5.1", + "resolved": "https://registry.npmjs.org/i18next/-/i18next-22.5.1.tgz", + "integrity": "sha512-8TGPgM3pAD+VRsMtUMNknRz3kzqwp/gPALrWMsDnmC1mKqJwpWyooQRLMcbTwq8z8YwSmuj+ZYvc+xCuEpkssA==", + "funding": [ + { + "type": "individual", + "url": "https://locize.com" + }, + { + "type": "individual", + "url": "https://locize.com/i18next.html" + }, + { + "type": "individual", + "url": "https://www.i18next.com/how-to/faq#i18next-is-awesome.-how-can-i-support-the-project" + } + ], + "dependencies": { + "@babel/runtime": "^7.20.6" + } + }, + "node_modules/i18next-browser-languagedetector": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/i18next-browser-languagedetector/-/i18next-browser-languagedetector-7.1.0.tgz", + "integrity": "sha512-cr2k7u1XJJ4HTOjM9GyOMtbOA47RtUoWRAtt52z43r3AoMs2StYKyjS3URPhzHaf+mn10hY9dZWamga5WPQjhA==", + "dependencies": { + "@babel/runtime": "^7.19.4" + } + }, "node_modules/iconv-lite": { "version": "0.4.24", "dev": true, @@ -13905,7 +15456,6 @@ }, "node_modules/ieee754": { "version": "1.2.1", - "dev": true, "funding": [ { "type": "github", @@ -14238,7 +15788,6 @@ }, "node_modules/invariant": { "version": "2.2.4", - "dev": true, "license": "MIT", "dependencies": { "loose-envify": "^1.0.0" @@ -14278,7 +15827,6 @@ }, "node_modules/is-arguments": { "version": "1.1.1", - "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.2", @@ -14363,7 +15911,6 @@ }, "node_modules/is-callable": { "version": "1.2.7", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -14427,7 +15974,6 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true, "bin": { "is-docker": "cli.js" }, @@ -14473,7 +16019,6 @@ }, "node_modules/is-generator-function": { "version": "1.0.10", - "dev": true, "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" @@ -14770,7 +16315,6 @@ }, "node_modules/is-typed-array": { "version": "1.1.13", - "dev": true, "license": "MIT", "dependencies": { "which-typed-array": "^1.1.14" @@ -14861,7 +16405,6 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dev": true, "dependencies": { "is-docker": "^2.0.0" }, @@ -14918,6 +16461,20 @@ "ws": "*" } }, + "node_modules/isows": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.4.tgz", + "integrity": "sha512-hEzjY+x9u9hPmBom9IIAqdJCwNLax+xrPb51vEPpERoFlIxgmZcHzsT5jKG06nvInKOBGvReAVz80Umed5CczQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wagmi-dev" + } + ], + "peerDependencies": { + "ws": "*" + } + }, "node_modules/istanbul-lib-coverage": { "version": "3.2.2", "dev": true, @@ -17224,6 +18781,28 @@ "dev": true, "license": "MIT" }, + "node_modules/json-rpc-engine": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/json-rpc-engine/-/json-rpc-engine-6.1.0.tgz", + "integrity": "sha512-NEdLrtrq1jUZyfjkr9OCz9EzCNhnRyWtt1PAnvnhwy6e8XETS0Dtc+ZNCO2gvuAoKsIn2+vCSowXTYE4CkgnAQ==", + "dependencies": { + "@metamask/safe-event-emitter": "^2.0.0", + "eth-rpc-errors": "^4.0.2" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/json-rpc-engine/node_modules/@metamask/safe-event-emitter": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@metamask/safe-event-emitter/-/safe-event-emitter-2.0.0.tgz", + "integrity": "sha512-/kSXhY692qiV1MXu6EeOZvg5nECLclxNXcKCxJ3cXQgYuRymRHpdx/t7JXfsK+JLjwA1e1c1/SBrlQYpusC29Q==" + }, + "node_modules/json-rpc-random-id": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-rpc-random-id/-/json-rpc-random-id-1.0.1.tgz", + "integrity": "sha512-RJ9YYNCkhVDBuP4zN5BBtYAzEl03yq/jIIsyif0JY9qyJuQQZNeDK7anAPKKlyEtLSj2s8h6hNh2F8zO5q7ScA==" + }, "node_modules/json-schema-traverse": { "version": "0.4.1", "dev": true, @@ -17370,6 +18949,25 @@ "safe-buffer": "^5.0.1" } }, + "node_modules/keccak": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.4.tgz", + "integrity": "sha512-3vKuW0jV8J3XNTzvfyicFR5qvxrSAGl7KIhvgOu5cmWwM7tZRj3fMbj/pfIf4be7aznbc+prBWGjywox/g2Y6Q==", + "hasInstallScript": true, + "dependencies": { + "node-addon-api": "^2.0.0", + "node-gyp-build": "^4.2.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/keccak/node_modules/node-addon-api": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz", + "integrity": "sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==" + }, "node_modules/keyvaluestorage-interface": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/keyvaluestorage-interface/-/keyvaluestorage-interface-1.0.0.tgz", @@ -18786,6 +20384,11 @@ } } }, + "node_modules/micro-ftch": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/micro-ftch/-/micro-ftch-0.3.1.tgz", + "integrity": "sha512-/0LLxhzP0tfiR5hcQebtudP56gUurs2CLkGarnCiB/OqEyUFQ6U3paQi/tgLv0hBJYt2rnr9MNpxz4fiiugstg==" + }, "node_modules/micromatch": { "version": "4.0.7", "license": "MIT", @@ -18996,6 +20599,150 @@ "dev": true, "license": "ISC" }, + "node_modules/mipd": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/mipd/-/mipd-0.0.5.tgz", + "integrity": "sha512-gbKA784D2WKb5H/GtqEv+Ofd1S9Zj+Z/PGDIl1u1QAbswkxD28BQ5bSXQxkeBzPBABg1iDSbiwGG1XqlOxRspA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wagmi-dev" + } + ], + "dependencies": { + "viem": "^1.1.4" + }, + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/mipd/node_modules/@noble/hashes": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", + "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/mipd/node_modules/@scure/bip32": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.2.tgz", + "integrity": "sha512-N1ZhksgwD3OBlwTv3R6KFEcPojl/W4ElJOeCZdi+vuI5QmTFwLq3OFf2zd2ROpKvxFdgZ6hUpb0dx9bVNEwYCA==", + "dependencies": { + "@noble/curves": "~1.2.0", + "@noble/hashes": "~1.3.2", + "@scure/base": "~1.1.2" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/mipd/node_modules/@scure/bip39": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.1.tgz", + "integrity": "sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==", + "dependencies": { + "@noble/hashes": "~1.3.0", + "@scure/base": "~1.1.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/mipd/node_modules/abitype": { + "version": "0.9.8", + "resolved": "https://registry.npmjs.org/abitype/-/abitype-0.9.8.tgz", + "integrity": "sha512-puLifILdm+8sjyss4S+fsUN09obiT1g2YW6CtcQF+QDzxR0euzgEB29MZujC6zMk2a6SVmtttq1fc6+YFA7WYQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wagmi-dev" + } + ], + "peerDependencies": { + "typescript": ">=5.0.4", + "zod": "^3 >=3.19.1" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, + "node_modules/mipd/node_modules/isows": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.3.tgz", + "integrity": "sha512-2cKei4vlmg2cxEjm3wVSqn8pcoRF/LX/wpifuuNquFO4SQmPwarClT+SUCA2lt+l581tTeZIPIZuIDo2jWN1fg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wagmi-dev" + } + ], + "peerDependencies": { + "ws": "*" + } + }, + "node_modules/mipd/node_modules/viem": { + "version": "1.21.4", + "resolved": "https://registry.npmjs.org/viem/-/viem-1.21.4.tgz", + "integrity": "sha512-BNVYdSaUjeS2zKQgPs+49e5JKocfo60Ib2yiXOWBT6LuVxY1I/6fFX3waEtpXvL1Xn4qu+BVitVtMh9lyThyhQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "dependencies": { + "@adraffy/ens-normalize": "1.10.0", + "@noble/curves": "1.2.0", + "@noble/hashes": "1.3.2", + "@scure/bip32": "1.3.2", + "@scure/bip39": "1.2.1", + "abitype": "0.9.8", + "isows": "1.0.3", + "ws": "8.13.0" + }, + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/mipd/node_modules/ws": { + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/mkdirp": { "version": "0.5.6", "dev": true, @@ -20226,6 +21973,43 @@ "node": ">=14.14" } }, + "node_modules/obj-multiplex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/obj-multiplex/-/obj-multiplex-1.0.0.tgz", + "integrity": "sha512-0GNJAOsHoBHeNTvl5Vt6IWnpUEcc3uSRxzBri7EDyIcMgYvnY2JL2qdeV5zTMjWQX5OHcD5amcW2HFfDh0gjIA==", + "dependencies": { + "end-of-stream": "^1.4.0", + "once": "^1.4.0", + "readable-stream": "^2.3.3" + } + }, + "node_modules/obj-multiplex/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "node_modules/obj-multiplex/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/obj-multiplex/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/object-assign": { "version": "4.1.1", "dev": true, @@ -20396,7 +22180,6 @@ "version": "8.4.2", "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", - "dev": true, "dependencies": { "define-lazy-prop": "^2.0.0", "is-docker": "^2.1.1", @@ -21247,7 +23030,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/pify/-/pify-5.0.0.tgz", "integrity": "sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==", - "dev": true, "engines": { "node": ">=10" }, @@ -21334,14 +23116,30 @@ "node": ">=10.13.0" } }, + "node_modules/pony-cause": { + "version": "2.1.11", + "resolved": "https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.11.tgz", + "integrity": "sha512-M7LhCsdNbNgiLYiP4WjsfLUuFmCfnjdF6jKe2R9NKl4WFN+HZPGHJZ9lnLP7f9ZnKe3U9nuWD0szirmj+migUg==", + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/possible-typed-array-names": { "version": "1.0.0", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" } }, + "node_modules/preact": { + "version": "10.24.2", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.24.2.tgz", + "integrity": "sha512-1cSoF0aCC8uaARATfrlz4VCBqE8LwZwRfLgkxJOQwAlQt6ayTmi0D9OF7nXid1POI5SZidFuG9CnlXbDfLqY/Q==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/preact" + } + }, "node_modules/prelude-ls": { "version": "1.1.2", "engines": { @@ -21394,8 +23192,7 @@ "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" }, "node_modules/process-warning": { "version": "1.0.0", @@ -21750,6 +23547,15 @@ "dev": true, "license": "MIT" }, + "node_modules/pump": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", + "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, "node_modules/punycode": { "version": "1.4.1", "dev": true, @@ -21793,6 +23599,14 @@ "node": ">=6.0.0" } }, + "node_modules/qr-code-styling": { + "version": "1.6.0-rc.1", + "resolved": "https://registry.npmjs.org/qr-code-styling/-/qr-code-styling-1.6.0-rc.1.tgz", + "integrity": "sha512-ModRIiW6oUnsP18QzrRYZSc/CFKFKIdj7pUs57AEVH20ajlglRpN3HukjHk0UbNMTlKGuaYl7Gt6/O5Gg2NU2Q==", + "dependencies": { + "qrcode-generator": "^1.4.3" + } + }, "node_modules/qrcode": { "version": "1.5.3", "license": "MIT", @@ -21809,6 +23623,19 @@ "node": ">=10.13.0" } }, + "node_modules/qrcode-generator": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/qrcode-generator/-/qrcode-generator-1.4.4.tgz", + "integrity": "sha512-HM7yY8O2ilqhmULxGMpcHSF1EhJJ9yBj8gvDEuZ6M+KGJ0YY2hKpnXvRD+hZPLrDVck3ExIGhmPtSdcjC+guuw==" + }, + "node_modules/qrcode-terminal-nooctal": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/qrcode-terminal-nooctal/-/qrcode-terminal-nooctal-0.12.1.tgz", + "integrity": "sha512-jy/kkD0iIMDjTucB+5T6KBsnirlhegDH47vHgrj5MejchSQmi/EAMM0xMFeePgV9CJkkAapNakpVUWYgHvtdKg==", + "bin": { + "qrcode-terminal": "bin/qrcode-terminal.js" + } + }, "node_modules/qrcode/node_modules/cliui": { "version": "6.0.0", "license": "ISC", @@ -21937,35 +23764,31 @@ "safe-buffer": "^5.1.0" } }, - "node_modules/react": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", - "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } + "node_modules/react-is": { + "version": "17.0.2", + "dev": true, + "license": "MIT" }, - "node_modules/react-dom": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", - "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", - "license": "MIT", + "node_modules/react-native-webview": { + "version": "11.26.1", + "resolved": "https://registry.npmjs.org/react-native-webview/-/react-native-webview-11.26.1.tgz", + "integrity": "sha512-hC7BkxOpf+z0UKhxFSFTPAM4shQzYmZHoELa6/8a/MspcjEP7ukYKpuSUTLDywQditT8yI9idfcKvfZDKQExGw==", "dependencies": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.2" + "escape-string-regexp": "2.0.0", + "invariant": "2.2.4" }, "peerDependencies": { - "react": "^18.3.1" + "react": "*", + "react-native": "*" } }, - "node_modules/react-is": { - "version": "17.0.2", - "dev": true, - "license": "MIT" + "node_modules/react-native-webview/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "engines": { + "node": ">=8" + } }, "node_modules/read": { "version": "2.1.0", @@ -22426,7 +24249,6 @@ }, "node_modules/regenerator-runtime": { "version": "0.14.1", - "dev": true, "license": "MIT" }, "node_modules/regexp.prototype.flags": { @@ -22614,6 +24436,39 @@ "rimraf": "bin.js" } }, + "node_modules/rollup-plugin-visualizer": { + "version": "5.12.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.12.0.tgz", + "integrity": "sha512-8/NU9jXcHRs7Nnj07PF2o4gjxmm9lXIrZ8r175bT9dK8qoLlvKTwRMArRCMgpMGlq8CTLugRvEmyMeMXIU2pNQ==", + "dependencies": { + "open": "^8.4.0", + "picomatch": "^2.3.1", + "source-map": "^0.7.4", + "yargs": "^17.5.1" + }, + "bin": { + "rollup-plugin-visualizer": "dist/bin/cli.js" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "rollup": "2.x || 3.x || 4.x" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/rollup-plugin-visualizer/node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "engines": { + "node": ">= 8" + } + }, "node_modules/run-async": { "version": "2.4.1", "dev": true, @@ -22762,7 +24617,6 @@ }, "node_modules/set-function-length": { "version": "1.2.2", - "dev": true, "license": "MIT", "dependencies": { "define-data-property": "^1.1.4", @@ -22799,6 +24653,18 @@ "version": "1.2.0", "license": "ISC" }, + "node_modules/sha.js": { + "version": "2.4.11", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", + "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + }, + "bin": { + "sha.js": "bin.js" + } + }, "node_modules/sha1": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/sha1/-/sha1-1.1.1.tgz", @@ -23182,6 +25048,32 @@ "tslib": "^2.0.3" } }, + "node_modules/socket.io-client": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.8.0.tgz", + "integrity": "sha512-C0jdhD5yQahMws9alf/yvtsMGTaIDBnZ8Rb5HU56svyq0l5LIrGzIDZZD5pHQlmzxLuU91Gz+VpQMKgCTNYtkw==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.2", + "engine.io-client": "~6.6.1", + "socket.io-parser": "~4.2.4" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/socket.io-parser": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", + "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/socks": { "version": "2.8.3", "dev": true, @@ -23646,6 +25538,14 @@ "node": ">=4" } }, + "node_modules/superstruct": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-1.0.4.tgz", + "integrity": "sha512-7JpaAoX2NGyoFlI9NBh66BQXGONc+uE+MRS5i2iOBKuS4e+ccgMDjATgZldkah+33DakBxDHiss9kvUcGAO8UQ==", + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/supports-color": { "version": "5.5.0", "dev": true, @@ -24877,6 +26777,30 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" } }, + "node_modules/utf-8-validate": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-6.0.4.tgz", + "integrity": "sha512-xu9GQDeFp+eZ6LnCywXN/zBancWvOpUMzgjLPSjy4BRHSmTelvn2E0DG0o1sTiw5hkCKBHo8rwSKncfRfv2EEQ==", + "hasInstallScript": true, + "dependencies": { + "node-gyp-build": "^4.3.0" + }, + "engines": { + "node": ">=6.14.2" + } + }, + "node_modules/util": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", + "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "dependencies": { + "inherits": "^2.0.3", + "is-arguments": "^1.0.4", + "is-generator-function": "^1.0.7", + "is-typed-array": "^1.1.3", + "which-typed-array": "^1.1.2" + } + }, "node_modules/util-deprecate": { "version": "1.0.2", "license": "MIT" @@ -24885,7 +26809,6 @@ "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", - "dev": true, "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" @@ -24909,80 +26832,341 @@ "dev": true, "license": "MIT" }, - "node_modules/v8-to-istanbul": { - "version": "9.2.0", - "dev": true, - "license": "ISC", + "node_modules/v8-to-istanbul": { + "version": "9.2.0", + "dev": true, + "license": "ISC", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/validate-npm-package-name": { + "version": "5.0.0", + "dev": true, + "license": "ISC", + "dependencies": { + "builtins": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/valtio": { + "version": "1.11.2", + "license": "MIT", + "dependencies": { + "proxy-compare": "2.5.1", + "use-sync-external-store": "1.2.0" + }, + "engines": { + "node": ">=12.20.0" + }, + "peerDependencies": { + "@types/react": ">=16.8", + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "react": { + "optional": true + } + } + }, + "node_modules/value-or-promise": { + "version": "1.0.12", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/viem": { + "version": "2.16.2", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.16.2.tgz", + "integrity": "sha512-qor3v1cJFR3jcPtcJxPbKfKURAH2agNf2IWZIaSReV6teNLERiu4Sr7kbqpkIeTAEpiDCVQwg336M+mub1m+pg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "dependencies": { + "@adraffy/ens-normalize": "1.10.0", + "@noble/curves": "1.2.0", + "@noble/hashes": "1.3.2", + "@scure/bip32": "1.3.2", + "@scure/bip39": "1.2.1", + "abitype": "1.0.4", + "isows": "1.0.4", + "ws": "8.17.1" + }, + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/viem/node_modules/@noble/hashes": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", + "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/@scure/bip32": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.2.tgz", + "integrity": "sha512-N1ZhksgwD3OBlwTv3R6KFEcPojl/W4ElJOeCZdi+vuI5QmTFwLq3OFf2zd2ROpKvxFdgZ6hUpb0dx9bVNEwYCA==", + "dependencies": { + "@noble/curves": "~1.2.0", + "@noble/hashes": "~1.3.2", + "@scure/base": "~1.1.2" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/@scure/bip39": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.1.tgz", + "integrity": "sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==", + "dependencies": { + "@noble/hashes": "~1.3.0", + "@scure/base": "~1.1.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/ws": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/w3c-xmlserializer": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/wagmi": { + "version": "2.10.5", + "resolved": "https://registry.npmjs.org/wagmi/-/wagmi-2.10.5.tgz", + "integrity": "sha512-/fB8tu0pKVwX7XZ80pOFflIVhkSYactJoDZZ5OEj6JoFx2DadpHgLEYGp1g/mm2Qlfswzp/uKzF8eNzBtFj5eg==", + "dependencies": { + "@wagmi/connectors": "5.0.17", + "@wagmi/core": "2.11.5", + "use-sync-external-store": "1.2.0" + }, + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "@tanstack/react-query": ">=5.0.0", + "react": ">=18", + "typescript": ">=5.0.4", + "viem": "2.x" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/wagmi/node_modules/@metamask/sdk": { + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/@metamask/sdk/-/sdk-0.26.0.tgz", + "integrity": "sha512-kCVtyGEqCcq0n4i08yeLwNT5cjnreVUNucJr+DMwUlQJ2JCSqAzrYSPhlk1k4LBqhje1OvLoEDJ6JnRshwMZtw==", + "dependencies": { + "@metamask/onboarding": "^1.0.1", + "@metamask/providers": "^15.0.0", + "@metamask/sdk-communication-layer": "0.26.0", + "@metamask/sdk-install-modal-web": "0.26.0", + "@types/dom-screen-wake-lock": "^1.0.0", + "bowser": "^2.9.0", + "cross-fetch": "^4.0.0", + "debug": "^4.3.4", + "eciesjs": "^0.3.15", + "eth-rpc-errors": "^4.0.3", + "eventemitter2": "^6.4.7", + "i18next": "22.5.1", + "i18next-browser-languagedetector": "7.1.0", + "obj-multiplex": "^1.0.0", + "pump": "^3.0.0", + "qrcode-terminal-nooctal": "^0.12.1", + "react-native-webview": "^11.26.0", + "readable-stream": "^3.6.2", + "rollup-plugin-visualizer": "^5.9.2", + "socket.io-client": "^4.5.1", + "util": "^0.12.4", + "uuid": "^8.3.2" + }, + "peerDependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, + "node_modules/wagmi/node_modules/@metamask/sdk-communication-layer": { + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/@metamask/sdk-communication-layer/-/sdk-communication-layer-0.26.0.tgz", + "integrity": "sha512-Pu9y2YoQMC7mnaVyr2MddUUofPqqE+rZL1NFk30lJbNCVGopWSubWoF8fJZw54fWngNEN0HXPNkTokd5UCvwjQ==", "dependencies": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^2.0.0" + "bufferutil": "^4.0.8", + "date-fns": "^2.29.3", + "debug": "^4.3.4", + "utf-8-validate": "^6.0.3", + "uuid": "^8.3.2" }, - "engines": { - "node": ">=10.12.0" + "peerDependencies": { + "cross-fetch": "^4.0.0", + "eciesjs": "^0.3.16", + "eventemitter2": "^6.4.7", + "readable-stream": "^3.6.2", + "socket.io-client": "^4.5.1" } }, - "node_modules/validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, + "node_modules/wagmi/node_modules/@metamask/sdk-install-modal-web": { + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/@metamask/sdk-install-modal-web/-/sdk-install-modal-web-0.26.0.tgz", + "integrity": "sha512-LyDQFIsWWyU0ZgZR3O9LzRqKzXcYUEGJRCNfb26IjFOquvmQosbhQV0jDNlVa8Tk2Fg4ykTPoaauANh6sVJYVQ==", "dependencies": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" + "qr-code-styling": "^1.6.0-rc.1" + }, + "peerDependencies": { + "i18next": "22.5.1", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-i18next": "^13.2.2", + "react-native": "*" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-dom": { + "optional": true + }, + "react-native": { + "optional": true + } } }, - "node_modules/validate-npm-package-name": { - "version": "5.0.0", - "dev": true, - "license": "ISC", + "node_modules/wagmi/node_modules/@wagmi/connectors": { + "version": "5.0.17", + "resolved": "https://registry.npmjs.org/@wagmi/connectors/-/connectors-5.0.17.tgz", + "integrity": "sha512-fy14qLAZ3c+XI8WDBrTkNVOHOszE5a0h6IMQmAvoJm6blgi3o4GQHQ32oVl0zl6Kauzh8EM/pqmfPTkHGkkIvQ==", "dependencies": { - "builtins": "^5.0.0" + "@coinbase/wallet-sdk": "4.0.3", + "@metamask/sdk": "0.26.0", + "@safe-global/safe-apps-provider": "0.18.1", + "@safe-global/safe-apps-sdk": "8.1.0", + "@walletconnect/ethereum-provider": "2.13.0", + "@walletconnect/modal": "2.6.2", + "cbw-sdk": "npm:@coinbase/wallet-sdk@3.9.3" }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "@wagmi/core": "2.11.5", + "typescript": ">=5.0.4", + "viem": "2.x" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/valtio": { - "version": "1.11.2", - "license": "MIT", + "node_modules/wagmi/node_modules/@wagmi/core": { + "version": "2.11.5", + "resolved": "https://registry.npmjs.org/@wagmi/core/-/core-2.11.5.tgz", + "integrity": "sha512-RmtZQkNf/ozdngyDST33WLTdKQHny9SsiNmxln8G06pbnOuhO4dDhnXnfiJ8Lh9GVIfFsjlmtqzfAIo1/86dqg==", "dependencies": { - "proxy-compare": "2.5.1", - "use-sync-external-store": "1.2.0" + "eventemitter3": "5.0.1", + "mipd": "0.0.5", + "zustand": "4.4.1" }, - "engines": { - "node": ">=12.20.0" + "funding": { + "url": "https://github.com/sponsors/wevm" }, "peerDependencies": { - "@types/react": ">=16.8", - "react": ">=16.8" + "@tanstack/query-core": ">=5.0.0", + "typescript": ">=5.0.4", + "viem": "2.x" }, "peerDependenciesMeta": { - "@types/react": { + "@tanstack/query-core": { "optional": true }, - "react": { + "typescript": { "optional": true } } }, - "node_modules/value-or-promise": { - "version": "1.0.12", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - } + "node_modules/wagmi/node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==" }, - "node_modules/w3c-xmlserializer": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "xml-name-validator": "^4.0.0" - }, - "engines": { - "node": ">=14" + "node_modules/wagmi/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" } }, "node_modules/walker": { @@ -25021,6 +27205,11 @@ "tslib": "^2.6.2" } }, + "node_modules/webextension-polyfill": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/webextension-polyfill/-/webextension-polyfill-0.10.0.tgz", + "integrity": "sha512-c5s35LgVa5tFaHhrZDnr3FpQpjj1BB+RXhLTYUxGqBVN460HkbM8TBtEqdXWbpTKfzwCcjAZVF7zXCYSKtcp9g==" + }, "node_modules/webidl-conversions": { "version": "7.0.0", "dev": true, @@ -25148,7 +27337,6 @@ }, "node_modules/which-typed-array": { "version": "1.1.15", - "dev": true, "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", @@ -25452,6 +27640,14 @@ "version": "2.0.4", "license": "Apache-2.0" }, + "node_modules/xmlhttprequest-ssl": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.1.1.tgz", + "integrity": "sha512-ptjR8YSJIXoA3Mbv5po7RtSYHO6mZr8s7i5VGmEk7QY2pQWyT1o0N+W1gKbOyJPUCGXGnuw0wqe8f0L6Y0ny7g==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", @@ -25528,9 +27724,44 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/zod": { + "version": "3.22.4", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", + "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zustand": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.4.1.tgz", + "integrity": "sha512-QCPfstAS4EBiTQzlaGP1gmorkh/UL1Leaj2tdj+zZCZ/9bm0WS7sI2wnfD5lpOszFqWJ1DcPnGoY8RDL61uokw==", + "dependencies": { + "use-sync-external-store": "1.2.0" + }, + "engines": { + "node": ">=12.7.0" + }, + "peerDependencies": { + "@types/react": ">=16.8", + "immer": ">=9.0", + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "immer": { + "optional": true + }, + "react": { + "optional": true + } + } + }, "packages/auth": { "name": "@mintbase-js/auth", - "version": "0.6.5", + "version": "0.6.2-beta-prerelease.3", "license": "MIT", "dependencies": { "@mintbase-js/sdk": "0.6.2", @@ -25853,7 +28084,7 @@ }, "packages/data": { "name": "@mintbase-js/data", - "version": "0.6.5", + "version": "0.6.2-beta-prerelease.3", "license": "MIT", "dependencies": { "@mintbase-js/sdk": "0.6.2", @@ -26143,18 +28374,26 @@ }, "packages/react": { "name": "@mintbase-js/react", - "version": "0.6.5", + "version": "0.6.2-beta-prerelease.3", "license": "MIT", "dependencies": { "@mintbase-js/data": "0.6.2", "@mintbase-js/wallet": "0.6.2", - "@near-wallet-selector/core": "8.9.12", - "@near-wallet-selector/here-wallet": "8.9.12", - "@near-wallet-selector/meteor-wallet": "8.9.12", - "@near-wallet-selector/modal-ui": "8.9.12", - "@near-wallet-selector/my-near-wallet": "8.9.12", + "@near-wallet-selector/core": "8.9.13", + "@near-wallet-selector/ethereum-wallets": "8.9.13", + "@near-wallet-selector/here-wallet": "8.9.13", + "@near-wallet-selector/meteor-wallet": "8.9.13", + "@near-wallet-selector/modal-ui": "8.9.13", + "@near-wallet-selector/my-near-wallet": "8.9.13", + "@tanstack/react-query": "5.24.8", + "@wagmi/connectors": "5.0.10", + "@wagmi/core": "2.10.5", + "@web3modal/wagmi": "5.0.6", + "near-api-js": "^5.0.0", "react": "^18.2.0", - "react-dom": "^18.2.0" + "react-dom": "^18.2.0", + "viem": "2.16.2", + "wagmi": "2.10.5" }, "devDependencies": { "@testing-library/react": "^13.4.0", @@ -26189,6 +28428,19 @@ "near-api-js": "^4.0.3" } }, + "packages/react/node_modules/@mintbase-js/wallet/node_modules/@near-wallet-selector/core": { + "version": "8.9.12", + "resolved": "https://registry.npmjs.org/@near-wallet-selector/core/-/core-8.9.12.tgz", + "integrity": "sha512-S23/IDi07kCr6JN28jxQZPQOwtp3MwZgMVbtwqZz2BP2N1puAFHIvKpUDrS2l2iZPBImHnU3tdOBvw6Yec7DjQ==", + "dependencies": { + "@near-js/providers": "0.2.2", + "borsh": "0.7.0", + "events": "3.3.0", + "js-sha256": "0.9.0", + "near-api-js": "4.0.3", + "rxjs": "7.8.1" + } + }, "packages/react/node_modules/@near-js/accounts": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/@near-js/accounts/-/accounts-1.2.1.tgz", @@ -26357,6 +28609,73 @@ "integrity": "sha512-fSVWzzemnyfF89EPwlUNsrS5swF5CrtiN4e+h0/lLf4dz2he4L3ndM20PS9wj7ICSkXJe/TQUHdaPTq15b1mNQ==", "license": "Apache-2.0" }, + "packages/react/node_modules/@near-wallet-selector/core": { + "version": "8.9.13", + "resolved": "https://registry.npmjs.org/@near-wallet-selector/core/-/core-8.9.13.tgz", + "integrity": "sha512-ufI2yctF2N7+D6s5QaSs9Bqorh8xPH48wuBEvTbArJ6z9qvSCNsK9ZO5Mt5BFfO64ovmcflOOUBtZ4/BcNO6aQ==", + "dependencies": { + "borsh": "0.7.0", + "events": "3.3.0", + "js-sha256": "0.9.0", + "rxjs": "7.8.1" + }, + "peerDependencies": { + "@near-js/providers": "latest", + "near-api-js": "4.0.3" + } + }, + "packages/react/node_modules/@near-wallet-selector/here-wallet": { + "version": "8.9.13", + "resolved": "https://registry.npmjs.org/@near-wallet-selector/here-wallet/-/here-wallet-8.9.13.tgz", + "integrity": "sha512-lxY8Ke7wlp7nBcPopcSy8dN5tfhQeyjhchsl+gW9twaPTgmUJ7X6J6iJ2f+yl9GRRsazbYiKrS9w6Pggqy9kqA==", + "dependencies": { + "@here-wallet/core": "3.3.1", + "@near-wallet-selector/core": "8.9.13" + } + }, + "packages/react/node_modules/@near-wallet-selector/meteor-wallet": { + "version": "8.9.13", + "resolved": "https://registry.npmjs.org/@near-wallet-selector/meteor-wallet/-/meteor-wallet-8.9.13.tgz", + "integrity": "sha512-eTx7586ImQbt+prRMa1KGIpWgfPCAWqOyB/zsSw8pimAFwv3hDm/isPQDvzr/qMZDSmgLXp0gtDCCV3+/UUDCA==", + "dependencies": { + "@meteorwallet/sdk": "1.0.9", + "@near-wallet-selector/core": "8.9.13", + "near-api-js": "4.0.3" + } + }, + "packages/react/node_modules/@near-wallet-selector/modal-ui": { + "version": "8.9.13", + "resolved": "https://registry.npmjs.org/@near-wallet-selector/modal-ui/-/modal-ui-8.9.13.tgz", + "integrity": "sha512-HbRIaKy3MMmkmWQNNEEtvZ/nC6r+V9NmazxikIdUtIeGO1Oq0hiKL7Y3K4s6AhmHUxjhZrsjDUTNikL93E6+6A==", + "dependencies": { + "@near-wallet-selector/core": "8.9.13", + "copy-to-clipboard": "3.3.3", + "qrcode": "1.5.4", + "react": "18.2.0", + "react-dom": "18.2.0" + } + }, + "packages/react/node_modules/@near-wallet-selector/my-near-wallet": { + "version": "8.9.13", + "resolved": "https://registry.npmjs.org/@near-wallet-selector/my-near-wallet/-/my-near-wallet-8.9.13.tgz", + "integrity": "sha512-zS7sp33s6CgE3Zz61NysH5MUiVZGDE8HQPy5GvvKvMKCf3tVK8rOJ4B0u51Ee3ix1PxZeEYNqqnI0lH5qSw2WA==", + "dependencies": { + "@near-wallet-selector/core": "8.9.13", + "@near-wallet-selector/wallet-utils": "8.9.13", + "near-api-js": "4.0.3" + } + }, + "packages/react/node_modules/@near-wallet-selector/wallet-utils": { + "version": "8.9.13", + "resolved": "https://registry.npmjs.org/@near-wallet-selector/wallet-utils/-/wallet-utils-8.9.13.tgz", + "integrity": "sha512-+aoKVGW+FULRO7pN1jb232jbt3PB8RBY5K8Xj/oMxutjlXrE50QyOr1GfTEtaylCp86iMTGEexdSqtIFbQ4v/A==", + "dependencies": { + "@near-wallet-selector/core": "8.9.13" + }, + "peerDependencies": { + "near-api-js": "4.0.3" + } + }, "packages/react/node_modules/base-x": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/base-x/-/base-x-2.0.6.tgz", @@ -26379,6 +28698,16 @@ "base-x": "^2.0.1" } }, + "packages/react/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, "packages/react/node_modules/http-errors": { "version": "1.7.2", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", @@ -26473,12 +28802,62 @@ } } }, + "packages/react/node_modules/qrcode": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.4.tgz", + "integrity": "sha512-1ca71Zgiu6ORjHqFBDpnSMTR2ReToX4l1Au1VFLyVeBTFavzQnv5JxMFr3ukHVKpSrSA2MCk0lNJSykjUfz7Zg==", + "dependencies": { + "dijkstrajs": "^1.0.1", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + }, + "bin": { + "qrcode": "bin/qrcode" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "packages/react/node_modules/react": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "packages/react/node_modules/react-dom": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", + "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.0" + }, + "peerDependencies": { + "react": "^18.2.0" + } + }, "packages/react/node_modules/setprototypeof": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==", "license": "ISC" }, + "packages/react/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "packages/react/node_modules/toidentifier": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", @@ -26510,9 +28889,47 @@ "webidl-conversions": "^3.0.0" } }, + "packages/react/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + }, + "packages/react/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "packages/react/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, "packages/rpc": { "name": "@mintbase-js/rpc", - "version": "0.6.5", + "version": "0.6.2-beta-prerelease.3", "license": "MIT", "dependencies": { "@types/node": "18.11.9", @@ -26525,7 +28942,7 @@ }, "packages/sdk": { "name": "@mintbase-js/sdk", - "version": "0.6.5", + "version": "0.6.2-beta-prerelease.3", "license": "MIT", "dependencies": { "near-api-js": "^4.0.3" @@ -26827,7 +29244,7 @@ }, "packages/storage": { "name": "@mintbase-js/storage", - "version": "0.6.5", + "version": "0.6.2-beta-prerelease.3", "license": "MIT", "dependencies": { "@mintbase-js/sdk": "0.6.2", @@ -27146,7 +29563,7 @@ }, "packages/testing": { "name": "@mintbase-js/testing", - "version": "0.6.5", + "version": "0.6.2-beta-prerelease.3", "license": "MIT", "dependencies": { "@google-cloud/firestore": "^6.8.0", @@ -27480,7 +29897,7 @@ }, "packages/wallet": { "name": "@mintbase-js/wallet", - "version": "0.6.5", + "version": "0.6.2-beta-prerelease.3", "license": "MIT", "dependencies": { "@near-wallet-selector/core": "8.9.12", From fb9835fbcf566e2db55b4a284c753f18af997033 Mon Sep 17 00:00:00 2001 From: Ruben Marcus Date: Tue, 8 Oct 2024 19:47:37 +0100 Subject: [PATCH 4/8] lock --- package-lock.json | 2 +- packages/react/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 40556f7a..7da4d5ce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28389,7 +28389,7 @@ "@wagmi/connectors": "5.0.10", "@wagmi/core": "2.10.5", "@web3modal/wagmi": "5.0.6", - "near-api-js": "^5.0.0", + "near-api-js": "^4.0.3", "react": "^18.2.0", "react-dom": "^18.2.0", "viem": "2.16.2", diff --git a/packages/react/package.json b/packages/react/package.json index 78482c82..da09b064 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -34,7 +34,7 @@ "@wagmi/connectors": "5.0.10", "@wagmi/core": "2.10.5", "@web3modal/wagmi": "5.0.6", - "near-api-js": "^5.0.0", + "near-api-js": "^4.0.3", "react": "^18.2.0", "react-dom": "^18.2.0", "viem": "2.16.2", From c57d4c4e68e7b7fb56678d8e21145fd7026f510d Mon Sep 17 00:00:00 2001 From: Ruben Marcus Date: Wed, 9 Oct 2024 11:40:10 +0100 Subject: [PATCH 5/8] update typescript --- package-lock.json | 366 +++++++--------------------------------------- package.json | 4 +- 2 files changed, 51 insertions(+), 319 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7da4d5ce..0affa302 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "@mintbase-js/storage": "file:packages/storage", "@mintbase-js/testing": "file:packages/testing", "@mintbase-js/wallet": "file:packages/wallet", - "@near-wallet-selector/wallet-utils": "^8.9.7", + "@near-wallet-selector/wallet-utils": "^8.9.13", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^14.4.3", "@types/big.js": "^6.2.2", @@ -52,7 +52,7 @@ "lerna": "^8.0.0", "lerna-jest": "^0.5.4", "ts-jest": "^29.0.3", - "typescript": "^4.8.4" + "typescript": "^5.0.4" } }, "node_modules/@adraffy/ens-normalize": { @@ -5049,17 +5049,6 @@ "near-api-js": "4.0.3" } }, - "node_modules/@near-wallet-selector/ethereum-wallets/node_modules/@near-wallet-selector/wallet-utils": { - "version": "8.9.13", - "resolved": "https://registry.npmjs.org/@near-wallet-selector/wallet-utils/-/wallet-utils-8.9.13.tgz", - "integrity": "sha512-+aoKVGW+FULRO7pN1jb232jbt3PB8RBY5K8Xj/oMxutjlXrE50QyOr1GfTEtaylCp86iMTGEexdSqtIFbQ4v/A==", - "dependencies": { - "@near-wallet-selector/core": "8.9.13" - }, - "peerDependencies": { - "near-api-js": "4.0.3" - } - }, "node_modules/@near-wallet-selector/ethereum-wallets/node_modules/@wagmi/core": { "version": "2.11.6", "resolved": "https://registry.npmjs.org/@wagmi/core/-/core-2.11.6.tgz", @@ -5241,6 +5230,15 @@ "borsh": "1.0.0" } }, + "node_modules/@near-wallet-selector/ledger/node_modules/@near-wallet-selector/wallet-utils": { + "version": "8.9.12", + "resolved": "https://registry.npmjs.org/@near-wallet-selector/wallet-utils/-/wallet-utils-8.9.12.tgz", + "integrity": "sha512-3KcZlaaiQ3OyQAqI48Px0dM7Bz3/6gLOgnNepk7BVEygX9h7CuDyVh5Ug3qgObbsDQ59vCLCDey0y0eI4BxkKQ==", + "dependencies": { + "@near-wallet-selector/core": "8.9.12", + "near-api-js": "4.0.3" + } + }, "node_modules/@near-wallet-selector/ledger/node_modules/base-x": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/base-x/-/base-x-2.0.6.tgz", @@ -5828,6 +5826,15 @@ "borsh": "1.0.0" } }, + "node_modules/@near-wallet-selector/my-near-wallet/node_modules/@near-wallet-selector/wallet-utils": { + "version": "8.9.12", + "resolved": "https://registry.npmjs.org/@near-wallet-selector/wallet-utils/-/wallet-utils-8.9.12.tgz", + "integrity": "sha512-3KcZlaaiQ3OyQAqI48Px0dM7Bz3/6gLOgnNepk7BVEygX9h7CuDyVh5Ug3qgObbsDQ59vCLCDey0y0eI4BxkKQ==", + "dependencies": { + "@near-wallet-selector/core": "8.9.12", + "near-api-js": "4.0.3" + } + }, "node_modules/@near-wallet-selector/my-near-wallet/node_modules/base-x": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/base-x/-/base-x-2.0.6.tgz", @@ -6107,6 +6114,15 @@ "borsh": "1.0.0" } }, + "node_modules/@near-wallet-selector/wallet-connect/node_modules/@near-wallet-selector/wallet-utils": { + "version": "8.9.12", + "resolved": "https://registry.npmjs.org/@near-wallet-selector/wallet-utils/-/wallet-utils-8.9.12.tgz", + "integrity": "sha512-3KcZlaaiQ3OyQAqI48Px0dM7Bz3/6gLOgnNepk7BVEygX9h7CuDyVh5Ug3qgObbsDQ59vCLCDey0y0eI4BxkKQ==", + "dependencies": { + "@near-wallet-selector/core": "8.9.12", + "near-api-js": "4.0.3" + } + }, "node_modules/@near-wallet-selector/wallet-connect/node_modules/base-x": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/base-x/-/base-x-2.0.6.tgz", @@ -6247,303 +6263,29 @@ } }, "node_modules/@near-wallet-selector/wallet-utils": { - "version": "8.9.12", - "resolved": "https://registry.npmjs.org/@near-wallet-selector/wallet-utils/-/wallet-utils-8.9.12.tgz", - "integrity": "sha512-3KcZlaaiQ3OyQAqI48Px0dM7Bz3/6gLOgnNepk7BVEygX9h7CuDyVh5Ug3qgObbsDQ59vCLCDey0y0eI4BxkKQ==", - "dependencies": { - "@near-wallet-selector/core": "8.9.12", - "near-api-js": "4.0.3" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/@near-js/accounts": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@near-js/accounts/-/accounts-1.2.1.tgz", - "integrity": "sha512-j6+9n/p0vVLAahmN3YRFve+j0ammOALC9ZUfFhdE3kqtJESbSWMviC5qF/s2m0JQjpJGDtEv/dTADosIJoanWw==", - "license": "ISC", - "dependencies": { - "@near-js/crypto": "1.2.4", - "@near-js/providers": "0.2.2", - "@near-js/signers": "0.1.4", - "@near-js/transactions": "1.2.2", - "@near-js/types": "0.2.1", - "@near-js/utils": "0.2.2", - "borsh": "1.0.0", - "depd": "2.0.0", - "is-my-json-valid": "^2.20.6", - "lru_map": "0.4.1", - "near-abi": "0.1.1" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/@near-js/crypto": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@near-js/crypto/-/crypto-1.2.4.tgz", - "integrity": "sha512-hcSj0ygvTcXlW9ftwEd9dbvQUWBCHNWNDLou9NLfmZERW9dr0gH8kUJPZUWfpJFlUPicb+jTiMpNwDTvP7VW4A==", - "license": "ISC", - "dependencies": { - "@near-js/types": "0.2.1", - "@near-js/utils": "0.2.2", - "@noble/curves": "1.2.0", - "borsh": "1.0.0", - "randombytes": "2.1.0" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/@near-js/keystores": { - "version": "0.0.12", - "resolved": "https://registry.npmjs.org/@near-js/keystores/-/keystores-0.0.12.tgz", - "integrity": "sha512-7dqq7XLUSlo26QbaGrS6bmqVL4IfhxJgfIhgKUDfv8FuswrpErBVCAUY6wIbW+mLw0NBoddzPrb5LuLIMfud5Q==", - "license": "ISC", - "dependencies": { - "@near-js/crypto": "1.2.4", - "@near-js/types": "0.2.1" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/@near-js/keystores-browser": { - "version": "0.0.12", - "resolved": "https://registry.npmjs.org/@near-js/keystores-browser/-/keystores-browser-0.0.12.tgz", - "integrity": "sha512-ptoVfJhMsktYcvY02wD2a8kDDH/E4d+kBfhwKF0H/Qt/w4JVJqEVgCLDBYUespuISTSqLSznNBjTSse+E7pJDQ==", - "license": "ISC", - "dependencies": { - "@near-js/crypto": "1.2.4", - "@near-js/keystores": "0.0.12" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/@near-js/keystores-node": { - "version": "0.0.12", - "resolved": "https://registry.npmjs.org/@near-js/keystores-node/-/keystores-node-0.0.12.tgz", - "integrity": "sha512-LUz1HPXBYoZUaLyS/bEj4yZ4pqD9Hb7XURikh22VYL8mbLcR5VmWYwS7Tmi9aO1vW8M9bPnQs5SROAyA79qQgQ==", - "license": "ISC", - "dependencies": { - "@near-js/crypto": "1.2.4", - "@near-js/keystores": "0.0.12" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/@near-js/providers": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@near-js/providers/-/providers-0.2.2.tgz", - "integrity": "sha512-1V3NhqxfkBvdvq8zhKqbKxsySpIr6PpmlDzkHjDr8uSu6MMvqBgy+1dBvWflEFlN7OlDGx35mVsq/4Xy0wu+KA==", - "license": "ISC", - "dependencies": { - "@near-js/transactions": "1.2.2", - "@near-js/types": "0.2.1", - "@near-js/utils": "0.2.2", - "borsh": "1.0.0", - "http-errors": "1.7.2" - }, - "optionalDependencies": { - "node-fetch": "2.6.7" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/@near-js/signers": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/@near-js/signers/-/signers-0.1.4.tgz", - "integrity": "sha512-YgH5X5fDOT/GsEAcyNM3heQWjIIL1MW3P8NtqilMa69HnsvtES9RCwjAXP8d8DZq/dBlI9od+pQ5XhxSFuXKCg==", - "license": "ISC", - "dependencies": { - "@near-js/crypto": "1.2.4", - "@near-js/keystores": "0.0.12", - "@noble/hashes": "1.3.3" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/@near-js/transactions": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@near-js/transactions/-/transactions-1.2.2.tgz", - "integrity": "sha512-WZ/Mk0hFvBIYcD6VBwYw4S2mmiKBKz6PT0YEwNzMzbgPZSs2wRVk4r9Tf+ueCJCPUXo5XINkjThCcRqMHQvPtg==", - "license": "ISC", - "dependencies": { - "@near-js/crypto": "1.2.4", - "@near-js/signers": "0.1.4", - "@near-js/types": "0.2.1", - "@near-js/utils": "0.2.2", - "@noble/hashes": "1.3.3", - "borsh": "1.0.0" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/@near-js/types": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@near-js/types/-/types-0.2.1.tgz", - "integrity": "sha512-YygQEGMdFe6d2e/6dtNZer9paH396XeAdIKEhY/RPXDUnjDdfiDQ5DK4mM130sEeID2bAH9X1LQ+7vXGRjvyWw==", - "license": "ISC" - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/@near-js/utils": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@near-js/utils/-/utils-0.2.2.tgz", - "integrity": "sha512-ZAJo/cN6AHY7/gckf8DLHwjAn0z4UwG6rhLxs+QDyNYMMSx9SBg2pOQtBBv7ORWJaPhWD2q7wFhUz4SdTZi43A==", - "license": "ISC", - "dependencies": { - "@near-js/types": "0.2.1", - "bs58": "4.0.0", - "depd": "2.0.0", - "mustache": "4.0.0" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/@near-js/wallet-account": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@near-js/wallet-account/-/wallet-account-1.2.2.tgz", - "integrity": "sha512-LaWzqaz2tP1hcToDlmiQnFMGZ1W9dM9i4nFSILe5PLIFLBQmYXdLWc80skGDiTUeihVu6wwtQr6Z2CcG231rWw==", - "license": "ISC", - "dependencies": { - "@near-js/accounts": "1.2.1", - "@near-js/crypto": "1.2.4", - "@near-js/keystores": "0.0.12", - "@near-js/providers": "0.2.2", - "@near-js/signers": "0.1.4", - "@near-js/transactions": "1.2.2", - "@near-js/types": "0.2.1", - "@near-js/utils": "0.2.2", - "borsh": "1.0.0" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/base-x": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-2.0.6.tgz", - "integrity": "sha512-UAmjxz9KbK+YIi66xej+pZVo/vxUOh49ubEvZW5egCbxhur05pBb+hwuireQwKO4nDpsNm64/jEei17LEpsr5g==", - "deprecated": "use 3.0.0 instead, safe-buffer has been merged and release for compatability", - "license": "MIT", - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": ">=4.5.0" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/borsh": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/borsh/-/borsh-1.0.0.tgz", - "integrity": "sha512-fSVWzzemnyfF89EPwlUNsrS5swF5CrtiN4e+h0/lLf4dz2he4L3ndM20PS9wj7ICSkXJe/TQUHdaPTq15b1mNQ==", - "license": "Apache-2.0" - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/bs58": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.0.tgz", - "integrity": "sha512-/jcGuUuSebyxwLLfKrbKnCJttxRf9PM51EnHTwmFKBxl4z1SGkoAhrfd6uZKE0dcjQTfm6XzTP8DPr1tzE4KIw==", - "license": "MIT", - "dependencies": { - "base-x": "^2.0.1" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/http-errors": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", - "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", - "license": "MIT", + "version": "8.9.13", + "resolved": "https://registry.npmjs.org/@near-wallet-selector/wallet-utils/-/wallet-utils-8.9.13.tgz", + "integrity": "sha512-+aoKVGW+FULRO7pN1jb232jbt3PB8RBY5K8Xj/oMxutjlXrE50QyOr1GfTEtaylCp86iMTGEexdSqtIFbQ4v/A==", "dependencies": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.1", - "statuses": ">= 1.5.0 < 2", - "toidentifier": "1.0.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/http-errors/node_modules/depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", - "license": "ISC" - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/mustache": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.0.0.tgz", - "integrity": "sha512-FJgjyX/IVkbXBXYUwH+OYwQKqWpFPLaLVESd70yHjSDunwzV2hZOoTBvPf4KLoxesUzzyfTH6F784Uqd7Wm5yA==", - "license": "MIT", - "bin": { - "mustache": "bin/mustache" + "@near-wallet-selector/core": "8.9.13" }, - "engines": { - "npm": ">=1.4.0" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/near-api-js": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/near-api-js/-/near-api-js-4.0.3.tgz", - "integrity": "sha512-NNxIUOGjTafDp65WKRmRqjOTdn4gukse5zFzo2YS/1YJMac++WR05mEsiAB2Aj54rDb/PL8TObQZgHtSs/Pjvg==", - "license": "(MIT AND Apache-2.0)", - "dependencies": { - "@near-js/accounts": "1.2.1", - "@near-js/crypto": "1.2.4", - "@near-js/keystores": "0.0.12", - "@near-js/keystores-browser": "0.0.12", - "@near-js/keystores-node": "0.0.12", - "@near-js/providers": "0.2.2", - "@near-js/signers": "0.1.4", - "@near-js/transactions": "1.2.2", - "@near-js/types": "0.2.1", - "@near-js/utils": "0.2.2", - "@near-js/wallet-account": "1.2.2", - "@noble/curves": "1.2.0", - "borsh": "1.0.0", - "depd": "2.0.0", - "http-errors": "1.7.2", - "near-abi": "0.1.1", - "node-fetch": "2.6.7" + "peerDependencies": { + "near-api-js": "4.0.3" } }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "license": "MIT", + "node_modules/@near-wallet-selector/wallet-utils/node_modules/@near-wallet-selector/core": { + "version": "8.9.13", + "resolved": "https://registry.npmjs.org/@near-wallet-selector/core/-/core-8.9.13.tgz", + "integrity": "sha512-ufI2yctF2N7+D6s5QaSs9Bqorh8xPH48wuBEvTbArJ6z9qvSCNsK9ZO5Mt5BFfO64ovmcflOOUBtZ4/BcNO6aQ==", "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" + "borsh": "0.7.0", + "events": "3.3.0", + "js-sha256": "0.9.0", + "rxjs": "7.8.1" }, "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/setprototypeof": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", - "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==", - "license": "ISC" - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/toidentifier": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", - "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", - "license": "MIT", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "license": "MIT" - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "license": "BSD-2-Clause" - }, - "node_modules/@near-wallet-selector/wallet-utils/node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" + "@near-js/providers": "latest", + "near-api-js": "4.0.3" } }, "node_modules/@noble/curves": { @@ -26419,15 +26161,16 @@ "dev": true }, "node_modules/typescript": { - "version": "4.9.5", + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", + "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", "dev": true, - "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, "node_modules/ua-parser-js": { @@ -28665,17 +28408,6 @@ "near-api-js": "4.0.3" } }, - "packages/react/node_modules/@near-wallet-selector/wallet-utils": { - "version": "8.9.13", - "resolved": "https://registry.npmjs.org/@near-wallet-selector/wallet-utils/-/wallet-utils-8.9.13.tgz", - "integrity": "sha512-+aoKVGW+FULRO7pN1jb232jbt3PB8RBY5K8Xj/oMxutjlXrE50QyOr1GfTEtaylCp86iMTGEexdSqtIFbQ4v/A==", - "dependencies": { - "@near-wallet-selector/core": "8.9.13" - }, - "peerDependencies": { - "near-api-js": "4.0.3" - } - }, "packages/react/node_modules/base-x": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/base-x/-/base-x-2.0.6.tgz", diff --git a/package.json b/package.json index 0183daee..2ff08767 100644 --- a/package.json +++ b/package.json @@ -74,8 +74,8 @@ "lerna": "^8.0.0", "lerna-jest": "^0.5.4", "ts-jest": "^29.0.3", - "typescript": "^4.8.4", - "@near-wallet-selector/wallet-utils": "^8.9.7" + "typescript": "^5.0.4", + "@near-wallet-selector/wallet-utils": "^8.9.13" }, "workspaces": [ "packages/*" From 54a212ae415a8ed3c4ade9c5cbd46465c57ea9a0 Mon Sep 17 00:00:00 2001 From: Ruben Marcus Date: Wed, 9 Oct 2024 11:45:56 +0100 Subject: [PATCH 6/8] legacy-peer-deps --- .github/workflows/branch-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/branch-publish.yml b/.github/workflows/branch-publish.yml index 842839ae..954c1501 100644 --- a/.github/workflows/branch-publish.yml +++ b/.github/workflows/branch-publish.yml @@ -30,8 +30,8 @@ jobs: run: | echo NEAR_NETWORK=testnet >> .env echo NFT_CONTRACT_ID=default_contract >> .env - npm install # Ensure package-lock.json is in sync - npm ci + npm install --legacy-peer-deps # Ensure package-lock.json is in sync + npm ci --legacy-peer-deps npm run lint npm run build npm run test From f140be0f84e4c6de56bf365f0afed38cf9b748a3 Mon Sep 17 00:00:00 2001 From: Ruben Marcus Date: Wed, 9 Oct 2024 11:54:56 +0100 Subject: [PATCH 7/8] update docs --- packages/auth/src/wallet.ts | 12 ++++++------ packages/wallet/README.md | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/auth/src/wallet.ts b/packages/auth/src/wallet.ts index 2136f473..394f99e9 100644 --- a/packages/auth/src/wallet.ts +++ b/packages/auth/src/wallet.ts @@ -21,7 +21,7 @@ import type { WalletSelectorModal } from '@near-wallet-selector/modal-ui'; import { SUPPORTED_NEAR_WALLETS } from './wallets.setup'; import { ERROR_MESSAGES } from './errorMessages'; import { mbjs } from '@mintbase-js/sdk'; -import { setupMintbaseWallet } from '@mintbase-js/wallet'; +import { setupBitteWallet } from '@mintbase-js/wallet'; // mintbase SDK wallet functionality wraps // Near Wallet Selector lib, provided by NEAR Protocol @@ -45,12 +45,12 @@ export let walletSelectorComponents: WalletSelectorComponents = { */ const walletUrls = { - testnet: 'https://testnet.wallet.mintbase.xyz/', - mainnet: 'https://wallet.mintbase.xyz', + testnet: 'https://testnet.wallet.bitte.ai/', + mainnet: 'https://wallet.bitte.ai', }; // eslint-disable-next-line max-len -export const setupMintbaseWalletSelector = async ( +export const setupBitteWalletSelector = async ( callbackUrl, onlyMbWallet = false, network?, @@ -65,7 +65,7 @@ export const setupMintbaseWalletSelector = async ( network: network, debug: mbjs.keys.debugMode, modules: [ - setupMintbaseWallet({ + setupBitteWallet({ walletUrl: walletUrls[network], deprecated: false, callbackUrl: callbackUrl, @@ -79,7 +79,7 @@ export const setupMintbaseWalletSelector = async ( network: network, debug: mbjs.keys.debugMode, modules: [ - setupMintbaseWallet({ + setupBitteWallet({ walletUrl: walletUrls[network], deprecated: false, callbackUrl: callbackUrl, diff --git a/packages/wallet/README.md b/packages/wallet/README.md index 8ced0717..ae32a7a8 100644 --- a/packages/wallet/README.md +++ b/packages/wallet/README.md @@ -11,13 +11,13 @@ -This is the [Mintbase Wallet](https://wallet.mintbase.xyz/) SDK package. +This is the [Bitte Wallet](https://wallet.bitte.ai/) SDK package. You can check a quick example of Simple Login using Next.js 14 and @mintbase-js/react -check our [React integration](https://docs.mintbase.xyz/dev/mintbase-sdk-ref/react#mintbasewalletcontextprovider) +check our [React integration](https://docs.mintbase.xyz/dev/mintbase-sdk-ref/react#bittewalletcontextprovider) Example: -You can check a [quick example of Simple Login](https://github.com/Mintbase/examples/tree/main/starter) using Next.js 14 and @mintbase-js/react +You can check a [quick example of Simple Login](https://github.com/Mintbase/templates/tree/main/starter-next) using Next.js 14 and @mintbase-js/react

@@ -101,9 +101,9 @@ Then use it in your dApp: ```ts import { setupWalletSelector } from "@near-wallet-selector/core"; -import { setupMintbaseWallet } from "@mintbase-js/wallet"; +import { setupBitteWallet } from "@mintbase-js/wallet"; -const mintbaseWallet = setupMintbaseWallet({ +const mintbaseWallet = setupBitteWallet({ networkId: 'mainnet', walletUrl: 'https://wallet.mintbase.xyz', callbackUrl: 'https://www.mywebsite.com', @@ -121,7 +121,7 @@ const selector = await setupWalletSelector({ -## setupMintbaseWallet +## setupBitteWallet From 9a252c1eed99c3a840d60bb4d0617398686ca8cb Mon Sep 17 00:00:00 2001 From: Ruben Marcus Date: Wed, 9 Oct 2024 12:12:13 +0100 Subject: [PATCH 8/8] fix tests --- package-lock.json | 9 +- packages/auth/package.json | 5 +- packages/auth/src/account.ts | 5 +- packages/auth/src/index.ts | 13 -- packages/auth/src/wallet.test.ts | 208 ------------------------------- 5 files changed, 11 insertions(+), 229 deletions(-) delete mode 100644 packages/auth/src/index.ts delete mode 100644 packages/auth/src/wallet.test.ts diff --git a/package-lock.json b/package-lock.json index 0affa302..38735dab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27508,7 +27508,7 @@ "license": "MIT", "dependencies": { "@mintbase-js/sdk": "0.6.2", - "@mintbase-js/wallet": "0.6.2", + "@mintbase-js/wallet": "0.6.5", "@near-wallet-selector/core": "8.9.12", "@near-wallet-selector/here-wallet": "8.9.12", "@near-wallet-selector/ledger": "8.9.12", @@ -27518,6 +27518,7 @@ "@near-wallet-selector/wallet-connect": "8.9.12", "bs58": "^5.0.0", "js-sha256": "^0.9.0", + "near-api-js": "^4.0.3", "rxjs": "^7.5.7" }, "devDependencies": { @@ -27537,9 +27538,9 @@ } }, "packages/auth/node_modules/@mintbase-js/wallet": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/@mintbase-js/wallet/-/wallet-0.6.2.tgz", - "integrity": "sha512-VX3+goKQ+PoC89YcM+Iap8KvdFvQgQ/InAE1e8+f0l7EsZvEbVM0K0+iv7HWorqHyGf4Ohw1Ke31OBgpIe81dA==", + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/@mintbase-js/wallet/-/wallet-0.6.5.tgz", + "integrity": "sha512-4HGT2t3yCj74dB3JRBIDOdNCGAkhiE65YMTGAxOobzlZpHlFv3mPjnKYeFgkMsnDhhsxFmfWNXrbwelywxvtCA==", "dependencies": { "@near-wallet-selector/core": "8.9.12", "@near-wallet-selector/wallet-utils": "^8.9.12", diff --git a/packages/auth/package.json b/packages/auth/package.json index 2ea8de68..04f6ad2c 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -20,7 +20,7 @@ "license": "MIT", "dependencies": { "@mintbase-js/sdk": "0.6.2", - "@mintbase-js/wallet": "0.6.2", + "@mintbase-js/wallet": "0.6.5", "@near-wallet-selector/core": "8.9.12", "@near-wallet-selector/here-wallet": "8.9.12", "@near-wallet-selector/ledger": "8.9.12", @@ -30,7 +30,8 @@ "@near-wallet-selector/wallet-connect": "8.9.12", "bs58": "^5.0.0", "js-sha256": "^0.9.0", - "rxjs": "^7.5.7" + "rxjs": "^7.5.7", + "near-api-js": "^4.0.3" }, "devDependencies": { "@types/node": "18.11.9", diff --git a/packages/auth/src/account.ts b/packages/auth/src/account.ts index cce678cb..f8d955ec 100644 --- a/packages/auth/src/account.ts +++ b/packages/auth/src/account.ts @@ -1,6 +1,7 @@ -import { connectToNear, Account, KeyStore } from '.'; import { mbjs } from '@mintbase-js/sdk'; +import { Account, connect as connectToNear } from 'near-api-js'; +import { KeyStore } from 'near-api-js/lib/key_stores'; /** * Connect to a NEAR account `accountId` with credentials in `keyStore` {@link KeyStore} @@ -23,7 +24,7 @@ export const connect = async ( keyStore: KeyStore, network: Network = mbjs.keys.network as Network, ): Promise => { - + const near = await connectToNear({ keyStore, networkId: network || mbjs.keys.network as Network, diff --git a/packages/auth/src/index.ts b/packages/auth/src/index.ts deleted file mode 100644 index 3f672f5f..00000000 --- a/packages/auth/src/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -export * from './account'; -export * from './wallet'; -export { BitteWalletAuth } from './bitte-wallet'; -export * from './constants'; - -// this is done to avoid importing near-api-js more than once -// which leads to a strange, but known issue -// https://docs.near.org/tools/near-api-js/faq#class-x-is-missing-in-schema-publickey -export { Account, providers, connect as connectToNear, KeyPair } from 'near-api-js'; -export { InMemoryKeyStore, KeyStore } from 'near-api-js/lib/key_stores'; - -// adding some other types from within libraries as a convenience -export { FinalExecutionOutcome } from '@near-wallet-selector/core'; diff --git a/packages/auth/src/wallet.test.ts b/packages/auth/src/wallet.test.ts deleted file mode 100644 index 4e6d5cda..00000000 --- a/packages/auth/src/wallet.test.ts +++ /dev/null @@ -1,208 +0,0 @@ -import { - walletSelectorComponents, - SetupNotCalledError, - setupWalletSelectorComponents, - pollForWalletConnection, - registerWalletAccountsSubscriber, - connectWalletSelector, - disconnectFromWalletSelector, - getWallet, - ConnectionTimeoutError, - getVerifiedOwner, - signMessage, -} from './wallet'; -import { setupWalletSelector } from '@near-wallet-selector/core'; -import { setupModal } from '@near-wallet-selector/modal-ui'; -import { Observable } from 'rxjs'; -// import { WALLET_CONNECTION_TIMEOUT, WALLET_CONNECTION_POLL_INTERVAL } from './constants'; - - -jest.mock('@near-wallet-selector/core'); -jest.mock('@near-wallet-selector/modal-ui'); -jest.mock('./constants', () => ({ - WALLET_CONNECTION_TIMEOUT: -1, - WALLET_CONNECTION_POLL_INTERVAL: 100, -})); - -globalThis.mbjs = { - keys :{ - apiKey: 'omni-site', - callbackUrl: 'https://www.mintbase.xyz/wallet-callback', - connectProxyAddress: null, - contractAddress: 'mintbase1.near', - debugMode: false, - ftAddresses: { - usdc: 'a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.factory.bridge.near', - }, - graphqlUrl: 'https://interop-mainnet.hasura.app/v1/graphql', - isSet: true, - marketAddress: 'simple.market.mintbase1.near', - mbContract: 'mintbase1.near', - nearRpcUrl: 'https://rpc.mainnet.near.org', - network: 'mainnet', - }, -}; - -// jest.useFakeTimers(); - -describe('wallet', () => { - const mockModal = { - show: jest.fn(), - }; - const mockWallet = { - signOut: jest.fn(), - verifyOwner: jest.fn(), - id: 'im.a.test.wallet', - }; - const mockGetState = jest.fn(); - const mockSelector = { - // eslint-disable-next-line @typescript-eslint/explicit-function-return-type - wallet: () => Promise.resolve(mockWallet), - store: { - observable: new Observable(), - getState: mockGetState, - }, - }; - beforeAll(() => { - jest.resetAllMocks(); - Object.defineProperty(global, 'localStorage', { - value: { - getItem: jest.fn(), - setItem: jest.fn(), - removeItem: jest.fn(), - }, - }); - }); - - // eslint-disable-next-line @typescript-eslint/explicit-function-return-type - const setupWithMockComponents = async () => { - (setupWalletSelector as jest.Mock).mockResolvedValueOnce(mockSelector); - (setupModal as jest.Mock).mockReturnValueOnce(mockModal); - return await setupWalletSelectorComponents(); - }; - - // eslint-disable-next-line @typescript-eslint/explicit-function-return-type - const setupWithNullComponents = async () => { - (setupWalletSelector as jest.Mock).mockResolvedValueOnce(null); - (setupModal as jest.Mock).mockReturnValueOnce(null); - return await setupWalletSelectorComponents(); - }; - - test('setupWalletSelectorComponents returns and defines components', async () => { - const { modal, selector } = await setupWithMockComponents(); - - expect(modal).toBeDefined(); - expect(selector).toBeDefined(); - expect(walletSelectorComponents).not.toBe(null); - }); - - test('registerWalletAccountsSubscriber throws when components are not setup', async () => { - await setupWithNullComponents(); - expect(() => { - // eslint-disable-next-line @typescript-eslint/no-empty-function - registerWalletAccountsSubscriber(() => {}); - }).toThrow(SetupNotCalledError); - }); - - test('registerWalletAccountsSubscriber returns the subscription', async () => { - await setupWithMockComponents(); - // eslint-disable-next-line @typescript-eslint/no-empty-function - const subscription = registerWalletAccountsSubscriber(() => {}); - expect(subscription.unsubscribe).toBeDefined(); - }); - - test('pollForWalletConnection throws when components are not setup', async () => { - await setupWithNullComponents(); - expect(pollForWalletConnection()) - .rejects - .toThrow(SetupNotCalledError); - }); - - test('pollForWalletConnection rejects after not finding accounts', async () => { - await setupWithMockComponents(); - mockGetState.mockReturnValueOnce({}); - // eslint-disable-next-line @typescript-eslint/no-empty-function - expect(pollForWalletConnection()).rejects.toThrow(ConnectionTimeoutError); - }); - - test('pollForWalletConnection returns accounts', async () => { - await setupWithMockComponents(); - mockGetState.mockReturnValueOnce({ - accounts: ['fake.account.near'], - }); - // eslint-disable-next-line @typescript-eslint/no-empty-function - const accounts = await pollForWalletConnection(); - - expect(accounts.length).toBeGreaterThan(0); - }); - - test('connectWalletSelector calls show modal', async () => { - await setupWithMockComponents(); - connectWalletSelector(); - expect(mockModal.show).toHaveBeenCalled(); - }); - - test('connectWalletSelector throws when components are not setup', async () => { - await setupWithNullComponents(); - expect(() => { - // eslint-disable-next-line @typescript-eslint/no-empty-function - connectWalletSelector(); - }).toThrow(SetupNotCalledError); - }); - - test('getWallet throws when components are not setup', async () => { - await setupWithNullComponents(); - expect(getWallet()) - .rejects - .toThrow(SetupNotCalledError); - }); - - test('getWallet returns wallet', async () => { - await setupWithMockComponents(); - const wallet = await getWallet(); - expect(wallet.id).toBe(mockWallet.id); - }); - - test('disconnectFromWalletSelector calls sign out on wallet', async () => { - await setupWithMockComponents(); - await disconnectFromWalletSelector(); - expect(mockWallet.signOut).toHaveBeenCalled(); - }); - - test('disconnectFromWalletSelector throws when components are not setup', async () => { - await setupWithNullComponents(); - expect(disconnectFromWalletSelector()) - .rejects - .toThrow(SetupNotCalledError); - }); - - test('getVerifiedOwner calls verifiedOwner on wallet', async () => { - await setupWithMockComponents(); - - // eslint-disable-next-line @typescript-eslint/no-empty-function - await getVerifiedOwner({ message: 'testMessage' }); - expect(mockWallet.verifyOwner).toHaveBeenCalled(); - }); - - test('getVerifiedOwner throws when components are not setup', async () => { - await setupWithNullComponents(); - expect(getVerifiedOwner({ message: 'testMessage' })) - .rejects - .toThrow(SetupNotCalledError); - }); - - test('signMessage calls verifiedOwner on wallet', async () => { - await setupWithMockComponents(); - - // eslint-disable-next-line @typescript-eslint/no-empty-function - await signMessage({ message: 'testMessage' }); - expect(mockWallet.verifyOwner).toHaveBeenCalled(); - }); - - test('signMessage throws when components are not setup', async () => { - await setupWithNullComponents(); - expect(signMessage({ message: 'testMessage' })) - .rejects - .toThrow(SetupNotCalledError); - }); -});