Skip to content
Back to search

cybercentry-app

Cybercentry — Base Token Verification

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/cybercentry--cybercentry-app/badge.svg)](/listings/cybercentry--cybercentry-app)

HTML

<a href="/listings/cybercentry--cybercentry-app"><img src="/api/listings/cybercentry--cybercentry-app/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 88 lines
  1. # Cybercentry — Base Token Verification
  2. A **Base App** (standard web app + wallet, listed on [base.dev](https://base.dev))
  3. that verifies a B20 token before you buy it: it runs a real on-chain buy-and-sell
  4. round trip and reads the contract to answer one question — **can you actually
  5. sell it?** — surfacing sell-side honeypots, whitelisted exits, freeze-and-seize,
  6. live pauses, copycats, and issuer controls.
  7. > This used to be a Farcaster Mini App. It has been migrated to the current Base
  8. > model — **standard web app + wallet, powered by base.dev** — per Base's
  9. > [migration guide](https://docs.base.org/apps/guides/migrate-to-standard-web-app).
  10. > There is no `farcaster.json` manifest, no `@farcaster/miniapp-sdk`, and no
  11. > `fc:miniapp` embed. Domain ownership is proven by the `base:app_id` meta tag;
  12. > discovery and the store listing live on base.dev.
  13. ## How it works
  14. ```
  15. Browser / Base app webview Next.js route (this repo) CBTV proxy
  16. ─ enter a B20 address
  17. ─ free first scan: sign a message POST /api/verify {address, freeSig}
  18. (or pay $1 USDC via the wallet) ─ verify signature / payment (server-side)
  19. ─ replay-guard + free-scan guard (Postgres)
  20. ─ POST /verify-b20/async (x-api-key) ──► {job_id}
  21. ◄────────────────────────────────── return {jobId}
  22. ─ poll GET /api/verify?jobId=… ─ GET /report/{job_id} (x-api-key) ──► status/result
  23. ◄────────────────────────────────── return {status, report}
  24. ─ render the verdict + findings
  25. ```
  26. Payment/authorisation is verified **once**, server-side, at kickoff — the
  27. frontend is never trusted. Async + poll avoids the proxy's edge time limit so
  28. busy tokens still return a complete report.
  29. ## Wallet + payments
  30. - **Connect:** `@wagmi/core` + the `baseAccount` / `injected` connectors
  31. (`@base-org/account`).
  32. - **Send:** `viem` `walletClient` talks straight to the wallet provider (chain
  33. switch + USDC transfer). This sidesteps connector gaps in some in-app wallets.
  34. - **Builder attribution:** the ERC-8021 builder-code suffix rides on the transfer
  35. calldata (see [`lib/wagmi.ts`](lib/wagmi.ts) / [`lib/pay-usdc.ts`](lib/pay-usdc.ts)).
  36. - **Free first scan:** a gasless wallet signature proves ownership; the server
  37. grants one free verification per wallet (durable guard in Postgres).
  38. See [`memory`](./) notes and [`lib/payments.ts`](lib/payments.ts) for the shared config.
  39. ## Routes
  40. | Route | Purpose |
  41. | --- | --- |
  42. | `/` | The verification app |
  43. | `/api/verify` | `POST` kicks off a scan (after verifying payment/signature); `GET ?jobId=` polls for the report |
  44. The CBTV `x-api-key` is server-only and never shipped to the client.
  45. ## Discovery / ownership
  46. - **`base:app_id`** meta tag (in [`app/layout.tsx`](app/layout.tsx)) links this
  47. domain to the base.dev project — this is the domain-ownership proof now.
  48. - App name, icon, tagline, screenshots, category and builder code are configured
  49. on the **base.dev** project, not in a manifest.
  50. - Open Graph / Twitter card metadata gives the URL a rich preview when shared.
  51. App-level metadata lives in [`app.config.ts`](app.config.ts).
  52. ## Environment (Railway)
  53. | Var | Purpose |
  54. | --- | --- |
  55. | `CBTV_API_URL` / `CBTV_API_KEY` | The CBTV verification proxy (server-only) |
  56. | `NEXT_PUBLIC_TREASURY_ADDRESS` | Where the USDC fee lands |
  57. | `NEXT_PUBLIC_PAY_TESTNET` | `true` for Base Sepolia while testing |
  58. | `DATABASE_URL` | Postgres durable store (replay / payer / free-scan guards); fails open to in-memory |
  59. | `APP_API_KEY` | Base Dashboard notifications API key (optional) |
  60. | `NEXT_PUBLIC_URL` | Public base URL (defaults to `https://app.cybercentry.co.uk`) |
  61. ## Local development
  62. ```bash
  63. pnpm install
  64. pnpm dev
  65. ```
  66. ## Deployment
  67. Deployed on Railway at **app.cybercentry.co.uk**. `pnpm build` then `pnpm start`
  68. (the start script honours `$PORT`).

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.