Skip to content

chore: remove Lava testnet support - #67

Merged
nimrod-teich merged 2 commits into
mainfrom
chore/remove-testnet
Nov 10, 2026
Merged

nimrod-teich merged 2 commits into
mainfrom
chore/remove-testnet

Conversation

@LudiSistemas

@LudiSistemas LudiSistemas commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

DO NOT MERGE before Nov 10. Part of the Lava testnet (lava-testnet-2) sunset. Opened as a draft so it cannot be merged by accident; it will be marked ready once removal is approved.

Why

The Lava testnet is being shut down. This repo built, deployed and linked to a testnet variant of the explorer. After this change the explorer is mainnet-only.

What changed

Workflows

  • build.yml, publish.yml: the build-web / publish-web matrix is now [mainnet] only. The NEXT_PUBLIC_NETWORK build-arg is removed.
  • deploy.yml: testnet removed from the environment choice.
  • ci.yml: push trigger no longer includes the testnet branch.

Web

  • Header.tsx, MobileNav.tsx: the Mainnet/Testnet toggle is removed. The surrounding containers keep the same classes and gaps.
  • apps/web/src/lib/network.ts deleted. It was the only reader of NEXT_PUBLIC_NETWORK and nothing else imported it.
  • apps/web/Dockerfile: NEXT_PUBLIC_NETWORK ARG/ENV removed.

API and docs

  • Swagger description no longer mentions Testnet.
  • CLAUDE.md and .claude/rules/frontend.md no longer describe the toggle.

LAV1 chain entry

  • LAV1: "Lava Testnet" removed from the display-name map in packages/shared/src/constants/chains.ts.
  • lav1 removed from the icon aliases in packages/shared/src/utils/chain-icons.ts, and its assertion from chain-icons.test.ts. The Lava testnet chain itself is going away, so nothing will need these labels.

What is intentionally unchanged

  • The mainnet build and deploy path is byte-for-byte the same: GitHub environment mainnet, image tags info-web:mainnet-<sha> and mainnet-latest, cache scope web-mainnet. The only difference is that the build-arg which no code reads anymore is gone.
  • Other chains' testnet entries (Sepolia, Amoy, etc.) are unrelated and untouched.

Verification

  • git grep -i lav1 finds nothing.
  • Locally: pnpm typecheck passes; pnpm test passes (shared 44, web 19, api 134).
  • Static review: no remaining imports of @/lib/network, IS_TESTNET, isTestnet, getToggleUrl; JSX balanced; YAML valid.
  • CI on this PR runs typecheck, lint and tests. A local build was not run.

Not covered here (infra, handled separately after approval)

  • GitHub environment testnet and its secrets/vars (AWS_ROLE_ARN, NEXT_PUBLIC_API_URL).
  • Any testnet git branch (CI used to trigger on it).
  • ECR info-web:testnet-* images and the web-testnet GHA cache scope.
  • ECS cluster info-testnet (services api, web, task definitions info-testnet-api / info-testnet-web) and its IAM role.
  • DNS / certificates / ALB for the testnet-* hostname, and any CORS_ORIGINS entry for the testnet web origin.

The Lava testnet (lava-testnet-2) is being sunset, so the explorer no
longer builds, deploys or links to a testnet variant of itself.

Workflows:
- build.yml / publish.yml: build-web and publish-web matrix is now
  [mainnet] only; the NEXT_PUBLIC_NETWORK build-arg is dropped. The
  mainnet path is unchanged: same GitHub environment, same
  info-web:mainnet-<sha> / mainnet-latest tags, same cache scope.
- deploy.yml: testnet removed from the environment choice.
- ci.yml: push trigger no longer includes the testnet branch.

Web:
- Header.tsx / MobileNav.tsx: Mainnet/Testnet toggle removed.
- lib/network.ts deleted (no remaining imports).
- Dockerfile: NEXT_PUBLIC_NETWORK ARG/ENV removed (only reader was
  network.ts).

API: Swagger description no longer mentions Testnet.
Docs: CLAUDE.md and .claude/rules/frontend.md no longer describe the
toggle.

Intentionally kept: LAV1 ("Lava Testnet") in packages/shared chains.ts
and chain-icons, so historical relay data per spec stays readable.

Not covered here (infra, handled separately): the GitHub `testnet`
environment and its secrets, ECR info-web:testnet-* images, the
info-testnet ECS cluster, and the testnet-* hostname.
@LudiSistemas LudiSistemas self-assigned this Nov 9, 2026
The Lava testnet chain (lava-testnet-2, spec LAV1) is shutting down, so
the explorer no longer needs a display name or icon alias for it.
@nimrod-teich nimrod-teich changed the title [DO NOT MERGE before Nov 10] chore: remove Lava testnet support chore: remove Lava testnet support Nov 10, 2026
@nimrod-teich
nimrod-teich marked this pull request as ready for review November 10, 2026 09:33
@nimrod-teich
nimrod-teich merged commit 6c9265e into main Nov 10, 2026
2 checks passed
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.

2 participants