Skip to content

[Backend] Seed data uses invalid Stellar public keys / contract addresses #574

@ogazboiz

Description

@ogazboiz

Telegram: https://t.me/+DOylgFv1jyJlNzM0

Why this matters

backend/prisma/seed.ts inserts demo rows with strings that are not valid Stellar keys:

  • GDRS6N3K7DQ6GKH47O6E5K5G7B7H7I7J7K7L7M7N7O7P7Q7R7S7T7U7V (repeating, non-checksummed)
  • tokenAddress: 'CBTM5D262F6VQY4A6E4F6G7H8I9J0K1L2M3N4O5P6Q7R8S9T0U1V2W3X' — contains 0,1,8,9, which are not in Stellar's base32 alphabet (A-Z2-7).

These insert fine (they're plain string columns) but produce unrealistic demo data: any frontend isValidStellarPublicKey/StrKey decode on seeded rows fails, and the token symbol won't resolve via TOKEN_ADDRESSES. New contributors seeding a local DB then see broken-looking demo streams.

Acceptance criteria

  • Replace seed keys/addresses with valid testnet StrKeys (e.g. real G…/C… values, or generated valid keypairs)
  • Optionally use the real TOKEN_ADDRESSES token contract values so symbols resolve
  • npm run prisma:seed (or equivalent) inserts data the frontend renders correctly

Files to touch

  • backend/prisma/seed.ts

Out of scope

  • Schema changes.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendBackend related tasksdatabasePostgreSQL / Prismagood first issueGood for newcomers

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions