Files
martbost 8645b471ae The Draft on the real holding tank (2026-11-15, LOCAL ONLY): tankpool.js 'iap' mode = signed client for InstantAdPay's draft partner routes
TANK_MODE=iap (or hub) + IAP_URL + DRAFT_PARTNER_SECRET: pool / adopt / release / status as HMAC-signed POSTs ('draft.v1.' + ts +
newline + body, X-Draft-Ts / X-Draft-Sig). The stub stays the default and keeps every existing test. adopt carries the coach claim
(wallet, hubId, username, positions = store.positionsOf) and a request id; one retry with the same rid on a network failure, so a
retry never makes two adoptions. release sends why 'coach' | 'return' + the pick's iap ref and takes InstantAdPay's outcome
(returned / kept / done). league.sweep follows a pick InstantAdPay closed first (its own 3-day sweep, a release there, a LinkSpin
follow). Surfing arrives as ad credits (surfCredits, shown "N ad credits" to coaches, +10 scouting like surf POL); games stay
"not tracked yet" (InstantAdPay has no per-member game record).

Fix found by the cross test: a tank refusal about the COACH (no InstantAdPay account, full, not vested, hub off) used to mark the
person unavailable and let the same coach choose again, which would burn the whole pool; now the slot passes (skip 'tank: <code>')
and a silent tank pauses the draft (nothing recorded, the next tick retries the same slot). Manual picks record nothing on either.

Tests: unit 62/62 (2 new: skip + wait), smoke 156/156 (ports 3561-3564), qa/iap-tank.test.cjs 23/23 (this client + league against
InstantAdPay's REAL draftpartner.js + tank.js from the sibling checkout behind a signed server on 3565, then a dead port 3566).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 07:18:00 -06:00

19 lines
717 B
JSON

{
"name": "5xyourteam",
"version": "0.1.0",
"private": true,
"description": "5xYourTeam (5xyourteam.com rebuild): The Draft. A $10 one-time position = 5 picks right away + a draft spot every week; coaches draft people waiting in the network holding tank every Monday, draft order earned by last week's started picks. DraftPosition split on-chain: sponsor 25%, levels 2-5 5% each, 10% Best Coach pot, 45% company.",
"main": "server.js",
"scripts": {
"start": "node server.js",
"test": "node qa/unit.test.cjs",
"qa": "node qa/smoke.mjs",
"test:iap": "node qa/iap-tank.test.cjs"
},
"engines": { "node": ">=20" },
"dependencies": {
"ethers": "^6.13.0",
"mysql2": "^3.11.0"
}
}