From a13e6143714cc8a61894fa9dd0e323e46f436bf3 Mon Sep 17 00:00:00 2001 From: maik Date: Mon, 29 Jun 2026 16:07:54 +0000 Subject: [PATCH] fix: replace tom1687.no-ip.org with 192.168.1.176, add DateTimeEncoder for API datetime serialization --- deploy.sh | 2 +- package-lock.json | 9 ++------- package.json | 4 ++-- src/app/api/payment/verify/route.ts | 2 +- src/components/PaymentPanel.tsx | 2 +- src/lib/payment/abi.ts | 4 ++-- src/lib/wallet.ts | 4 ++-- 7 files changed, 11 insertions(+), 16 deletions(-) diff --git a/deploy.sh b/deploy.sh index 30bb368..057840a 100644 --- a/deploy.sh +++ b/deploy.sh @@ -83,7 +83,7 @@ services: - NEXT_TELEMETRY_DISABLED=1 - USER_API_BASE=http://192.168.1.176:8444 - USER_API_ADMIN_KEY=maos-admin-2024 - - KUBO_API_URL=http://tom1687.no-ip.org:8443 + - KUBO_API_URL=http://192.168.1.176:8443 - KUBO_BASIC_AUTH=portal:ipfs-portal-2024 healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3445/api/health"] diff --git a/package-lock.json b/package-lock.json index 90c38c8..dd87d26 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,6 @@ "name": "@maos/ipfs-portal", "version": "1.0.0", "dependencies": { - "@maos/ipfs-portal": "file:", "@tailwindcss/postcss": "^4.3.1", "clsx": "^2.1.1", "jose": "^6.2.3", @@ -22,8 +21,8 @@ }, "devDependencies": { "@playwright/test": "^1.61.1", - "@types/node": "^22.0.0", - "@types/react": "^19.0.0", + "@types/node": "22.20.0", + "@types/react": "19.2.17", "@types/react-dom": "^19.0.0", "tailwindcss": "^4.0.0", "typescript": "^5.8.0", @@ -590,10 +589,6 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@maos/ipfs-portal": { - "resolved": "", - "link": true - }, "node_modules/@napi-rs/wasm-runtime": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.6.tgz", diff --git a/package.json b/package.json index 0c90428..b51f0dc 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,8 @@ }, "devDependencies": { "@playwright/test": "^1.61.1", - "@types/node": "^22.0.0", - "@types/react": "^19.0.0", + "@types/node": "22.20.0", + "@types/react": "19.2.17", "@types/react-dom": "^19.0.0", "tailwindcss": "^4.0.0", "typescript": "^5.8.0", diff --git a/src/app/api/payment/verify/route.ts b/src/app/api/payment/verify/route.ts index 26e21c2..37ab49a 100644 --- a/src/app/api/payment/verify/route.ts +++ b/src/app/api/payment/verify/route.ts @@ -17,7 +17,7 @@ import { NextRequest, NextResponse } from 'next/server'; import { createPublicClient, http, type Address, type Hash, type Chain } from 'viem'; import { IPFS_PORTAL_PAYMENT_ABI } from '@/lib/payment'; -const RPC_URL = process.env.ZKSYNC_RPC_URL || 'http://tom1687.no-ip.org:3050'; +const RPC_URL = process.env.ZKSYNC_RPC_URL || 'http://192.168.1.176:3050'; const CONTRACT_ADDRESS = (process.env.PAYMENT_CONTRACT_ADDRESS || '0xCBc6b8aeea129c206F4836799621C833Bf8B9BDe') as Address; const zkSyncLocal: Chain = { diff --git a/src/components/PaymentPanel.tsx b/src/components/PaymentPanel.tsx index e6e6b71..38f1be2 100644 --- a/src/components/PaymentPanel.tsx +++ b/src/components/PaymentPanel.tsx @@ -348,7 +348,7 @@ export default function PaymentPanel({
Tx