Skip to content

chore(nft): drop dead Solscan Solana-NFT path - #1454

Merged
tieubao merged 1 commit into
developfrom
chore/drop-solscan-nft
Jul 8, 2026
Merged

chore(nft): drop dead Solscan Solana-NFT path#1454
tieubao merged 1 commit into
developfrom
chore/drop-solscan-nft

Conversation

@tieubao

@tieubao tieubao commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Consolidation follow-up (decision: drop, not migrate). Solscan was used ONLY for Solana NFT collection lookups and prod has no SOLSCAN_TOKEN, so the feature already returned empty.

  • CreateSolanaNFTCollection (nfts.go) now returns a typed ErrSolanaNFTCollectionNotSupported (clean 400, never 500). The shared POST /nfts/collections route + apt/sui/EVM branches are untouched (not Solana-only).
  • Solscan service fully retired: removed from pkg/service/service.go, deleted pkg/service/solscan/ + pkg/response/solscan.go (Solscan-only types), removed the Solscan/SOLSCAN_TOKEN config field. No other live caller (grep-verified).
  • Net -593 lines. Verify: build/vet green; rg Solscan pkg/ cmd/ = zero live calls.

Note: SOLSCAN_TOKEN was never actually in prod Vault (absent), so no Vault delete needed. Runbook's stale 'Solscan STAYS' line to be fixed in a follow-up.

CI gitleaks/CI-testing baseline-broken (see #1438); 2 reproducible entities baseline fails, unrelated.

🤖 Generated with Claude Code

Solscan backed only the Solana NFT-collection lookup, and its prod
token has been absent, so the feature already returned empty in
practice. CreateSolanaNFTCollection now short-circuits to a typed
ErrSolanaNFTCollectionNotSupported (400) instead of calling Solscan,
so the "sol" branch of the shared CreateNFTCollection route stays
wired but returns a clean, typed response.

With the NFT path gone, svc.Solscan had no remaining callers, so this
also retires the whole integration: the service field + registration,
pkg/service/solscan/, pkg/response/solscan.go (types were Solscan-only),
and the Solscan config field / SOLSCAN_TOKEN env binding.
@tieubao
tieubao merged commit 3ff7c33 into develop Jul 8, 2026
4 of 5 checks passed
@tieubao
tieubao deleted the chore/drop-solscan-nft branch July 8, 2026 20:05
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