Capture the DEX/P2P design worked out this session under Parameters/DEX_P2P/:
- dex-architecture.md — the exchange model (AMM is an order type, not a venue);
one infrastructure with two entry ramps + two skins; THORChain-insolvency
note validating the no-protocol-vaults thesis.
- bch-dex-development.md — native BCH order-book engineering spec (order
covenants, multi-input taker settlement, the 100KB tx cap, indexer/matcher).
- cross-chain-htlc-ramp.md — HTLC entry-ramp spec (two-leg atomic swap,
T_B<T_A timelock ordering, BCH covenant, BTC/EVM counterparty legs).
- p2p-fiat-crypto-exchange.md — fiat-leg payment oracle + settlement covenant;
receipt-vs-sender-proof decision resolved to sender-proof (2b) via the
three-adversary test (new §4a), refund-default victim mislabel fixed.
Design records only; no code.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Follow-up cleanup to the USDm -> FIATm reorg: update the remaining cross-references
that still pointed at Parameters/usdm_complete-design_FOR-design-record.md to its
new path Parameters/FIATm/fiatm_complete-design_FOR-design-record.md.
Touched: src/oracleUsdm.ts, wiki/decisions.md, wiki/sound-money-primer.md, and the
FIATm/MBA-Shares design records. Adds Parameters/FIATm/fiatm-comparisons.html.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Brings the whole project into git (previously only the on-ramp feature and
a few parallel files were tracked). Includes: wallet core (src/), CashScript
contracts/, the Capacitor shell (shells/), scripts/, tests, and the docs
corpus (wiki/, snapshots/, Parameters/, Archive/, KnowledgeBase text).
Excluded via .gitignore: node_modules/, dist/, .env (secrets), testnet WIF
key files (.chipnet-*.json, devWallets.ts), KnowledgeBase/RAW media (~9.6 GB),
transcripts/ (session logs), and machine-local config (.claude/*.local,
*.lock). Secret-scanned before commit — no credentials in the tree.
Note: src/swapMath.ts, src/swapBuilder.ts, contracts/OpenMintToken.cash are
legacy (OP_RETURN era) but still imported; committed as-is, flagged for a
separate removal once de-referenced.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>