Query editor
-- ══════════════════════════════════════════════-- GEOD CROSS-CHAIN UNLOCK TRACKER (MONTHLY)-- Polygon (ERC-20) + Solana (SPL) | GridEcon-- ══════════════════════════════════════════════WITH polygon_unlocks AS (SELECTDATE_TRUNC('month', evt_block_time) AS month,'Polygon' AS chain,CASEWHEN "from" = 0xfa5fed5cc2b6dd8f370651d17242c52ed711b14f THEN 'Mining'WHEN "from" = 0x8fb9dd00b9a3d893da96d444817d0b77330d5478 THEN 'Mining Distribution'WHEN "from" = 0x3a6906e4239f9860c81035c54198df58d892653b THEN 'Ecosystem'ELSE 'Other'END AS category,CASEWHEN "to" IN (0x2006b44684b2a579466fc04fabc5a535946bc7ab,0x6762157b73941e36ced0aef54614dde545d0f990) THEN 'Bridge to Solana'ELSE 'Direct Market Unlock'END AS flow_type,SUM(value / 1e18) AS geod_amount,NULL AS geod_usd_volumeFROM erc20_polygon.evt_TransferWHERE contract_address = 0xac0f66379a6d7801d7726d5a943356a172549adbAND "from" IN (0xfa5fed5cc2b6dd8f370651d17242c52ed711b14f,0x8fb9dd00b9a3d893da96d444817d0b77330d5478,0x3a6906e4239f9860c81035c54198df58d892653b)GROUP BY 1, 2, 3, 4),solana_flows AS (SELECTDATE_TRUNC('month', block_time) AS month,'Solana' AS chain,'SPL Activity' AS category,'Solana Transfer' AS flow_type,SUM(amount / 1e6) AS geod_amount,SUM(amount_usd) AS geod_usd_volumeFROM tokens_solana.transfersWHERE token_mint_address = '7JA5eZdCzztSfQbJvS8aVVxMFfd81Rs9VvwnocV1mKHu'GROUP BY 1, 2, 3, 4)SELECTmonth,chain,category,flow_type,geod_amount,geod_usd_volume,SUM(geod_amount) OVER (PARTITION BY chainORDER BY monthROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS cumulative_by_chain,SUM(geod_amount) OVER (