Skip to content

Per-network SAC / NFT watch-lists via env #162

Description

@Miracle656

Background

SAC_CONTRACT_IDS / NFT_CONTRACT_IDS are read once from single env vars, and the default native-XLM SAC differs per network (CDLZFC3SY… mainnet vs CDMLFMKM… testnet). A dual-network build needs each network's watch-list supplied independently.

What to build

Support paired env vars and select the right list per network.

Key files

  • src/indexer.tsresolveSacContractIds() / resolveNftContractIds() (51-88)
  • .env.example — document the paired vars

Suggested execution

git checkout -b feat/per-network-watchlists
  1. Read SAC_CONTRACT_IDS_TESTNET / _MAINNET (fall back to the single var + the per-network default SAC)
  2. Same for NFT_CONTRACT_IDS_*
  3. Update .env.example with both networks

Acceptance criteria

  • Each network resolves its own watch-list + default SAC
  • Falls back to legacy single-var behaviour
  • .env.example documents both

Drips Wave · Complexity: Easy · 100 points


Required: Before submitting, join the contributor Telegram so your work can be tracked and counted toward the Stellar Wave: https://t.me/+fxHXq8f1SwlkZDBk

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions