Components
Every component of the Transfer Agent, its responsibilities, tech, and how it
Every component of the Transfer Agent, its responsibilities, tech, and how it connects. For endpoints see the API reference; for the full list of operations see workflows.md.
Operator console (transfer-agent-fe)
The web UI. React 18 + TypeScript + Vite 5 + Tailwind 3, TanStack React Query,
React Router, Radix UI, casdoor-js-sdk (OIDC PKCE), react-plaid-link (Plaid
Link), xlsx (Carta cap-table import).
Screens (grouped): Ownership (Cap Table), Registry (Positions, Holders, Activity, Allowlist), Operations (Lifecycle, Operations Log, Corporate Actions, Banking), Reporting (Daily ATS Report, Audit Log). Plus the SSO login, a profile/sign-out menu, and the Local/Devnet environment switcher.
- Auth is configured via
VITE_OIDC_ISSUER+VITE_OIDC_CLIENT_ID; when set the console requires SSO and attaches a Bearer token on every API request. - It talks to the backend selected by the environment toggle.
- Tokens live in
sessionStorage; every request sendsAuthorization: Bearer.
ta-api - core modular monolith
Loads every internal module, applies migrations, and serves the unified API used
by the console in the Local environment. Go, chi router, pgx (Postgres),
go-redis, riverqueue/river (durable jobs), go-ethereum (EVM), coreos/go-oidc.
Modules:
- Identity / onboarding - KYC, IdentityRegistry, eligibility, MPC wallet saga.
- Register (read model) - tokens, positions, holders, statements, cap table.
- Compliance - ModularCompliance rules, evaluation, versions.
- Lifecycle - mint, burn, freeze/unfreeze, partial freeze, forced transfer.
- Operations - the maker-checker approval ledger + River execution.
- Settlement - delivery-vs-payment trade settlement.
- Corporate actions - dividend declare/snapshot/compute/execute.
- Reconciliation - on-chain vs DB, drift detection.
- Reports / audit - Daily ATS report, tamper-evident audit chain.
- Events - SSE stream, DLQ, replay, observability console.
Config is env-driven (TA_*); see deployment.md.
subledger-api - FBO cash sub-ledger
Standalone service for the "for-benefit-of" cash rail: one real omnibus bank account (First Bank of Montana) holds all investor cash; the ledger tracks who owns each dollar. Strict double-entry, append-only, replay-safe (idempotency keys). Money is integer USD cents.
Responsibilities: investor wallets (sub-accounts), deposits/wallet-loads, transfers, fees, interest, holds, withdrawals/payouts (maker-checker), wire intents, bank-statement import + reconciliation, Plaid bank linking, operator funding, and dividend payout into wallets. See api/subledger-api.md.
indexer - chain event indexer (worker)
Backfills and live-tails SecurityToken events, writes them to Postgres, and publishes to Redis so the read model and the console's live stream stay current. Only relevant to the Local (real on-chain) mode. No HTTP surface.
reconciler - drift detector (worker)
On a fixed interval, compares on-chain per-holder balances to the DB, records diffs, pauses affected tokens on drift, and publishes alerts. No HTTP surface.
devnet-bridge - devnet gateway
A read-mostly HTTP gateway that serves the console's API shape from the org
devnet. Reads on-chain data via the wallet-api REST facade (chainId 8675399)
and enriches holders from the devnet holder database.
Two modes: plain-DB (read-only) and wallet-api (adds create-asset /
mint / burn / deposit as async jobs). See api/devnet-bridge.md.
Liquid IAM - identity provider
A fork of Casdoor (Apache-2.0) rebranded to "Liquidity IAM". The OIDC issuer for
SSO: federates login to Google, gates the email domain to @satschel.com, and
issues JWTs verified by the backends via JWKS. See
api/iam-oidc.md and third-party.md.
pkg/walletapi - devnet chain client
A thin HTTPS REST client used by the devnet-bridge to reach the wallet-api (create-asset, mint, burn, deposit, balances, contracts). Lets the devnet chain be reached over HTTPS REST with no heavy on-chain SDK dependencies.
pkg/plaid - Plaid client
A thin HTTPS REST client for Plaid: link tokens, public-token exchange, accounts,
auth (routing/account numbers), balance, and Transfer (authorize/create/simulate).
Used by subledger-api for the cash rail.