Skip to content

7.8 - The demo seed scripts cannot run, and only know testnet #161

Description

@determined-001

Complexity: Trivial - 100 Points · type:dx

Milestone: M5 - Distribution & grant

Band lever: none

Context
scripts/demo-seed.ts and scripts/demo-reset.ts back the pnpm demo:seed
workflow that the README and the demo page depend on.

Problem
Two things stop them being useful. They cannot resolve @stellar/stellar-sdk
from the repo root under pnpm's strict node_modules layout, so pnpm demo:seed
fails outright. And they hardcode Networks.TESTNET and friendbot, so even when
fixed they cannot seed a mainnet or self-hosted deployment.

What needs to be done

  1. Fix resolution: move the scripts under apps/api/scripts/ (as
    gen-mainnet-secrets.mjs already was), or add the SDK to the root manifest —
    the first is preferred, it keeps the root manifest thin.
  2. Read the network and Horizon URL from the same env the API uses, defaulting
    to testnet, instead of hardcoding.
  3. Skip the friendbot funding step on any non-testnet network with a clear
    message rather than failing obscurely.
  4. Seed the demo link id the demo page expects (see 5.11).

Key files

  • scripts/demo-seed.ts, scripts/demo-reset.ts
  • package.json — the demo:seed / demo:reset scripts
  • apps/api/src/env.ts — the network/Horizon variables to reuse

Done when

  • pnpm demo:seed succeeds from a clean install.
  • Pointing it at a non-testnet network either works or refuses with a clear reason.

Tracked in ISSUES.md — issue 7.8.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveDrips Wave Program - opt an issue in by applying this labelarea:distributionnpm packages, docs, grant framing, demo assetscomplexity:trivial100 pointsgood-first-issueSelf-contained, well-scoped, safe for newcomerstype:dx

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions