From f5a9d9a06abcbbeaba7f7a96b759d13a205f79e6 Mon Sep 17 00:00:00 2001 From: nfel Date: Sun, 30 Aug 2026 19:25:44 +0330 Subject: [PATCH] docs: record transfer policy extraction --- REFACTORING-AUDIT.md | 1 + REFACTORING-TODO.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/REFACTORING-AUDIT.md b/REFACTORING-AUDIT.md index 579b6cc..c7cb009 100644 --- a/REFACTORING-AUDIT.md +++ b/REFACTORING-AUDIT.md @@ -411,4 +411,5 @@ Migration order implied by the map: isolate shared infrastructure constructors ( - Added `application/withdrawal` with the IRT amount reconciliation policy and focused tests for the one-unit balance threshold. - `WithdrawIRTInit` continues to own the gRPC/payment flow but delegates amount policy through the application package; full Wallet tests pass in `16ebd2d`. - IPG Toman/Rial conversion, positivity, rounding, and exactness checks now live in `application/deposit`; the gRPC/payment flow delegates through wrappers and remains response-compatible. Full Wallet tests pass in `a565ce0`. +- Transfer display-to-raw amount conversion and positive/exactness validation now live in `application/transfer`; the gRPC service retains protocol-specific error mapping. Full Wallet tests pass in `1e5b977`. - Deposit/payment idempotency, transaction persistence, queue publication, and failure orchestration remain for subsequent W006 increments. diff --git a/REFACTORING-TODO.md b/REFACTORING-TODO.md index 4b818f9..a856a55 100644 --- a/REFACTORING-TODO.md +++ b/REFACTORING-TODO.md @@ -325,4 +325,4 @@ Append one row whenever a task changes status. Existing rows are never rewritten | 2026-08-30 | A009 | `TODO` | `DONE` | Removed Auth's commented/dead wallet federation client; Auth tests pass with writable cache in `508a239`. | | 2026-08-30 | W013 | `TODO` | `STARTED` | Removed automatic federation creation and federation lookup from wallet initialization; new wallet records no longer receive a federation assignment; full Wallet tests pass in `97dd9d9`. Remaining schema/API/transaction-field cleanup is pending. | | 2026-08-30 | W013 | `STARTED` | `DONE` | Removed federation persistence/model code, wallet and transaction federation fields, federation protobuf messages, stale API route/docs, and remaining runtime references; regenerated Wallet contracts for Wallet/Auth/API; Wallet, Auth, and API tests pass. Wallet `a38501d`/`7ae90cc`, Auth `446e875`, API `c450264`/`c2c076c`. | -| 2026-08-30 | W006 | `TODO` | `STARTED` | Added `application/withdrawal` and `application/deposit`; routed IRT amount reconciliation and IPG Toman/Rial conversion through application policies with exactness/overflow tests; full Wallet tests pass in `a565ce0`. Transaction persistence, idempotency, queues, and failure orchestration remain. | +| 2026-08-30 | W006 | `TODO` | `STARTED` | Added `application/withdrawal`, `application/deposit`, and `application/transfer`; routed IRT reconciliation, IPG Toman/Rial conversion, and transfer raw-amount validation through application policies; full Wallet tests pass in `1e5b977`. Transaction persistence, idempotency, queues, and failure orchestration remain. |