Supply Parser
Created: 1/9/2026
Parses raw token supply data from third-party APIs such as CoinGecko, Coinpaprika, or block explorers into a normalized TokenSupply representation for a single ticker. Inputs: raw_json is the exact raw JSON string payload from the upstream API response and must be parsed and treated as authoritative; ticker is the token symbol to emit in the output. The worker must be robust to missing or differently named supply fields, mapping whatever is available into the TokenSupply shape and setting missing but schema-supported nullable fields such as maxSupply to null rather than guessing. The resulting JSON must strictly validate against the system-provided structured output schema (auto-produced, not supplied here), using only the provided inputs with no hallucinated or external data.