From 18982e6eaf087aaa444ee752b0b3d15deb7cab18 Mon Sep 17 00:00:00 2001 From: tavanam rama Date: Thu, 12 Nov 2026 19:28:39 +0530 Subject: [PATCH] Link the exit page through a gateway that serves it ipfs.io and dweb.link now answer HTTP 429 outside a browser and open pages only through a service worker, and Pinata's free public gateway refuses HTML ("HTML content cannot be served through the pinata public gateway"). ipfs.filebase.io serves the exit page directly (text/html, immutable), so the README, the judge guide and pin-exit's output link there first, with ipfs.io as the browser alternative. The README also names the hosted backend, runway-node.onrender.com. --- README.md | 9 +++++---- docs/JUDGES.md | 5 ++++- scripts/pin-exit.ts | 5 ++++- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d4cc4e8..4c3ce4d 100644 --- a/README.md +++ b/README.md @@ -69,10 +69,11 @@ The contracts are deployed and seeded on testnet under `runway-rama.testnet` Agents run in Shade local mode (`requires_tee = false`): `uwagent.runway-rama.testnet` (Underwriter) and `gwagent.runway-rama.testnet` (InrGateway). The exit page is pinned to IPFS as `bafybeiaybfhshzhm24gfgzly2zy5zd3lvecb5b3sj2agg4fheti2g6nns4` -([ipfs.io](https://ipfs.io/ipfs/bafybeiaybfhshzhm24gfgzly2zy5zd3lvecb5b3sj2agg4fheti2g6nns4)) and recorded in -`credit.get_exit_app_cid()`. The hosted web app and node service URLs go here once they are deployed; -[docs/DEPLOY.md](docs/DEPLOY.md) has the steps and the CI/CD pipelines (Vercel for the web app, Render for -`services/node`). **Judges:** [docs/JUDGES.md](docs/JUDGES.md) is a wallet walkthrough of every flow. +([open it](https://ipfs.filebase.io/ipfs/bafybeiaybfhshzhm24gfgzly2zy5zd3lvecb5b3sj2agg4fheti2g6nns4) through any IPFS gateway) and recorded in +`credit.get_exit_app_cid()`. The backend (`services/node`) runs on Render at +[runway-node.onrender.com](https://runway-node.onrender.com/) (free plan: the first request after it has +been idle takes about a minute) and the web app on Vercel; [docs/DEPLOY.md](docs/DEPLOY.md) has the steps +and the CI/CD pipelines. **Judges:** [docs/JUDGES.md](docs/JUDGES.md) is a wallet walkthrough of every flow. Run it yourself against testnet: `pnpm --filter @runway/node start` (needs the keys in `.env` and `.env.agents.local`), then `pnpm --filter @runway/web dev`, or `pnpm --filter @runway/scripts testnet-e2e` for the diff --git a/docs/JUDGES.md b/docs/JUDGES.md index 19a09fa..0dc0b23 100644 --- a/docs/JUDGES.md +++ b/docs/JUDGES.md @@ -4,7 +4,10 @@ Runway runs on **NEAR testnet**. Every payment is SIMULATED: mock USDC, and a mo press "Simulate success" instead of paying. Nothing here moves real money. **Web app:** `` · **Exit page (IPFS):** -https://ipfs.io/ipfs/bafybeiaybfhshzhm24gfgzly2zy5zd3lvecb5b3sj2agg4fheti2g6nns4 +https://ipfs.filebase.io/ipfs/bafybeiaybfhshzhm24gfgzly2zy5zd3lvecb5b3sj2agg4fheti2g6nns4 + +Any IPFS gateway serves the exit page; that one serves it directly. `ipfs.io/ipfs/` also works in a +browser (it loads through a service worker), and Pinata's free public gateway refuses HTML pages. The backend sleeps when idle (free hosting). If a page says the agent is unavailable, wait a minute and reload. diff --git a/scripts/pin-exit.ts b/scripts/pin-exit.ts index 391f42a..d12e711 100644 --- a/scripts/pin-exit.ts +++ b/scripts/pin-exit.ts @@ -40,7 +40,10 @@ async function main() { throw new Error(`Pinata upload failed: HTTP ${res.status} ${JSON.stringify(body).slice(0, 300)}`); const cid = body.data.cid; console.log(`✔ pinned exit.html (${html.length} bytes) → CID ${cid}`); - for (const g of [`https://ipfs.io/ipfs/${cid}`, `https://${cid}.ipfs.dweb.link`]) console.log(` ${g}`); + // ipfs.io and dweb.link now answer scripts with 429 and open pages only in a browser (service worker); + // Pinata's free public gateway refuses HTML. Filebase's gateway serves the page directly. + for (const g of [`https://ipfs.filebase.io/ipfs/${cid}`, `https://ipfs.io/ipfs/${cid}`]) + console.log(` ${g}`); if (existsSync(OUT)) { const rec = JSON.parse(readFileSync(OUT, "utf8")) as Record;