Expand description
Single source of truth for building ServicesOptions from the environment.
Previously context.rs, commands/daemon.rs, commands/tick.rs, and
commands/services.rs each rolled their own (subtly divergent) services
setup. This module unifies them and adds the Arcade V2 surface.
§Environment variables
| Var | Effect |
|---|---|
CHAINTRACKS_URL | Chaintracks header service for proof validation |
ARC_URL | Override the broadcaster URL (classic ARC, or the Arcade endpoint in Arcade mode) |
ARC_MODE=arcade or ARCADE=1 | Arcade V2 mode: EF-only submit, SSE status stream, push proofs |
CALLBACK_TOKEN | Override the per-wallet callback token (otherwise auto-generated and persisted next to the db) |
PUBLIC_CALLBACK_URL | Public HTTPS URL Arcade should POST status webhooks to (X-CallbackUrl) |
TAAL_API_KEY | TAAL ARC key sent as Authorization: Bearer <key> |
MAIN_TAAL_API_KEY | TAAL ARC key sent as raw Authorization: <key> (TAAL accepts no Bearer prefix) |
Structs§
- Arcade
Runtime - Resolved Arcade V2 runtime settings (present only in Arcade mode).
Functions§
- arcade_
mode_ enabled - Whether Arcade V2 mode is selected via env (
ARC_MODE=arcadeorARCADE=1). - arcade_
runtime - Resolve the Arcade runtime settings, or
Nonewhen not in Arcade mode. - callback_
token_ path - Where the per-wallet callback token lives:
<db>.callback-token(covered by the repo’s*.db*gitignore pattern). - resolve_
callback_ token - Resolve the per-wallet callback token.
- services_
options_ from_ env - Build
ServicesOptionsfrom the environment (the ONE shared helper).