You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context: Schema work backing the Soroban Dashboard endpoints (#21-#24). Distinct from the already-existing contract_events table (migration 022) -- this is aggregated/rolled-up data, not raw events.
Where:
New migrations/032_create_soroban_metrics_timeseries.sql
What to do:
Daily rollup table(s): active-contract-count, call-count, gas-usage per day, sourced from contract_events.
Suggested approach:
This is a rollup of contract_events (raw) into daily aggregates -- don't duplicate raw event data, compute from it.
Context: Schema work backing the Soroban Dashboard endpoints (#21-#24). Distinct from the already-existing
contract_eventstable (migration 022) -- this is aggregated/rolled-up data, not raw events.Where:
migrations/032_create_soroban_metrics_timeseries.sqlWhat to do:
contract_events.Suggested approach:
contract_events(raw) into daily aggregates -- don't duplicate raw event data, compute from it.Watch out for:
contract_eventsyet when you do this, the gas-usage rollup will have nothing to aggregate -- check sequencing with Add /api/v1/soroban/gas-usage endpoint #23.Definition of done:
contract_eventson every request