Skip to content

Remove the L2 (Nillion Testnet) faucet - #10

Merged
psofiterol merged 1 commit into
mainfrom
chore/remove-l2-faucet
Oct 6, 2026
Merged

psofiterol merged 1 commit into
mainfrom
chore/remove-l2-faucet

Conversation

@psofiterol

Copy link
Copy Markdown
Member

What

Removes the L2 faucet. The L2 is winding down, and this drops one of the last consumers of rpc.testnet.nillion.network, which unblocks retiring the testnet RPC proxy.

  • Deleted:
    • /api/faucet and /api/faucet/status (the server-side ETH + NIL drip on chain 78651)
    • src/lib/l2/faucet.ts and src/lib/l2/rate-limit.ts
    • useL2Claim, useL2Status and L2FaucetContent
  • Removed the nillionTestnet chain from wagmi, the NILLION_TESTNET_* constants, the explorer entry and the l2 entry in CHAIN_PARAM_MAP.
  • ?chain=L2 links still in circulation now fall through to the default Blind Computer (Sepolia) faucet instead of switching the wallet to 78651.
  • Redis: the Redis client moves from src/lib/l2/redis.ts to src/lib/redis.ts. The Blacklight relayer still uses it for its cooldown.
  • Docs: updated .env.example and CLAUDE.md.

Deploy follow-up

After merge, remove these env vars from the deployment:

  • L2_FAUCET_PRIVATE_KEY
  • L2_NIL_TOKEN_ADDRESS
  • L2_FAUCET_COOLDOWN_MS
  • L2_FAUCET_ETH_AMOUNT
  • L2_FAUCET_NIL_AMOUNT

Keep REDIS_URL. Any ETH or NIL left in the L2 faucet wallet can be swept.

Testing

  • pnpm lint, pnpm typecheck and pnpm build pass. The only route left is /api/faucet/blacklight.
  • pnpm fmt --check is clean on tracked files.

The L2 is winding down. Drops the server-side ETH + NIL drip (/api/faucet,
/api/faucet/status), its UI and hooks, the nillionTestnet chain and the
rpc.testnet.nillion.network dependency. ?chain=L2 now falls through to the
default Sepolia faucet. The Redis client moves to src/lib/redis.ts, since the
Blacklight relayer still uses it for cooldowns.
@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
faucet-ui Ready Ready Preview Oct 6, 2026 9:13am UTC

Request Review

@psofiterol
psofiterol merged commit cc3cdfb into main Oct 6, 2026
6 checks passed
@psofiterol
psofiterol deleted the chore/remove-l2-faucet branch October 6, 2026 09:14

This branch was successfully deployed

1 active deployment
Preview — e5bff99d Deployed Oct 6, 2026 by vercel[bot]
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