Skip to content

chore: remove PAY_DEMO_ENABLED + pay/demo surface entirely - #113

Merged
AquiGorka merged 2 commits into
mainfrom
purge-pay-demo
Jun 8, 2026
Merged

chore: remove PAY_DEMO_ENABLED + pay/demo surface entirely#113
AquiGorka merged 2 commits into
mainfrom
purge-pay-demo

Conversation

@AquiGorka

Copy link
Copy Markdown
Contributor

Removes the demo surface introduced in #53. The POST /api/v1/pay/demo/simulate-kyc route, its handler, the env-var gate (PAY_DEMO_ENABLED), the local/standalone-network auto-mount, both demo test files, and all README + .env.example mentions are deleted. No transitional 410 stub — bare-delete.

Verified no consumers org-wide (PM grep across all 18 Moonlight-Protocol repos, including local-dev setup scripts, testnet/, recording/, playwright/ — zero hits outside this repo before this PR).

Local verification

  • deno fmt --check: clean
  • deno lint: clean
  • deno task test:unit: 64 passed | 0 failed
  • deno task test:integration: 99 passed | 0 failed (matches PR feat(executor): pre-flight OpEx fee check before bundle submission #111 baseline exactly)
  • deno task test:pay: 116 passed | 0 failed (= 132 main baseline − 16 deleted demo Deno.test calls)
  • curl POST /api/v1/pay/demo/simulate-kyc on NETWORK=local: HTTP 404
  • curl POST /api/v1/pay/demo/simulate-kyc on NETWORK=testnet + PAY_DEMO_ENABLED=true: HTTP 404 (env var no longer wires anything)
  • curl POST /api/v1/pay/kyc and /pay/report: HTTP 401 (unchanged contract)

Last commit is the version bump 0.7.3 → 0.7.4 alone.

AquiGorka added 2 commits June 8, 2026 13:06
The demo simulate-KYC endpoint (introduced in #53) was guarded by
NETWORK in [local, standalone] OR PAY_DEMO_ENABLED === "true". The
entire surface is being purged — handler, tests, route registration,
.env.example, README mentions, and the demo directory. No consumer
relies on it (verified org-wide).
@AquiGorka
AquiGorka merged commit 52ecfa0 into main Jun 8, 2026
7 checks passed
@AquiGorka
AquiGorka deleted the purge-pay-demo branch June 8, 2026 16:32
AquiGorka added a commit that referenced this pull request Jun 8, 2026
## Summary

Deletes the 3 `OTEL_*` lines from `fly.testnet.toml [env]` that
duplicated iac-owned secret names.

- `iac/destinations.yaml` is the source of truth for `OTEL_DENO`,
`OTEL_SERVICE_NAME`, and `OTEL_EXPORTER_OTLP_PROTOCOL` on this testnet
Fly app.
- The `[env]` entries were silently shadowed by the Fly secrets iac
sets; they would have rotted if iac ever rotated the values.
- Current `[env]` values match what iac sets, so this is a
**no-runtime-change** cleanup — iac/destinations.yaml remains the sole
source of truth.

## Changes

- `fly.testnet.toml`: drop 3 lines inside `[env]` — `OTEL_DENO`,
`OTEL_SERVICE_NAME`, `OTEL_EXPORTER_OTLP_PROTOCOL`.
- `deno.json`: 0.7.4 → 0.7.5 (independent final commit; rebased onto
post-#113 main).

## Test plan

- [x] `deno fmt --check` clean
- [x] `deno lint` clean
- [x] `deno task test:unit` — 64 passed, 0 failed
- [x] `deno task test:integration` — 96 passed, 0 failed
- [x] `deno task test:pay` — 116 passed, 0 failed
- [x] `python3 tomllib` parses `fly.testnet.toml` cleanly
- [x] `git grep -nF` for each deleted line returns 0 hits on the branch
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