diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 453797c0..1985f873 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: - uses: pnpm/action-setup@v4 with: - version: 8 + version: 9.12.2 - name: Setup Node.js environment uses: actions/setup-node@v3 @@ -43,7 +43,7 @@ jobs: - uses: pnpm/action-setup@v4 with: - version: 8 + version: 9.12.2 - name: Setup Node.js environment uses: actions/setup-node@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8ed6df91..494243ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,7 @@ jobs: - uses: pnpm/action-setup@v4 with: - version: 8 + version: 9.12.2 - name: Set up Node uses: actions/setup-node@v3 @@ -48,7 +48,7 @@ jobs: run: pnpm publish -r --report-summary env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - + publish-github: needs: release name: Publish @@ -77,4 +77,4 @@ jobs: - name: Publish run: pnpm publish -r --report-summary env: - NODE_AUTH_TOKEN: ${{secrets.GIT_HUB_TOKEN}} \ No newline at end of file + NODE_AUTH_TOKEN: ${{secrets.GIT_HUB_TOKEN}} diff --git a/.github/workflows/relyance-sci.yml b/.github/workflows/relyance-sci.yml index 1462102d..5a890428 100644 --- a/.github/workflows/relyance-sci.yml +++ b/.github/workflows/relyance-sci.yml @@ -1,20 +1,20 @@ name: Relyance SCI Scan on: - schedule: - - cron: "0 20 * * *" - workflow_dispatch: + schedule: + - cron: '0 20 * * *' + workflow_dispatch: jobs: - execute-relyance-sci: - name: Relyance SCI Job - runs-on: ubuntu-latest + execute-relyance-sci: + name: Relyance SCI Job + runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 + steps: + - name: Checkout + uses: actions/checkout@v4 - - name: Pull and run SCI binary - run: |- - docker pull gcr.io/relyance-ext/compliance_inspector:release && \ - docker run --rm -v `pwd`:/repo --env API_KEY='${{ secrets.DPP_SCI_KEY }}' gcr.io/relyance-ext/compliance_inspector:release + - name: Pull and run SCI binary + run: |- + docker pull gcr.io/relyance-ext/compliance_inspector:release && \ + docker run --rm -v `pwd`:/repo --env API_KEY='${{ secrets.DPP_SCI_KEY }}' gcr.io/relyance-ext/compliance_inspector:release diff --git a/cspell.json b/cspell.json index 5ea81418..6c41dc86 100644 --- a/cspell.json +++ b/cspell.json @@ -3,20 +3,8 @@ "enabled": true, "language": "en-US", "allowCompoundWords": true, - "dictionaries": [ - "typescript", - "node", - "npm", - "html" - ], - "enabledLanguageIds": [ - "typescript", - "typescriptreact", - "javascript", - "markdown", - "yaml", - "json" - ], + "dictionaries": ["typescript", "node", "npm", "html"], + "enabledLanguageIds": ["typescript", "typescriptreact", "javascript", "markdown", "yaml", "json"], "words": [ "arrayify", "consts", @@ -30,10 +18,10 @@ "keccak", "merkle", "NextJS", + "ox", "QRCode", "tsup", "TTFB", - "viem", "webp", "worldid", "zustand" diff --git a/examples/with-html/index.html b/examples/with-html/index.html index fc9088bf..8295b244 100644 --- a/examples/with-html/index.html +++ b/examples/with-html/index.html @@ -1,4 +1,4 @@ - + diff --git a/package.json b/package.json index 7240d568..73efa9e2 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,25 @@ "prepublishOnly": "npm run build" }, "devDependencies": { - "turbo": "^1.13.0" + "prettier": "^3.3.3", + "prettier-plugin-sort-imports-desc": "^1.0.0", + "turbo": "^2.2.3" }, "engines": { "node": ">=18" + }, + "packageManager": "pnpm@9.12.2", + "prettier": { + "semi": false, + "tabWidth": 4, + "useTabs": true, + "printWidth": 120, + "singleQuote": true, + "trailingComma": "es5", + "arrowParens": "avoid", + "bracketSpacing": true, + "plugins": [ + "prettier-plugin-sort-imports-desc" + ] } } diff --git a/packages/core/package.json b/packages/core/package.json index 8a8829e0..aa893b66 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -64,14 +64,12 @@ "dependencies": { "browser-or-node": "3.0.0-pre.0", "buffer": "^6.0.3", - "viem": "^2.17.0", + "ox": "^0.1.0", "zustand": "^4.5" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^6.13.1", "@typescript-eslint/parser": "^6.13.1", - "prettier": "^2.7.1", - "prettier-plugin-sort-imports-desc": "^1.0.0", "tsup": "^8.1.0", "typescript": "^5.3.2" } diff --git a/packages/core/src/lib/hashing.ts b/packages/core/src/lib/hashing.ts index 330a1c3e..356977cd 100644 --- a/packages/core/src/lib/hashing.ts +++ b/packages/core/src/lib/hashing.ts @@ -1,7 +1,7 @@ import { Buffer } from 'buffer/index.js' import type { IDKitConfig } from '@/types/config' +import { AbiParameters, Bytes, Hex, Hash } from 'ox' import type { AbiEncodedValue } from '@/types/config' -import { encodePacked, isBytes, isHex, keccak256 } from 'viem' export interface HashFunctionOutput { hash: bigint @@ -15,8 +15,8 @@ export interface HashFunctionOutput { * @param input Any string, hex-like string, bytes represented as a hex string. * @returns */ -export function hashToField(input: Uint8Array | string): HashFunctionOutput { - if (isBytes(input) || isHex(input)) return hashEncodedBytes(input) +export function hashToField(input: Bytes.Bytes | string): HashFunctionOutput { + if (Bytes.validate(input) || Hex.validate(input)) return hashEncodedBytes(input) return hashString(input) } @@ -32,7 +32,7 @@ export function packAndEncode(input: [string, unknown][]): HashFunctionOutput { [[], []] ) - return hashEncodedBytes(encodePacked(types, values)) + return hashEncodedBytes(AbiParameters.encodePacked(types, values)) } /** @@ -52,8 +52,8 @@ function hashString(input: string): HashFunctionOutput { * @param input - Bytes represented as a hex string. * @returns */ -function hashEncodedBytes(input: `0x${string}` | Uint8Array): HashFunctionOutput { - const hash = BigInt(keccak256(input)) >> 8n +function hashEncodedBytes(input: Hex.Hex | Bytes.Bytes): HashFunctionOutput { + const hash = BigInt(Hash.keccak256(input, { as: 'Hex' })) >> 8n const rawDigest = hash.toString(16) return { hash, digest: `0x${rawDigest.padStart(64, '0')}` } diff --git a/packages/core/tsup.config.ts b/packages/core/tsup.config.ts index b46ef12f..88457e6a 100644 --- a/packages/core/tsup.config.ts +++ b/packages/core/tsup.config.ts @@ -5,7 +5,7 @@ export default defineConfig({ clean: true, outDir: 'build', format: ['esm', 'cjs'], - external: ['zustand', 'viem'], + external: ['zustand', 'ox'], entry: ['src/index.ts', 'src/lib/hashing.ts', 'src/lib/backend.ts'], define: { 'process.env.NODE_ENV': '"production"' }, }) diff --git a/packages/react/src/components/IDKitWidget/States/WorldID/QRState.tsx b/packages/react/src/components/IDKitWidget/States/WorldID/QRState.tsx index 2042fcc4..1e221ca4 100644 --- a/packages/react/src/components/IDKitWidget/States/WorldID/QRState.tsx +++ b/packages/react/src/components/IDKitWidget/States/WorldID/QRState.tsx @@ -1,3 +1,4 @@ +import clsx from 'clsx' import { __ } from '@/lang' import type { FC } from 'react' import copy from 'copy-to-clipboard' @@ -8,7 +9,6 @@ import { useCallback, useState } from 'react' import { AnimatePresence, motion } from 'framer-motion' import WorldcoinIcon from '@/components/Icons/WorldcoinIcon' import QRPlaceholderIcon from '@/components/Icons/QRPlaceholderIcon' -import clsx from 'clsx' type Props = { qrData: string | null @@ -29,7 +29,7 @@ const QRState: FC = ({ qrData, showQR, setShowQR }) => { return ( <> -
+
= ({ qrData, showQR, setShowQR }) => { layoutId={media == 'desktop' ? undefined : 'worldid-button'} className={clsx( 'flex w-full items-center space-x-2 rounded-2xl border border-transparent p-4 font-medium shadow-sm', - 'bg-0d151d text-white dark:bg-white dark:text-0d151d', {hidden: showQR} + 'bg-0d151d text-white dark:bg-white dark:text-0d151d', + { hidden: showQR } )} > @@ -50,8 +51,8 @@ const QRState: FC = ({ qrData, showQR, setShowQR }) => { {__('Open Worldcoin App')} -
-
+
+

or
diff --git a/packages/react/src/components/IDKitWidget/States/WorldIDState.tsx b/packages/react/src/components/IDKitWidget/States/WorldIDState.tsx index d6ffe71f..5f4715ca 100644 --- a/packages/react/src/components/IDKitWidget/States/WorldIDState.tsx +++ b/packages/react/src/components/IDKitWidget/States/WorldIDState.tsx @@ -1,3 +1,4 @@ +import clsx from 'clsx' import { __ } from '@/lang' import { IDKITStage } from '@/types' import QRState from './WorldID/QRState' @@ -9,7 +10,6 @@ import { useWorldBridge } from '@/services/wld-bridge' import LoadingIcon from '@/components/Icons/LoadingIcon' import WorldcoinIcon from '@/components/Icons/WorldcoinIcon' import { AppErrorCodes, VerificationState, VerificationLevel } from '@worldcoin/idkit-core' -import clsx from 'clsx' const getOptions = (store: IDKitStore) => ({ signal: store.signal, @@ -68,7 +68,7 @@ const WorldIDState = () => { }, [result, handleVerify, verificationState, setStage, errorCode, setErrorState, verification_level]) return ( -
+
diff --git a/packages/react/src/components/QRCode.tsx b/packages/react/src/components/QRCode.tsx index 2968f427..de24db5c 100644 --- a/packages/react/src/components/QRCode.tsx +++ b/packages/react/src/components/QRCode.tsx @@ -7,12 +7,15 @@ const generateMatrix = (data: string): Array => { const arr = QRCodeUtil.create(data, { errorCorrectionLevel: 'M' }).modules.data as Uint8Array const sqrt = Math.sqrt(arr.length) - return arr.reduce((rows, key, index) => { - if (index % sqrt === 0) rows.push([key]) - else rows[rows.length - 1].push(key) + return arr.reduce( + (rows, key, index) => { + if (index % sqrt === 0) rows.push([key]) + else rows[rows.length - 1].push(key) - return rows - }, [] as Array) + return rows + }, + [] as Array + ) } type Props = { diff --git a/packages/react/src/lang/index.ts b/packages/react/src/lang/index.ts index 00c0cda1..d6029a8d 100644 --- a/packages/react/src/lang/index.ts +++ b/packages/react/src/lang/index.ts @@ -12,8 +12,8 @@ const getLang = (): Record | undefined => { type CleanWord = T extends `${string}${' ' | ',' | '!' | '?' | '.' | '`'}${string}` ? never : T extends '' - ? never - : T + ? never + : T type ExtractPlaceholders = S extends `${string}:${infer Placeholder}` ? Placeholder extends `${infer Word}${' ' | ',' | '!' | '?' | '.' | '`'}${infer Rest}` diff --git a/packages/react/tsup.config.ts b/packages/react/tsup.config.ts index f2a00eea..06cc88ce 100644 --- a/packages/react/tsup.config.ts +++ b/packages/react/tsup.config.ts @@ -1,5 +1,5 @@ import { defineConfig } from 'tsup' -import packageJson from './package.json' assert { type: 'json' } +import packageJson from './package.json' assert {} export default defineConfig({ dts: true, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b5bc0c92..32fea550 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,9 +8,15 @@ importers: .: devDependencies: + prettier: + specifier: ^3.3.3 + version: 3.3.3 + prettier-plugin-sort-imports-desc: + specifier: ^1.0.0 + version: 1.0.0 turbo: - specifier: ^1.13.0 - version: 1.13.0 + specifier: ^2.2.3 + version: 2.2.3 examples/with-html: dependencies: @@ -67,9 +73,9 @@ importers: buffer: specifier: ^6.0.3 version: 6.0.3 - viem: - specifier: ^2.17.0 - version: 2.17.3(typescript@5.3.3)(zod@3.23.8) + ox: + specifier: ^0.1.0 + version: 0.1.0(typescript@5.3.3)(zod@3.23.8) zustand: specifier: ^4.5 version: 4.5.2(@types/react@18.0.25)(react@18.2.0) @@ -80,12 +86,6 @@ importers: '@typescript-eslint/parser': specifier: ^6.13.1 version: 6.13.2(eslint@8.54.0)(typescript@5.3.3) - prettier: - specifier: ^2.7.1 - version: 2.8.8 - prettier-plugin-sort-imports-desc: - specifier: ^1.0.0 - version: 1.0.0 tsup: specifier: ^8.1.0 version: 8.1.0(postcss@8.4.39)(ts-node@10.9.2(@types/node@20.14.10)(typescript@5.3.3))(typescript@5.3.3) @@ -257,8 +257,8 @@ packages: resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==} engines: {node: '>=0.10.0'} - '@adraffy/ens-normalize@1.10.0': - resolution: {integrity: sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q==} + '@adraffy/ens-normalize@1.11.0': + resolution: {integrity: sha512-/3DDPKHqqIqxUULp8yP4zODUY1i+2xvVWsv8A79xGWdCAG+8sb0hRh0Rk2QyOJUnnbyPUAZYcpBuRe3nS2OIUg==} '@alloc/quick-lru@5.2.0': resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==} @@ -715,12 +715,13 @@ packages: cpu: [x64] os: [win32] - '@noble/curves@1.4.0': - resolution: {integrity: sha512-p+4cb332SFCrReJkCYe8Xzm0OWi4Jji5jVdIZRL/PmacmDkFNw6MrrV+gGpiPxLHbV+zKFRywUWbaseT+tZRXg==} + '@noble/curves@1.6.0': + resolution: {integrity: sha512-TlaHRXDehJuRNR9TfZDNQ45mMEd5dwUwmicsafcIX4SsNiqnCHKjE/1alYPd/lDRVhxdhUAlv8uEhMCI5zjIJQ==} + engines: {node: ^14.21.3 || >=16} - '@noble/hashes@1.4.0': - resolution: {integrity: sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==} - engines: {node: '>= 16'} + '@noble/hashes@1.5.0': + resolution: {integrity: sha512-1j6kQFb7QRru7eKN3ZDvRcP13rugwdxZqCjbiAVZfIJwgj2A65UmT4TgARXGlXgnRkORLTDTrO19ZErt7+QXgA==} + engines: {node: ^14.21.3 || >=16} '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} @@ -1030,11 +1031,14 @@ packages: '@scure/base@1.1.7': resolution: {integrity: sha512-PPNYBslrLNNUQ/Yad37MHYsNQtK67EhWb6WtSvNLLPo7SdVZgkUjD6Dg+5On7zNwmskf8OX7I7Nx5oN+MIWE0g==} - '@scure/bip32@1.4.0': - resolution: {integrity: sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg==} + '@scure/base@1.1.9': + resolution: {integrity: sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==} + + '@scure/bip32@1.5.0': + resolution: {integrity: sha512-8EnFYkqEQdnkuGBVpCzKxyIwDCBLDVj3oiX0EKUFre/tOjL/Hqba1D6n/8RcmaQy4f95qQFrO2A8Sr6ybh4NRw==} - '@scure/bip39@1.3.0': - resolution: {integrity: sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ==} + '@scure/bip39@1.4.0': + resolution: {integrity: sha512-BEEm6p8IueV/ZTfQLp/0vhw4NPnT9oWf5+28nvmeUICjP99f4vr2d+qc7AVGDDtwRep6ifR43Yed9ERVmiITzw==} '@swc/counter@0.1.3': resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==} @@ -1232,8 +1236,8 @@ packages: '@xobotyi/scrollbar-width@1.9.5': resolution: {integrity: sha512-N8tkAACJx2ww8vFMneJmaAgmjAG1tnVBZJRLRcx061tmsLRZHSEZSLuGWnwPtunsSLvSqXQ2wfp7Mgqg1I+2dQ==} - abitype@1.0.5: - resolution: {integrity: sha512-YzDhti7cjlfaBhHutMaboYB21Ha3rXR9QTkNJFzYC4kC8YclaiwPBBBJY8ejFdu2wnJeZCVZSMlQJ7fi8S6hsw==} + abitype@1.0.6: + resolution: {integrity: sha512-MMSqYh4+C/aVqI2RQaWqbvI4Kxo5cQV40WQ4QFtDnNzCkqChm8MuENhElmynZlO0qUy/ObkEUaXtKqYnx1Kp3A==} peerDependencies: typescript: '>=5.0.4' zod: ^3 >=3.22.0 @@ -1928,11 +1932,13 @@ packages: eslint@8.29.0: resolution: {integrity: sha512-isQ4EEiyUjZFbEKvEGJKKGBwXtvXX+zJbkVKCgTuB9t/+jUBcy8avhkEwWJecI15BkRkOYmvIM5ynbhRjEkoeg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true eslint@8.54.0: resolution: {integrity: sha512-NY0DfAkM8BIZDVl6PgSa1ttZbx3xHgJzSNJKYcQglem6CppHyMhRIQkBVSSMaSRnLhig3jsDbEzOjwCVt4AmmA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true espree@9.6.1: @@ -1967,6 +1973,9 @@ packages: eventemitter3@4.0.7: resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==} + eventemitter3@5.0.1: + resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==} + execa@5.1.1: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} engines: {node: '>=10'} @@ -2448,11 +2457,6 @@ packages: isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - isows@1.0.4: - resolution: {integrity: sha512-hEzjY+x9u9hPmBom9IIAqdJCwNLax+xrPb51vEPpERoFlIxgmZcHzsT5jKG06nvInKOBGvReAVz80Umed5CczQ==} - peerDependencies: - ws: '*' - iterator.prototype@1.1.2: resolution: {integrity: sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==} @@ -2756,6 +2760,14 @@ packages: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} + ox@0.1.0: + resolution: {integrity: sha512-xs+STnBP8XG38N+7W5c/5LRN68XOleiTfKJlSBw5rcorIfGvpJPB45lRE3AlziiiuZ+KrEd/1ZLrD+LkN5XFzQ==} + peerDependencies: + typescript: '>=5.4.0' + peerDependenciesMeta: + typescript: + optional: true + p-limit@2.3.0: resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} engines: {node: '>=6'} @@ -2926,6 +2938,11 @@ packages: engines: {node: '>=14'} hasBin: true + prettier@3.3.3: + resolution: {integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==} + engines: {node: '>=14'} + hasBin: true + progress@2.0.3: resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} engines: {node: '>=0.4.0'} @@ -3469,38 +3486,38 @@ packages: typescript: optional: true - turbo-darwin-64@1.13.0: - resolution: {integrity: sha512-ctHeJXtQgBcgxnCXwrJTGiq57HtwF7zWz5NTuSv//5yeU01BtQIt62ArKfjudOhRefWJbX3Z5srn88XTb9hfww==} + turbo-darwin-64@2.2.3: + resolution: {integrity: sha512-Rcm10CuMKQGcdIBS3R/9PMeuYnv6beYIHqfZFeKWVYEWH69sauj4INs83zKMTUiZJ3/hWGZ4jet9AOwhsssLyg==} cpu: [x64] os: [darwin] - turbo-darwin-arm64@1.13.0: - resolution: {integrity: sha512-/Q9/pNFkF9w83tNxwMpgapwLYdQ12p8mpty2YQRoUiS9ClWkcqe136jR0mtuMqzlNlpREOFZaoyIthjt6Sdo0g==} + turbo-darwin-arm64@2.2.3: + resolution: {integrity: sha512-+EIMHkuLFqUdJYsA3roj66t9+9IciCajgj+DVek+QezEdOJKcRxlvDOS2BUaeN8kEzVSsNiAGnoysFWYw4K0HA==} cpu: [arm64] os: [darwin] - turbo-linux-64@1.13.0: - resolution: {integrity: sha512-hgbT7o020BGV4L7Sd8hhFTd5zVKPKxbsr0dPfel/9NkdTmptz2aGZ0Vb2MAa18SY3XaCQpDxmdYuOzvvRpo5ZA==} + turbo-linux-64@2.2.3: + resolution: {integrity: sha512-UBhJCYnqtaeOBQLmLo8BAisWbc9v9daL9G8upLR+XGj6vuN/Nz6qUAhverN4Pyej1g4Nt1BhROnj6GLOPYyqxQ==} cpu: [x64] os: [linux] - turbo-linux-arm64@1.13.0: - resolution: {integrity: sha512-WK01i2wDZARrV+HEs495A3hNeGMwQR5suYk7G+ceqqW7b+dOTlQdvUjnI3sg7wAnZPgjafFs/hoBaZdJjVa/nw==} + turbo-linux-arm64@2.2.3: + resolution: {integrity: sha512-hJYT9dN06XCQ3jBka/EWvvAETnHRs3xuO/rb5bESmDfG+d9yQjeTMlhRXKrr4eyIMt6cLDt1LBfyi+6CQ+VAwQ==} cpu: [arm64] os: [linux] - turbo-windows-64@1.13.0: - resolution: {integrity: sha512-hJgSZJZwlWHNwLEthaqJqJWGm4NqF5X/I7vE0sPE4i/jeDl8f0n1hcOkgJkJiNXVxhj+qy/9+4dzbPLKT9imaQ==} + turbo-windows-64@2.2.3: + resolution: {integrity: sha512-NPrjacrZypMBF31b4HE4ROg4P3nhMBPHKS5WTpMwf7wydZ8uvdEHpESVNMOtqhlp857zbnKYgP+yJF30H3N2dQ==} cpu: [x64] os: [win32] - turbo-windows-arm64@1.13.0: - resolution: {integrity: sha512-L/ErxYoXeq8tmjU/AIGicC9VyBN1zdYw8JlM4yPmMI0pJdY8E4GaYK1IiIazqq7M72lmQhU/WW7fV9FqEktwrw==} + turbo-windows-arm64@2.2.3: + resolution: {integrity: sha512-fnNrYBCqn6zgKPKLHu4sOkihBI/+0oYFr075duRxqUZ+1aLWTAGfHZLgjVeLh3zR37CVzuerGIPWAEkNhkWEIw==} cpu: [arm64] os: [win32] - turbo@1.13.0: - resolution: {integrity: sha512-r02GtNmkOPcQvUzVE6lg474QVLyU02r3yh3lUGqrFHf5h5ZEjgDGWILsAUqplVqjri1Y/oOkTssks4CObTAaiw==} + turbo@2.2.3: + resolution: {integrity: sha512-5lDvSqIxCYJ/BAd6rQGK/AzFRhBkbu4JHVMLmGh/hCb7U3CqSnr5Tjwfy9vc+/5wG2DJ6wttgAaA7MoCgvBKZQ==} hasBin: true type-check@0.4.0: @@ -3628,14 +3645,6 @@ packages: v8-compile-cache-lib@3.0.1: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} - viem@2.17.3: - resolution: {integrity: sha512-FY/1uBQWfko4Esy8mU1RamvL64TLy91LZwFyQJ20E6AI3vTTEOctWfSn0pkMKa3okq4Gxs5dJE7q1hmWOQ7xcw==} - peerDependencies: - typescript: '>=5.0.4' - peerDependenciesMeta: - typescript: - optional: true - vite@4.5.2: resolution: {integrity: sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w==} engines: {node: ^14.18.0 || >=16.0.0} @@ -3720,18 +3729,6 @@ packages: wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - ws@8.17.1: - resolution: {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 - ws@8.18.0: resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==} engines: {node: '>=10.0.0'} @@ -3827,7 +3824,7 @@ snapshots: '@aashutoshrathi/word-wrap@1.2.6': {} - '@adraffy/ens-normalize@1.10.0': {} + '@adraffy/ens-normalize@1.11.0': {} '@alloc/quick-lru@5.2.0': {} @@ -4141,11 +4138,11 @@ snapshots: '@next/swc-win32-x64-msvc@14.2.13': optional: true - '@noble/curves@1.4.0': + '@noble/curves@1.6.0': dependencies: - '@noble/hashes': 1.4.0 + '@noble/hashes': 1.5.0 - '@noble/hashes@1.4.0': {} + '@noble/hashes@1.5.0': {} '@nodelib/fs.scandir@2.1.5': dependencies: @@ -4403,16 +4400,18 @@ snapshots: '@scure/base@1.1.7': {} - '@scure/bip32@1.4.0': + '@scure/base@1.1.9': {} + + '@scure/bip32@1.5.0': dependencies: - '@noble/curves': 1.4.0 - '@noble/hashes': 1.4.0 + '@noble/curves': 1.6.0 + '@noble/hashes': 1.5.0 '@scure/base': 1.1.7 - '@scure/bip39@1.3.0': + '@scure/bip39@1.4.0': dependencies: - '@noble/hashes': 1.4.0 - '@scure/base': 1.1.7 + '@noble/hashes': 1.5.0 + '@scure/base': 1.1.9 '@swc/counter@0.1.3': {} @@ -4686,7 +4685,7 @@ snapshots: '@xobotyi/scrollbar-width@1.9.5': {} - abitype@1.0.5(typescript@5.3.3)(zod@3.23.8): + abitype@1.0.6(typescript@5.3.3)(zod@3.23.8): optionalDependencies: typescript: 5.3.3 zod: 3.23.8 @@ -5807,6 +5806,8 @@ snapshots: eventemitter3@4.0.7: {} + eventemitter3@5.0.1: {} + execa@5.1.1: dependencies: cross-spawn: 7.0.3 @@ -6315,10 +6316,6 @@ snapshots: isexe@2.0.0: {} - isows@1.0.4(ws@8.17.1): - dependencies: - ws: 8.17.1 - iterator.prototype@1.1.2: dependencies: define-properties: 1.2.1 @@ -6616,6 +6613,20 @@ snapshots: type-check: 0.4.0 word-wrap: 1.2.5 + ox@0.1.0(typescript@5.3.3)(zod@3.23.8): + dependencies: + '@adraffy/ens-normalize': 1.11.0 + '@noble/curves': 1.6.0 + '@noble/hashes': 1.5.0 + '@scure/bip32': 1.5.0 + '@scure/bip39': 1.4.0 + abitype: 1.0.6(typescript@5.3.3)(zod@3.23.8) + eventemitter3: 5.0.1 + optionalDependencies: + typescript: 5.3.3 + transitivePeerDependencies: + - zod + p-limit@2.3.0: dependencies: p-try: 2.2.0 @@ -6778,6 +6789,8 @@ snapshots: prettier@3.3.2: {} + prettier@3.3.3: {} + progress@2.0.3: {} prop-types@15.8.1: @@ -7481,32 +7494,32 @@ snapshots: - supports-color - ts-node - turbo-darwin-64@1.13.0: + turbo-darwin-64@2.2.3: optional: true - turbo-darwin-arm64@1.13.0: + turbo-darwin-arm64@2.2.3: optional: true - turbo-linux-64@1.13.0: + turbo-linux-64@2.2.3: optional: true - turbo-linux-arm64@1.13.0: + turbo-linux-arm64@2.2.3: optional: true - turbo-windows-64@1.13.0: + turbo-windows-64@2.2.3: optional: true - turbo-windows-arm64@1.13.0: + turbo-windows-arm64@2.2.3: optional: true - turbo@1.13.0: + turbo@2.2.3: optionalDependencies: - turbo-darwin-64: 1.13.0 - turbo-darwin-arm64: 1.13.0 - turbo-linux-64: 1.13.0 - turbo-linux-arm64: 1.13.0 - turbo-windows-64: 1.13.0 - turbo-windows-arm64: 1.13.0 + turbo-darwin-64: 2.2.3 + turbo-darwin-arm64: 2.2.3 + turbo-linux-64: 2.2.3 + turbo-linux-arm64: 2.2.3 + turbo-windows-64: 2.2.3 + turbo-windows-arm64: 2.2.3 type-check@0.4.0: dependencies: @@ -7640,23 +7653,6 @@ snapshots: v8-compile-cache-lib@3.0.1: {} - viem@2.17.3(typescript@5.3.3)(zod@3.23.8): - dependencies: - '@adraffy/ens-normalize': 1.10.0 - '@noble/curves': 1.4.0 - '@noble/hashes': 1.4.0 - '@scure/bip32': 1.4.0 - '@scure/bip39': 1.3.0 - abitype: 1.0.5(typescript@5.3.3)(zod@3.23.8) - isows: 1.0.4(ws@8.17.1) - ws: 8.17.1 - optionalDependencies: - typescript: 5.3.3 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - - zod - vite@4.5.2(@types/node@20.14.10): dependencies: esbuild: 0.18.20 @@ -7752,8 +7748,6 @@ snapshots: wrappy@1.0.2: {} - ws@8.17.1: {} - ws@8.18.0: {} y18n@4.0.3: {} diff --git a/turbo.json b/turbo.json index 0c9fe83c..2fb047ac 100644 --- a/turbo.json +++ b/turbo.json @@ -1,6 +1,6 @@ { "$schema": "https://turbo.build/schema.json", - "pipeline": { + "tasks": { "build": { "dependsOn": ["^build"], "outputs": ["build/**", ".next/**", "!.next/cache/**"]