Deviant BCH wallet — CashTokens + covenants (Katalogos v1 · chipnet)
Symptom: visiting potidaea.asm/brand in Theseus shows the Potidaea trident PNG as a broken image (alt text visible). The 5 SVG explorations below still render because they're inline SVG, not external files. Cause: Theseus serves BNS URLs as the user typed them. When the URL has no trailing slash — potidaea.asm/brand instead of potidaea.asm/brand/ — <base href="./"> anchors the relative resolution at '/' (parent of '/brand' treated as a filename) rather than at '/brand/'. Images with src="mark/..." then resolve to '/mark/...' which 404s. The BNS gateway at navigate.st/bns/ already normalizes with a 302 that adds the slash, and nginx-served paths at silentmode do the same. Theseus does not. So the issue only shows under native BNS browsing. Fix: inline <script> at the TOP of <head> (runs before any <img>, <link>, or further <base> is parsed by the preloader) that redirects to the slash version when the pathname is exactly '/brand'. No-op under the gateway (pathname is '/bns/...' there) or when the slash is already present. Applied to both pages — Deviant brand had the same latent bug, same guard closes it. Verified in-browser via gateway: location.href resolves to .../brand/, trident PNG naturalWidth=1373 (loaded). Theseus verification requires a reload from the user side; the script's logic is trivial and side-effect- free. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| brand | ||
| contracts | ||
| design | ||
| docs | ||
| KnowledgeBase | ||
| Parameters | ||
| public | ||
| scripts | ||
| services | ||
| shells | ||
| site | ||
| snapshots | ||
| spike | ||
| src | ||
| telegram-orderbook | ||
| test | ||
| wiki | ||
| .calibration-sweep.json | ||
| .catalytic-sweep.json | ||
| .env.example | ||
| .gitignore | ||
| .kac-extract.txt | ||
| .sim-athenae.json | ||
| adaptive-data.json | ||
| bch-history.json | ||
| bch-market.json | ||
| BCH_Token_Economy_Concept_Paper.md | ||
| bch_wallet_architecture.svg | ||
| CLAUDE.md | ||
| deviant_technical_spec_v2.7.md | ||
| package-lock.json | ||
| package.json | ||
| project-context.md | ||
| README.md | ||
| tsconfig.json | ||
| usdm-historical.json | ||
Deviant
BCH two-tier token economy platform. Pre-implementation. See BCH_Token_Economy_Concept_Paper.md for the full design.
Status
Bootstrap snapshot — protocol swap mechanism is the validation target.
Project map
| Path | Purpose |
|---|---|
BCH_Token_Economy_Concept_Paper.md |
Architecture spec, all [PROPOSED] claims |
CLAUDE.md |
Working agreement for Claude sessions |
src/ |
TypeScript wallet + token logic |
contracts/ |
CashScript source for Architecture A contracts |
test/ |
Unit tests (regtest) + integration plan (chipnet, mainnet) |
scripts/ |
Code-scan, snapshot, compile helpers |
wiki/ |
Living docs: architecture, decisions, testing strategy, code map |
snapshots/ |
Numbered progress snapshots |
Quickstart
npm install
npm run compile:contracts # produces artifacts from contracts/*.cash
npm run test:regtest # runs regtest suite
npm run scan # regenerates wiki/code-map.md
npm run snapshot # appends a new snapshot
Build priorities (active)
- Protocol swap mechanism — most novel claim, needs validation first.
- CashScript enforcement on mainnet — not just theoretical verification.
- tokenId correlation across A/B tiers — edge cases expected.
See wiki/testing-strategy.md for the staged regtest → chipnet → mainnet plan.