Skip to content

feat(escrow-backend): format ledger columns for DB storage - #584

Merged
1 commit merged into
Goldii-locks:mainfrom
broda-spendy:fix/498-audit-ledger-db-format
Sep 26, 2026
Merged

1 commit merged into
Goldii-locks:mainfrom
broda-spendy:fix/498-audit-ledger-db-format

Conversation

@broda-spendy

Copy link
Copy Markdown
Contributor

Adds DB-column precision formatting to audit_ledger_sum_checker: fixed-point rendering, round-trip precision validation, and row formatting with full-precision guarantees plus 12 tests. Verified: jest 47 passed, tsc clean, eslint clean. Closes #498

Add DB-column precision formatting to audit_ledger_sum_checker with fixed-point rendering, precision-loss validation, and row formatting. 12 new tests.
@drips-wave

drips-wave Bot commented Sep 26, 2026

Copy link
Copy Markdown

@broda-spendy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

godamongstmen897 pushed a commit that referenced this pull request Sep 26, 2026
#579 and #584 both appended a new section to the end of
audit_ledger_sum_checker.ts (parameter warning codes vs DB-column
precision formatting). Keep both; no shared identifiers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJM5SuF3hAuKGMpPBz7Rwr
godamongstmen897 pushed a commit that referenced this pull request Sep 26, 2026
Keep both sides: #584's DB-format error codes, imports and tests
alongside #585's split-sum assertion code, import and tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJM5SuF3hAuKGMpPBz7Rwr
godamongstmen897 pushed a commit that referenced this pull request Sep 26, 2026
- audit_ledger_sum_checker: keep #580's rate-limit error codes, rate
  limiting and ticker fallback alongside #584/#585's additions, and
  keep all three test sections.
- financial_report_exporter: #580 created a third module at the same
  path. Append it, renaming its ERROR_CODES and FinancialReportErrorCode
  to EXPORTER_PARAM_ERROR_CODES and FinancialReportParamErrorCode (both
  names were taken by #573/#582) and folding its digit-limit-validator
  import into the existing one. #580's tests move to
  financial_report_exporter_params.test.ts.
- #580 makes validateLedgerAmount reject negative amounts itself, so
  #579's collectParameterWarnings reported them as ENTRY_INVALID /
  AMOUNT_NOT_INTEGER instead of AMOUNT_NEGATIVE. Detect the negative
  input in the failure branch and report AMOUNT_NEGATIVE again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJM5SuF3hAuKGMpPBz7Rwr
@godamongstmen897 godamongstmen897 closed this pull request by merging all changes into Goldii-locks:main in f39bed4 Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configure format columns for DB storage in audit_ledger_sum_checker

2 participants