Round 1 against STRATEGY-2026-10-23.md's backlog: - Wire register_agent/stake/set_credit_score/deposit_liquidity to the real Casper Testnet contracts (lib/casper/live_bridge.ts), verified live against the real RPC node with a freshly generated (unfunded) keypair (npm run casper:keygen). Honesty flags built in for the Odra payable calling convention and the admin-gated set_credit_score call. - Unblock NEAR's paid x402 route (npm run near:keygen generates a real implicit account id); QIE stays correctly flagged as blocked on unconfirmed external facts (asset contract, facilitator), not env plumbing. - New public Home tab: live-stats hero, how-it-works, a real competitor comparison table, and a "90-second proof" that calls the real API live in the browser (verified end-to-end with gstack browse). - Cold-start UX: visible retry state in X402Playground + the TS SDK, plus a keep-warm self-ping (lib/services/keepalive.ts) so the free Render dyno rarely idles out from under a real first-time caller. - New GET /v1/credit-score/:agentId alias + docs/integrations/ samples for Skyfire/Nevermined/Coinbase x402. - Self-hosting quickstart: root docker-compose.yml + scripts/bootstrap.sh, both run for real; fixed a real EACCES crash-loop bug in infra/Dockerfile (non-root user never owned the /data volume mount) found while verifying. 450/450 tests pass, typecheck clean, frontend build clean.
40 lines
1.5 KiB
YAML
40 lines
1.5 KiB
YAML
# Cred402 self-hosting quickstart — the "git clone to a working instance in
|
|
# under 5 minutes" path, with ZERO required env vars (sim mode: in-memory
|
|
# ledger, no Casper/Stripe/Plaid credentials needed to see the full product).
|
|
#
|
|
# docker compose up --build
|
|
# open http://localhost:4021/
|
|
#
|
|
# This is the single-container quickstart (API serves the built console at
|
|
# the same origin — see README.md's "Single-origin production-style run").
|
|
# For the fuller local-production stack (durable event journal + the Go
|
|
# event indexer + Postgres projection target), see infra/docker-compose.yml
|
|
# instead — that one additionally requires CRED402_ADMIN_API_KEY because it
|
|
# runs with auth enabled.
|
|
services:
|
|
cred402:
|
|
build:
|
|
context: .
|
|
dockerfile: infra/Dockerfile
|
|
ports:
|
|
- "4021:4021"
|
|
environment:
|
|
# Auth off by default here ONLY for the zero-config quickstart — the
|
|
# Dockerfile's own default (CRED402_ENV=testnet) otherwise demands
|
|
# CRED402_ADMIN_API_KEY and refuses to boot. Set this to "true" (and
|
|
# provide CRED402_ADMIN_API_KEY) once you're past local evaluation.
|
|
CRED402_AUTH_REQUIRED: "false"
|
|
CRED402_DATA_DIR: /data
|
|
volumes:
|
|
- cred402-data:/data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "node", "-e", "fetch('http://localhost:4021/v1/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 15s
|
|
|
|
volumes:
|
|
cred402-data:
|