Query editor
-- Full-history business-user activity. Relay and Rhinestone transactions are-- grouped under the integrator entity; solver/filler and direct transactions-- retain the transaction sender. Milestones are router-call milestones, not-- transaction milestones. The only visible control is chain because a-- timeframe bucket would change the meaning of the lifetime 2nd/50th call.WITH params AS (SELECTTIMESTAMP '2025-01-01 00:00:00' AS start_time,CAST(date_add('day', 1,CAST(at_timezone(CURRENT_TIMESTAMP, 'UTC') AS DATE)) AS TIMESTAMP) AS end_time),selected_calls AS (SELECTf.router_call_key,f.chain,f.block_time,f.block_number,f.tx_hash,f.trace_path,f.tx_sender AS transaction_sender,provenance.external_usd AS volume_usdFROM dune.propeller_heads.result_tycho_router_call_fact_v3_live fLEFT JOIN dune.propeller_heads.dataset_tycho_call_provenance provenanceON provenance.router_call_key = f.router_call_keyCROSS JOIN params pWHERE f.block_time >= p.start_timeAND f.block_time < p.end_timeAND f.economic_input_status LIKE 'verified_%'AND ('{{chain}}' = 'all' OR f.chain = '{{chain}}')),attribution_cardinality AS (SELECTc.router_call_key,COUNT(a.router_call_key) AS attribution_rowsFROM selected_calls cLEFT JOIN dune.propeller_heads.result_tycho_router_source_attribution_v3_live aON a.router_call_key = c.router_call_keyGROUP BY 1),release_gate AS (SELECT COUNT_IF(attribution_rows <> 1) AS failing_rowsFROM attribution_cardinality),classified_call_inputs AS (SELECTc.*,a.category,a.sub_categoryFROM selected_calls cINNER JOIN dune.propeller_heads.result_tycho_router_source_attribution_v3_live aON a.router_call_key = c.router_call_key