Summary
Provide a rich, deterministic seed dataset for local dev and integration tests.
Background & current behaviour
docker/ci-seed.sql seeds only a CI API key. There is no representative dataset (contracts, events across ledgers, keys/tiers), so locally the endpoints return empty results and integration tests must build their own fixtures.
Why this matters for MVP
A realistic seed makes local development and demos meaningful and gives integration tests stable, shared fixtures.
Proposed implementation
- Author a deterministic seed producing: several contracts in
indexed_contracts, a spread of soroban_events across ledgers/contracts (including token events), ledger_metadata, and API keys across tiers.
- Keep it idempotent and fast; parameterise volume.
- Wire it into
docker-compose.dev.yml and the integration test setup.
- Document how to load/reset it.
Acceptance criteria
Affected files / components
docker/ (seed script + compose wiring)
database/
Testing & verification
Load the seed and hit /v1/events, /v1/stats/contracts asserting non-empty, expected data.
Related / dependencies
Feeds E2E/contract tests and local demos.
Out of scope
Production data generation.
Target branch
All work for this issue MUST target the dev branch. Cut your feature branch from dev and open the pull request against dev, never against main. Any PR opened against main for this issue will be closed and asked to re-target dev.
Summary
Provide a rich, deterministic seed dataset for local dev and integration tests.
Background & current behaviour
docker/ci-seed.sqlseeds only a CI API key. There is no representative dataset (contracts, events across ledgers, keys/tiers), so locally the endpoints return empty results and integration tests must build their own fixtures.Why this matters for MVP
A realistic seed makes local development and demos meaningful and gives integration tests stable, shared fixtures.
Proposed implementation
indexed_contracts, a spread ofsoroban_eventsacross ledgers/contracts (including token events),ledger_metadata, and API keys across tiers.docker-compose.dev.ymland the integration test setup.Acceptance criteria
Affected files / components
docker/(seed script + compose wiring)database/Testing & verification
Load the seed and hit
/v1/events,/v1/stats/contractsasserting non-empty, expected data.Related / dependencies
Feeds E2E/contract tests and local demos.
Out of scope
Production data generation.
Target branch
All work for this issue MUST target the
devbranch. Cut your feature branch fromdevand open the pull request againstdev, never againstmain. Any PR opened againstmainfor this issue will be closed and asked to re-targetdev.