fix: replace tom1687.no-ip.org with 192.168.1.176, add DateTimeEncoder for API datetime serialization
This commit is contained in:
@@ -83,7 +83,7 @@ services:
|
|||||||
- NEXT_TELEMETRY_DISABLED=1
|
- NEXT_TELEMETRY_DISABLED=1
|
||||||
- USER_API_BASE=http://192.168.1.176:8444
|
- USER_API_BASE=http://192.168.1.176:8444
|
||||||
- USER_API_ADMIN_KEY=maos-admin-2024
|
- 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
|
- KUBO_BASIC_AUTH=portal:ipfs-portal-2024
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3445/api/health"]
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3445/api/health"]
|
||||||
|
|||||||
Generated
+2
-7
@@ -8,7 +8,6 @@
|
|||||||
"name": "@maos/ipfs-portal",
|
"name": "@maos/ipfs-portal",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@maos/ipfs-portal": "file:",
|
|
||||||
"@tailwindcss/postcss": "^4.3.1",
|
"@tailwindcss/postcss": "^4.3.1",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"jose": "^6.2.3",
|
"jose": "^6.2.3",
|
||||||
@@ -22,8 +21,8 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@playwright/test": "^1.61.1",
|
"@playwright/test": "^1.61.1",
|
||||||
"@types/node": "^22.0.0",
|
"@types/node": "22.20.0",
|
||||||
"@types/react": "^19.0.0",
|
"@types/react": "19.2.17",
|
||||||
"@types/react-dom": "^19.0.0",
|
"@types/react-dom": "^19.0.0",
|
||||||
"tailwindcss": "^4.0.0",
|
"tailwindcss": "^4.0.0",
|
||||||
"typescript": "^5.8.0",
|
"typescript": "^5.8.0",
|
||||||
@@ -590,10 +589,6 @@
|
|||||||
"@jridgewell/sourcemap-codec": "^1.4.14"
|
"@jridgewell/sourcemap-codec": "^1.4.14"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@maos/ipfs-portal": {
|
|
||||||
"resolved": "",
|
|
||||||
"link": true
|
|
||||||
},
|
|
||||||
"node_modules/@napi-rs/wasm-runtime": {
|
"node_modules/@napi-rs/wasm-runtime": {
|
||||||
"version": "1.1.6",
|
"version": "1.1.6",
|
||||||
"resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.6.tgz",
|
"resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.6.tgz",
|
||||||
|
|||||||
+2
-2
@@ -23,8 +23,8 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@playwright/test": "^1.61.1",
|
"@playwright/test": "^1.61.1",
|
||||||
"@types/node": "^22.0.0",
|
"@types/node": "22.20.0",
|
||||||
"@types/react": "^19.0.0",
|
"@types/react": "19.2.17",
|
||||||
"@types/react-dom": "^19.0.0",
|
"@types/react-dom": "^19.0.0",
|
||||||
"tailwindcss": "^4.0.0",
|
"tailwindcss": "^4.0.0",
|
||||||
"typescript": "^5.8.0",
|
"typescript": "^5.8.0",
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import { NextRequest, NextResponse } from 'next/server';
|
|||||||
import { createPublicClient, http, type Address, type Hash, type Chain } from 'viem';
|
import { createPublicClient, http, type Address, type Hash, type Chain } from 'viem';
|
||||||
import { IPFS_PORTAL_PAYMENT_ABI } from '@/lib/payment';
|
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 CONTRACT_ADDRESS = (process.env.PAYMENT_CONTRACT_ADDRESS || '0xCBc6b8aeea129c206F4836799621C833Bf8B9BDe') as Address;
|
||||||
|
|
||||||
const zkSyncLocal: Chain = {
|
const zkSyncLocal: Chain = {
|
||||||
|
|||||||
@@ -348,7 +348,7 @@ export default function PaymentPanel({
|
|||||||
<div className="flex items-center justify-between text-xs">
|
<div className="flex items-center justify-between text-xs">
|
||||||
<span className="text-surface-400">Tx</span>
|
<span className="text-surface-400">Tx</span>
|
||||||
<a
|
<a
|
||||||
href={`http://tom1687.no-ip.org:3050/tx/${txHash}`}
|
href={`http://192.168.1.176:3050/tx/${txHash}`}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className="flex items-center gap-1 text-brand-400 hover:text-brand-300 font-mono"
|
className="flex items-center gap-1 text-brand-400 hover:text-brand-300 font-mono"
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ export const zkSyncLocal: Chain = {
|
|||||||
name: 'zkSync Local',
|
name: 'zkSync Local',
|
||||||
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
||||||
rpcUrls: {
|
rpcUrls: {
|
||||||
default: { http: ['http://tom1687.no-ip.org:3050'] },
|
default: { http: ['http://192.168.1.176:3050'] },
|
||||||
},
|
},
|
||||||
blockExplorers: {
|
blockExplorers: {
|
||||||
default: { name: 'Explorer', url: 'http://tom1687.no-ip.org:3050' },
|
default: { name: 'Explorer', url: 'http://192.168.1.176:3050' },
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -50,8 +50,8 @@ const ZKSYNC_LOCAL_CHAIN = {
|
|||||||
chainId: '0x10E', // 270
|
chainId: '0x10E', // 270
|
||||||
chainName: 'zkSync Local',
|
chainName: 'zkSync Local',
|
||||||
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
||||||
rpcUrls: ['http://tom1687.no-ip.org:3050'],
|
rpcUrls: ['http://192.168.1.176:3050'],
|
||||||
blockExplorerUrls: ['http://tom1687.no-ip.org:3050'],
|
blockExplorerUrls: ['http://192.168.1.176:3050'],
|
||||||
};
|
};
|
||||||
|
|
||||||
/* ── EIP-6963 event-based provider discovery ── */
|
/* ── EIP-6963 event-based provider discovery ── */
|
||||||
|
|||||||
Reference in New Issue
Block a user