From 7b35253077c7323694277e585e55f39abdafe87b Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Wed, 10 Sep 2025 15:53:49 +0200 Subject: [PATCH] Remove Unused/Unnecessary Dependencies --- lib/portfolio.ts | 22 ++-- package.json | 6 - pnpm-lock.yaml | 305 +---------------------------------------------- 3 files changed, 16 insertions(+), 317 deletions(-) diff --git a/lib/portfolio.ts b/lib/portfolio.ts index f0ec6d2..bd73ae3 100644 --- a/lib/portfolio.ts +++ b/lib/portfolio.ts @@ -1,5 +1,4 @@ import { UserDashboardResponse, ZerionAPI } from 'zerion-sdk'; -import { Address, isAddress, zeroAddress } from 'viem'; import { kv } from '@vercel/kv'; import { chainIdToName, supportedMainnetChains } from '@/lib/constants'; import { WalletAgentContext, WalletBalanceCache } from '@/lib/types'; @@ -10,7 +9,7 @@ const GAS_ASSET_THRESHOLD = 0.1; const MAX_SIGNIFICANT_ASSETS = 20; export const getWalletAgentContext = async ( - address: Address, + address: `0x${string}`, ): Promise => { if (!isAddress(address)) { throw new Error('Invalid Ethereum address format'); @@ -33,11 +32,7 @@ export const getWalletAgentContext = async ( const zerionData = await getEvmBalances(address); const tokens = zerionData.tokens; - const nativeTokens = tokens.filter( - (token) => - !token.meta.contractAddress || - token.meta.contractAddress === zeroAddress, - ); + const nativeTokens = tokens.filter((token) => !token.meta.contractAddress); const chainsWithGas = nativeTokens .filter((token) => token.balances.usdBalance >= GAS_ASSET_THRESHOLD) @@ -99,7 +94,7 @@ export const getWalletAgentContext = async ( }; export const getEvmBalances = async ( - address: Address, + address: `0x${string}`, ): Promise => { if (!isAddress(address)) { throw new Error('Invalid Ethereum address format'); @@ -167,3 +162,14 @@ function generateActionableSummary( return summary; } + +// Instead of using viem, use a simple regex to check if the address is valid. +const addressRegex = /^0x[a-fA-F0-9]{40}$/ + +function isAddress(address: string): boolean { + // Break early with simple check. + if (!address.startsWith('0x') && address.length === 42) {return false;} + + // Then try the regex. + return addressRegex.test(address); +} \ No newline at end of file diff --git a/package.json b/package.json index 990d101..6e974ed 100644 --- a/package.json +++ b/package.json @@ -17,10 +17,6 @@ "@bitte-ai/data": " 0.1.0-main-cd0def5", "@google-cloud/firestore": "^7.11.0", "@jest/globals": "^29.7.0", - "@mintbase-js/data": "^0.6.6", - "@mintbase-js/rpc": "^0.6.6", - "@mintbase-js/sdk": "^0.6.6", - "@mintbase-js/storage": "^0.6.6", "@mysten/sui": "^1.27.1", "@near-wallet-selector/core": "^8.10.1", "@prisma/client": "6.6.0", @@ -55,7 +51,6 @@ "sonner": "^2.0.1", "tailwind-merge": "^3.0.1", "tailwindcss-animate": "^1.0.7", - "viem": "^2.27.0", "zerion-sdk": "^0.1.1", "zod": "^3.24.2" }, @@ -67,7 +62,6 @@ "@types/node-fetch": "^2.6.12", "@types/react": "^19", "@types/react-dom": "^19", - "cross-fetch": "^4.1.0", "eslint": "^9", "eslint-config-next": "15.1.0", "jest": "^29.7.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 13f79e1..b99107c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,18 +23,6 @@ importers: '@jest/globals': specifier: ^29.7.0 version: 29.7.0 - '@mintbase-js/data': - specifier: ^0.6.6 - version: 0.6.6(graphql@16.10.0) - '@mintbase-js/rpc': - specifier: ^0.6.6 - version: 0.6.6 - '@mintbase-js/sdk': - specifier: ^0.6.6 - version: 0.6.6 - '@mintbase-js/storage': - specifier: ^0.6.6 - version: 0.6.6 '@mysten/sui': specifier: ^1.27.1 version: 1.27.1(typescript@5.7.3) @@ -137,9 +125,6 @@ importers: tailwindcss-animate: specifier: ^1.0.7 version: 1.0.7(tailwindcss@3.4.17) - viem: - specifier: ^2.27.0 - version: 2.27.0(bufferutil@4.0.9)(typescript@5.7.3)(utf-8-validate@5.0.10)(zod@3.24.2) zerion-sdk: specifier: ^0.1.1 version: 0.1.1 @@ -168,9 +153,6 @@ importers: '@types/react-dom': specifier: ^19 version: 19.0.3(@types/react@19.0.8) - cross-fetch: - specifier: ^4.1.0 - version: 4.1.0 eslint: specifier: ^9 version: 9.20.0(jiti@1.21.7) @@ -1561,21 +1543,6 @@ packages: resolution: {integrity: sha512-w8CVbdkDrVXFJbfBSlDfafDR6BAkpDmv1bC1UJVCoVny5tW2RKAdn9i68Xf7asYT4TnUhl/hN4zfUiKQq9II4g==} engines: {node: '>=16.0.0'} - '@mintbase-js/data@0.6.6': - resolution: {integrity: sha512-vIdD7JBFMmJoV/khoH1MBLtzhfBibb+8yFVlO34OQpOCuRzMG/CZRahvndqlYRzlMRo6qswtPi/KjAUoV0PY5w==} - - '@mintbase-js/rpc@0.6.6': - resolution: {integrity: sha512-V27yssgNwmYlIi0wUIZ81TP9Y5v1mCAMd7exhH3VS3hIl5hWZRcvZweQp07wee8pOR//wy7gCPrV2wPIQqlZGw==} - - '@mintbase-js/sdk@0.6.2': - resolution: {integrity: sha512-ciLbuF5hC/fudaHeEhlfa79P3UN0H+pjjgACEU1/zCaS2lUAndymydo2N7nUNwqM2c88Z0lUgFHrl81W402s3Q==} - - '@mintbase-js/sdk@0.6.6': - resolution: {integrity: sha512-97j8qj/Sf9Ohyeej+Bv7KQRUmqyOhsofBDo0+y0sxfnJ1dFWGse3o46aCFpfWAct06kbcklfs8mPsbbOlkvBGw==} - - '@mintbase-js/storage@0.6.6': - resolution: {integrity: sha512-tpnnm3ouxyKlkNC2JHs1n8b5UGzUQWW4C3Yz5Bym4zBNh1oT8loM9rc697wYd43gufm2RBYIXDs4skJJKH9+Ng==} - '@mysten/bcs@1.0.4': resolution: {integrity: sha512-6JoQi59GN/dVEBCNq8Rj4uOR0niDrJqDx/2gNQWXANwJakHIGH0AMniHrXP41B2dF+mZ3HVmh9Hi3otiEVQTrQ==} @@ -1612,69 +1579,36 @@ packages: '@mysten/zksend@0.11.0': resolution: {integrity: sha512-Q44ljYpH2Om8kOu/P+gxhZjFh8HgGXM3fdvpv3u0Fh+IbZW0ypv6G2RGDwldWBXY+pYO4xVpxres8QfC4CzALQ==} - '@near-js/accounts@1.2.2': - resolution: {integrity: sha512-8XInUVl8WwQyitRkG1HffZKhDmAXUwOaxurgkTYocDUUUp+ZB8NPxidg2uvj6f2wqnC8KAkjpm73wPoyRm6+yQ==} - '@near-js/accounts@1.4.1': resolution: {integrity: sha512-ni3QT9H3NdrbVVKyx56yvz93r89Dvpc/vgVtiIK2OdXjkK6jcj+UKMDRQ6F7rd9qJOInLkHZbVBtcR6j1CXLjw==} - '@near-js/crypto@1.3.0': - resolution: {integrity: sha512-BIKO6v+rbYCzzrjsSV4KgClVgRiPluIXQ89B4ozIG8RjjBe/7IPFYF9tIxsXUyLzPFhISzeNQkL09ksHHmnymg==} - '@near-js/crypto@1.4.2': resolution: {integrity: sha512-GRfchsyfWvSAPA1gI9hYhw5FH94Ac1BUo+Cmp5rSJt/V0K3xVzCWgOQxvv4R3kDnWjaXJEuAmpEEnr4Bp3FWrA==} - '@near-js/keystores-browser@0.1.0': - resolution: {integrity: sha512-v/4uFHKnbEXY4UcOAVCUSb3GKsVdrwv4uXBSPluvE16H9oxjB1+gfcz5qejwKp2cifYNCO0KfAWLnZas66Ohcg==} - '@near-js/keystores-browser@0.2.2': resolution: {integrity: sha512-Pxqm7WGtUu6zj32vGCy9JcEDpZDSB5CCaLQDTQdF3GQyL0flyRv2I/guLAgU5FLoYxU7dJAX9mslJhPW7P2Bfw==} - '@near-js/keystores-node@0.0.13': - resolution: {integrity: sha512-cnk2mwIRr7bCPgqz7KHU1Bqxm0u9J+FIubZ0AllFpMVMv8TJVVbs7FcsVIk282oeM7xxikjVJjs35DG6//Fehw==} - '@near-js/keystores-node@0.1.2': resolution: {integrity: sha512-MWLvTszZOVziiasqIT/LYNhUyWqOJjDGlsthOsY6dTL4ZcXjjmhmzrbFydIIeQr+CcEl5wukTo68ORI9JrHl6g==} - '@near-js/keystores@0.1.0': - resolution: {integrity: sha512-89EwYFDvPg7GnJAKmBDASKUSTXny0ZqgqDnSdhp7oJ78bXNlCs9xx0WnkK34TxFBnrL4c9szLjTkfGRcFT07NQ==} - '@near-js/keystores@0.2.2': resolution: {integrity: sha512-DLhi/3a4qJUY+wgphw2Jl4S+L0AKsUYm1mtU0WxKYV5OBwjOXvbGrXNfdkheYkfh3nHwrQgtjvtszX6LrRXLLw==} - '@near-js/providers@0.2.3': - resolution: {integrity: sha512-JBSze9fdoRXkOsFeLiooPWGm3vemY2dgHT0u0HoJCjpQtt41v7tr+6sWpxGWCaDwrzIwhm7og4qkGv4K9IxFVw==} - '@near-js/providers@1.0.3': resolution: {integrity: sha512-VJMboL14R/+MGKnlhhE3UPXCGYvMd1PpvF9OqZ9yBbulV7QVSIdTMfY4U1NnDfmUC2S3/rhAEr+3rMrIcNS7Fg==} - '@near-js/signers@0.1.5': - resolution: {integrity: sha512-UldCktmR6HF6N2gPbgiUS8QPYCcDwjyzpdi3ukKezfY2NGA++F068ZwP50S+aQrtcwEBpECTo/Ps6pZq7cSVeQ==} - '@near-js/signers@0.2.2': resolution: {integrity: sha512-M6ib+af9zXAPRCjH2RyIS0+RhCmd9gxzCeIkQ+I2A3zjgGiEDkBZbYso9aKj8Zh2lPKKSH7h+u8JGymMOSwgyw==} - '@near-js/transactions@1.2.3': - resolution: {integrity: sha512-wwkUupWrmKfdZmv6TmnTrskysX37F2SVHcns6BVwPjp6nFD29NAhul71I6u++8496Lq2FrgM1Kb8pEIpG9TV9w==} - '@near-js/transactions@1.3.3': resolution: {integrity: sha512-1AXD+HuxlxYQmRTLQlkVmH+RAmV3HwkAT8dyZDu+I2fK/Ec9BQHXakOJUnOBws3ihF+akQhamIBS5T0EXX/Ylw==} - '@near-js/types@0.2.1': - resolution: {integrity: sha512-YygQEGMdFe6d2e/6dtNZer9paH396XeAdIKEhY/RPXDUnjDdfiDQ5DK4mM130sEeID2bAH9X1LQ+7vXGRjvyWw==} - '@near-js/types@0.3.1': resolution: {integrity: sha512-8qIA7ynAEAuVFNAQc0cqz2xRbfyJH3PaAG5J2MgPPhD18lu/tCGd6pzYg45hjhtiJJRFDRjh/FUWKS+ZiIIxUw==} - '@near-js/utils@0.3.0': - resolution: {integrity: sha512-ExeWqP0b4subLcQuLDIixAZs6tiCWifDBz2OwU9ycntyjZslUUh4EKBaSS3mAEqhJ/t1B9WX80BntE/5PQ+JTg==} - '@near-js/utils@1.1.0': resolution: {integrity: sha512-5XWRq7xpu8Wud9pRXe2U347KXyi0mXofedUY2DQ9TaqiZUcMIaN9xj7DbCs2v6dws3pJyYrT1KWxeNp5fSaY3w==} - '@near-js/wallet-account@1.2.3': - resolution: {integrity: sha512-yuYKKA8D06ztmbTvbajD8HBjP50x2NbMRPInsSSgNjBnvFA9f2J82SarzDLg+nTsayhMJdFGfArnKgIlO+bUaw==} - '@near-js/wallet-account@1.3.3': resolution: {integrity: sha512-GDzg/Kz0GBYF7tQfyQQQZ3vviwV8yD+8F2lYDzsWJiqIln7R1ov0zaXN4Tii86TeS21KPn2hHAsVu3Y4txa8OQ==} @@ -1745,9 +1679,6 @@ packages: resolution: {integrity: sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==} engines: {node: ^14.21.3 || >=16} - '@noble/curves@1.2.0': - resolution: {integrity: sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==} - '@noble/curves@1.4.2': resolution: {integrity: sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==} @@ -1766,10 +1697,6 @@ packages: '@noble/hashes@1.3.0': resolution: {integrity: sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==} - '@noble/hashes@1.3.2': - resolution: {integrity: sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==} - engines: {node: '>= 16'} - '@noble/hashes@1.3.3': resolution: {integrity: sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==} engines: {node: '>= 16'} @@ -2720,9 +2647,6 @@ packages: '@types/node-fetch@2.6.12': resolution: {integrity: sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==} - '@types/node@18.11.9': - resolution: {integrity: sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==} - '@types/node@18.19.86': resolution: {integrity: sha512-fifKayi175wLyKyc5qUfyENhQ1dCNI1UNjp653d8kuYcPQN5JhX3dGuP/XmvPTg/xRBn1VTLpbmi+H/Mr7tLfQ==} @@ -3217,11 +3141,6 @@ packages: balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - base-x@2.0.6: - resolution: {integrity: sha512-UAmjxz9KbK+YIi66xej+pZVo/vxUOh49ubEvZW5egCbxhur05pBb+hwuireQwKO4nDpsNm64/jEei17LEpsr5g==} - engines: {node: '>=4.5.0'} - deprecated: use 3.0.0 instead, safe-buffer has been merged and release for compatability - base-x@5.0.1: resolution: {integrity: sha512-M7uio8Zt++eg3jPj+rHMfCC+IuygQHHCOU+IYsVtik6FWjuYpVt/+MRKcgsAMHh8mMFAwnB+Bs+mTrFiXjMzKg==} @@ -3288,9 +3207,6 @@ packages: resolution: {integrity: sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==} engines: {node: '>= 6'} - bs58@4.0.0: - resolution: {integrity: sha512-/jcGuUuSebyxwLLfKrbKnCJttxRf9PM51EnHTwmFKBxl4z1SGkoAhrfd6uZKE0dcjQTfm6XzTP8DPr1tzE4KIw==} - bs58@6.0.0: resolution: {integrity: sha512-PD0wEnEYg6ijszw/u8s+iI3H17cTymlrwkKhDhPZq+Sokl3AU4htyBFTjAeNAlCCmg0f53g6ih3jATyCKftTfw==} @@ -4023,10 +3939,6 @@ packages: resolution: {integrity: sha512-an2S5quJMiy5bnZKEf6AkfH/7r8CzHvhchU40gxN+OM6HPhe7Z9T1FUychcf2M9PpPOO0Hf7BAEfJkw2TDIBDw==} engines: {node: '>=12.0.0'} - extract-files@9.0.0: - resolution: {integrity: sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ==} - engines: {node: ^10.17.0 || ^12.0.0 || >= 13.7.0} - fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -4105,10 +4017,6 @@ packages: resolution: {integrity: sha512-GgwY0PS7DbXqajuGf4OYlsrIu3zgxD6Vvql43IBhm6MahqA5SK/7mwhtNj2AdH2z35YR34ujJ7BN+3fFC3jP5Q==} engines: {node: '>= 0.12'} - form-data@3.0.3: - resolution: {integrity: sha512-q5YBMeWy6E2Un0nMGWMgI65MAKtaylxfNJGJxpGh45YDciZB4epbWpaAfImil6CPAPTYB4sh0URQNDRIZG5F2w==} - engines: {node: '>= 6'} - form-data@4.0.2: resolution: {integrity: sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==} engines: {node: '>= 6'} @@ -4264,11 +4172,6 @@ packages: graphemer@1.4.0: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} - graphql-request@5.2.0: - resolution: {integrity: sha512-pLhKIvnMyBERL0dtFI3medKqWOz/RhHdcgbZ+hMMIb32mEPa5MJSzS4AuXxfI4sRAu6JVVk5tvXuGfCWl9JYWQ==} - peerDependencies: - graphql: 14 - 16 - graphql@16.10.0: resolution: {integrity: sha512-AjqGKbDGUFRKIRCP9tCKiIGHyriz2oHEbPIbEtcSLSs4YjReZOIPQQWek4+6hjw62H9QShXHyaGivGiYVLeYFQ==} engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0} @@ -5228,15 +5131,9 @@ packages: natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - near-abi@0.1.1: - resolution: {integrity: sha512-RVDI8O+KVxRpC3KycJ1bpfVj9Zv+xvq9PlW1yIFl46GhrnLw83/72HqHGjGDjQ8DtltkcpSjY9X3YIGZ+1QyzQ==} - near-abi@0.2.0: resolution: {integrity: sha512-kCwSf/3fraPU2zENK18sh+kKG4uKbEUEQdyWQkmW8ZofmLarObIz2+zAYjA1teDZLeMvEQew3UysnPDXgjneaA==} - near-api-js@4.0.4: - resolution: {integrity: sha512-IG+6NAMtn854palu/cIbVgey0OsIzllcajc3fbEbh7cb2pyPNMsfsBIO5WqsV+rY+7Tqr6lqYQ8f+4BHGUttyg==} - near-api-js@5.1.1: resolution: {integrity: sha512-h23BGSKxNv8ph+zU6snicstsVK1/CTXsQz4LuGGwoRE24Hj424nSe4+/1tzoiC285Ljf60kPAqRCmsfv9etF2g==} @@ -6027,10 +5924,6 @@ packages: scheduler@0.25.0: resolution: {integrity: sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==} - secp256k1@5.0.0: - resolution: {integrity: sha512-TKWX8xvoGHrxVdqbYeZM9w+izTF4b9z3NhSaDkdn81btvuh+ivbIMGT/zQvDtTFWhRlThpoz6LEYTr7n8A5GcA==} - engines: {node: '>=14.0.0'} - secp256k1@5.0.1: resolution: {integrity: sha512-lDFs9AAIaWP9UCdtWrotXWWF9t8PWgQDcxqgAnpM9rMqxb3Oaq2J0thzPVSxBwdJgyQtkU/sYtFtbM1RSt/iYA==} engines: {node: '>=18.0.0'} @@ -8547,43 +8440,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@mintbase-js/data@0.6.6(graphql@16.10.0)': - dependencies: - '@mintbase-js/sdk': 0.6.2 - cross-fetch: 4.1.0 - graphql-request: 5.2.0(graphql@16.10.0) - transitivePeerDependencies: - - encoding - - graphql - - '@mintbase-js/rpc@0.6.6': - dependencies: - '@types/node': 18.11.9 - bn.js: 5.2.1 - cross-fetch: 4.1.0 - transitivePeerDependencies: - - encoding - - '@mintbase-js/sdk@0.6.2': - dependencies: - near-api-js: 4.0.4 - transitivePeerDependencies: - - encoding - - '@mintbase-js/sdk@0.6.6': - dependencies: - near-api-js: 4.0.4 - transitivePeerDependencies: - - encoding - - '@mintbase-js/storage@0.6.6': - dependencies: - '@mintbase-js/sdk': 0.6.2 - form-data: 4.0.2 - near-api-js: 4.0.4 - transitivePeerDependencies: - - encoding - '@mysten/bcs@1.0.4': dependencies: bs58: 6.0.0 @@ -8701,22 +8557,6 @@ snapshots: - '@gql.tada/vue-support' - typescript - '@near-js/accounts@1.2.2': - dependencies: - '@near-js/crypto': 1.3.0 - '@near-js/providers': 0.2.3 - '@near-js/signers': 0.1.5 - '@near-js/transactions': 1.2.3 - '@near-js/types': 0.2.1 - '@near-js/utils': 0.3.0 - 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 - transitivePeerDependencies: - - encoding - '@near-js/accounts@1.4.1': dependencies: '@near-js/crypto': 1.4.2 @@ -8734,15 +8574,6 @@ snapshots: transitivePeerDependencies: - encoding - '@near-js/crypto@1.3.0': - dependencies: - '@near-js/types': 0.2.1 - '@near-js/utils': 0.3.0 - '@noble/curves': 1.2.0 - borsh: 1.0.0 - randombytes: 2.1.0 - secp256k1: 5.0.0 - '@near-js/crypto@1.4.2': dependencies: '@near-js/types': 0.3.1 @@ -8752,48 +8583,21 @@ snapshots: randombytes: 2.1.0 secp256k1: 5.0.1 - '@near-js/keystores-browser@0.1.0': - dependencies: - '@near-js/crypto': 1.3.0 - '@near-js/keystores': 0.1.0 - '@near-js/keystores-browser@0.2.2': dependencies: '@near-js/crypto': 1.4.2 '@near-js/keystores': 0.2.2 - '@near-js/keystores-node@0.0.13': - dependencies: - '@near-js/crypto': 1.3.0 - '@near-js/keystores': 0.1.0 - '@near-js/keystores-node@0.1.2': dependencies: '@near-js/crypto': 1.4.2 '@near-js/keystores': 0.2.2 - '@near-js/keystores@0.1.0': - dependencies: - '@near-js/crypto': 1.3.0 - '@near-js/types': 0.2.1 - '@near-js/keystores@0.2.2': dependencies: '@near-js/crypto': 1.4.2 '@near-js/types': 0.3.1 - '@near-js/providers@0.2.3': - dependencies: - '@near-js/transactions': 1.2.3 - '@near-js/types': 0.2.1 - '@near-js/utils': 0.3.0 - borsh: 1.0.0 - http-errors: 1.7.2 - optionalDependencies: - node-fetch: 2.6.7 - transitivePeerDependencies: - - encoding - '@near-js/providers@1.0.3': dependencies: '@near-js/transactions': 1.3.3 @@ -8806,27 +8610,12 @@ snapshots: transitivePeerDependencies: - encoding - '@near-js/signers@0.1.5': - dependencies: - '@near-js/crypto': 1.3.0 - '@near-js/keystores': 0.1.0 - '@noble/hashes': 1.3.3 - '@near-js/signers@0.2.2': dependencies: '@near-js/crypto': 1.4.2 '@near-js/keystores': 0.2.2 '@noble/hashes': 1.3.3 - '@near-js/transactions@1.2.3': - dependencies: - '@near-js/crypto': 1.3.0 - '@near-js/signers': 0.1.5 - '@near-js/types': 0.2.1 - '@near-js/utils': 0.3.0 - '@noble/hashes': 1.3.3 - borsh: 1.0.0 - '@near-js/transactions@1.3.3': dependencies: '@near-js/crypto': 1.4.2 @@ -8836,17 +8625,8 @@ snapshots: '@noble/hashes': 1.7.1 borsh: 1.0.0 - '@near-js/types@0.2.1': {} - '@near-js/types@0.3.1': {} - '@near-js/utils@0.3.0': - dependencies: - '@near-js/types': 0.2.1 - bs58: 4.0.0 - depd: 2.0.0 - mustache: 4.0.0 - '@near-js/utils@1.1.0': dependencies: '@near-js/types': 0.3.1 @@ -8854,20 +8634,6 @@ snapshots: depd: 2.0.0 mustache: 4.0.0 - '@near-js/wallet-account@1.2.3': - dependencies: - '@near-js/accounts': 1.2.2 - '@near-js/crypto': 1.3.0 - '@near-js/keystores': 0.1.0 - '@near-js/providers': 0.2.3 - '@near-js/signers': 0.1.5 - '@near-js/transactions': 1.2.3 - '@near-js/types': 0.2.1 - '@near-js/utils': 0.3.0 - borsh: 1.0.0 - transitivePeerDependencies: - - encoding - '@near-js/wallet-account@1.3.3': dependencies: '@near-js/accounts': 1.4.1 @@ -8924,10 +8690,6 @@ snapshots: '@noble/ciphers@1.3.0': {} - '@noble/curves@1.2.0': - dependencies: - '@noble/hashes': 1.3.2 - '@noble/curves@1.4.2': dependencies: '@noble/hashes': 1.4.0 @@ -8946,8 +8708,6 @@ snapshots: '@noble/hashes@1.3.0': {} - '@noble/hashes@1.3.2': {} - '@noble/hashes@1.3.3': {} '@noble/hashes@1.4.0': {} @@ -10184,8 +9944,6 @@ snapshots: '@types/node': 20.17.17 form-data: 4.0.2 - '@types/node@18.11.9': {} - '@types/node@18.19.86': dependencies: undici-types: 5.26.5 @@ -11256,10 +11014,6 @@ snapshots: balanced-match@1.0.2: {} - base-x@2.0.6: - dependencies: - safe-buffer: 5.2.1 - base-x@5.0.1: {} base64-js@1.5.1: {} @@ -11323,10 +11077,6 @@ snapshots: dependencies: fast-json-stable-stringify: 2.1.0 - bs58@4.0.0: - dependencies: - base-x: 2.0.6 - bs58@6.0.0: dependencies: base-x: 5.0.1 @@ -11984,7 +11734,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@8.24.0(eslint@9.20.0(jiti@1.21.7))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0)(eslint@9.20.0(jiti@1.21.7)))(eslint@9.20.0(jiti@1.21.7)): + eslint-module-utils@2.12.0(@typescript-eslint/parser@8.24.0(eslint@9.20.0(jiti@1.21.7))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0)(eslint@9.20.0(jiti@1.21.7)): dependencies: debug: 3.2.7 optionalDependencies: @@ -12006,7 +11756,7 @@ snapshots: doctrine: 2.1.0 eslint: 9.20.0(jiti@1.21.7) eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.24.0(eslint@9.20.0(jiti@1.21.7))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0)(eslint@9.20.0(jiti@1.21.7)))(eslint@9.20.0(jiti@1.21.7)) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.24.0(eslint@9.20.0(jiti@1.21.7))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0)(eslint@9.20.0(jiti@1.21.7)) hasown: 2.0.2 is-core-module: 2.16.1 is-glob: 4.0.3 @@ -12218,8 +11968,6 @@ snapshots: readable-stream: 3.6.2 webextension-polyfill: 0.10.0 - extract-files@9.0.0: {} - fast-deep-equal@3.1.3: {} fast-glob@3.3.1: @@ -12305,13 +12053,6 @@ snapshots: mime-types: 2.1.35 safe-buffer: 5.2.1 - form-data@3.0.3: - dependencies: - asynckit: 0.4.0 - combined-stream: 1.0.8 - es-set-tostringtag: 2.1.0 - mime-types: 2.1.35 - form-data@4.0.2: dependencies: asynckit: 0.4.0 @@ -12508,16 +12249,6 @@ snapshots: graphemer@1.4.0: {} - graphql-request@5.2.0(graphql@16.10.0): - dependencies: - '@graphql-typed-document-node/core': 3.2.0(graphql@16.10.0) - cross-fetch: 3.2.0 - extract-files: 9.0.0 - form-data: 3.0.3 - graphql: 16.10.0 - transitivePeerDependencies: - - encoding - graphql@16.10.0: {} gtoken@7.1.0: @@ -13963,36 +13694,10 @@ snapshots: natural-compare@1.4.0: {} - near-abi@0.1.1: - dependencies: - '@types/json-schema': 7.0.15 - near-abi@0.2.0: dependencies: '@types/json-schema': 7.0.15 - near-api-js@4.0.4: - dependencies: - '@near-js/accounts': 1.2.2 - '@near-js/crypto': 1.3.0 - '@near-js/keystores': 0.1.0 - '@near-js/keystores-browser': 0.1.0 - '@near-js/keystores-node': 0.0.13 - '@near-js/providers': 0.2.3 - '@near-js/signers': 0.1.5 - '@near-js/transactions': 1.2.3 - '@near-js/types': 0.2.1 - '@near-js/utils': 0.3.0 - '@near-js/wallet-account': 1.2.3 - '@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 - transitivePeerDependencies: - - encoding - near-api-js@5.1.1: dependencies: '@near-js/accounts': 1.4.1 @@ -15014,12 +14719,6 @@ snapshots: scheduler@0.25.0: {} - secp256k1@5.0.0: - dependencies: - elliptic: 6.6.1 - node-addon-api: 5.1.0 - node-gyp-build: 4.8.4 - secp256k1@5.0.1: dependencies: elliptic: 6.6.1