This PR adds the historical pricing APIs and backfill support needed for transfer-time valuation, while also hardening deploy and indexer behavior.
What Changed
add pricing endpoints for:
current price
price-at
pricing-context
add swap-event persistence and historical pricing backfill tooling
add historical replay support for OHLCV-driven valuation
prevent stale OHLCV candles from being marked as locked historical prices
prevent CoinGecko historical fallback from using future datapoints
add overlap protection to the periodic indexer
add adaptive RPC chunking for large log-range queries
make token-aggregation deploys deterministic
clean up runtime and dev dependency audit debt
Validation
npm audit -> 0 vulnerabilities
npm test -- --runTestsByPath src/api/routes/tokens.test.ts
npm run build
Live Verification
pricing-context now returns valid locked historical pricing only when the source is acceptable
stale fallback responses now return locked: false
token-aggregation service on CT 5000 is active
Notes
This PR is the API/backend half of the explorer pricing rollout and pairs with the UI wiring in explorer-monorepo.
## Summary
This PR adds the historical pricing APIs and backfill support needed for transfer-time valuation, while also hardening deploy and indexer behavior.
## What Changed
- add pricing endpoints for:
- current price
- `price-at`
- `pricing-context`
- add swap-event persistence and historical pricing backfill tooling
- add historical replay support for OHLCV-driven valuation
- prevent stale OHLCV candles from being marked as locked historical prices
- prevent CoinGecko historical fallback from using future datapoints
- add overlap protection to the periodic indexer
- add adaptive RPC chunking for large log-range queries
- make token-aggregation deploys deterministic
- clean up runtime and dev dependency audit debt
## Validation
- `npm audit` -> 0 vulnerabilities
- `npm test -- --runTestsByPath src/api/routes/tokens.test.ts`
- `npm run build`
## Live Verification
- `pricing-context` now returns valid locked historical pricing only when the source is acceptable
- stale fallback responses now return `locked: false`
- token-aggregation service on CT 5000 is active
## Notes
This PR is the API/backend half of the explorer pricing rollout and pairs with the UI wiring in `explorer-monorepo`.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
This PR adds the historical pricing APIs and backfill support needed for transfer-time valuation, while also hardening deploy and indexer behavior.
What Changed
price-atpricing-contextValidation
npm audit-> 0 vulnerabilitiesnpm test -- --runTestsByPath src/api/routes/tokens.test.tsnpm run buildLive Verification
pricing-contextnow returns valid locked historical pricing only when the source is acceptablelocked: falseNotes
This PR is the API/backend half of the explorer pricing rollout and pairs with the UI wiring in
explorer-monorepo.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.