Skip to content

fix(deploy): unbreak market deploy + rename Prediction Market → Two-party binary bet#114

Merged
motxx merged 2 commits intomainfrom
fix/dockerfile-sdk-workspace
May 4, 2026
Merged

fix(deploy): unbreak market deploy + rename Prediction Market → Two-party binary bet#114
motxx merged 2 commits intomainfrom
fix/dockerfile-sdk-workspace

Conversation

@motxx
Copy link
Copy Markdown
Owner

@motxx motxx commented May 4, 2026

Summary

  1. Unbreak Fly deploy — `packages/sdk` was added to the deno.json workspace but `example/two-party-binary-bet/Dockerfile` was missed, causing `deno install` to fail with `Could not find config file for workspace member in 'file:///app/packages/sdk/'`. Adds the missing COPY line.
  2. Project-wide rename — `Prediction Market` (the old branding) is renamed to `Two-party binary bet` across CI, docs, code, and Nostr tags.

Renames

  • `.github/workflows/{bootstrap,deploy}-market.yml` → `{bootstrap,deploy}-two-party-binary-bet.yml` (workflow names + path triggers updated)
  • `e2e/prediction-market-.test.ts` → `e2e/two-party-binary-bet-.test.ts`
  • `docs/prediction-market/` → `docs/two-party-binary-bet/`
  • TS interface `PredictionMarket` → `TwoPartyBinaryBet`
  • Constant `PREDICTION_MARKET_KIND` → `TWO_PARTY_BINARY_BET_KIND`
  • Nostr tags `anchr-prediction-{bet,resolution}` → `anchr-binary-{bet,resolution}`
  • DB table `prediction_market_orders` → `two_party_binary_bet_orders`
  • All "Prediction Market" / "prediction-market" / "prediction_market" copy in comments, READMEs, specs, scripts

Kept (infra / general-sense "market" terminology)

  • Fly app `anchr-market`, DB name `anchr_market`, `fly.market.toml`
  • `MARKET_PORT`, `frost-market-*` script names, `screenshot:market` deno task
  • `Market*`-prefixed types where the "market" sense is unambiguous (`MarketState`, `MarketStatus`, etc.)

Test plan

  • `deno task lint:strict` ✓
  • `deno check` on market server entry points ✓
  • `deno test example/two-party-binary-bet/src/ scripts/bot-fleet/` (65 passed) ✓
  • `deno task build:ui` ✓
  • CI green on this PR

🤖 Generated with Claude Code

The sdk package was added to the deno.json workspace but the
two-party-binary-bet Dockerfile was missed, breaking `deno install`
during Fly deploy with "Could not find config file for workspace
member in 'file:///app/packages/sdk/'".

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

  • .github/workflows/deploy-market.yml

Aligns the project name across the codebase with the directory
`example/two-party-binary-bet/`. The "Prediction Market" branding
remained scattered across CI workflow files, docs, e2e tests, code
identifiers, and Nostr tags.

Renames:
- .github/workflows/{bootstrap,deploy}-market.yml →
  {bootstrap,deploy}-two-party-binary-bet.yml (workflow names + paths
  trigger updated)
- e2e/prediction-market-*.test.ts → e2e/two-party-binary-bet-*.test.ts
- docs/prediction-market/ → docs/two-party-binary-bet/
- TS interface PredictionMarket → TwoPartyBinaryBet
- const PREDICTION_MARKET_KIND → TWO_PARTY_BINARY_BET_KIND
- Nostr tags anchr-prediction-{bet,resolution} →
  anchr-binary-{bet,resolution}
- DB table prediction_market_orders → two_party_binary_bet_orders
- All occurrences of "Prediction Market" / "prediction-market" /
  "prediction_market" in comments, READMEs, specs, scripts

Kept (infrastructure / shorter naming where unambiguous):
- Fly app `anchr-market`, DB name `anchr_market`, file `fly.market.toml`
- `MARKET_PORT` env var, `frost-market-*` script names
- `screenshot:market` deno task alias
- `Market*`-prefixed types where the "market" sense is general
  (MarketState, MarketStatus, etc.)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@motxx motxx changed the title fix(deploy): copy packages/sdk/deno.json in market Dockerfile fix(deploy): unbreak market deploy + rename Prediction Market → Two-party binary bet May 4, 2026
@motxx motxx merged commit c210c56 into main May 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant