Query editor
-- Robinhood Chain: L2 sequencer liveness with L1 state updates.---- DAY SPINE IS L2 BLOCK DAYS. This previously drove off state_updates (Ethereum-- logs for the Rollup contract), so a day with zero rollup events produced no row-- at all -- an L1 posting outage would have made the day silently vanish from the-- liveness chart instead of showing as a problem. The spine is now L2 days and the-- L1 series is LEFT JOINed onto it.---- MAX GAP NOW INCLUDES MIDNIGHT. lag() partitioned by date gave the first block of-- each day no predecessor, so an outage spanning midnight was invisible. The-- boundary gap (previous day's last block -> this day's first block) is now-- computed separately and folded in with greatest().---- State updates are AssertionCreated events on the Rollup contract on Ethereum-- (0x23A19d23e89166adedbDcB432518AB01e4272D94). This is a BoLD rollup, so it emits-- AssertionCreated / AssertionConfirmed rather than the classic NodeCreated. The-- cadence is fixed at ~45/day (one per ~32 min) regardless of chain activity.---- LIVENESS IS ONLY DEFINED FROM 2026-07-08.-- Nitro produces a block on demand, falling back to an idle heartbeat when there is-- nothing to include. Before July the heartbeat ran at ~600s, then ~330s, then ~180s,-- so "share of seconds containing a block" measured DEMAND, not uptime -- it reported-- ~0.2% for a perfectly healthy but idle chain. From 2026-07-08 the max gap between-- consecutive blocks is 1 second, so from that date the measure is genuine uptime.WITH days AS (SELECT DISTINCT date AS dayFROM robinhood.blocksWHERE date >= DATE '2026-04-30' -- excludes the 1970-stamped genesis block),state_updates AS (SELECTblock_date AS day,count_if(topic0 = 0x901c3aee23cf4478825462caaab375c606ab83516060388344f0650340753630) AS state_updates,count_if(topic0 = 0xfc42829b29c259a7370ab56c8f69fce23b5f351a9ce151da453281993ec0090c) AS assertions_confirmedFROM ethereum.logsWHERE contract_address = 0x23a19d23e89166adedbdcb432518ab01e4272d94AND block_date >= DATE '2026-04-30'GROUP BY 1),intraday_gaps AS (SELECTdate AS day,max(date_diff('second', prev_time, time)) AS gap_sFROM (SELECT date, time,lag(time) OVER (PARTITION BY date ORDER BY number) AS prev_timeFROM robinhood.blocksWHERE date >= DATE '2026-04-30')WHERE prev_time IS NOT NULLGROUP BY 1),day_bounds AS (SELECT date AS day, min(time) AS first_t, max(time) AS last_tFROM robinhood.blocksWHERE date >= DATE '2026-04-30'GROUP BY 1),boundary_gaps AS (SELECT