Skip to content

feat: add ledger and exchange domain - #14

Merged
ShashankShekhar31 merged 3 commits into
masterfrom
feat/ledger-exchange-domain
Sep 13, 2026
Merged

ShashankShekhar31 merged 3 commits into
masterfrom
feat/ledger-exchange-domain

Conversation

@ShashankShekhar31

Copy link
Copy Markdown
Owner

Summary

  • Add ledger and exchange domain foundation.
  • Add exchange accounts, subaccounts, asset accounts, deposits, withdrawals, trades, and fees.
  • Add immutable ledger domain types and posting validation/builders.
  • Add reconciliation contracts, engine, repository, and PostgreSQL persistence.
  • Add withdrawal segregation-of-duties constraints.
  • Add comprehensive unit and PostgreSQL repository tests.

Validation

  • pnpm typecheck ✅
  • pnpm test ✅
  • Focused exchange/reconciliation tests: 39 tests passed
  • git diff --cached --check clean
  • Working tree clean before push

Architecture

  • PostgreSQL remains authoritative for ledger/accounting state.
  • Exchange/custody remains a separate trust domain from the self-custody wallet.
  • Reconciliation is defined as an architecture contract; no real custodial exchange infrastructure is introduced.

@ShashankShekhar31
ShashankShekhar31 merged commit 575a58e into master Sep 13, 2026
2 checks passed
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.

1 participant