deviant/package.json
walerikus f32c28ed84 feat(chipnet): USDm/PUSD AMM + real cross-chain wrap USDt→τUSDt
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>
2026-06-22 22:07:58 +02:00

119 lines
6.7 KiB
JSON

{
"name": "deviant",
"version": "0.1.0",
"private": true,
"description": "BCH two-tier token economy platform — protocol swap, CashScript enforcement, hybrid A/B architecture. Pre-implementation per concept paper v0.1.",
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json",
"test": "node --test --import tsx test/**/*.test.ts",
"test:regtest": "REGTEST=1 node --test --import tsx test/regtest/**/*.test.ts",
"regtest:dsweep": "node scripts/regtest-doublespend-sweep.mjs",
"scan": "node scripts/scan-code.mjs",
"snapshot": "node scripts/snapshot.mjs",
"compile:contracts": "node scripts/compile-contracts.mjs",
"chipnet:setup": "node scripts/chipnet-setup.mjs",
"chipnet:genesis": "node scripts/chipnet-genesis.mjs",
"chipnet:mint-a": "node scripts/chipnet-mint-A.mjs",
"chipnet:swap": "node scripts/chipnet-swap.mjs",
"chipnet:setup-b": "node scripts/chipnet-setup-b.mjs",
"chipnet:fund-b": "node scripts/chipnet-fund-b.mjs",
"chipnet:mint-by-b": "node scripts/chipnet-mint-by-b.mjs",
"chipnet:setup-c": "node scripts/chipnet-setup-c.mjs",
"chipnet:setup-d": "node scripts/chipnet-setup-d.mjs",
"chipnet:genesis-v": "node scripts/chipnet-genesis-vulnerable.mjs",
"chipnet:attack-drain": "node scripts/chipnet-attack-drain.mjs",
"chipnet:attack-rogue-nft": "node scripts/chipnet-attack-rogue-nft.mjs",
"chipnet:attack-negatives": "node scripts/chipnet-attack-negatives.mjs",
"chipnet:asm-genesis": "node scripts/chipnet-asm-genesis.mjs",
"chipnet:asm-claim": "node scripts/chipnet-asm-claim.mjs",
"chipnet:asm-send": "node scripts/chipnet-asm-send.mjs",
"chipnet:asm-batch": "node scripts/chipnet-asm-batch.mjs",
"chipnet:asm2-genesis": "node scripts/chipnet-asm2-genesis.mjs",
"chipnet:asm-swap": "node scripts/chipnet-asm-swap.mjs",
"chipnet:asm-bulk-swap": "node scripts/chipnet-asm-bulk-swap.mjs",
"chipnet:cap-genesis": "node scripts/chipnet-cap-genesis.mjs",
"chipnet:rogue-donate": "node scripts/chipnet-rogue-donate.mjs",
"chipnet:t001-genesis": "node scripts/chipnet-t001-genesis.mjs",
"chipnet:t001-attack": "node scripts/chipnet-t001-attack.mjs",
"chipnet:t001-verify": "node scripts/chipnet-t001-verify.mjs",
"chipnet:balances": "node scripts/chipnet-balances.mjs",
"chipnet:mut-deploy": "node scripts/chipnet-mut-deploy.mjs",
"chipnet:mut-claim": "node scripts/chipnet-mut-claim.mjs",
"chipnet:mut-redeem": "node scripts/chipnet-mut-redeem.mjs",
"chipnet:mut-analyze": "node --import tsx scripts/chipnet-mut-analyze.mjs",
"chipnet:mut-run": "node scripts/chipnet-mut-run.mjs",
"chipnet:protocol-bounds": "node scripts/chipnet-protocol-bounds.mjs",
"chipnet:whitelist-test": "node --import tsx scripts/chipnet-whitelist-test.mjs",
"chipnet:fee-mutability-test": "node scripts/chipnet-fee-mutability-test.mjs",
"chipnet:escalating-test": "node --import tsx scripts/chipnet-escalating-test.mjs",
"chipnet:escalating-50pc": "node scripts/chipnet-escalating-50pc-test.mjs",
"chipnet:bonding-swap": "node scripts/chipnet-bonding-swap-test.mjs",
"chipnet:unbacked-swap": "node scripts/chipnet-unbacked-swap-test.mjs",
"chipnet:zero-zero-swap": "node scripts/chipnet-zero-zero-swap-test.mjs",
"chipnet:esc-source-swap": "node scripts/chipnet-escalating-source-swap-test.mjs",
"chipnet:swap-remainder": "node scripts/chipnet-swap-remainder-test.mjs",
"chipnet:denom-fee": "node scripts/chipnet-denomination-fee-test.mjs",
"chipnet:redeem-safety": "node scripts/chipnet-redeem-safety-test.mjs",
"registry:serve": "node --import tsx scripts/registry-serve.mjs",
"chipnet:lib-balances": "node --import tsx scripts/chipnet-lib-balances.mjs",
"chipnet:lib-send": "node --import tsx scripts/chipnet-lib-send.mjs",
"chipnet:lib-swap": "node --import tsx scripts/chipnet-lib-swap.mjs",
"chipnet:lib-claim": "node --import tsx scripts/chipnet-lib-claim.mjs",
"deviant": "node --import tsx scripts/deviant.mjs",
"deviant:web": "node --import tsx scripts/deviant-web.mjs",
"chipnet:escrow": "node scripts/chipnet-escrow-test.mjs",
"chipnet:escrow-fee": "node scripts/chipnet-escrow-fee-test.mjs",
"chipnet:escrow-fee-irregular": "node scripts/chipnet-escrow-fee-irregular-test.mjs",
"chipnet:escrow-flat": "node scripts/chipnet-escrow-flat-test.mjs",
"chipnet:che-escrow": "node scripts/chipnet-che-escrow-test.mjs",
"chipnet:che-escrow-perside": "node scripts/chipnet-che-escrow-perside-test.mjs",
"chipnet:oracle-markets": "node scripts/chipnet-oracle-markets-test.mjs",
"chipnet:tote4": "node scripts/chipnet-tote4-test.mjs",
"chipnet:opentote": "node scripts/chipnet-opentote-test.mjs",
"chipnet:tote2": "node scripts/chipnet-tote2-test.mjs",
"chipnet:tote2-mba": "node scripts/chipnet-tote2-mba-test.mjs",
"chipnet:tote2-rs": "node scripts/chipnet-tote2-rs-test.mjs",
"chipnet:tote2-rake": "node scripts/chipnet-tote2-rake-test.mjs",
"chipnet:tote2-mba-rake": "node scripts/chipnet-tote2-mba-rake-test.mjs",
"chipnet:tote2-k4": "node scripts/chipnet-tote2-k4-test.mjs",
"chipnet:clob-bch": "node scripts/chipnet-clob-bch-test.mjs",
"chipnet:clob-mba": "node scripts/chipnet-clob-mba-test.mjs",
"chipnet:clob-fungible": "node scripts/chipnet-clob-fungible-test.mjs",
"chipnet:clob-orders": "node scripts/chipnet-clob-orders-test.mjs",
"chipnet:clob-amm": "node scripts/chipnet-clob-amm-test.mjs",
"chipnet:oracle-vault": "node scripts/chipnet-oracle-vault-test.mjs",
"chipnet:expiring-mba": "node scripts/chipnet-expiring-mba-test.mjs",
"chipnet:poll": "node scripts/chipnet-poll-test.mjs",
"chipnet:poll-as-oracle": "node scripts/chipnet-poll-as-oracle-test.mjs",
"chipnet:tally-as-oracle": "node scripts/chipnet-tally-as-oracle-test.mjs",
"chipnet:stake-vote": "node scripts/chipnet-stake-vote-test.mjs",
"chipnet:phase-a": "node scripts/chipnet-phase-a-test.mjs",
"chipnet:phase-b": "node scripts/chipnet-phase-b-test.mjs",
"chipnet:phase-c": "node scripts/chipnet-phase-c-test.mjs",
"chipnet:phase-d": "node scripts/chipnet-phase-d-test.mjs",
"chipnet:phase-e": "node scripts/chipnet-phase-e-test.mjs",
"chipnet:endorsement": "node scripts/chipnet-endorsement-test.mjs",
"chipnet:phase-f": "node scripts/chipnet-phase-f-test.mjs"
},
"dependencies": {
"@bitauth/libauth": "3.1.0-next.8",
"@noble/curves": "^1.6.0",
"@noble/hashes": "^1.5.0",
"@psf/bch-js": "^7.1.14",
"bip39": "^3.1.0",
"cashscript": "0.12.1",
"mainnet-js": "3.1.7",
"solc": "^0.8.35",
"tronweb": "^6.3.0"
},
"devDependencies": {
"@types/node": "^20.11.0",
"cashc": "0.12.1",
"tsx": "^4.7.0",
"typescript": "^5.4.0"
},
"engines": {
"node": ">=20.0.0"
}
}