docs: sync from backend cdc8df1 + frontend a5dd48e + scanner 8fee27e — AMN Pay Scanner

- Activity Log: new entry for AMN Pay Scanner implementation
- Environment Variables: document AMN_SCANNER_URL, AMN_SCANNER_WEBHOOK_SECRET, AMN_SCANNER_DEFAULT
- PRD status table: mark all components implemented
This commit is contained in:
Siavash Sameni
2026-05-29 13:07:07 +04:00
parent 04f158e5f3
commit 67cfe4469b
6 changed files with 273 additions and 2 deletions

View File

@@ -1,10 +1,23 @@
# PRD — Retire Request Network: AMN Pay Scanner (Standalone Microservice)
> Status: **Ready for implementation**
> Task: #13 (new)
> Status: **Implemented — 2026-05-29**
> Task: #13
> Priority: High
> Effort estimate: ~46 days (Rust/Go scanner service + Node.js adapter swap)
> Depends on: Task #8 (done), Task #9 (confirmation thresholds), Task #11 (Trezor sweep — parallel, not blocking)
>
> | Component | Status |
> |---|---|
> | Go scanner service | ✅ Done — `scanner/*.go`, builds, tests pass |
> | Backend adapter (`amnPayAdapter.ts`) | ✅ Done — implements `PaymentProviderAdapter` |
> | Webhook receiver (`amnScannerWebhookRoutes.ts`) | ✅ Done — HMAC verify + PaymentCoordinator delegation |
> | Provider config (`providerConfig.ts`) | ✅ Done — `amn.scanner` enabled when `AMN_SCANNER_URL` set |
> | Admin scanner status proxy | ✅ Done — `GET /api/admin/scanner/status` |
> | Frontend lag column | ✅ Done — color-coded chips in networks list |
> | Docker compose (dev + prod) | ✅ Done — `amn-scanner` service with healthcheck |
> | Env vars (backend + scanner) | ✅ Done — `AMN_SCANNER_URL`, `AMN_SCANNER_WEBHOOK_SECRET`, `AMN_SCANNER_DEFAULT` |
> | Cross-language reference test | ✅ Done — Go `computePaymentReference` = TS `computeOnChainPaymentReference` |
> | Live end-to-end probe | ⏳ Pending — requires deployed scanner + real on-chain payment |
---