Commit 4169ca3
apollo_l1_gas_price_config,apollo_node: add strk_to_usd_oracle_config
Goal: relocate the STRK/USD oracle currently wired ad-hoc into
SequencerConsensusContext to live inside L1GasPriceProvider alongside
the existing eth_to_strk oracle. This commit is PR 1 of a 6-PR
Graphite stack; later PRs construct the oracle client in the
provider, expose it on the client trait, switch the orchestrator to
call it, and remove the dead wiring in apollo_consensus_manager.
Change summary: adds `strk_to_usd_oracle_config: ExchangeRateOracleConfig`
to `L1GasPriceProviderConfig` next to `eth_to_strk_oracle_config`,
extends `Default`, dumps it as a nested sub-config, and registers the
four new entries in `config_schema.json`. Pure additive; the field is
unused.
Decision points:
- Kept the existing "eth to strk" wording in `ExchangeRateOracleConfig::dump`
rather than generalizing to "exchange rate oracle". Generalizing would
churn the eth-to-strk schema entries and force a regeneration of
config_secrets_schema.json. Doing it here would balloon the diff;
punting to a separate cosmetic PR.
Action required after merge: run
cargo run --bin update_apollo_node_config_schema
to regenerate config_secrets_schema.json (sandbox cannot access it).
The new private parameter `strk_to_usd_oracle_config.url_header_list`
needs a matching schema entry, otherwise the `default_config_file_is_up_to_date`
test will fail.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bfd0e2c commit 4169ca3
2 files changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
155 | 162 | | |
156 | 163 | | |
157 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3314 | 3314 | | |
3315 | 3315 | | |
3316 | 3316 | | |
| 3317 | + | |
| 3318 | + | |
| 3319 | + | |
| 3320 | + | |
| 3321 | + | |
| 3322 | + | |
| 3323 | + | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
| 3327 | + | |
| 3328 | + | |
| 3329 | + | |
| 3330 | + | |
| 3331 | + | |
| 3332 | + | |
| 3333 | + | |
| 3334 | + | |
| 3335 | + | |
| 3336 | + | |
3317 | 3337 | | |
3318 | 3338 | | |
3319 | 3339 | | |
| |||
0 commit comments