Liquidity Docs

Third-Party Services & Libraries

Everything the Transfer Agent touches outside its own code: external services,

Everything the Transfer Agent touches outside its own code: external services, their role and how we integrate, plus the notable libraries.

External services

ServiceRoleIntegration
Liquid IAM (Casdoor fork)OIDC SSO issuercasdoor-js-sdk (FE PKCE) + coreos/go-oidc (backend JWT verify). See api/iam-oidc.md.
Google OAuthIdentity provider behind IAMIAM federates to Google; domain-gated to @satschel.com. Needs a Google Cloud OAuth client (origins + redirect URIs) - see deployment.md.
PlaidBank-account linking, balance, ACH (Plaid Transfer)pkg/plaid REST client + react-plaid-link (FE). Used by subledger-api for funding + dividend payouts. Sandbox today; Transfer gated by a dashboard entitlement (PLAID_TRANSFER=1). See api/subledger-api.md.
First Bank of MontanaThe real FBO omnibus bank holding all investor wallet cashIntegrated separately from Plaid; the fbo_control ledger account represents its balance.
Liquidity corporate operating accountThe company account that funds all dividendsLinked via Plaid; funds the omnibus.
wallet-api (blockchain09, chainId 8675399)Devnet EVM facade (Lux-anchored behind the Hanzo Gateway)Reached HTTPS REST only via pkg/walletapi; zero luxfi/hanzo packages. Used by devnet-bridge.
SimpliciKYC / identity verificationVerdict webhook POST /callbacks/kyc; mocked in dev (mock-simplici).
AlpacaClearing / brokerageConfirmation webhook POST /callbacks/clearing; mocked in dev (mock-alpaca).
MPC signing engine (mpcium)Threshold-signature wallet provisioningLocal dependency; drives the onboarding saga (keygen -> V42 -> ONCHAINID).

Infrastructure

ComponentRole
PostgresSystem of record (read model, modules, FBO ledger)
RedisCache, pub/sub, SSE fan-out
EVM chainRuns the ERC-3643 suite (SecurityToken, IdentityRegistry, ModularCompliance, USDL, Settlement)

Notable libraries

Backend (Go): go-chi/chi (router), coreos/go-oidc (auth), jackc/pgx (Postgres), pressly/goose (migrations), redis/go-redis, riverqueue/river (durable Postgres job queue - runs approved operations, the onboarding saga, and event processing), ethereum/go-ethereum (EVM), centrifuge/go-substrate-rpc-client (sponsor-gas mode), nats-io/nats.go (MPC coordination), prometheus/client_golang + go.opentelemetry.io/otel (metrics/tracing), fystack/mpcium (MPC engine).

Frontend (npm): React, Vite, TypeScript, Tailwind, @tanstack/react-query, react-router-dom, casdoor-js-sdk (OIDC PKCE), react-plaid-link (Plaid Link), Radix UI, lucide-react, xlsx (Carta cap-table import).

What River is used for

River is a Postgres-backed durable job queue. In ta-api it runs: (1) approved maker-checker operations (on-chain mint/burn/freeze/forced-transfer), (2) the onboarding saga (MPC wallet provisioning, resumable/idempotent), and (3) event processing + dead-letter queue (replayable). Jobs are transactional with the data and survive restarts.