From 7ab01f95806b27abfd16b0ec68d129f9764de99d Mon Sep 17 00:00:00 2001 From: nfel Date: Sun, 30 Aug 2026 19:47:16 +0330 Subject: [PATCH] docs: record W007 market availability policy --- 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 821ef28..36f8985 100644 --- a/REFACTORING-AUDIT.md +++ b/REFACTORING-AUDIT.md @@ -433,3 +433,4 @@ Migration order implied by the map: isolate shared infrastructure constructors ( - ICO agreement amount tolerance is now application-owned in `application/market.AgreementAmountMatches`, using the existing fixed-point money type and preserving the 0.5-unit tolerance. The market gRPC package delegates through a compatibility wrapper; focused market tests pass in `3d9e1af`. - Pricing, order lifecycle, settlement, contract generation, and external adapter composition remain for subsequent W007 increments. +- ICO available-amount validation now uses `application/market.ValidateAvailableAmount` with application-level sentinel errors mapped to existing gRPC error codes by the market adapter. Focused market tests pass in `bbb3443`. diff --git a/REFACTORING-TODO.md b/REFACTORING-TODO.md index 287b28e..da605ea 100644 --- a/REFACTORING-TODO.md +++ b/REFACTORING-TODO.md @@ -326,4 +326,4 @@ Append one row whenever a task changes status. Existing rows are never rewritten | 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`, `application/deposit`, `application/transfer`, and `application/transaction`; routed IRT reconciliation, IPG conversion/settlement/payer identity, transfer validation, transaction construction/completion, balance-change display policy, insufficient-balance failure policy, Stellar status updates, and transaction-event support through application boundaries; focused Wallet tests pass in `d10ff42`. Balance coordination and business failure/refund orchestration remain. | -| 2026-08-30 | W007 | `TODO` | `STARTED` | Added `application/market.AgreementAmountMatches` with canonical fixed-point tolerance coverage; market ICO agreement validation delegates through a compatibility wrapper. Focused market tests pass in `3d9e1af`. Pricing, order lifecycle, settlement, and adapter extraction remain. | +| 2026-08-30 | W007 | `TODO` | `STARTED` | Added `application/market.AgreementAmountMatches` and `ValidateAvailableAmount` with canonical fixed-point tolerance/error coverage; market ICO agreement validation delegates through compatibility wrappers. Focused market tests pass in `bbb3443`. Pricing, order lifecycle, settlement, and adapter extraction remain. |