Skip to content

Oracle: create typed runtime config module #577

@Otaiki1

Description

@Otaiki1

Build location

Work primarily in oracle/src/config. Keep related tests/docs beside that package unless this issue explicitly calls for a cross-package update.

Why this matters

Oracle configuration spans keys, subscribers, submitters, queues, and network settings and needs one typed validation boundary.

What to build

  • Add or consolidate config schema for Stellar RPC/Horizon, contract IDs, key providers, queue settings, VRF thresholds, and rescue flags.
  • Replace direct process.env reads.
  • Document required env vars.

Acceptance criteria

  • Tests cover missing secrets, invalid network, and invalid threshold values.
  • Startup fails fast with actionable config errors.

Suggested verification

cd oracle && npm run lint && npm run test && npm run build

Metadata

Metadata

Assignees

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