diff --git a/.env.example b/.env.example index 158d2d6..f930959 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,4 @@ -# Optional. The app uses https://rpc.testnet.miden.io by default. -# VITE_MIDEN_RPC_URL=https://rpc.testnet.miden.io +# Optional public endpoints. Do not place invitation codes, private keys, or +# other credentials in Vite variables: they are compiled into the client bundle. +# VITE_EPOCH_API_BASE_URL=https://miden-integration-example.epochprotocol.xyz/allocator +# VITE_MIDEN_RPC_URL=https://rpc.cedar.miden.io diff --git a/package.json b/package.json index 461be2a..617d8f0 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "version": "0.0.0", "type": "module", "scripts": { + "test": "tsx --test test/**/*.test.ts", "dev": "vite", "build": "tsc -b && vite build", "typecheck": "tsc -b", @@ -15,13 +16,14 @@ "prepare": "husky" }, "dependencies": { + "@epoch-protocol/epoch-commons-sdk": "github:epochprotocol/epoch-commons-sdk#36226c5d1fd640cc8497dd1c3976ddfe47429aa8", "@epoch-protocol/epoch-intents-sdk": "1.0.39", "@fontsource-variable/jetbrains-mono": "^5.2.8", "@metamask/sdk": "^0.34.0", - "@miden-sdk/miden-sdk": "0.17.3", - "@miden-sdk/miden-wallet-adapter-base": "0.17.3", - "@miden-sdk/miden-wallet-adapter-react": "0.17.3", - "@miden-sdk/react": "0.17.3", + "@miden-sdk/miden-sdk": "0.17.5", + "@miden-sdk/miden-wallet-adapter-base": "0.17.5", + "@miden-sdk/miden-wallet-adapter-react": "0.17.5", + "@miden-sdk/react": "0.17.5", "@phosphor-icons/react": "^2.1.10", "@rainbow-me/rainbowkit": "^2.2.10", "@tanstack/react-query": "^5.90.20", @@ -53,6 +55,7 @@ "postcss": "^8.5.6", "prettier": "^3.9.4", "tailwindcss": "3.4.17", + "tsx": "4.20.6", "typescript": "~5.9.3", "typescript-eslint": "^8.48.0", "vite": "^7.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c61f389..0382540 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,9 +8,12 @@ importers: .: dependencies: + '@epoch-protocol/epoch-commons-sdk': + specifier: github:epochprotocol/epoch-commons-sdk#36226c5d1fd640cc8497dd1c3976ddfe47429aa8 + version: git+https://git@github.com:epochprotocol/epoch-commons-sdk.git#36226c5d1fd640cc8497dd1c3976ddfe47429aa8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) '@epoch-protocol/epoch-intents-sdk': specifier: 1.0.39 - version: 1.0.39(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(zod@4.4.2) + version: 1.0.39(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(zod@3.25.76) '@fontsource-variable/jetbrains-mono': specifier: ^5.2.8 version: 5.2.8 @@ -18,23 +21,23 @@ importers: specifier: ^0.34.0 version: 0.34.0(bufferutil@4.1.0)(utf-8-validate@5.0.10) '@miden-sdk/miden-sdk': - specifier: 0.17.3 - version: 0.17.3 + specifier: 0.17.5 + version: 0.17.5 '@miden-sdk/miden-wallet-adapter-base': - specifier: 0.17.3 - version: 0.17.3(@miden-sdk/miden-sdk@0.17.3) + specifier: 0.17.5 + version: 0.17.5(@miden-sdk/miden-sdk@0.17.5) '@miden-sdk/miden-wallet-adapter-react': - specifier: 0.17.3 - version: 0.17.3(@miden-sdk/miden-sdk@0.17.3)(@miden-sdk/react@0.17.3(@miden-sdk/miden-sdk@0.17.3)(@types/react@19.2.14)(react@19.2.5)(use-sync-external-store@1.4.0(react@19.2.5)))(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3) + specifier: 0.17.5 + version: 0.17.5(@miden-sdk/miden-sdk@0.17.5)(@miden-sdk/react@0.17.5(@miden-sdk/miden-sdk@0.17.5)(@types/react@19.2.14)(react@19.2.5)(use-sync-external-store@1.4.0(react@19.2.5)))(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3) '@miden-sdk/react': - specifier: 0.17.3 - version: 0.17.3(@miden-sdk/miden-sdk@0.17.3)(@types/react@19.2.14)(react@19.2.5)(use-sync-external-store@1.4.0(react@19.2.5)) + specifier: 0.17.5 + version: 0.17.5(@miden-sdk/miden-sdk@0.17.5)(@types/react@19.2.14)(react@19.2.5)(use-sync-external-store@1.4.0(react@19.2.5)) '@phosphor-icons/react': specifier: ^2.1.10 version: 2.1.10(react-dom@19.2.5(react@19.2.5))(react@19.2.5) '@rainbow-me/rainbowkit': specifier: ^2.2.10 - version: 2.2.10(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(typescript@5.9.3)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(wagmi@2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(zod@4.4.2)) + version: 2.2.10(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(typescript@5.9.3)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(wagmi@2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(zod@3.25.76)) '@tanstack/react-query': specifier: ^5.90.20 version: 5.100.8(react@19.2.5) @@ -67,10 +70,10 @@ importers: version: 1.4.0 viem: specifier: ^2.45.2 - version: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + version: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) wagmi: specifier: ^2.14.0 - version: 2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(zod@4.4.2) + version: 2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(zod@3.25.76) devDependencies: '@eslint/js': specifier: ^9.39.1 @@ -86,7 +89,7 @@ importers: version: 19.2.3(@types/react@19.2.14) '@vitejs/plugin-react': specifier: ^5.1.1 - version: 5.2.0(vite@7.3.2(@types/node@24.12.2)(jiti@1.21.7)(yaml@2.9.0)) + version: 5.2.0(vite@7.3.2(@types/node@24.12.2)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.9.0)) autoprefixer: specifier: ^10.4.24 version: 10.5.0(postcss@8.5.13) @@ -117,6 +120,9 @@ importers: tailwindcss: specifier: 3.4.17 version: 3.4.17 + tsx: + specifier: 4.20.6 + version: 4.20.6 typescript: specifier: ~5.9.3 version: 5.9.3 @@ -125,13 +131,13 @@ importers: version: 8.59.1(eslint@9.39.4(jiti@1.21.7))(typescript@5.9.3) vite: specifier: ^7.3.1 - version: 7.3.2(@types/node@24.12.2)(jiti@1.21.7)(yaml@2.9.0) + version: 7.3.2(@types/node@24.12.2)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.9.0) vite-plugin-top-level-await: specifier: ^1.6.0 - version: 1.6.0(rollup@4.60.2)(vite@7.3.2(@types/node@24.12.2)(jiti@1.21.7)(yaml@2.9.0)) + version: 1.6.0(rollup@4.60.2)(vite@7.3.2(@types/node@24.12.2)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.9.0)) vite-plugin-wasm: specifier: ^3.5.0 - version: 3.6.0(vite@7.3.2(@types/node@24.12.2)(jiti@1.21.7)(yaml@2.9.0)) + version: 3.6.0(vite@7.3.2(@types/node@24.12.2)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.9.0)) packages: @@ -318,161 +324,321 @@ packages: '@epoch-protocol/epoch-commons-sdk@0.1.20': resolution: {integrity: sha512-KvM6hkKHik/x8Dp3cpu0wwgQfqwOEndkdh3GhTvnQrLi+QcSrHQ2BLy6ZElV3Jv8vO2TA2yWHCMUl+Ks8GyuPg==} + '@epoch-protocol/epoch-commons-sdk@git+https://git@github.com:epochprotocol/epoch-commons-sdk.git#36226c5d1fd640cc8497dd1c3976ddfe47429aa8': + resolution: {commit: 36226c5d1fd640cc8497dd1c3976ddfe47429aa8, repo: git@github.com:epochprotocol/epoch-commons-sdk.git, type: git} + version: 0.1.21-mainnet.0 + '@epoch-protocol/epoch-intents-sdk@1.0.39': resolution: {integrity: sha512-b41yIOmkwNXIzHcfemyp7oFRrQBDMLQK9yRpWyGQUcPvMIgJbtd4jBtZjMJ6DAKW64qoqB/2pTGRb4lifjKxgQ==} peerDependencies: viem: ^2.x + '@esbuild/aix-ppc64@0.25.12': + resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + '@esbuild/aix-ppc64@0.27.7': resolution: {integrity: sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==} engines: {node: '>=18'} cpu: [ppc64] os: [aix] + '@esbuild/android-arm64@0.25.12': + resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + '@esbuild/android-arm64@0.27.7': resolution: {integrity: sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==} engines: {node: '>=18'} cpu: [arm64] os: [android] + '@esbuild/android-arm@0.25.12': + resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + '@esbuild/android-arm@0.27.7': resolution: {integrity: sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==} engines: {node: '>=18'} cpu: [arm] os: [android] + '@esbuild/android-x64@0.25.12': + resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + '@esbuild/android-x64@0.27.7': resolution: {integrity: sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==} engines: {node: '>=18'} cpu: [x64] os: [android] + '@esbuild/darwin-arm64@0.25.12': + resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + '@esbuild/darwin-arm64@0.27.7': resolution: {integrity: sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==} engines: {node: '>=18'} cpu: [arm64] os: [darwin] + '@esbuild/darwin-x64@0.25.12': + resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + '@esbuild/darwin-x64@0.27.7': resolution: {integrity: sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==} engines: {node: '>=18'} cpu: [x64] os: [darwin] + '@esbuild/freebsd-arm64@0.25.12': + resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + '@esbuild/freebsd-arm64@0.27.7': resolution: {integrity: sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==} engines: {node: '>=18'} cpu: [arm64] os: [freebsd] + '@esbuild/freebsd-x64@0.25.12': + resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + '@esbuild/freebsd-x64@0.27.7': resolution: {integrity: sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==} engines: {node: '>=18'} cpu: [x64] os: [freebsd] + '@esbuild/linux-arm64@0.25.12': + resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + '@esbuild/linux-arm64@0.27.7': resolution: {integrity: sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==} engines: {node: '>=18'} cpu: [arm64] os: [linux] + '@esbuild/linux-arm@0.25.12': + resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + '@esbuild/linux-arm@0.27.7': resolution: {integrity: sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==} engines: {node: '>=18'} cpu: [arm] os: [linux] + '@esbuild/linux-ia32@0.25.12': + resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + '@esbuild/linux-ia32@0.27.7': resolution: {integrity: sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==} engines: {node: '>=18'} cpu: [ia32] os: [linux] + '@esbuild/linux-loong64@0.25.12': + resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + '@esbuild/linux-loong64@0.27.7': resolution: {integrity: sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==} engines: {node: '>=18'} cpu: [loong64] os: [linux] + '@esbuild/linux-mips64el@0.25.12': + resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + '@esbuild/linux-mips64el@0.27.7': resolution: {integrity: sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==} engines: {node: '>=18'} cpu: [mips64el] os: [linux] + '@esbuild/linux-ppc64@0.25.12': + resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + '@esbuild/linux-ppc64@0.27.7': resolution: {integrity: sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==} engines: {node: '>=18'} cpu: [ppc64] os: [linux] + '@esbuild/linux-riscv64@0.25.12': + resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + '@esbuild/linux-riscv64@0.27.7': resolution: {integrity: sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==} engines: {node: '>=18'} cpu: [riscv64] os: [linux] + '@esbuild/linux-s390x@0.25.12': + resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + '@esbuild/linux-s390x@0.27.7': resolution: {integrity: sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==} engines: {node: '>=18'} cpu: [s390x] os: [linux] + '@esbuild/linux-x64@0.25.12': + resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + '@esbuild/linux-x64@0.27.7': resolution: {integrity: sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==} engines: {node: '>=18'} cpu: [x64] os: [linux] + '@esbuild/netbsd-arm64@0.25.12': + resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + '@esbuild/netbsd-arm64@0.27.7': resolution: {integrity: sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==} engines: {node: '>=18'} cpu: [arm64] os: [netbsd] + '@esbuild/netbsd-x64@0.25.12': + resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + '@esbuild/netbsd-x64@0.27.7': resolution: {integrity: sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==} engines: {node: '>=18'} cpu: [x64] os: [netbsd] + '@esbuild/openbsd-arm64@0.25.12': + resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + '@esbuild/openbsd-arm64@0.27.7': resolution: {integrity: sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==} engines: {node: '>=18'} cpu: [arm64] os: [openbsd] + '@esbuild/openbsd-x64@0.25.12': + resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + '@esbuild/openbsd-x64@0.27.7': resolution: {integrity: sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==} engines: {node: '>=18'} cpu: [x64] os: [openbsd] + '@esbuild/openharmony-arm64@0.25.12': + resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + '@esbuild/openharmony-arm64@0.27.7': resolution: {integrity: sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==} engines: {node: '>=18'} cpu: [arm64] os: [openharmony] + '@esbuild/sunos-x64@0.25.12': + resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + '@esbuild/sunos-x64@0.27.7': resolution: {integrity: sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==} engines: {node: '>=18'} cpu: [x64] os: [sunos] + '@esbuild/win32-arm64@0.25.12': + resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + '@esbuild/win32-arm64@0.27.7': resolution: {integrity: sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==} engines: {node: '>=18'} cpu: [arm64] os: [win32] + '@esbuild/win32-ia32@0.25.12': + resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + '@esbuild/win32-ia32@0.27.7': resolution: {integrity: sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==} engines: {node: '>=18'} cpu: [ia32] os: [win32] + '@esbuild/win32-x64@0.25.12': + resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + '@esbuild/win32-x64@0.27.7': resolution: {integrity: sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==} engines: {node: '>=18'} @@ -757,25 +923,25 @@ packages: resolution: {integrity: sha512-w8CVbdkDrVXFJbfBSlDfafDR6BAkpDmv1bC1UJVCoVny5tW2RKAdn9i68Xf7asYT4TnUhl/hN4zfUiKQq9II4g==} engines: {node: '>=16.0.0'} - '@miden-sdk/miden-sdk@0.17.3': - resolution: {integrity: sha512-37FIyywn/HAiFj/VM81J/FcAq+ZcaTXvHVnOizPfMZz/XEwgeVVYqawwFFSsemRT/bY910oV3b7Zi0iGGiPT7w==} + '@miden-sdk/miden-sdk@0.17.5': + resolution: {integrity: sha512-q/ifVFPwTZnsduWSkOd4+YHaw39kVITxidiaF0tsfkDVi2wZwc5+X6AlbF3O61PgXCfEB7CJGIQ54zHcqgbVQw==} - '@miden-sdk/miden-wallet-adapter-base@0.17.3': - resolution: {integrity: sha512-nD3BbM9cRgXG6PZxpyT8Ho2wZs2TQXb8gouajuVw9lWQGUblh98JPPoAntdrzz5n91hUUyKbATXIIjnjPchRQA==} + '@miden-sdk/miden-wallet-adapter-base@0.17.5': + resolution: {integrity: sha512-bEux/55ozmsxQIxWl7SFqFQba8nwcL2dSNDTbOsVC3Vqx4fyEcweYDo39iH+juhVAkm2Ev7T0Sq2rbztuZiE3w==} peerDependencies: - '@miden-sdk/miden-sdk': ^0.17.3 + '@miden-sdk/miden-sdk': ^0.17.5 - '@miden-sdk/miden-wallet-adapter-miden@0.17.3': - resolution: {integrity: sha512-0BivVjz4SdsJcmVeaKlcA2ICaovCfdOXAJPGRHsqzqzVvOVyfM6EZ2fbYKkrtZfRU7c2xf1FxvvwXn0MQJdmAg==} + '@miden-sdk/miden-wallet-adapter-miden@0.17.5': + resolution: {integrity: sha512-+zLTXUDBE2GD9foew8U6tpeO8/R0uOXHbla+JQ3D+KsU3vKDAvkg6gqNUNf/W+hBAvjJo2knsG+q53yBSYAe8Q==} peerDependencies: - '@miden-sdk/miden-sdk': ^0.17.3 + '@miden-sdk/miden-sdk': ^0.17.5 typescript: ^5.0.0 - '@miden-sdk/miden-wallet-adapter-react@0.17.3': - resolution: {integrity: sha512-Ih7tXDPF+MQFxL93NSWZikKrkNNNm8Rs7maQRr/DVkqi6nR2d5+kijhOkVnhXPQSF3HPtCzPsMJwPRR3sy3G4w==} + '@miden-sdk/miden-wallet-adapter-react@0.17.5': + resolution: {integrity: sha512-U/qcpXO6xQuOhiez8M3xvd8qf3oulFJAuyNeCmrNqOZM1ckKHmGXuHc9gyKPnvYY2EcybTuqXJNQ8L+wa+aQlQ==} peerDependencies: - '@miden-sdk/miden-sdk': ^0.17.3 - '@miden-sdk/react': ^0.17.3 + '@miden-sdk/miden-sdk': ^0.17.5 + '@miden-sdk/react': ^0.17.5 '@types/react': ^18.0.0 || ^19.0.0 react: ^18.0.0 || ^19.0.0 peerDependenciesMeta: @@ -784,25 +950,30 @@ packages: '@types/react': optional: true - '@miden-sdk/node-darwin-arm64@0.17.3': - resolution: {integrity: sha512-9jvvccYqyUUSr0svSsIf/ZVd9ZzOGT9dmw/8pM2/n0IB+EzIZTFPmHTZH4Pivu7hjBy0W7UFLCESZdYg0RVOdQ==} + '@miden-sdk/node-darwin-arm64@0.17.5': + resolution: {integrity: sha512-I0L9yOsOdL42pP5wjK3bkWUhKKFKdFYQnkrhAO5OIz23fICOSLBksQgq1oxYcGTQpUDSQMjgwHNXDLaEDJlRhg==} cpu: [arm64] os: [darwin] - '@miden-sdk/node-darwin-x64@0.17.3': - resolution: {integrity: sha512-Rk0hlwEZFISc4BOTL0Unb+bFW++sb0ZUzXJKiVYvva6rKCga4lcgmTKtXhIPWnWyqAsykp7ljFq+ys2BFAeViw==} + '@miden-sdk/node-darwin-x64@0.17.5': + resolution: {integrity: sha512-JBswoRyBaWowPEymZPTKrzjKCHM02fcZkcrytpSRLlLlKAkgqY/4B2ja0xMpQQdptl2sEJz29K4W5jVqte+Tuw==} cpu: [x64] os: [darwin] - '@miden-sdk/node-linux-x64-gnu@0.17.3': - resolution: {integrity: sha512-S4R49wHo8nyBC2dfBhZYPpFSzqbDneU0N0fzd1OuL1D7VRpc4hL6dXs5hiaifVZHJL8SNH9mksCwr6eUeYdjTA==} + '@miden-sdk/node-linux-x64-gnu@0.17.5': + resolution: {integrity: sha512-i1gp3qQAPjdf1AzYZAi/WX4XUZHYPlkhMXtkiYg5FZvuUzxekGiER+sopGv569Fg2LHT3tfkw2LmVMxy0Egv9Q==} + cpu: [x64] + os: [linux] + + '@miden-sdk/node-linux-x64-musl@0.17.5': + resolution: {integrity: sha512-cXD71rWD6lX1wl1g/XOJK/fpa7D4k325vHqb9P0YLA88rILsRBVIS7cUy+PvybjVqcJUxMwvNUEHi6vVqvVChw==} cpu: [x64] os: [linux] - '@miden-sdk/react@0.17.3': - resolution: {integrity: sha512-oLY0rrcXUvIcx3mpeIu7S/G0sVmgs+ZpitZWcYU2uxYKq5yM9+Bd6mMY13nbXIYqRWLN3od9B2bMdrDHWC87YA==} + '@miden-sdk/react@0.17.5': + resolution: {integrity: sha512-lbOUdq/6tFGoGOMjQdqp7r4YufYrMfyXzL9lZMfLEYLBCMiY7WBl0YImAuMfi+H2hkKY7tW95o/fUTcb+LFNMg==} peerDependencies: - '@miden-sdk/miden-sdk': ^0.17.3 + '@miden-sdk/miden-sdk': ^0.17.5 '@types/react': '>=18.0.0' react: '>=18.0.0' peerDependenciesMeta: @@ -1683,79 +1854,66 @@ packages: resolution: {integrity: sha512-2QxQrM+KQ7DAW4o22j+XZ6RKdxjLD7BOWTP0Bv0tmjdyhXSsr2Ul1oJDQqh9Zf5qOwTuTc7Ek83mOFaKnodPjg==} cpu: [arm] os: [linux] - libc: [glibc] '@rollup/rollup-linux-arm-musleabihf@4.60.2': resolution: {integrity: sha512-TbziEu2DVsTEOPif2mKWkMeDMLoYjx95oESa9fkQQK7r/Orta0gnkcDpzwufEcAO2BLBsD7mZkXGFqEdMRRwfw==} cpu: [arm] os: [linux] - libc: [musl] '@rollup/rollup-linux-arm64-gnu@4.60.2': resolution: {integrity: sha512-bO/rVDiDUuM2YfuCUwZ1t1cP+/yqjqz+Xf2VtkdppefuOFS2OSeAfgafaHNkFn0t02hEyXngZkxtGqXcXwO8Rg==} cpu: [arm64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-arm64-musl@4.60.2': resolution: {integrity: sha512-hr26p7e93Rl0Za+JwW7EAnwAvKkehh12BU1Llm9Ykiibg4uIr2rbpxG9WCf56GuvidlTG9KiiQT/TXT1yAWxTA==} cpu: [arm64] os: [linux] - libc: [musl] '@rollup/rollup-linux-loong64-gnu@4.60.2': resolution: {integrity: sha512-pOjB/uSIyDt+ow3k/RcLvUAOGpysT2phDn7TTUB3n75SlIgZzM6NKAqlErPhoFU+npgY3/n+2HYIQVbF70P9/A==} cpu: [loong64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-loong64-musl@4.60.2': resolution: {integrity: sha512-2/w+q8jszv9Ww1c+6uJT3OwqhdmGP2/4T17cu8WuwyUuuaCDDJ2ojdyYwZzCxx0GcsZBhzi3HmH+J5pZNXnd+Q==} cpu: [loong64] os: [linux] - libc: [musl] '@rollup/rollup-linux-ppc64-gnu@4.60.2': resolution: {integrity: sha512-11+aL5vKheYgczxtPVVRhdptAM2H7fcDR5Gw4/bTcteuZBlH4oP9f5s9zYO9aGZvoGeBpqXI/9TZZihZ609wKw==} cpu: [ppc64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-ppc64-musl@4.60.2': resolution: {integrity: sha512-i16fokAGK46IVZuV8LIIwMdtqhin9hfYkCh8pf8iC3QU3LpwL+1FSFGej+O7l3E/AoknL6Dclh2oTdnRMpTzFQ==} cpu: [ppc64] os: [linux] - libc: [musl] '@rollup/rollup-linux-riscv64-gnu@4.60.2': resolution: {integrity: sha512-49FkKS6RGQoriDSK/6E2GkAsAuU5kETFCh7pG4yD/ylj9rKhTmO3elsnmBvRD4PgJPds5W2PkhC82aVwmUcJ7A==} cpu: [riscv64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-riscv64-musl@4.60.2': resolution: {integrity: sha512-mjYNkHPfGpUR00DuM1ZZIgs64Hpf4bWcz9Z41+4Q+pgDx73UwWdAYyf6EG/lRFldmdHHzgrYyge5akFUW0D3mQ==} cpu: [riscv64] os: [linux] - libc: [musl] '@rollup/rollup-linux-s390x-gnu@4.60.2': resolution: {integrity: sha512-ALyvJz965BQk8E9Al/JDKKDLH2kfKFLTGMlgkAbbYtZuJt9LU8DW3ZoDMCtQpXAltZxwBHevXz5u+gf0yA0YoA==} cpu: [s390x] os: [linux] - libc: [glibc] '@rollup/rollup-linux-x64-gnu@4.60.2': resolution: {integrity: sha512-UQjrkIdWrKI626Du8lCQ6MJp/6V1LAo2bOK9OTu4mSn8GGXIkPXk/Vsp4bLHCd9Z9Iz2OTEaokUE90VweJgIYQ==} cpu: [x64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-x64-musl@4.60.2': resolution: {integrity: sha512-bTsRGj6VlSdn/XD4CGyzMnzaBs9bsRxy79eTqTCBsA8TMIEky7qg48aPkvJvFe1HyzQ5oMZdg7AnVlWQSKLTnw==} cpu: [x64] os: [linux] - libc: [musl] '@rollup/rollup-openbsd-x64@4.60.2': resolution: {integrity: sha512-6d4Z3534xitaA1FcMWP7mQPq5zGwBmGbhphh2DwaA1aNIXUu3KTOfwrWpbwI4/Gr0uANo7NTtaykFyO2hPuFLg==} @@ -2220,42 +2378,36 @@ packages: engines: {node: '>=10'} cpu: [arm64] os: [linux] - libc: [glibc] '@swc/core-linux-arm64-musl@1.15.33': resolution: {integrity: sha512-il7tYM+CpUNzieQbwAjFT1P8zqAhmGWNAGhQZBnxurXZ0aNn+5nqYFTEUKNZl7QibtT0uQXzTZrNGHCIj6Y1Og==} engines: {node: '>=10'} cpu: [arm64] os: [linux] - libc: [musl] '@swc/core-linux-ppc64-gnu@1.15.33': resolution: {integrity: sha512-ZtNBwN0Z7CFj9Il0FcPaKdjgP7URyKu/3RfH46vq+0paOBqLj4NYldD6Qo//Duif/7IOtAraUfDOmp0PLAufog==} engines: {node: '>=10'} cpu: [ppc64] os: [linux] - libc: [glibc] '@swc/core-linux-s390x-gnu@1.15.33': resolution: {integrity: sha512-De1IyajoOmhOYYjw/lx66bKlyDpHZTueqwpDrWgf5O7T6d1ODeJJO9/OqMBmrBQc5C+dNnlmIufHsp4QVCWufA==} engines: {node: '>=10'} cpu: [s390x] os: [linux] - libc: [glibc] '@swc/core-linux-x64-gnu@1.15.33': resolution: {integrity: sha512-mGTH0YxmUN+x6vRN/I6NOk5X0ogNktkwPnJ94IMvR7QjhRDwL0O8RXEDhyUM0YtwWrryBOqaJQBX4zruxEPRGw==} engines: {node: '>=10'} cpu: [x64] os: [linux] - libc: [glibc] '@swc/core-linux-x64-musl@1.15.33': resolution: {integrity: sha512-hj628ZkSEJf6zMf5VMbYrG2O6QqyTIp2qwY6VlCjvIa9lAEZ5c2lfPblCLVGYubTeLJDxadLB/CxqQYOQABeEQ==} engines: {node: '>=10'} cpu: [x64] os: [linux] - libc: [musl] '@swc/core-win32-arm64-msvc@1.15.33': resolution: {integrity: sha512-GV2oohtN2/5+KSccl86VULu3aT+LrISC8uzgSq0FRnikpD+Zwc+sBlXmoKQ+Db6jI57ITUOIB8jRkdGMABC29g==} @@ -3164,6 +3316,11 @@ packages: es-toolkit@1.33.0: resolution: {integrity: sha512-X13Q/ZSc+vsO1q600bvNK4bxgXMkHcf//RxCmYDaRY5DAcT+eoXjY5hoAPGMdRnWQjvyLEcyauG3b6hz76LNqg==} + esbuild@0.25.12: + resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==} + engines: {node: '>=18'} + hasBin: true + esbuild@0.27.7: resolution: {integrity: sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==} engines: {node: '>=18'} @@ -3485,6 +3642,9 @@ packages: resolution: {integrity: sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==} engines: {node: '>=18'} + get-tsconfig@4.14.3: + resolution: {integrity: sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==} + glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} @@ -4551,6 +4711,9 @@ packages: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} + resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + resolve@1.22.12: resolution: {integrity: sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==} engines: {node: '>= 0.4'} @@ -4889,6 +5052,11 @@ packages: tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + tsx@4.20.6: + resolution: {integrity: sha512-ytQKuwgmrrkDTFP4LjR0ToE2nqgy886GpvRSpU0JAnrdBYppuY5rLkRUYPU1yCryb24SsKBTL/hlDQAEFVwtZg==} + engines: {node: '>=18.0.0'} + hasBin: true + tw-animate-css@1.4.0: resolution: {integrity: sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==} @@ -5646,16 +5814,16 @@ snapshots: '@babel/helper-string-parser': 7.27.1 '@babel/helper-validator-identifier': 7.28.5 - '@base-org/account@2.4.0(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(utf-8-validate@5.0.10)(zod@4.4.2)': + '@base-org/account@2.4.0(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: '@coinbase/cdp-sdk': 1.48.2(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10) '@noble/hashes': 1.4.0 clsx: 1.2.1 eventemitter3: 5.0.1 idb-keyval: 6.2.1 - ox: 0.6.9(typescript@5.9.3)(zod@4.4.2) + ox: 0.6.9(typescript@5.9.3)(zod@3.25.76) preact: 10.24.2 - viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) zustand: 5.0.3(@types/react@19.2.14)(react@19.2.5)(use-sync-external-store@1.4.0(react@19.2.5)) transitivePeerDependencies: - '@types/react' @@ -5703,15 +5871,15 @@ snapshots: transitivePeerDependencies: - supports-color - '@coinbase/wallet-sdk@4.3.6(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(utf-8-validate@5.0.10)(zod@4.4.2)': + '@coinbase/wallet-sdk@4.3.6(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: '@noble/hashes': 1.4.0 clsx: 1.2.1 eventemitter3: 5.0.1 idb-keyval: 6.2.1 - ox: 0.6.9(typescript@5.9.3)(zod@4.4.2) + ox: 0.6.9(typescript@5.9.3)(zod@3.25.76) preact: 10.24.2 - viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) zustand: 5.0.3(@types/react@19.2.14)(react@19.2.5)(use-sync-external-store@1.4.0(react@19.2.5)) transitivePeerDependencies: - '@types/react' @@ -5742,21 +5910,31 @@ snapshots: '@emotion/hash@0.9.2': {} - '@epoch-protocol/epoch-commons-sdk@0.1.20(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@epoch-protocol/epoch-commons-sdk@0.1.20(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': + dependencies: + ethers: 6.16.0(bufferutil@4.1.0)(utf-8-validate@5.0.10) + viem: 2.42.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + transitivePeerDependencies: + - bufferutil + - typescript + - utf-8-validate + - zod + + '@epoch-protocol/epoch-commons-sdk@git+https://git@github.com:epochprotocol/epoch-commons-sdk.git#36226c5d1fd640cc8497dd1c3976ddfe47429aa8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: ethers: 6.16.0(bufferutil@4.1.0)(utf-8-validate@5.0.10) - viem: 2.42.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + viem: 2.42.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) transitivePeerDependencies: - bufferutil - typescript - utf-8-validate - zod - '@epoch-protocol/epoch-intents-sdk@1.0.39(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(zod@4.4.2)': + '@epoch-protocol/epoch-intents-sdk@1.0.39(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(zod@3.25.76)': dependencies: - '@epoch-protocol/epoch-commons-sdk': 0.1.20(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) - '@metamask/smart-accounts-kit': 1.7.0(typescript@5.9.3)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(zod@4.4.2) - viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@epoch-protocol/epoch-commons-sdk': 0.1.20(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + '@metamask/smart-accounts-kit': 1.7.0(typescript@5.9.3)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(zod@3.25.76) + viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) transitivePeerDependencies: - bufferutil - supports-color @@ -5764,81 +5942,159 @@ snapshots: - utf-8-validate - zod + '@esbuild/aix-ppc64@0.25.12': + optional: true + '@esbuild/aix-ppc64@0.27.7': optional: true + '@esbuild/android-arm64@0.25.12': + optional: true + '@esbuild/android-arm64@0.27.7': optional: true + '@esbuild/android-arm@0.25.12': + optional: true + '@esbuild/android-arm@0.27.7': optional: true + '@esbuild/android-x64@0.25.12': + optional: true + '@esbuild/android-x64@0.27.7': optional: true + '@esbuild/darwin-arm64@0.25.12': + optional: true + '@esbuild/darwin-arm64@0.27.7': optional: true + '@esbuild/darwin-x64@0.25.12': + optional: true + '@esbuild/darwin-x64@0.27.7': optional: true + '@esbuild/freebsd-arm64@0.25.12': + optional: true + '@esbuild/freebsd-arm64@0.27.7': optional: true + '@esbuild/freebsd-x64@0.25.12': + optional: true + '@esbuild/freebsd-x64@0.27.7': optional: true + '@esbuild/linux-arm64@0.25.12': + optional: true + '@esbuild/linux-arm64@0.27.7': optional: true + '@esbuild/linux-arm@0.25.12': + optional: true + '@esbuild/linux-arm@0.27.7': optional: true + '@esbuild/linux-ia32@0.25.12': + optional: true + '@esbuild/linux-ia32@0.27.7': optional: true + '@esbuild/linux-loong64@0.25.12': + optional: true + '@esbuild/linux-loong64@0.27.7': optional: true + '@esbuild/linux-mips64el@0.25.12': + optional: true + '@esbuild/linux-mips64el@0.27.7': optional: true + '@esbuild/linux-ppc64@0.25.12': + optional: true + '@esbuild/linux-ppc64@0.27.7': optional: true + '@esbuild/linux-riscv64@0.25.12': + optional: true + '@esbuild/linux-riscv64@0.27.7': optional: true + '@esbuild/linux-s390x@0.25.12': + optional: true + '@esbuild/linux-s390x@0.27.7': optional: true + '@esbuild/linux-x64@0.25.12': + optional: true + '@esbuild/linux-x64@0.27.7': optional: true + '@esbuild/netbsd-arm64@0.25.12': + optional: true + '@esbuild/netbsd-arm64@0.27.7': optional: true + '@esbuild/netbsd-x64@0.25.12': + optional: true + '@esbuild/netbsd-x64@0.27.7': optional: true + '@esbuild/openbsd-arm64@0.25.12': + optional: true + '@esbuild/openbsd-arm64@0.27.7': optional: true + '@esbuild/openbsd-x64@0.25.12': + optional: true + '@esbuild/openbsd-x64@0.27.7': optional: true + '@esbuild/openharmony-arm64@0.25.12': + optional: true + '@esbuild/openharmony-arm64@0.27.7': optional: true + '@esbuild/sunos-x64@0.25.12': + optional: true + '@esbuild/sunos-x64@0.27.7': optional: true + '@esbuild/win32-arm64@0.25.12': + optional: true + '@esbuild/win32-arm64@0.27.7': optional: true + '@esbuild/win32-ia32@0.25.12': + optional: true + '@esbuild/win32-ia32@0.27.7': optional: true + '@esbuild/win32-x64@0.25.12': + optional: true + '@esbuild/win32-x64@0.27.7': optional: true @@ -5927,11 +6183,11 @@ snapshots: '@fontsource-variable/jetbrains-mono@5.2.8': {} - '@gemini-wallet/core@0.3.2(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))': + '@gemini-wallet/core@0.3.2(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))': dependencies: '@metamask/rpc-errors': 7.0.2 eventemitter3: 5.0.1 - viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) transitivePeerDependencies: - supports-color @@ -6192,7 +6448,7 @@ snapshots: - supports-color - utf-8-validate - '@metamask/smart-accounts-kit@1.7.0(typescript@5.9.3)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(zod@4.4.2)': + '@metamask/smart-accounts-kit@1.7.0(typescript@5.9.3)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(zod@3.25.76)': dependencies: '@metamask/7715-permission-types': 1.0.0 '@metamask/delegation-abis': 1.1.0 @@ -6200,8 +6456,8 @@ snapshots: '@metamask/delegation-deployments': 1.4.0 '@metamask/utils': 11.11.0 openapi-fetch: 0.13.8 - ox: 0.8.1(typescript@5.9.3)(zod@4.4.2) - viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + ox: 0.8.1(typescript@5.9.3)(zod@3.25.76) + viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) transitivePeerDependencies: - supports-color - typescript @@ -6263,50 +6519,54 @@ snapshots: transitivePeerDependencies: - supports-color - '@miden-sdk/miden-sdk@0.17.3': + '@miden-sdk/miden-sdk@0.17.5': dependencies: dexie: 4.4.2 glob: 11.1.0 optionalDependencies: - '@miden-sdk/node-darwin-arm64': 0.17.3 - '@miden-sdk/node-darwin-x64': 0.17.3 - '@miden-sdk/node-linux-x64-gnu': 0.17.3 + '@miden-sdk/node-darwin-arm64': 0.17.5 + '@miden-sdk/node-darwin-x64': 0.17.5 + '@miden-sdk/node-linux-x64-gnu': 0.17.5 + '@miden-sdk/node-linux-x64-musl': 0.17.5 - '@miden-sdk/miden-wallet-adapter-base@0.17.3(@miden-sdk/miden-sdk@0.17.3)': + '@miden-sdk/miden-wallet-adapter-base@0.17.5(@miden-sdk/miden-sdk@0.17.5)': dependencies: - '@miden-sdk/miden-sdk': 0.17.3 + '@miden-sdk/miden-sdk': 0.17.5 eventemitter3: 5.0.4 - '@miden-sdk/miden-wallet-adapter-miden@0.17.3(@miden-sdk/miden-sdk@0.17.3)(typescript@5.9.3)': + '@miden-sdk/miden-wallet-adapter-miden@0.17.5(@miden-sdk/miden-sdk@0.17.5)(typescript@5.9.3)': dependencies: - '@miden-sdk/miden-sdk': 0.17.3 - '@miden-sdk/miden-wallet-adapter-base': 0.17.3(@miden-sdk/miden-sdk@0.17.3) + '@miden-sdk/miden-sdk': 0.17.5 + '@miden-sdk/miden-wallet-adapter-base': 0.17.5(@miden-sdk/miden-sdk@0.17.5) typescript: 5.9.3 - '@miden-sdk/miden-wallet-adapter-react@0.17.3(@miden-sdk/miden-sdk@0.17.3)(@miden-sdk/react@0.17.3(@miden-sdk/miden-sdk@0.17.3)(@types/react@19.2.14)(react@19.2.5)(use-sync-external-store@1.4.0(react@19.2.5)))(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)': + '@miden-sdk/miden-wallet-adapter-react@0.17.5(@miden-sdk/miden-sdk@0.17.5)(@miden-sdk/react@0.17.5(@miden-sdk/miden-sdk@0.17.5)(@types/react@19.2.14)(react@19.2.5)(use-sync-external-store@1.4.0(react@19.2.5)))(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)': dependencies: - '@miden-sdk/miden-sdk': 0.17.3 - '@miden-sdk/miden-wallet-adapter-base': 0.17.3(@miden-sdk/miden-sdk@0.17.3) - '@miden-sdk/miden-wallet-adapter-miden': 0.17.3(@miden-sdk/miden-sdk@0.17.3)(typescript@5.9.3) + '@miden-sdk/miden-sdk': 0.17.5 + '@miden-sdk/miden-wallet-adapter-base': 0.17.5(@miden-sdk/miden-sdk@0.17.5) + '@miden-sdk/miden-wallet-adapter-miden': 0.17.5(@miden-sdk/miden-sdk@0.17.5)(typescript@5.9.3) react: 19.2.5 optionalDependencies: - '@miden-sdk/react': 0.17.3(@miden-sdk/miden-sdk@0.17.3)(@types/react@19.2.14)(react@19.2.5)(use-sync-external-store@1.4.0(react@19.2.5)) + '@miden-sdk/react': 0.17.5(@miden-sdk/miden-sdk@0.17.5)(@types/react@19.2.14)(react@19.2.5)(use-sync-external-store@1.4.0(react@19.2.5)) '@types/react': 19.2.14 transitivePeerDependencies: - typescript - '@miden-sdk/node-darwin-arm64@0.17.3': + '@miden-sdk/node-darwin-arm64@0.17.5': optional: true - '@miden-sdk/node-darwin-x64@0.17.3': + '@miden-sdk/node-darwin-x64@0.17.5': optional: true - '@miden-sdk/node-linux-x64-gnu@0.17.3': + '@miden-sdk/node-linux-x64-gnu@0.17.5': optional: true - '@miden-sdk/react@0.17.3(@miden-sdk/miden-sdk@0.17.3)(@types/react@19.2.14)(react@19.2.5)(use-sync-external-store@1.4.0(react@19.2.5))': + '@miden-sdk/node-linux-x64-musl@0.17.5': + optional: true + + '@miden-sdk/react@0.17.5(@miden-sdk/miden-sdk@0.17.5)(@types/react@19.2.14)(react@19.2.5)(use-sync-external-store@1.4.0(react@19.2.5))': dependencies: - '@miden-sdk/miden-sdk': 0.17.3 + '@miden-sdk/miden-sdk': 0.17.5 react: 19.2.5 zustand: 5.0.12(@types/react@19.2.14)(react@19.2.5)(use-sync-external-store@1.4.0(react@19.2.5)) optionalDependencies: @@ -7161,7 +7421,7 @@ snapshots: '@radix-ui/rect@1.1.1': {} - '@rainbow-me/rainbowkit@2.2.10(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(typescript@5.9.3)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(wagmi@2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(zod@4.4.2))': + '@rainbow-me/rainbowkit@2.2.10(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(typescript@5.9.3)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(wagmi@2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(zod@3.25.76))': dependencies: '@tanstack/react-query': 5.100.8(react@19.2.5) '@vanilla-extract/css': 1.17.3 @@ -7173,8 +7433,8 @@ snapshots: react-dom: 19.2.5(react@19.2.5) react-remove-scroll: 2.6.2(@types/react@19.2.14)(react@19.2.5) ua-parser-js: 1.0.41 - viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) - wagmi: 2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(zod@4.4.2) + viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + wagmi: 2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(zod@3.25.76) transitivePeerDependencies: - '@types/react' - babel-plugin-macros @@ -7191,24 +7451,24 @@ snapshots: - utf-8-validate - zod - '@reown/appkit-common@1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@reown/appkit-common@1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: big.js: 6.2.2 dayjs: 1.11.13 - viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) transitivePeerDependencies: - bufferutil - typescript - utf-8-validate - zod - '@reown/appkit-controllers@1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@reown/appkit-controllers@1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: - '@reown/appkit-common': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@reown/appkit-common': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) '@reown/appkit-wallet': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10) - '@walletconnect/universal-provider': 2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@walletconnect/universal-provider': 2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) valtio: 1.13.2(@types/react@19.2.14)(react@19.2.5) - viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -7237,12 +7497,12 @@ snapshots: - utf-8-validate - zod - '@reown/appkit-pay@1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@reown/appkit-pay@1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: - '@reown/appkit-common': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) - '@reown/appkit-controllers': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) - '@reown/appkit-ui': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) - '@reown/appkit-utils': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(valtio@1.13.2(@types/react@19.2.14)(react@19.2.5))(zod@4.4.2) + '@reown/appkit-common': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + '@reown/appkit-controllers': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + '@reown/appkit-ui': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + '@reown/appkit-utils': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(valtio@1.13.2(@types/react@19.2.14)(react@19.2.5))(zod@3.25.76) lit: 3.3.0 valtio: 1.13.2(@types/react@19.2.14)(react@19.2.5) transitivePeerDependencies: @@ -7277,12 +7537,12 @@ snapshots: dependencies: buffer: 6.0.3 - '@reown/appkit-scaffold-ui@1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(valtio@1.13.2(@types/react@19.2.14)(react@19.2.5))(zod@4.4.2)': + '@reown/appkit-scaffold-ui@1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(valtio@1.13.2(@types/react@19.2.14)(react@19.2.5))(zod@3.25.76)': dependencies: - '@reown/appkit-common': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) - '@reown/appkit-controllers': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) - '@reown/appkit-ui': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) - '@reown/appkit-utils': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(valtio@1.13.2(@types/react@19.2.14)(react@19.2.5))(zod@4.4.2) + '@reown/appkit-common': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + '@reown/appkit-controllers': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + '@reown/appkit-ui': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + '@reown/appkit-utils': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(valtio@1.13.2(@types/react@19.2.14)(react@19.2.5))(zod@3.25.76) '@reown/appkit-wallet': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10) lit: 3.3.0 transitivePeerDependencies: @@ -7314,10 +7574,10 @@ snapshots: - valtio - zod - '@reown/appkit-ui@1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@reown/appkit-ui@1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: - '@reown/appkit-common': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) - '@reown/appkit-controllers': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@reown/appkit-common': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + '@reown/appkit-controllers': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) '@reown/appkit-wallet': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10) lit: 3.3.0 qrcode: 1.5.3 @@ -7349,16 +7609,16 @@ snapshots: - utf-8-validate - zod - '@reown/appkit-utils@1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(valtio@1.13.2(@types/react@19.2.14)(react@19.2.5))(zod@4.4.2)': + '@reown/appkit-utils@1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(valtio@1.13.2(@types/react@19.2.14)(react@19.2.5))(zod@3.25.76)': dependencies: - '@reown/appkit-common': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) - '@reown/appkit-controllers': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@reown/appkit-common': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + '@reown/appkit-controllers': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) '@reown/appkit-polyfills': 1.7.8 '@reown/appkit-wallet': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10) '@walletconnect/logger': 2.1.2 - '@walletconnect/universal-provider': 2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@walletconnect/universal-provider': 2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) valtio: 1.13.2(@types/react@19.2.14)(react@19.2.5) - viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -7398,21 +7658,21 @@ snapshots: - typescript - utf-8-validate - '@reown/appkit@1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@reown/appkit@1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: - '@reown/appkit-common': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) - '@reown/appkit-controllers': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) - '@reown/appkit-pay': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@reown/appkit-common': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + '@reown/appkit-controllers': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + '@reown/appkit-pay': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) '@reown/appkit-polyfills': 1.7.8 - '@reown/appkit-scaffold-ui': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(valtio@1.13.2(@types/react@19.2.14)(react@19.2.5))(zod@4.4.2) - '@reown/appkit-ui': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) - '@reown/appkit-utils': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(valtio@1.13.2(@types/react@19.2.14)(react@19.2.5))(zod@4.4.2) + '@reown/appkit-scaffold-ui': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(valtio@1.13.2(@types/react@19.2.14)(react@19.2.5))(zod@3.25.76) + '@reown/appkit-ui': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + '@reown/appkit-utils': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(valtio@1.13.2(@types/react@19.2.14)(react@19.2.5))(zod@3.25.76) '@reown/appkit-wallet': 1.7.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10) '@walletconnect/types': 2.21.0 - '@walletconnect/universal-provider': 2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@walletconnect/universal-provider': 2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) bs58: 6.0.0 valtio: 1.13.2(@types/react@19.2.14)(react@19.2.5) - viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -7522,9 +7782,9 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.60.2': optional: true - '@safe-global/safe-apps-provider@0.18.6(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@safe-global/safe-apps-provider@0.18.6(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: - '@safe-global/safe-apps-sdk': 9.1.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@safe-global/safe-apps-sdk': 9.1.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) events: 3.3.0 transitivePeerDependencies: - bufferutil @@ -7532,10 +7792,10 @@ snapshots: - utf-8-validate - zod - '@safe-global/safe-apps-sdk@9.1.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@safe-global/safe-apps-sdk@9.1.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: '@safe-global/safe-gateway-typescript-sdk': 3.23.1 - viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) transitivePeerDependencies: - bufferutil - typescript @@ -8271,7 +8531,7 @@ snapshots: dependencies: '@vanilla-extract/css': 1.17.3 - '@vitejs/plugin-react@5.2.0(vite@7.3.2(@types/node@24.12.2)(jiti@1.21.7)(yaml@2.9.0))': + '@vitejs/plugin-react@5.2.0(vite@7.3.2(@types/node@24.12.2)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.9.0))': dependencies: '@babel/core': 7.29.0 '@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/core@7.29.0) @@ -8279,23 +8539,23 @@ snapshots: '@rolldown/pluginutils': 1.0.0-rc.3 '@types/babel__core': 7.20.5 react-refresh: 0.18.0 - vite: 7.3.2(@types/node@24.12.2)(jiti@1.21.7)(yaml@2.9.0) + vite: 7.3.2(@types/node@24.12.2)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.9.0) transitivePeerDependencies: - supports-color - '@wagmi/connectors@6.2.0(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(@wagmi/core@2.22.1(@tanstack/query-core@5.100.8)(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)))(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(wagmi@2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(zod@4.4.2))(zod@4.4.2)': + '@wagmi/connectors@6.2.0(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(@wagmi/core@2.22.1(@tanstack/query-core@5.100.8)(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)))(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(wagmi@2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(zod@3.25.76))(zod@3.25.76)': dependencies: - '@base-org/account': 2.4.0(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(utf-8-validate@5.0.10)(zod@4.4.2) - '@coinbase/wallet-sdk': 4.3.6(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(utf-8-validate@5.0.10)(zod@4.4.2) - '@gemini-wallet/core': 0.3.2(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)) + '@base-org/account': 2.4.0(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(utf-8-validate@5.0.10)(zod@3.25.76) + '@coinbase/wallet-sdk': 4.3.6(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(utf-8-validate@5.0.10)(zod@3.25.76) + '@gemini-wallet/core': 0.3.2(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)) '@metamask/sdk': 0.33.1(bufferutil@4.1.0)(utf-8-validate@5.0.10) - '@safe-global/safe-apps-provider': 0.18.6(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) - '@safe-global/safe-apps-sdk': 9.1.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) - '@wagmi/core': 2.22.1(@tanstack/query-core@5.100.8)(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)) - '@walletconnect/ethereum-provider': 2.21.1(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@safe-global/safe-apps-provider': 0.18.6(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + '@safe-global/safe-apps-sdk': 9.1.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + '@wagmi/core': 2.22.1(@tanstack/query-core@5.100.8)(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)) + '@walletconnect/ethereum-provider': 2.21.1(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) cbw-sdk: '@coinbase/wallet-sdk@3.9.3' - porto: 0.2.35(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(@wagmi/core@2.22.1(@tanstack/query-core@5.100.8)(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)))(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(wagmi@2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(zod@4.4.2)) - viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + porto: 0.2.35(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(@wagmi/core@2.22.1(@tanstack/query-core@5.100.8)(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)))(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(wagmi@2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(zod@3.25.76)) + viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: @@ -8336,11 +8596,11 @@ snapshots: - wagmi - zod - '@wagmi/core@2.22.1(@tanstack/query-core@5.100.8)(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))': + '@wagmi/core@2.22.1(@tanstack/query-core@5.100.8)(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))': dependencies: eventemitter3: 5.0.1 mipd: 0.0.7(typescript@5.9.3) - viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) zustand: 5.0.0(@types/react@19.2.14)(react@19.2.5)(use-sync-external-store@1.4.0(react@19.2.5)) optionalDependencies: '@tanstack/query-core': 5.100.8 @@ -8351,7 +8611,7 @@ snapshots: - react - use-sync-external-store - '@walletconnect/core@2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@walletconnect/core@2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: '@walletconnect/heartbeat': 1.2.2 '@walletconnect/jsonrpc-provider': 1.0.14 @@ -8365,7 +8625,7 @@ snapshots: '@walletconnect/safe-json': 1.0.2 '@walletconnect/time': 1.0.2 '@walletconnect/types': 2.21.0 - '@walletconnect/utils': 2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@walletconnect/utils': 2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) '@walletconnect/window-getters': 1.0.1 es-toolkit: 1.33.0 events: 3.3.0 @@ -8395,7 +8655,7 @@ snapshots: - utf-8-validate - zod - '@walletconnect/core@2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@walletconnect/core@2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: '@walletconnect/heartbeat': 1.2.2 '@walletconnect/jsonrpc-provider': 1.0.14 @@ -8409,7 +8669,7 @@ snapshots: '@walletconnect/safe-json': 1.0.2 '@walletconnect/time': 1.0.2 '@walletconnect/types': 2.21.1 - '@walletconnect/utils': 2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@walletconnect/utils': 2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) '@walletconnect/window-getters': 1.0.1 es-toolkit: 1.33.0 events: 3.3.0 @@ -8443,18 +8703,18 @@ snapshots: dependencies: tslib: 1.14.1 - '@walletconnect/ethereum-provider@2.21.1(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@walletconnect/ethereum-provider@2.21.1(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: - '@reown/appkit': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@reown/appkit': 1.7.8(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) '@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/keyvaluestorage': 1.1.1 - '@walletconnect/sign-client': 2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@walletconnect/sign-client': 2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) '@walletconnect/types': 2.21.1 - '@walletconnect/universal-provider': 2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) - '@walletconnect/utils': 2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@walletconnect/universal-provider': 2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + '@walletconnect/utils': 2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) events: 3.3.0 transitivePeerDependencies: - '@azure/app-configuration' @@ -8577,16 +8837,16 @@ snapshots: dependencies: tslib: 1.14.1 - '@walletconnect/sign-client@2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@walletconnect/sign-client@2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: - '@walletconnect/core': 2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@walletconnect/core': 2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) '@walletconnect/events': 1.0.1 '@walletconnect/heartbeat': 1.2.2 '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/logger': 2.1.2 '@walletconnect/time': 1.0.2 '@walletconnect/types': 2.21.0 - '@walletconnect/utils': 2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@walletconnect/utils': 2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) events: 3.3.0 transitivePeerDependencies: - '@azure/app-configuration' @@ -8613,16 +8873,16 @@ snapshots: - utf-8-validate - zod - '@walletconnect/sign-client@2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@walletconnect/sign-client@2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: - '@walletconnect/core': 2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@walletconnect/core': 2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) '@walletconnect/events': 1.0.1 '@walletconnect/heartbeat': 1.2.2 '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/logger': 2.1.2 '@walletconnect/time': 1.0.2 '@walletconnect/types': 2.21.1 - '@walletconnect/utils': 2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@walletconnect/utils': 2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) events: 3.3.0 transitivePeerDependencies: - '@azure/app-configuration' @@ -8711,7 +8971,7 @@ snapshots: - ioredis - uploadthing - '@walletconnect/universal-provider@2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@walletconnect/universal-provider@2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: '@walletconnect/events': 1.0.1 '@walletconnect/jsonrpc-http-connection': 1.0.8 @@ -8720,9 +8980,9 @@ snapshots: '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/keyvaluestorage': 1.1.1 '@walletconnect/logger': 2.1.2 - '@walletconnect/sign-client': 2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@walletconnect/sign-client': 2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) '@walletconnect/types': 2.21.0 - '@walletconnect/utils': 2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@walletconnect/utils': 2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) es-toolkit: 1.33.0 events: 3.3.0 transitivePeerDependencies: @@ -8751,7 +9011,7 @@ snapshots: - utf-8-validate - zod - '@walletconnect/universal-provider@2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@walletconnect/universal-provider@2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: '@walletconnect/events': 1.0.1 '@walletconnect/jsonrpc-http-connection': 1.0.8 @@ -8760,9 +9020,9 @@ snapshots: '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/keyvaluestorage': 1.1.1 '@walletconnect/logger': 2.1.2 - '@walletconnect/sign-client': 2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@walletconnect/sign-client': 2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) '@walletconnect/types': 2.21.1 - '@walletconnect/utils': 2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + '@walletconnect/utils': 2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) es-toolkit: 1.33.0 events: 3.3.0 transitivePeerDependencies: @@ -8791,7 +9051,7 @@ snapshots: - utf-8-validate - zod - '@walletconnect/utils@2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@walletconnect/utils@2.21.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: '@noble/ciphers': 1.2.1 '@noble/curves': 1.8.1 @@ -8809,7 +9069,7 @@ snapshots: detect-browser: 5.3.0 query-string: 7.1.3 uint8arrays: 3.1.0 - viem: 2.23.2(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + viem: 2.23.2(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -8835,7 +9095,7 @@ snapshots: - utf-8-validate - zod - '@walletconnect/utils@2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)': + '@walletconnect/utils@2.21.1(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: '@noble/ciphers': 1.2.1 '@noble/curves': 1.8.1 @@ -8853,7 +9113,7 @@ snapshots: detect-browser: 5.3.0 query-string: 7.1.3 uint8arrays: 3.1.0 - viem: 2.23.2(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + viem: 2.23.2(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -8893,15 +9153,15 @@ snapshots: typescript: 5.9.3 zod: 3.25.76 - abitype@1.0.8(typescript@5.9.3)(zod@4.4.2): + abitype@1.0.8(typescript@5.9.3)(zod@3.25.76): optionalDependencies: typescript: 5.9.3 - zod: 4.4.2 + zod: 3.25.76 - abitype@1.1.0(typescript@5.9.3)(zod@4.4.2): + abitype@1.1.0(typescript@5.9.3)(zod@3.25.76): optionalDependencies: typescript: 5.9.3 - zod: 4.4.2 + zod: 3.25.76 abitype@1.2.3(typescript@5.9.3)(zod@3.22.4): optionalDependencies: @@ -8913,11 +9173,6 @@ snapshots: typescript: 5.9.3 zod: 3.25.76 - abitype@1.2.3(typescript@5.9.3)(zod@4.4.2): - optionalDependencies: - typescript: 5.9.3 - zod: 4.4.2 - abitype@1.2.4(typescript@5.9.3)(zod@3.22.4): optionalDependencies: typescript: 5.9.3 @@ -9426,6 +9681,35 @@ snapshots: es-toolkit@1.33.0: {} + esbuild@0.25.12: + optionalDependencies: + '@esbuild/aix-ppc64': 0.25.12 + '@esbuild/android-arm': 0.25.12 + '@esbuild/android-arm64': 0.25.12 + '@esbuild/android-x64': 0.25.12 + '@esbuild/darwin-arm64': 0.25.12 + '@esbuild/darwin-x64': 0.25.12 + '@esbuild/freebsd-arm64': 0.25.12 + '@esbuild/freebsd-x64': 0.25.12 + '@esbuild/linux-arm': 0.25.12 + '@esbuild/linux-arm64': 0.25.12 + '@esbuild/linux-ia32': 0.25.12 + '@esbuild/linux-loong64': 0.25.12 + '@esbuild/linux-mips64el': 0.25.12 + '@esbuild/linux-ppc64': 0.25.12 + '@esbuild/linux-riscv64': 0.25.12 + '@esbuild/linux-s390x': 0.25.12 + '@esbuild/linux-x64': 0.25.12 + '@esbuild/netbsd-arm64': 0.25.12 + '@esbuild/netbsd-x64': 0.25.12 + '@esbuild/openbsd-arm64': 0.25.12 + '@esbuild/openbsd-x64': 0.25.12 + '@esbuild/openharmony-arm64': 0.25.12 + '@esbuild/sunos-x64': 0.25.12 + '@esbuild/win32-arm64': 0.25.12 + '@esbuild/win32-ia32': 0.25.12 + '@esbuild/win32-x64': 0.25.12 + esbuild@0.27.7: optionalDependencies: '@esbuild/aix-ppc64': 0.27.7 @@ -9845,6 +10129,10 @@ snapshots: '@sec-ant/readable-stream': 0.4.1 is-stream: 4.0.1 + get-tsconfig@4.14.3: + dependencies: + resolve-pkg-maps: 1.0.0 + glob-parent@5.1.2: dependencies: is-glob: 4.0.3 @@ -10444,50 +10732,35 @@ snapshots: transitivePeerDependencies: - zod - ox@0.14.20(typescript@5.9.3)(zod@4.4.2): - dependencies: - '@adraffy/ens-normalize': 1.11.1 - '@noble/ciphers': 1.3.0 - '@noble/curves': 1.9.1 - '@noble/hashes': 1.8.0 - '@scure/bip32': 1.7.0 - '@scure/bip39': 1.6.0 - abitype: 1.2.4(typescript@5.9.3)(zod@4.4.2) - eventemitter3: 5.0.1 - optionalDependencies: - typescript: 5.9.3 - transitivePeerDependencies: - - zod - - ox@0.6.7(typescript@5.9.3)(zod@4.4.2): + ox@0.6.7(typescript@5.9.3)(zod@3.25.76): dependencies: '@adraffy/ens-normalize': 1.11.1 '@noble/curves': 1.9.7 '@noble/hashes': 1.8.0 '@scure/bip32': 1.7.0 '@scure/bip39': 1.6.0 - abitype: 1.2.4(typescript@5.9.3)(zod@4.4.2) + abitype: 1.2.4(typescript@5.9.3)(zod@3.25.76) eventemitter3: 5.0.1 optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - zod - ox@0.6.9(typescript@5.9.3)(zod@4.4.2): + ox@0.6.9(typescript@5.9.3)(zod@3.25.76): dependencies: '@adraffy/ens-normalize': 1.11.1 '@noble/curves': 1.9.7 '@noble/hashes': 1.8.0 '@scure/bip32': 1.7.0 '@scure/bip39': 1.6.0 - abitype: 1.2.4(typescript@5.9.3)(zod@4.4.2) + abitype: 1.2.4(typescript@5.9.3)(zod@3.25.76) eventemitter3: 5.0.1 optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - zod - ox@0.8.1(typescript@5.9.3)(zod@4.4.2): + ox@0.8.1(typescript@5.9.3)(zod@3.25.76): dependencies: '@adraffy/ens-normalize': 1.11.1 '@noble/ciphers': 1.3.0 @@ -10495,7 +10768,7 @@ snapshots: '@noble/hashes': 1.8.0 '@scure/bip32': 1.7.0 '@scure/bip39': 1.6.0 - abitype: 1.2.4(typescript@5.9.3)(zod@4.4.2) + abitype: 1.2.4(typescript@5.9.3)(zod@3.25.76) eventemitter3: 5.0.1 optionalDependencies: typescript: 5.9.3 @@ -10517,7 +10790,7 @@ snapshots: transitivePeerDependencies: - zod - ox@0.9.6(typescript@5.9.3)(zod@4.4.2): + ox@0.9.6(typescript@5.9.3)(zod@3.25.76): dependencies: '@adraffy/ens-normalize': 1.11.1 '@noble/ciphers': 1.3.0 @@ -10525,7 +10798,7 @@ snapshots: '@noble/hashes': 1.8.0 '@scure/bip32': 1.7.0 '@scure/bip39': 1.6.0 - abitype: 1.2.4(typescript@5.9.3)(zod@4.4.2) + abitype: 1.2.4(typescript@5.9.3)(zod@3.25.76) eventemitter3: 5.0.1 optionalDependencies: typescript: 5.9.3 @@ -10627,21 +10900,21 @@ snapshots: pony-cause@2.1.11: {} - porto@0.2.35(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(@wagmi/core@2.22.1(@tanstack/query-core@5.100.8)(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)))(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(wagmi@2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(zod@4.4.2)): + porto@0.2.35(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(@wagmi/core@2.22.1(@tanstack/query-core@5.100.8)(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)))(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(wagmi@2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(zod@3.25.76)): dependencies: - '@wagmi/core': 2.22.1(@tanstack/query-core@5.100.8)(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)) + '@wagmi/core': 2.22.1(@tanstack/query-core@5.100.8)(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)) hono: 4.12.16 idb-keyval: 6.2.2 mipd: 0.0.7(typescript@5.9.3) ox: 0.9.17(typescript@5.9.3)(zod@4.4.2) - viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) zod: 4.4.2 zustand: 5.0.12(@types/react@19.2.14)(react@19.2.5)(use-sync-external-store@1.4.0(react@19.2.5)) optionalDependencies: '@tanstack/react-query': 5.100.8(react@19.2.5) react: 19.2.5 typescript: 5.9.3 - wagmi: 2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(zod@4.4.2) + wagmi: 2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(zod@3.25.76) transitivePeerDependencies: - '@types/react' - immer @@ -10919,6 +11192,8 @@ snapshots: resolve-from@4.0.0: {} + resolve-pkg-maps@1.0.0: {} + resolve@1.22.12: dependencies: es-errors: 1.3.0 @@ -11354,6 +11629,13 @@ snapshots: tslib@2.8.1: {} + tsx@4.20.6: + dependencies: + esbuild: 0.25.12 + get-tsconfig: 4.14.3 + optionalDependencies: + fsevents: 2.3.3 + tw-animate-css@1.4.0: {} type-check@0.4.0: @@ -11496,15 +11778,15 @@ snapshots: vary@1.1.2: {} - viem@2.23.2(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2): + viem@2.23.2(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76): dependencies: '@noble/curves': 1.8.1 '@noble/hashes': 1.7.1 '@scure/bip32': 1.6.2 '@scure/bip39': 1.5.4 - abitype: 1.0.8(typescript@5.9.3)(zod@4.4.2) + abitype: 1.0.8(typescript@5.9.3)(zod@3.25.76) isows: 1.0.6(ws@8.18.0(bufferutil@4.1.0)(utf-8-validate@5.0.10)) - ox: 0.6.7(typescript@5.9.3)(zod@4.4.2) + ox: 0.6.7(typescript@5.9.3)(zod@3.25.76) ws: 8.18.0(bufferutil@4.1.0)(utf-8-validate@5.0.10) optionalDependencies: typescript: 5.9.3 @@ -11513,15 +11795,15 @@ snapshots: - utf-8-validate - zod - viem@2.42.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2): + viem@2.42.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76): dependencies: '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@scure/bip32': 1.7.0 '@scure/bip39': 1.6.0 - abitype: 1.1.0(typescript@5.9.3)(zod@4.4.2) + abitype: 1.1.0(typescript@5.9.3)(zod@3.25.76) isows: 1.0.7(ws@8.18.3(bufferutil@4.1.0)(utf-8-validate@5.0.10)) - ox: 0.9.6(typescript@5.9.3)(zod@4.4.2) + ox: 0.9.6(typescript@5.9.3)(zod@3.25.76) ws: 8.18.3(bufferutil@4.1.0)(utf-8-validate@5.0.10) optionalDependencies: typescript: 5.9.3 @@ -11564,39 +11846,22 @@ snapshots: - utf-8-validate - zod - viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2): - dependencies: - '@noble/curves': 1.9.1 - '@noble/hashes': 1.8.0 - '@scure/bip32': 1.7.0 - '@scure/bip39': 1.6.0 - abitype: 1.2.3(typescript@5.9.3)(zod@4.4.2) - isows: 1.0.7(ws@8.18.3(bufferutil@4.1.0)(utf-8-validate@5.0.10)) - ox: 0.14.20(typescript@5.9.3)(zod@4.4.2) - ws: 8.18.3(bufferutil@4.1.0)(utf-8-validate@5.0.10) - optionalDependencies: - typescript: 5.9.3 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - - zod - - vite-plugin-top-level-await@1.6.0(rollup@4.60.2)(vite@7.3.2(@types/node@24.12.2)(jiti@1.21.7)(yaml@2.9.0)): + vite-plugin-top-level-await@1.6.0(rollup@4.60.2)(vite@7.3.2(@types/node@24.12.2)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.9.0)): dependencies: '@rollup/plugin-virtual': 3.0.2(rollup@4.60.2) '@swc/core': 1.15.33 '@swc/wasm': 1.15.33 uuid: 10.0.0 - vite: 7.3.2(@types/node@24.12.2)(jiti@1.21.7)(yaml@2.9.0) + vite: 7.3.2(@types/node@24.12.2)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.9.0) transitivePeerDependencies: - '@swc/helpers' - rollup - vite-plugin-wasm@3.6.0(vite@7.3.2(@types/node@24.12.2)(jiti@1.21.7)(yaml@2.9.0)): + vite-plugin-wasm@3.6.0(vite@7.3.2(@types/node@24.12.2)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.9.0)): dependencies: - vite: 7.3.2(@types/node@24.12.2)(jiti@1.21.7)(yaml@2.9.0) + vite: 7.3.2(@types/node@24.12.2)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.9.0) - vite@7.3.2(@types/node@24.12.2)(jiti@1.21.7)(yaml@2.9.0): + vite@7.3.2(@types/node@24.12.2)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.9.0): dependencies: esbuild: 0.27.7 fdir: 6.5.0(picomatch@4.0.4) @@ -11608,16 +11873,17 @@ snapshots: '@types/node': 24.12.2 fsevents: 2.3.3 jiti: 1.21.7 + tsx: 4.20.6 yaml: 2.9.0 - wagmi@2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(zod@4.4.2): + wagmi@2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(zod@3.25.76): dependencies: '@tanstack/react-query': 5.100.8(react@19.2.5) - '@wagmi/connectors': 6.2.0(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(@wagmi/core@2.22.1(@tanstack/query-core@5.100.8)(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)))(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(wagmi@2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2))(zod@4.4.2))(zod@4.4.2) - '@wagmi/core': 2.22.1(@tanstack/query-core@5.100.8)(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2)) + '@wagmi/connectors': 6.2.0(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(@wagmi/core@2.22.1(@tanstack/query-core@5.100.8)(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)))(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(wagmi@2.19.5(@tanstack/query-core@5.100.8)(@tanstack/react-query@5.100.8(react@19.2.5))(@types/react@19.2.14)(bufferutil@4.1.0)(react@19.2.5)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(zod@3.25.76))(zod@3.25.76) + '@wagmi/core': 2.22.1(@tanstack/query-core@5.100.8)(@types/react@19.2.14)(react@19.2.5)(typescript@5.9.3)(use-sync-external-store@1.4.0(react@19.2.5))(viem@2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)) react: 19.2.5 use-sync-external-store: 1.4.0(react@19.2.5) - viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.4.2) + viem: 2.48.8(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 109b7bd..ee60b4e 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,4 +1,5 @@ allowBuilds: + "@epoch-protocol/epoch-commons-sdk@git+ssh://git@github.com/epochprotocol/epoch-commons-sdk.git#36226c5d1fd640cc8497dd1c3976ddfe47429aa8": true "@swc/core": true bufferutil: true esbuild: true @@ -6,5 +7,5 @@ allowBuilds: msw: true utf-8-validate: true minimumReleaseAgeExclude: - - '@epoch-protocol/epoch-commons-sdk@0.1.20' - - '@epoch-protocol/epoch-intents-sdk@1.0.39' + - "@epoch-protocol/epoch-commons-sdk@0.1.20" + - "@epoch-protocol/epoch-intents-sdk@1.0.39" diff --git a/src/App.tsx b/src/App.tsx index 8c49e6b..9d2c1d7 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -51,8 +51,8 @@ function App() { Wallets
- Connect both to run end-to-end flows. EVM pays gas on any - Epoch testnet chain; Miden provides/receives notes. + Connect both to run end-to-end flows. EVM uses Base mainnet; + Miden provides or receives Cedar notes.
diff --git a/src/components/crosschain/EVMWalletConnect.tsx b/src/components/crosschain/EVMWalletConnect.tsx index 47921a6..16df5cc 100644 --- a/src/components/crosschain/EVMWalletConnect.tsx +++ b/src/components/crosschain/EVMWalletConnect.tsx @@ -5,8 +5,7 @@ export function EVMWalletConnect() {

EVM wallet

- Required for Epoch intents: signing and funding on an Epoch testnet EVM - chain. Connect the wallet that should pay gas and hold + Required for Epoch intents: signing and funding USDC on Base mainnet.

diff --git a/src/components/crosschain/IntentForm.tsx b/src/components/crosschain/IntentForm.tsx index d0c4a04..a4035b4 100644 --- a/src/components/crosschain/IntentForm.tsx +++ b/src/components/crosschain/IntentForm.tsx @@ -1,4 +1,4 @@ -import { useState } from "react"; +import { useEffect, useRef, useState } from "react"; import { useAccount, useChainId } from "wagmi"; import { toast } from "sonner"; import type { SolveIntentParams } from "@epoch-protocol/epoch-intents-sdk"; @@ -8,14 +8,14 @@ import type { } from "../../types/miden"; import type { IntentQuotePhase } from "../../hooks/useEpochIntent"; import { - DEFAULT_TESTNET_CHAIN_ID_STR, - isSupportedTestnetEvmChain, + DEFAULT_EVM_CHAIN_ID_STR, + isSupportedEvmChain, } from "../../constants/chains"; import { getMidenFaucetDecimals, isPragmaSupportedMidenAsset, } from "../../constants/miden-tokens"; -import { EPOCH_TESTNET_TOKENS } from "../../constants/evm-tokens"; +import { EPOCH_EVM_TOKENS } from "../../constants/evm-tokens"; import { midenscanNoteUrl } from "../../lib/explorers"; import { extractIntentIdentity, @@ -23,7 +23,9 @@ import { } from "../../lib/intent-result"; import { useIntentSettlementView } from "../../hooks/useIntentSettlementView"; import { useMidenP2IDNoteFactory } from "../../hooks/useMidenP2IDNoteFactory"; +import type { CachedMidenNote } from "../../lib/miden-note-retry"; import { useMidenNetwork } from "../../hooks/useMidenNetwork"; +import { getMidenPublicAccountError } from "../../lib/miden-account-validation"; import { Button } from "@/components/ui/button"; import { IntentSourceAssetField } from "./intent/IntentSourceAssetField"; import { @@ -39,9 +41,10 @@ interface Props { midenAssets: MidenAssetOption[]; isLoadingMidenAssets: boolean; onFetchQuote: (params: CrossChainIntentParams) => Promise; - onConfirmIntent: ( - createMidenP2IDENote: SolveIntentParams["createMidenP2IDENote"], - ) => Promise; + onConfirmIntent: (input: { + createMidenP2IDENote: SolveIntentParams["createMidenP2IDENote"]; + currentMidenAccountId: string; + }) => Promise; onClearQuote: () => void; quotePhase: IntentQuotePhase; isSDKReady: boolean; @@ -82,13 +85,13 @@ export function IntentForm({ // useState defaults: the wallet connects after this mounts. const [edits, setEdits] = useState>({}); const destination: IntentDestination = { - outputToken: edits.outputToken ?? EPOCH_TESTNET_TOKENS[0].address, - minTokenOut: edits.minTokenOut ?? "1000000000000000000", + outputToken: edits.outputToken ?? EPOCH_EVM_TOKENS[0].address, + minTokenOut: edits.minTokenOut ?? "1000000", chainId: edits.chainId ?? - (isSupportedTestnetEvmChain(walletChainId) + (isSupportedEvmChain(walletChainId) ? String(walletChainId) - : DEFAULT_TESTNET_CHAIN_ID_STR), + : DEFAULT_EVM_CHAIN_ID_STR), evmAddress: edits.evmAddress ?? address ?? "", }; const [confirmStatus, setConfirmStatus] = useState(""); @@ -98,13 +101,27 @@ export function IntentForm({ const [localIntentUserAddress, setLocalIntentUserAddress] = useState< string | undefined >(undefined); - const [localMidenNoteId, setLocalMidenNoteId] = useState( - undefined, - ); + const [localMidenNote, setLocalMidenNote] = useState< + CachedMidenNote | undefined + >(undefined); + const previousMidenAccountId = useRef(midenAccountId); + + useEffect(() => { + if (previousMidenAccountId.current !== midenAccountId) { + setLocalMidenNote(undefined); + onClearQuote(); + previousMidenAccountId.current = midenAccountId; + } + }, [midenAccountId, onClearQuote]); + + const clearQuote = () => { + setLocalMidenNote(undefined); + onClearQuote(); + }; const editDestination = (key: keyof IntentDestination, value: string) => { setEdits((prev) => ({ ...prev, [key]: value })); - onClearQuote(); + clearQuote(); }; const destinationChainIdNum = Number.parseInt(destination.chainId, 10); @@ -114,6 +131,10 @@ export function IntentForm({ destination.evmAddress.trim(), ); + const midenAccountError = midenAccountId + ? getMidenPublicAccountError(midenAccountId, "Miden source account") + : "Connect Miden wallet first"; + const selectedAsset = supportedMidenAssets.find( (a) => a.assetId.toLowerCase() === resolvedSelectedAssetId.toLowerCase(), ); @@ -132,8 +153,9 @@ export function IntentForm({ const createMidenP2IDENote = useMidenP2IDNoteFactory({ midenAccountId, + existingNote: localMidenNote, onStatus: setConfirmStatus, - onNoteCreated: setLocalMidenNoteId, + onNoteCreated: setLocalMidenNote, }); const buildParams = (): CrossChainIntentParams => { @@ -151,6 +173,9 @@ export function IntentForm({ if (!midenAccountId) { throw new Error("Connect Miden wallet first"); } + if (midenAccountError) { + throw new Error(midenAccountError); + } return { midenAccountId, midenFaucetId: resolvedSelectedAssetId, @@ -164,6 +189,7 @@ export function IntentForm({ const canFetch = isSDKReady && !!midenAccountId && + !midenAccountError && !!resolvedSelectedAssetId && hasValidEvmRecipient && !!destination.outputToken && @@ -186,11 +212,18 @@ export function IntentForm({ const handleConfirm = () => { if (quotePhase.status !== "ready") return; + if (!midenAccountId || midenAccountError) { + setConfirmStatus(`Error: ${midenAccountError}`); + return; + } void toast.promise( (async () => { setConfirmStatus("Submitting intent…"); - const result = await onConfirmIntent(createMidenP2IDENote); + const result = await onConfirmIntent({ + createMidenP2IDENote, + currentMidenAccountId: midenAccountId, + }); const solverError = readIntentError(result); if (solverError) throw new Error(solverError); @@ -245,10 +278,16 @@ export function IntentForm({ unsupportedAssetCount={unsupportedAssetCount} onSelect={(assetId) => { setSelectedAssetId(assetId); - onClearQuote(); + clearQuote(); }} /> + {midenAccountError && ( +

+ {midenAccountError} +

+ )} + )} @@ -299,11 +338,11 @@ export function IntentForm({

)} - {localMidenNoteId && ( + {localMidenNote && ( diff --git a/src/components/crosschain/WithdrawForm.tsx b/src/components/crosschain/WithdrawForm.tsx index 640ebb2..14732e2 100644 --- a/src/components/crosschain/WithdrawForm.tsx +++ b/src/components/crosschain/WithdrawForm.tsx @@ -8,6 +8,7 @@ import { truncateHash } from "../../lib/explorers"; import { readDepositHash, readIntentError } from "../../lib/intent-result"; import { findEvmToken } from "../../constants/evm-tokens"; import { getMidenNetworkConfig } from "../../config/miden"; +import { getMidenPublicAccountError } from "../../lib/miden-account-validation"; import { Button } from "@/components/ui/button"; import { CUSTOM_TOKEN_DEFAULT_DECIMALS, @@ -56,6 +57,9 @@ export function WithdrawForm({ // Defaults to the connected wallet until the user types their own. const midenRecipientId = midenRecipientInput || (accounts[0]?.id ?? ""); + const midenRecipientError = midenRecipientId + ? getMidenPublicAccountError(midenRecipientId, "Miden destination account") + : "Enter a Miden destination account"; const resolvedFaucetId = midenFaucetId.trim(); const finalToken = customToken || evmToken; @@ -71,6 +75,9 @@ export function WithdrawForm({ if (!connectedAddress) { throw new Error("Connect EVM wallet first"); } + if (midenRecipientError) { + throw new Error(midenRecipientError); + } return { sourceChainId: walletChainId, destinationChainId: MIDEN_VIRTUAL_CHAIN_ID, @@ -88,6 +95,7 @@ export function WithdrawForm({ !!connectedAddress && walletChainId > 0 && !!midenRecipientId && + !midenRecipientError && !!resolvedFaucetId && !!finalToken && minTokenOut.trim() !== "" && @@ -121,6 +129,11 @@ export function WithdrawForm({ }; const handleConfirm = async () => { + if (midenRecipientError) { + setStatus(`Error: ${midenRecipientError}`); + toast.error(midenRecipientError, { id: WITHDRAW_DEPOSIT_TOAST_ID }); + return; + } // Two-stage toast: (1) Compact deposit signature/confirmation, // (2) SIO Miden settlement — dismissed by parent WithdrawTab once the // synthetic Miden row appears in the status poll. @@ -209,6 +222,12 @@ export function WithdrawForm({ }} /> + {midenRecipientError && ( +

+ {midenRecipientError} +

+ )} + {pendingQuote && (
- + onChange("outputToken", v)} @@ -39,7 +36,7 @@ export function IntentDestinationFields({ values, onChange }: Props) { - {EPOCH_TESTNET_TOKENS.map((token) => ( + {EPOCH_EVM_TOKENS.map((token) => ( {token.symbol} {token.address ? ` · ${token.address.slice(0, 10)}…` : ""} @@ -70,7 +67,7 @@ export function IntentDestinationFields({ values, onChange }: Props) { - {EPOCH_TESTNET_EVM_CHAINS.map((chain) => ( + {EPOCH_EVM_CHAINS.map((chain) => ( {chain.name} ({chain.id}) diff --git a/src/components/crosschain/withdraw/WithdrawTokenFields.tsx b/src/components/crosschain/withdraw/WithdrawTokenFields.tsx index c853ed8..d2731f6 100644 --- a/src/components/crosschain/withdraw/WithdrawTokenFields.tsx +++ b/src/components/crosschain/withdraw/WithdrawTokenFields.tsx @@ -7,7 +7,7 @@ import { SelectTrigger, SelectValue, } from "@/components/ui/select"; -import { getTestnetChainName } from "../../../constants/chains"; +import { getEvmChainName } from "../../../constants/chains"; import { TOKEN_CUSTOM, WITHDRAW_TOKENS } from "./withdraw-tokens"; interface Props { @@ -35,7 +35,7 @@ export function WithdrawTokenFields({ return ( <>
- + onEvmTokenChange(v === TOKEN_CUSTOM ? "" : v)} diff --git a/src/components/crosschain/withdraw/withdraw-tokens.ts b/src/components/crosschain/withdraw/withdraw-tokens.ts index 5705989..d8791cb 100644 --- a/src/components/crosschain/withdraw/withdraw-tokens.ts +++ b/src/components/crosschain/withdraw/withdraw-tokens.ts @@ -1,12 +1,7 @@ -import { - EPOCH_TESTNET_TOKENS, - type EvmToken, -} from "../../../constants/evm-tokens"; +import { EPOCH_EVM_TOKENS, type EvmToken } from "../../../constants/evm-tokens"; -// SIO testnet mocks are deployed with 18 decimals across the board — even -// tokens that have 6 decimals on mainnet (USDC/USDT). See `constants/evm-tokens.ts`. export const WITHDRAW_TOKENS: EvmToken[] = [ - ...EPOCH_TESTNET_TOKENS, + ...EPOCH_EVM_TOKENS, { symbol: "Custom", address: "", decimals: 18 }, ]; diff --git a/src/components/providers/MidenNetworkApp.tsx b/src/components/providers/MidenNetworkApp.tsx index de5a00d..1bd36ed 100644 --- a/src/components/providers/MidenNetworkApp.tsx +++ b/src/components/providers/MidenNetworkApp.tsx @@ -1,15 +1,13 @@ import { Toaster } from "sonner"; import { MidenFiSignerProvider } from "@miden-sdk/miden-wallet-adapter-react"; import { MidenProvider } from "@miden-sdk/react"; -import { - AllowedPrivateData, - WalletAdapterNetwork, -} from "@miden-sdk/miden-wallet-adapter-base"; +import { AllowedPrivateData } from "@miden-sdk/miden-wallet-adapter-base"; import App from "../../App"; import { DEFAULT_MIDEN_NETWORK, getMidenNetworkConfig, } from "../../config/miden"; +import { MIDEN_MAINNET_WALLET_PROVIDER_CONFIG } from "../../config/miden-wallet-compat"; import { MidenNetworkContext } from "../../hooks/useMidenNetwork"; export function MidenNetworkApp() { @@ -25,7 +23,7 @@ export function MidenNetworkApp() { }} > diff --git a/src/config/deployment.ts b/src/config/deployment.ts new file mode 100644 index 0000000..26d0760 --- /dev/null +++ b/src/config/deployment.ts @@ -0,0 +1,97 @@ +import { mainnetGraph } from "@epoch-protocol/epoch-commons-sdk"; + +export interface PublicDeploymentEnv { + VITE_EPOCH_API_BASE_URL?: string; + VITE_MIDEN_RPC_URL?: string; +} + +interface MidenMainnetGraph { + chains: { Miden: { chainId: number; explorer: string } }; + tokens: { + USDCX: { contractAddress: { Miden: string }; decimals: number }; + WETH: { contractAddress: { Miden: string }; decimals: number }; + }; +} + +interface MidenAsset { + symbol: "USDCX" | "ETH"; + faucetId: string; + decimals: number; +} + +export interface DeploymentProfile { + network: "mainnet"; + evmChains: ReadonlyArray<{ id: number; name: "Base" }>; + evmTokens: ReadonlyArray<{ + symbol: "USDC"; + address: string; + decimals: number; + }>; + epoch: { + apiBaseUrl: string; + }; + miden: { + chainId: number; + rpcUrl: string; + tokens: ReadonlyArray; + midenscanBase: string; + walletNetwork: "mainnet"; + }; +} + +const BASE_MAINNET = mainnetGraph.chains.Base; +const BASE_USDC = mainnetGraph.tokens.USDC; +const COMMONS_MIDEN_MAINNET = mainnetGraph as unknown as MidenMainnetGraph; +const MIDEN_MAINNET = COMMONS_MIDEN_MAINNET.chains.Miden; +const MIDEN_MAINNET_RPC_URL = "https://rpc.cedar.miden.io"; +const MIDEN_ASSETS: ReadonlyArray = [ + { + symbol: "USDCX", + faucetId: COMMONS_MIDEN_MAINNET.tokens.USDCX.contractAddress.Miden, + decimals: COMMONS_MIDEN_MAINNET.tokens.USDCX.decimals, + }, + { + symbol: "ETH", + faucetId: COMMONS_MIDEN_MAINNET.tokens.WETH.contractAddress.Miden, + decimals: COMMONS_MIDEN_MAINNET.tokens.WETH.decimals, + }, +]; + +function endpoint(value: string | undefined, fallback: string): string { + return value?.trim() || fallback; +} + +export function getDeploymentProfile( + env: PublicDeploymentEnv = {}, +): DeploymentProfile { + return { + network: "mainnet", + // The Commons graph is the source of truth for Base mainnet identifiers. + evmChains: [{ id: BASE_MAINNET.chainId, name: "Base" }], + evmTokens: [ + { + symbol: "USDC", + address: BASE_USDC.contractAddress.Base, + decimals: BASE_USDC.decimals, + }, + ], + epoch: { + apiBaseUrl: endpoint( + env.VITE_EPOCH_API_BASE_URL, + "https://miden-integration-example.epochprotocol.xyz/allocator", + ), + }, + miden: { + chainId: MIDEN_MAINNET.chainId, + rpcUrl: endpoint(env.VITE_MIDEN_RPC_URL, MIDEN_MAINNET_RPC_URL), + tokens: MIDEN_ASSETS, + midenscanBase: MIDEN_MAINNET.explorer, + walletNetwork: "mainnet", + }, + }; +} + +export const DEPLOYMENT_PROFILE = getDeploymentProfile({ + VITE_EPOCH_API_BASE_URL: import.meta.env?.VITE_EPOCH_API_BASE_URL, + VITE_MIDEN_RPC_URL: import.meta.env?.VITE_MIDEN_RPC_URL, +}); diff --git a/src/config/miden-wallet-compat.ts b/src/config/miden-wallet-compat.ts new file mode 100644 index 0000000..1d61e41 --- /dev/null +++ b/src/config/miden-wallet-compat.ts @@ -0,0 +1,11 @@ +import type { WalletAdapterNetwork } from "@miden-sdk/miden-wallet-adapter-base"; + +/** + * @miden-sdk/miden-wallet-adapter-base@0.17.5 does not yet declare + * WalletAdapterNetwork.Mainnet. Miden Wallet expects the documented wire value + * "mainnet", so contain that temporary upstream type gap at this provider + * boundary rather than spreading casts through application code. + */ +export const MIDEN_MAINNET_WALLET_PROVIDER_CONFIG = { + network: "mainnet" as WalletAdapterNetwork, +} as const; diff --git a/src/config/miden.ts b/src/config/miden.ts index 186bb5a..6237f7b 100644 --- a/src/config/miden.ts +++ b/src/config/miden.ts @@ -1,25 +1,23 @@ -export type MidenNetwork = "testnet"; +import { DEPLOYMENT_PROFILE } from "./deployment"; -export const DEFAULT_MIDEN_NETWORK: MidenNetwork = "testnet"; +export type MidenNetwork = "mainnet"; + +export const DEFAULT_MIDEN_NETWORK: MidenNetwork = "mainnet"; export interface MidenNetworkConfig { rpcUrl: string; - allocatorUrl: string; + apiBaseUrl: string; defaultFaucetId: string; midenscanBase: string; } -const TESTNET_RPC_URL = - import.meta.env.VITE_MIDEN_RPC_URL?.trim() ?? "https://rpc.testnet.miden.io"; -const TESTNET_ALLOCATOR_URL = import.meta.env.VITE_TESTNET_ALLOCATOR_URL; - -const testnetConfig: MidenNetworkConfig = { - rpcUrl: TESTNET_RPC_URL, - allocatorUrl: TESTNET_ALLOCATOR_URL, - defaultFaucetId: "0x4cbdcaffe75f0a317482224dae6436", - midenscanBase: "https://testnet.midenscan.com", +const mainnetConfig: MidenNetworkConfig = { + rpcUrl: DEPLOYMENT_PROFILE.miden.rpcUrl, + apiBaseUrl: DEPLOYMENT_PROFILE.epoch.apiBaseUrl, + defaultFaucetId: DEPLOYMENT_PROFILE.miden.tokens[0].faucetId, + midenscanBase: DEPLOYMENT_PROFILE.miden.midenscanBase, }; export function getMidenNetworkConfig(): MidenNetworkConfig { - return testnetConfig; + return mainnetConfig; } diff --git a/src/config/wagmi.ts b/src/config/wagmi.ts index 0e4f95a..aa06b50 100644 --- a/src/config/wagmi.ts +++ b/src/config/wagmi.ts @@ -1,13 +1,12 @@ import { getDefaultConfig } from "@rainbow-me/rainbowkit"; import { http } from "wagmi"; -import { baseSepolia, optimismSepolia, sepolia } from "viem/chains"; +import { base } from "viem/chains"; // Public WalletConnect identifier, not a secret — it is sent to the client and // is scoped by domain allowlist in the WalletConnect dashboard. const projectId = "a3953ff16e6181e34fa7ead113ec1420"; -/** All Epoch testnet EVM chains — see docs/docs-new/supported-chains-and-tokens.md */ -const chains = [sepolia, baseSepolia, optimismSepolia] as const; +const chains = [base] as const; // Only real EVM chains belong here. Miden has no RPC and chain id 0, which // breaks RainbowKit connector initialization; it is addressed through the Epoch @@ -17,8 +16,6 @@ export const config = getDefaultConfig({ projectId, chains, transports: { - [sepolia.id]: http(), - [baseSepolia.id]: http(), - [optimismSepolia.id]: http(), + [base.id]: http(), }, }); diff --git a/src/constants/chains.ts b/src/constants/chains.ts index d6aef4b..585199a 100644 --- a/src/constants/chains.ts +++ b/src/constants/chains.ts @@ -1,29 +1,21 @@ -/** - * Epoch testnet EVM chains — source of truth: docs/docs-new/supported-chains-and-tokens.md - */ -export const EPOCH_TESTNET_EVM_CHAINS = [ - { id: 11155111, name: "Ethereum Sepolia" }, - { id: 84532, name: "Base Sepolia" }, - { id: 11155420, name: "Optimism Sepolia" }, -] as const; +import { DEPLOYMENT_PROFILE } from "../config/deployment"; -export type EpochTestnetEvmChainId = - (typeof EPOCH_TESTNET_EVM_CHAINS)[number]["id"]; +/** EVM networks enabled by this deployment. */ +export const EPOCH_EVM_CHAINS = DEPLOYMENT_PROFILE.evmChains; -/** Default destination chain for Cross-chain deposit and withdraw source chain. */ -export const DEFAULT_TESTNET_CHAIN_ID = 11155111; -export const DEFAULT_TESTNET_CHAIN_ID_STR = String(DEFAULT_TESTNET_CHAIN_ID); +export type EpochEvmChainId = (typeof EPOCH_EVM_CHAINS)[number]["id"]; -/** @deprecated Prefer `DEFAULT_TESTNET_CHAIN_ID_STR`. */ -export const DEFAULT_SEPOLIA_CHAIN_ID_STR = DEFAULT_TESTNET_CHAIN_ID_STR; +/** Default destination chain for Miden→EVM and source chain for EVM→Miden. */ +export const DEFAULT_EVM_CHAIN_ID = EPOCH_EVM_CHAINS[0].id; +export const DEFAULT_EVM_CHAIN_ID_STR = String(DEFAULT_EVM_CHAIN_ID); -export function getTestnetChainName(chainId: number | string): string { +export function getEvmChainName(chainId: number | string): string { const id = typeof chainId === "string" ? Number.parseInt(chainId, 10) : chainId; - const chain = EPOCH_TESTNET_EVM_CHAINS.find((c) => c.id === id); + const chain = EPOCH_EVM_CHAINS.find((candidate) => candidate.id === id); return chain?.name ?? `Chain ${id}`; } -export function isSupportedTestnetEvmChain(chainId: number): boolean { - return EPOCH_TESTNET_EVM_CHAINS.some((c) => c.id === chainId); +export function isSupportedEvmChain(chainId: number): boolean { + return EPOCH_EVM_CHAINS.some((chain) => chain.id === chainId); } diff --git a/src/constants/evm-tokens.ts b/src/constants/evm-tokens.ts index f91fe9d..984f4ce 100644 --- a/src/constants/evm-tokens.ts +++ b/src/constants/evm-tokens.ts @@ -1,72 +1,16 @@ -/** - * Canonical EVM testnet token list shared across all Epoch testnet EVM chains - * - * NOTE: these are SIO testnet mock contracts. Even tokens that have 6 decimals - * on mainnet (USDC/USDT) are deployed here with **18 decimals**. Source of - * truth: docs/docs-new/supported-chains-and-tokens.md - * - * Do NOT use mainnet decimals — `parseUnits` / `formatUnits` against the - * wrong scale silently mis-formats by 12 orders of magnitude. - */ +import { DEPLOYMENT_PROFILE } from "../config/deployment"; + export interface EvmToken { symbol: string; address: string; decimals: number; } -export const EPOCH_TESTNET_TOKENS: EvmToken[] = [ - { - symbol: "USDC", - address: "0x2BB4FfD7E2c6D432b697554Efd77fA13bdbefd69", - decimals: 18, - }, - { - symbol: "DAI", - address: "0xc30f1Ce05d1434d484E9A47283aA925fc8A8699a", - decimals: 18, - }, - { - symbol: "USDT", - address: "0xc04d2869665Be874881133943523723Be5782720", - decimals: 18, - }, - { - symbol: "WETH", - address: "0x7946dd86eE310D0aC16804A37787289Fa5b88A8A", - decimals: 18, - }, - { - symbol: "WBTC", - address: "0x9b2a2754a9182fD65360E23afCDf3BeFF51796E9", - decimals: 18, - }, - { - symbol: "PENGU", - address: "0xEA7dC9849206Ce73b11c465d37b85eC06B11Cf2C", - decimals: 18, - }, - { - symbol: "OSWALD", - address: "0xB588418c0f90F07Bc9587d0050845a90C23C7502", - decimals: 18, - }, - { - symbol: "KICK", - address: "0x512Ee6Bd7A4be5Ba4796F15Df080c4D0F89a38eD", - decimals: 18, - }, - { - symbol: "FERB", - address: "0x145e03A80c19ad1b9d0429d06b6d52707de724A0", - decimals: 18, - }, -]; - -/** @deprecated Prefer `EPOCH_TESTNET_TOKENS`. */ -export const SEPOLIA_TESTNET_TOKENS = EPOCH_TESTNET_TOKENS; +/** Canonical EVM token list for this deployment. */ +export const EPOCH_EVM_TOKENS: EvmToken[] = [...DEPLOYMENT_PROFILE.evmTokens]; const BY_ADDR: Map = new Map( - EPOCH_TESTNET_TOKENS.map((t) => [t.address.toLowerCase(), t]), + EPOCH_EVM_TOKENS.map((token) => [token.address.toLowerCase(), token]), ); /** Look up token by address (case-insensitive). Returns undefined if unknown. */ diff --git a/src/constants/miden-tokens.ts b/src/constants/miden-tokens.ts index a607cb9..9a26fbc 100644 --- a/src/constants/miden-tokens.ts +++ b/src/constants/miden-tokens.ts @@ -1,36 +1,6 @@ -import { normalizeMidenIdToHex } from "../services/epoch-bridge"; +import { DEPLOYMENT_PROFILE } from "../config/deployment"; import type { MidenNetwork } from "../config/miden"; - -const PRAGMA_SUPPORTED_MIDEN_SYMBOLS = new Set([ - "USDC", - "USDT", - "DAI", - "WETH", - "WBTC", -]); - -/** - * Hardcoded Miden testnet faucet → decimals map. - * - * Backend (sio/dex-solver/inventory) does not surface faucet decimals to the - * frontend; relying on the wallet adapter's reported `decimals` is unreliable - * (some adapters return 8 by default which silently mis-scales 6-decimal - * tokens by 100x). Frontends must look up decimals here. - * - * Keys are normalized to lowercase hex without `0x` prefix. Lookups go through - * `normalizeMidenIdToHex` first so bech32 faucet ids from the wallet adapter - * (e.g. `mtst1...`) resolve correctly. - */ -const MIDEN_FAUCET_DECIMALS: Record> = { - testnet: { - "4cbdcaffe75f0a317482224dae6436": 6, - "537c15a622074e91188aa894456c52": 6, - "6500ca8c2dd69e9147ab7eafad162c": 6, - d17976f0809a8191412f2a126625df: 6, - "4a09f13153d9cd114c078bfb62a7ec": 6, - "5fd2e6fd17712c51404d09c2b847f7": 6, - }, -}; +import { normalizeMidenIdToHex } from "../services/epoch-bridge"; function toMapKey(faucetId: string): string { const hex = normalizeMidenIdToHex(faucetId); @@ -38,6 +8,18 @@ function toMapKey(faucetId: string): string { return lower.startsWith("0x") ? lower.slice(2) : lower; } +// Miden asset decimals are public deployment metadata. The wallet adapter can +// report a default precision before it has loaded faucet metadata, so derive the +// lookup from the deployment profile instead of duplicating network-specific ids. +const MIDEN_FAUCET_DECIMALS: Record> = { + mainnet: Object.fromEntries( + DEPLOYMENT_PROFILE.miden.tokens.map(({ faucetId, decimals }) => [ + toMapKey(faucetId), + decimals, + ]), + ), +}; + /** Returns Miden faucet decimals, or `undefined` if the faucet is unknown. */ export function getMidenFaucetDecimals( faucetId: string, @@ -56,10 +38,5 @@ export function isPragmaSupportedMidenAsset( asset: { assetId: string; symbol?: string }, network: MidenNetwork, ): boolean { - const symbol = asset.symbol?.trim().toUpperCase(); - if (symbol && PRAGMA_SUPPORTED_MIDEN_SYMBOLS.has(symbol)) return true; - - // Metadata can arrive after the wallet asset list. Keep known testnet faucets - // available while their symbol is still loading. return getMidenFaucetDecimals(asset.assetId, network) !== undefined; } diff --git a/src/hooks/useEpochIntent.ts b/src/hooks/useEpochIntent.ts index f14c103..9349bad 100644 --- a/src/hooks/useEpochIntent.ts +++ b/src/hooks/useEpochIntent.ts @@ -14,6 +14,7 @@ import { } from "@epoch-protocol/epoch-intents-sdk"; import { useEpochSdk } from "../lib/epoch-sdk"; import { readIntentError } from "../lib/intent-result"; +import { requirePublicMidenAccountId } from "../lib/miden-account-validation"; export type IntentQuotePhase = | { status: "idle" } @@ -60,11 +61,28 @@ export function useEpochIntent() { isPending: isConfirming, error: confirmError, } = useMutation({ - mutationFn: async ( - createMidenP2IDENote: SolveIntentParams["createMidenP2IDENote"], - ) => { + mutationFn: async ({ + createMidenP2IDENote, + currentMidenAccountId, + }: { + createMidenP2IDENote: SolveIntentParams["createMidenP2IDENote"]; + currentMidenAccountId: string; + }) => { if (!sdk) throw new Error("Epoch SDK not ready"); if (!pendingQuote) throw new Error("Fetch a quote first"); + const currentAccount = requirePublicMidenAccountId( + currentMidenAccountId, + "Miden source account", + ); + const quotedAccount = requirePublicMidenAccountId( + pendingQuote.params.midenAccountId, + "Miden source account", + ); + if (currentAccount !== quotedAccount) { + throw new Error( + "Miden account changed after quoting. Fetch a new quote before confirming.", + ); + } setIntentResult(null); const result = await buildCrossChainIntent(sdk, { diff --git a/src/hooks/useMidenP2IDNoteFactory.ts b/src/hooks/useMidenP2IDNoteFactory.ts index 9be8833..ad52572 100644 --- a/src/hooks/useMidenP2IDNoteFactory.ts +++ b/src/hooks/useMidenP2IDNoteFactory.ts @@ -18,11 +18,17 @@ import { randomMultisigSalt, withMultisigAuthArgs, } from "../lib/miden-multisig-auth"; +import { + reuseOrCreateMidenNote, + type CachedMidenNote, +} from "../lib/miden-note-retry"; +import { requirePublicMidenAccountId } from "../lib/miden-account-validation"; interface Options { midenAccountId: string | null; + existingNote?: CachedMidenNote; onStatus: (message: string) => void; - onNoteCreated: (noteId: string) => void; + onNoteCreated: (note: CachedMidenNote) => void; } const WAIT_FOR_TRANSACTION_TIMEOUT_MS = 120_000; @@ -47,6 +53,7 @@ function toAccountId(id: string): AccountId { */ export function useMidenP2IDNoteFactory({ midenAccountId, + existingNote, onStatus, onNoteCreated, }: Options): SolveIntentParams["createMidenP2IDENote"] { @@ -72,107 +79,167 @@ export function useMidenP2IDNoteFactory({ recallBlocks, bindingAttachmentFelts, ) => { - onStatus("Resource lock required — creating P2IDE note on Miden…"); - try { - if (!midenAccountId) { - throw new Error("Missing Miden account id"); - } - if (!bindingAttachmentFelts?.length) { - throw new Error("Missing mandate-binding attachment felts from SDK"); - } - if (!requestTransaction || !requestGuardianInfo) { - throw new Error("Wallet does not support custom transactions"); - } - if (!isReady || !client) { - throw new Error( - "Miden client not ready yet — retry once it initializes", + if (!midenAccountId) { + throw new Error("Missing Miden account id"); + } + const sourceAccount = requirePublicMidenAccountId( + midenAccountId, + "Miden source account", + ); + const quote = { + amount: amountParam, + token: faucetIdParam, + recipient: allocatorId, + sourceAccount, + mandateBinding: Array.from(bindingAttachmentFelts ?? [], (felt) => + felt.toString(), + ).join(":"), + }; + const createNote = async () => { + onStatus("Resource lock required — creating P2IDE note on Miden…"); + try { + if (!midenAccountId) { + throw new Error("Missing Miden account id"); + } + if (!bindingAttachmentFelts?.length) { + throw new Error( + "Missing mandate-binding attachment felts from SDK", + ); + } + if ( + !requestTransaction || + !requestGuardianInfo || + !waitForTransaction + ) { + throw new Error( + "Wallet does not support custom transactions and finalization", + ); + } + if (!isReady || !client) { + throw new Error( + "Miden client not ready yet — retry once it initializes", + ); + } + + const { isGuardianAccount } = await requestGuardianInfo(); + const chain = await runExclusive(async () => ({ + syncHeight: await client.getSyncHeight(), + feeFaucetId: isGuardianAccount ? await client.feeFaucetId() : null, + })); + + const assets = new NoteAssets([ + new FungibleAsset(toAccountId(faucetIdParam), BigInt(amountParam)), + ]); + // Mandate binding: witness hash the SDK computed, written verbatim as the + // note attachment (part of the note commitment, tamper-proof). + const attachment = new NoteAttachment( + BigUint64Array.from(bindingAttachmentFelts), ); - } - const { isGuardianAccount } = await requestGuardianInfo(); - const chain = await runExclusive(async () => ({ - syncHeight: await client.getSyncHeight(), - feeFaucetId: isGuardianAccount ? await client.feeFaucetId() : null, - })); - - const assets = new NoteAssets([ - new FungibleAsset(toAccountId(faucetIdParam), BigInt(amountParam)), - ]); - // Mandate binding: witness hash the SDK computed, written verbatim as the - // note attachment (part of the note commitment, tamper-proof). - const attachment = new NoteAttachment( - BigUint64Array.from(bindingAttachmentFelts), - ); - - // P2IDE reclaim height is ABSOLUTE; the SDK gives a RELATIVE recallBlocks - // (allocator min + buffer). Convert against the client's synced chain tip - // (getSyncHeight needs the chain, not the account). - const currentBlock = chain.syncHeight; - if (!Number.isFinite(currentBlock) || currentBlock <= 0) { - throw new Error( - "Miden client not synced yet — retry once the block height is available", + // P2IDE reclaim height is ABSOLUTE; the SDK gives a RELATIVE recallBlocks + // (allocator min + buffer). Convert against the client's synced chain tip + // (getSyncHeight needs the chain, not the account). + const currentBlock = chain.syncHeight; + if (!Number.isFinite(currentBlock) || currentBlock <= 0) { + throw new Error( + "Miden client not synced yet — retry once the block height is available", + ); + } + const reclaimHeight = currentBlock + recallBlocks; + const note = Note.createP2IDENote( + toAccountId(midenAccountId), + toAccountId(allocatorId), + assets, + reclaimHeight, + undefined, // no time-lock + NoteType.Public, + attachment, ); - } - const reclaimHeight = currentBlock + recallBlocks; - const note = Note.createP2IDENote( - toAccountId(midenAccountId), - toAccountId(allocatorId), - assets, - reclaimHeight, - undefined, // no time-lock - NoteType.Public, - attachment, - ); - const noteId = note.id().toString(); - - // A Guardian account is a multisig: since Miden 0.17 it aborts unless the - // request carries multisig auth args, and `withFeeConversionSalt` no - // longer satisfies it. A single-sig account needs nothing here. - let builder = new TransactionRequestBuilder(); - if (chain.feeFaucetId) { - builder = withMultisigAuthArgs(builder, { - boundBlockNum: currentBlock, - salt: randomMultisigSalt(), - feeFaucetPrefix: chain.feeFaucetId.prefix().asInt(), - feeFaucetSuffix: chain.feeFaucetId.suffix().asInt(), - }); - } - const txRequest = builder - .withOwnOutputNotes(new NoteArray([note])) - .build(); + const noteId = note.id().toString(); - if (!noteId) { - throw new Error("Could not compute note id for the minted note"); - } + // A Guardian account is a multisig: since Miden 0.17 it aborts unless the + // request carries multisig auth args, and `withFeeConversionSalt` no + // longer satisfies it. A single-sig account needs nothing here. + let builder = new TransactionRequestBuilder(); + if (chain.feeFaucetId) { + builder = withMultisigAuthArgs(builder, { + boundBlockNum: currentBlock, + salt: randomMultisigSalt(), + feeFaucetPrefix: chain.feeFaucetId.prefix().asInt(), + feeFaucetSuffix: chain.feeFaucetId.suffix().asInt(), + }); + } + const txRequest = builder + .withOwnOutputNotes(new NoteArray([note])) + .build(); + + if (!noteId) { + throw new Error("Could not compute note id for the minted note"); + } - // Submit through the wallet (holds the account + signs). - const customTx = Transaction.createCustomTransaction( - midenAccountId, - allocatorId, - txRequest, - ); - const txId = await requestTransaction(customTx); - - // Wait for finalization before returning, so the note is committed and - // queryable when the allocator fetches it during intent validation. - // Without this the intent can race ahead of the note and be rejected - // "not found on-chain". - if (waitForTransaction) { - onStatus("P2IDE note created — waiting for finalization on Miden…"); + // Submit through the wallet (holds the account + signs). + const customTx = Transaction.createCustomTransaction( + midenAccountId, + allocatorId, + txRequest, + ); + const txId = await requestTransaction(customTx); + const submittedNote: CachedMidenNote = { + noteId, + transactionId: txId, + confirmed: false, + quote, + }; + + // Cache immediately after submission. If confirmation times out, a + // retry resumes this transaction instead of locking funds again. + onNoteCreated(submittedNote); + onStatus("P2IDE note submitted — waiting for finalization on Miden…"); await waitForTransaction(txId, WAIT_FOR_TRANSACTION_TIMEOUT_MS); + + onNoteCreated({ ...submittedNote, confirmed: true }); + return { success: true, noteId }; + } catch (err) { + return { + success: false, + error: err instanceof Error ? err.message : String(err), + }; } + }; - onNoteCreated(noteId); - return { success: true, noteId }; - } catch (err) { - return { - success: false, - error: err instanceof Error ? err.message : String(err), - }; - } + const resumeNote = async (pending: CachedMidenNote) => { + if (!waitForTransaction || !pending.transactionId) { + return { + success: false, + error: "Wallet does not support transaction finalization", + }; + } + try { + onStatus("P2IDE note submitted — resuming finalization on Miden…"); + await waitForTransaction( + pending.transactionId, + WAIT_FOR_TRANSACTION_TIMEOUT_MS, + ); + onNoteCreated({ ...pending, confirmed: true }); + return { success: true, noteId: pending.noteId }; + } catch (err) { + return { + success: false, + error: err instanceof Error ? err.message : String(err), + }; + } + }; + + return reuseOrCreateMidenNote( + existingNote, + quote, + createNote, + resumeNote, + ); }, [ midenAccountId, + existingNote, requestTransaction, waitForTransaction, requestGuardianInfo, diff --git a/src/lib/epoch-sdk.ts b/src/lib/epoch-sdk.ts index a09caf5..bfa1e4a 100644 --- a/src/lib/epoch-sdk.ts +++ b/src/lib/epoch-sdk.ts @@ -22,7 +22,7 @@ interface SdkEntry { export function useEpochSdk(chainIdOverride?: number): EpochIntentSDK | null { const [entry, setEntry] = useState(null); const { data: walletClient } = useWalletClient(); - const apiBaseUrl = getMidenNetworkConfig().allocatorUrl; + const apiBaseUrl = getMidenNetworkConfig().apiBaseUrl; useEffect(() => { if (!walletClient || !apiBaseUrl) { diff --git a/src/lib/miden-account-validation.ts b/src/lib/miden-account-validation.ts new file mode 100644 index 0000000..9d71668 --- /dev/null +++ b/src/lib/miden-account-validation.ts @@ -0,0 +1,44 @@ +import { AccountId, Address } from "@miden-sdk/miden-sdk"; + +function parseMidenAccountId(value: string): AccountId { + const raw = value.trim(); + if (!raw) throw new Error("Miden account ID is required."); + if (raw.startsWith("0x") || raw.startsWith("0X")) { + return AccountId.fromHex(raw); + } + if (/^[0-9a-fA-F]+$/.test(raw) && raw.length % 2 === 0) { + return AccountId.fromHex(`0x${raw}`); + } + if (raw.includes("_")) { + return Address.fromBech32(raw).accountId(); + } + return AccountId.fromBech32(raw); +} + +export function requirePublicMidenAccountId( + value: string, + label: "Miden source account" | "Miden destination account", +): string { + let accountId: AccountId; + try { + accountId = parseMidenAccountId(value); + } catch { + throw new Error(`${label} must be a valid Miden account ID.`); + } + if (!accountId.isPublic()) { + throw new Error(`${label} must be public.`); + } + return accountId.toString(); +} + +export function getMidenPublicAccountError( + value: string, + label: "Miden source account" | "Miden destination account", +): string | null { + try { + requirePublicMidenAccountId(value, label); + return null; + } catch (error) { + return error instanceof Error ? error.message : `${label} is invalid.`; + } +} diff --git a/src/lib/miden-note-retry.ts b/src/lib/miden-note-retry.ts new file mode 100644 index 0000000..5f04232 --- /dev/null +++ b/src/lib/miden-note-retry.ts @@ -0,0 +1,53 @@ +export interface MidenNoteCreationResult { + success: boolean; + noteId?: string; + error?: string; +} + +export interface MidenNoteQuote { + amount: string; + token: string; + recipient: string; + sourceAccount: string; + mandateBinding: string; +} + +export interface CachedMidenNote { + noteId: string; + transactionId?: string; + confirmed?: boolean; + quote: MidenNoteQuote; +} + +function matchesQuote( + cachedQuote: MidenNoteQuote, + requestedQuote: MidenNoteQuote, +): boolean { + return ( + cachedQuote.amount === requestedQuote.amount && + cachedQuote.token === requestedQuote.token && + cachedQuote.recipient === requestedQuote.recipient && + cachedQuote.sourceAccount === requestedQuote.sourceAccount && + cachedQuote.mandateBinding === requestedQuote.mandateBinding + ); +} + +export async function reuseOrCreateMidenNote( + existingNote: CachedMidenNote | undefined, + quote: MidenNoteQuote, + createNote: () => Promise, + resumeNote?: (note: CachedMidenNote) => Promise, +): Promise { + if (existingNote && matchesQuote(existingNote.quote, quote)) { + if ( + existingNote.confirmed === false && + existingNote.transactionId && + resumeNote + ) { + return resumeNote(existingNote); + } + return { success: true, noteId: existingNote.noteId }; + } + + return createNote(); +} diff --git a/src/services/epoch-bridge.ts b/src/services/epoch-bridge.ts index 11a623d..7667330 100644 --- a/src/services/epoch-bridge.ts +++ b/src/services/epoch-bridge.ts @@ -17,6 +17,7 @@ import { type TaskType, } from "@epoch-protocol/epoch-intents-sdk"; import { AccountId, Address } from "@miden-sdk/miden-sdk"; +import { requirePublicMidenAccountId } from "../lib/miden-account-validation"; export interface CrossChainQuote { taskTypeString: string; @@ -110,7 +111,10 @@ export function normalizeMidenIdToHex(id: string): string { export function buildEpochTaskDataParams( params: CrossChainIntentParams, ): GetTaskDataParams { - const midenSourceAccountHex = normalizeMidenIdToHex(params.midenAccountId); + const midenSourceAccountHex = requirePublicMidenAccountId( + params.midenAccountId, + "Miden source account", + ); const midenFaucetIdHex = normalizeMidenIdToHex(params.midenFaucetId); const outputToken = params.outputTokenAddress || EVM_ZERO_ADDRESS; @@ -150,7 +154,10 @@ export function buildEpochTaskDataParams( } export function buildEVMToMidenTaskDataParams(params: EVMToMidenIntentParams) { - const midenRecipientHex = normalizeMidenIdToHex(params.midenRecipientId); + const midenRecipientHex = requirePublicMidenAccountId( + params.midenRecipientId, + "Miden destination account", + ); const midenFaucetHex = normalizeMidenIdToHex(params.midenFaucetId); const evmDecimals = params.evmTokenDecimals ?? 18; @@ -233,6 +240,10 @@ export async function buildEVMToMidenIntent( sdk: EpochIntentSDK, params: EVMToMidenIntentParams & { preFetchedQuote?: EVMToMidenQuote }, ): Promise { + requirePublicMidenAccountId( + params.midenRecipientId, + "Miden destination account", + ); let taskTypeString: string; let intentData: unknown; let quoteResult: IntentQuoteResult | undefined; @@ -308,8 +319,9 @@ export async function buildCrossChainIntent( }, ): Promise { const midenFaucetIdHex = normalizeMidenIdToHex(params.midenFaucetId); - const midenSourceHex = normalizeMidenIdToHex( + const midenSourceHex = requirePublicMidenAccountId( params.midenSourceAccount || params.midenAccountId, + "Miden source account", ); let taskTypeString: string; let intentData: unknown; diff --git a/test/mainnet-config.test.ts b/test/mainnet-config.test.ts new file mode 100644 index 0000000..96c61db --- /dev/null +++ b/test/mainnet-config.test.ts @@ -0,0 +1,69 @@ +import assert from "node:assert/strict"; +import { describe, it } from "node:test"; +import { mainnetGraph } from "@epoch-protocol/epoch-commons-sdk"; +import { isPragmaSupportedMidenAsset } from "../src/constants/miden-tokens.ts"; +import { getDeploymentProfile } from "../src/config/deployment.ts"; + +describe("Miden mainnet configuration", () => { + it("routes the demo through canonical Base USDC and Cedar Miden assets", () => { + const profile = getDeploymentProfile(); + + assert.deepEqual(profile.evmChains, [{ id: 8453, name: "Base" }]); + assert.deepEqual(profile.evmTokens, [ + { + symbol: "USDC", + address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", + decimals: 6, + }, + ]); + assert.equal(profile.miden.chainId, mainnetGraph.chains.Miden.chainId); + assert.equal(profile.miden.chainId, 999999999); + assert.deepEqual(profile.miden.tokens, [ + { + symbol: "USDCX", + faucetId: mainnetGraph.tokens.USDCX.contractAddress.Miden, + decimals: mainnetGraph.tokens.USDCX.decimals, + }, + { + symbol: "ETH", + faucetId: mainnetGraph.tokens.WETH.contractAddress.Miden, + decimals: mainnetGraph.tokens.WETH.decimals, + }, + ]); + assert.equal(profile.miden.rpcUrl, "https://rpc.cedar.miden.io"); + assert.equal( + profile.miden.midenscanBase, + mainnetGraph.chains.Miden.explorer, + ); + }); + + it("accepts non-empty public runtime endpoint overrides", () => { + const profile = getDeploymentProfile({ + VITE_EPOCH_API_BASE_URL: " https://api.example.test ", + VITE_MIDEN_RPC_URL: " https://rpc.example.test ", + }); + + assert.equal(profile.epoch.apiBaseUrl, "https://api.example.test"); + assert.equal(profile.miden.rpcUrl, "https://rpc.example.test"); + }); +}); + +it("accepts only canonical mainnet faucet IDs even when metadata symbols are spoofed", () => { + const profile = getDeploymentProfile(); + const usdcx = profile.miden.tokens.find((token) => token.symbol === "USDCX"); + assert.ok(usdcx); + assert.equal( + isPragmaSupportedMidenAsset( + { assetId: usdcx.faucetId, symbol: "USDCX" }, + "mainnet", + ), + true, + ); + assert.equal( + isPragmaSupportedMidenAsset( + { assetId: "0xcee345d29e1ccf0177307b63f94a5a", symbol: "USDCX" }, + "mainnet", + ), + false, + ); +}); diff --git a/test/miden-account-validation.test.ts b/test/miden-account-validation.test.ts new file mode 100644 index 0000000..f787ec5 --- /dev/null +++ b/test/miden-account-validation.test.ts @@ -0,0 +1,57 @@ +import assert from "node:assert/strict"; +import { describe, it } from "node:test"; +import { + buildEpochTaskDataParams, + buildEVMToMidenTaskDataParams, +} from "../src/services/epoch-bridge.ts"; + +const PUBLIC_ACCOUNT = "0xfa487ba0a7be215127692531a14765"; +const PRIVATE_ACCOUNT = "0x7df7d81cde530f814e34b3a7a14d12"; +const MIDEN_FAUCET = "0x2458e5446128e6b150b75b8ebd9ce1"; +const EVM_ADDRESS = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"; + +describe("Miden public account validation", () => { + it("accepts a public connected source account before a Miden-to-EVM quote", () => { + assert.doesNotThrow(() => + buildEpochTaskDataParams({ + midenAccountId: PUBLIC_ACCOUNT, + midenFaucetId: MIDEN_FAUCET, + evmRecipient: EVM_ADDRESS, + destinationChainId: 8453, + outputTokenAddress: EVM_ADDRESS, + minTokenOut: "1", + }), + ); + }); + + it("rejects a private connected source account before a Miden-to-EVM quote", () => { + assert.throws( + () => + buildEpochTaskDataParams({ + midenAccountId: PRIVATE_ACCOUNT, + midenFaucetId: MIDEN_FAUCET, + evmRecipient: EVM_ADDRESS, + destinationChainId: 8453, + outputTokenAddress: EVM_ADDRESS, + minTokenOut: "1", + }), + /Miden source account must be public/, + ); + }); + + it("rejects a private manually entered destination account before an EVM-to-Miden quote", () => { + assert.throws( + () => + buildEVMToMidenTaskDataParams({ + sourceChainId: 8453, + destinationChainId: 999999999, + evmSourceAddress: EVM_ADDRESS, + evmTokenAddress: EVM_ADDRESS, + midenRecipientId: PRIVATE_ACCOUNT, + midenFaucetId: MIDEN_FAUCET, + minTokenOut: "1", + }), + /Miden destination account must be public/, + ); + }); +}); diff --git a/test/miden-note-retry.test.ts b/test/miden-note-retry.test.ts new file mode 100644 index 0000000..3c88d46 --- /dev/null +++ b/test/miden-note-retry.test.ts @@ -0,0 +1,149 @@ +import assert from "node:assert/strict"; +import { describe, it } from "node:test"; +import { reuseOrCreateMidenNote } from "../src/lib/miden-note-retry.ts"; + +describe("Miden note retry", () => { + const quote = { + amount: "1000000", + token: "mm1arnfum9xuwwlrvgvrefejwvlavn3vk24_qr7qqq9wr6w", + recipient: "mm1allocator", + sourceAccount: "0xpublic-source", + mandateBinding: "1:2:3", + }; + + it("reuses a note for an identical quote without minting another note", async () => { + let createCalls = 0; + + const result = await reuseOrCreateMidenNote( + { noteId: "0xexisting-note", quote }, + quote, + async () => { + createCalls += 1; + return { success: true, noteId: "0xnew-note" }; + }, + ); + + assert.deepEqual(result, { success: true, noteId: "0xexisting-note" }); + assert.equal(createCalls, 0); + }); + + it("creates a note when the amount changes", async () => { + let createCalls = 0; + + const result = await reuseOrCreateMidenNote( + { noteId: "0xexisting-note", quote }, + { ...quote, amount: "2000000" }, + async () => { + createCalls += 1; + return { success: true, noteId: "0xnew-note" }; + }, + ); + + assert.deepEqual(result, { success: true, noteId: "0xnew-note" }); + assert.equal(createCalls, 1); + }); + + it("creates a note when the token changes", async () => { + let createCalls = 0; + + const result = await reuseOrCreateMidenNote( + { noteId: "0xexisting-note", quote }, + { ...quote, token: "mm1different-token" }, + async () => { + createCalls += 1; + return { success: true, noteId: "0xnew-note" }; + }, + ); + + assert.deepEqual(result, { success: true, noteId: "0xnew-note" }); + assert.equal(createCalls, 1); + }); + + it("creates a note when the recipient changes", async () => { + let createCalls = 0; + + const result = await reuseOrCreateMidenNote( + { noteId: "0xexisting-note", quote }, + { ...quote, recipient: "mm1different-recipient" }, + async () => { + createCalls += 1; + return { success: true, noteId: "0xnew-note" }; + }, + ); + + assert.deepEqual(result, { success: true, noteId: "0xnew-note" }); + assert.equal(createCalls, 1); + }); + + it("creates a note when the mandate binding changes", async () => { + let createCalls = 0; + + const result = await reuseOrCreateMidenNote( + { noteId: "0xexisting-note", quote }, + { ...quote, mandateBinding: "1:2:4" }, + async () => { + createCalls += 1; + return { success: true, noteId: "0xnew-note" }; + }, + ); + + assert.deepEqual(result, { success: true, noteId: "0xnew-note" }); + assert.equal(createCalls, 1); + }); + it("creates a note when the source account changes", async () => { + let createCalls = 0; + + const result = await reuseOrCreateMidenNote( + { noteId: "0xexisting-note", quote }, + { ...quote, sourceAccount: "0xdifferent-public-source" }, + async () => { + createCalls += 1; + return { success: true, noteId: "0xnew-note" }; + }, + ); + + assert.deepEqual(result, { success: true, noteId: "0xnew-note" }); + assert.equal(createCalls, 1); + }); + + it("resumes confirmation of a submitted note instead of minting again", async () => { + let createCalls = 0; + let resumeCalls = 0; + const submitted = { + noteId: "0xsubmitted-note", + transactionId: "0xsubmitted-transaction", + confirmed: false, + quote, + }; + + const result = await reuseOrCreateMidenNote( + submitted, + quote, + async () => { + createCalls += 1; + return { success: true, noteId: "0xnew-note" }; + }, + async (pending) => { + resumeCalls += 1; + assert.equal(pending.transactionId, "0xsubmitted-transaction"); + return { success: true, noteId: pending.noteId }; + }, + ); + + assert.deepEqual(result, { success: true, noteId: "0xsubmitted-note" }); + assert.equal(createCalls, 0); + assert.equal(resumeCalls, 1); + }); + + it("creates a note when there is no reusable note", async () => { + let createCalls = 0; + + const result = await reuseOrCreateMidenNote(undefined, quote, async () => { + createCalls += 1; + return { success: true, noteId: "0xnew-note" }; + }); + + assert.deepEqual(result, { success: true, noteId: "0xnew-note" }); + assert.equal(createCalls, 1); + }); +}); diff --git a/test/miden-wallet-compat.test.ts b/test/miden-wallet-compat.test.ts new file mode 100644 index 0000000..06dabb5 --- /dev/null +++ b/test/miden-wallet-compat.test.ts @@ -0,0 +1,11 @@ +import assert from "node:assert/strict"; +import { describe, it } from "node:test"; +import { MIDEN_MAINNET_WALLET_PROVIDER_CONFIG } from "../src/config/miden-wallet-compat.ts"; + +describe("Miden mainnet wallet compatibility", () => { + it("passes the raw mainnet wire value to the wallet provider", () => { + assert.deepEqual(MIDEN_MAINNET_WALLET_PROVIDER_CONFIG, { + network: "mainnet", + }); + }); +}); diff --git a/vite.config.ts b/vite.config.ts index 67910c2..399233a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -26,7 +26,35 @@ export default defineConfig({ // After rebuilding the SDK, restart the dev server with `--force` to refresh. include: ["@epoch-protocol/epoch-intents-sdk"], }, + server: { + allowedHosts: ["miden-integration-example.epochprotocol.xyz"], + }, build: { target: "esnext", + reportCompressedSize: false, + cssMinify: false, + rollupOptions: { + output: { + manualChunks(id) { + if (id.includes("/node_modules/@miden-sdk/")) return "miden"; + if ( + id.includes("/node_modules/@rainbow-me/") || + id.includes("/node_modules/@walletconnect/") || + id.includes("/node_modules/@reown/") + ) { + return "wallet-providers"; + } + if ( + id.includes("epoch-commons-sdk") || + id.includes("epoch-intents-sdk") + ) { + return "epoch-sdk"; + } + }, + }, + }, + // The Miden WASM + wallet graph exceeds this host's memory during minification. + // Keep production builds deployable; Caddy still serves generated assets compressed. + minify: false, }, });