move tx detail caching into sync engine, cache during history sync

- new sync-tx-details.ts: extracts tx+receipt caching from get-details.ts
- sync-tx-history: calls syncTxDetails per transfer hash during sync
- get-details: remove on-the-fly viem fetch + DB write (now handled
  by sync); returns null placeholder
- index: import syncTxDetails; simplify getTransactionDetails handler
This commit is contained in:
2026-05-22 10:18:33 +08:00
parent dd57a72e11
commit 357f707180
5 changed files with 134 additions and 93 deletions
+5 -1
View File
@@ -236,7 +236,11 @@ type RPC = {
response: string[]
}
evmCreateWallet: {
params: { name: string; phrase: string; passwordHash?: string }
params: {
name: string
phrase: string
passwordHash?: string
}
response: { id: string; name: string; createdAt: string }
}
evmListWallets: {