Build A — DEX, validated on chipnet:
- scripts/chipnet-amm-usdm-pusd.mjs: USDm/PUSD constant-product swap on the
first-party SharePairAMM (ADR-0030); price discovery 1.000→1.440 PUSD/USDm,
constant product held. No Cauldron needed (it's mainnet-only).
Build B — cross-chain wrap, validated end-to-end across Tron Nile + chipnet:
- contracts/DeviantWrapMintIOU.cash: mint-on-attestation IOU covenant —
checkDataSig oracle gate, NO BCH backing (dust only; value is the source
lock, ADR-0035), replay-bound to the reservoir outpoint.
- scripts/chipnet-wrapmint-iou.mjs: BCH leg — genesis reservoir into the
covenant, oracle-attested mint of τUSDt, replay rejected by the covenant.
- contracts/tron/UsdtLockNile.sol + scripts/tron-deploy-lock.cjs: Nile lock
contract (lock/markConsumed/refund), deployed at TXmMRnau9Ct…ZintH.
- scripts/tron-bch-wrap.mjs: the oracle watcher — locked 0.5 real USDt on
Nile → minted 500000 τUSDt on chipnet → markConsumed. Genuine USDt→τUSDt.
Docs (Parameters/ASM DEX/ASM-Multichain.md): which source chains qualify,
reverse unwrap, three-tier trust model, source-chain prefix marker, and the
cross-chain-redemption design decision (universal IOU = non-goal; per-chain
IOUs + BCH AMM swap = the answer; CCTP does not cover BCH).
Deps: tronweb ^6.3.0, solc ^0.8.35. Keys/state gitignored.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>