Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion docs/JUDGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:** `<Vercel URL>` · **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/<CID>` 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.
Expand Down
5 changes: 4 additions & 1 deletion scripts/pin-exit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, unknown>;
Expand Down