Commit graph

5 commits

Author SHA1 Message Date
walerikus
2cac4d512a design: fiat on/off-ramp product definition (catalogue + escrow + two counterparty classes)
Adds Parameters/DEX_P2P/fiat-ramp-product.md — the product layer over the
settlement engine in p2p-fiat-crypto-exchange.md:

- Non-custodial infrastructure: catalogue + escrow + oracle + reputation;
  platform holds nothing and converts nothing (light-touch posture).
- Two counterparty classes on one backend: individuals (pure P2P, non-KYC,
  self-proved zkTLS) and specialized operators (licensed/vetted, automated,
  carry own compliance) — with class + jurisdiction disclosure.
- Trade flows for each lane; regulatory posture (operators carry compliance;
  regulation follows operator AND customer; geo-controls + disclosure).
- Positioning: "BestChange's network + reach, but escrow- and oracle-protected";
  micro-swap wedge; Telegram + web distribution.
- Scope: fiat↔crypto only; crypto↔crypto is the separate multichain DEX.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 22:16:01 +02:00
walerikus
9b9c2b9dca design: DEX + P2P architecture records (native book, HTLC ramp, fiat oracle)
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>
2026-06-20 04:43:05 +02:00
walerikus
6551e6c074 docs: repoint stale references to renamed FIATm design record
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>
2026-06-17 02:10:36 +02:00
walerikus
599202a721 chore: checkpoint working tree — shell Tier-B retirement + accumulated WIP
Snapshot of accumulated work-in-progress on top of the baseline commit.

This session — retire Tier B from the wallet shell (single-tier model, glossary
"Tiers & trust"):
- SendFlow.tsx: BCH-only; removed the non-functional Tier-B send path, the D-4/D-5
  raw-BCH co-display, and the ADR-0013 friction ladder.
- ArtemisionScreen.tsx: Create wizard collapsed to a single 5-step on-chain genesis
  flow; tier-selection step + Tier-B branch (prepareTierBImport) deleted.
- QuickActions.tsx / SettingsScreen.tsx: receive note reworded; "Send friction
  thresholds" + "Tier explainer" rows removed; registry-trust note reworded.
- Verified: tsc clean, vitest 74/74, full preview walkthrough, no console errors.

Pre-existing uncommitted work also folded in:
- USDm -> FIATm family rename/reorg (Parameters/FIATm/, design records)
- ~130 chipnet + sim-fiatm scripts (catalytic-converter, hyperinflation backtests)
- snapshots 0153-0168; wiki updates (glossary, decisions, index); ADR-0044/0045
- mockups + additional shell screens (Agora, Apps, MainScreen, AssetDetail, ...)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 01:01:37 +02:00
walerikus
518a3ce174 chore: initial project baseline — full Deviant codebase under version control
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>
2026-06-13 20:38:07 +02:00