Query editor
-- Admin checks for the onchain-only dashboard model.-- These checks validate data completeness and labels; they do not compare-- dashboard values with third-party inferred totals.WITHwallet_state AS (SELECT *FROM dune.asdfw123453216.result_hype_team_wallet_state),event_duplicates AS (SELECT COUNT(*) AS duplicate_groupsFROM (SELECT event_id, wallet, categoryFROM dune.asdfw123453216.result_hype_team_activity_eventsGROUP BY event_id, wallet, categoryHAVING COUNT(*) > 1) x),missing_snapshots AS (SELECT COUNT(*) AS walletsFROM wallet_stateWHERE snapshot_time IS NULL),stale_snapshots AS (SELECT COUNT(*) AS walletsFROM wallet_stateWHERE snapshot_time IS NULLOR snapshot_age_hours > 24),large_gaps AS (SELECT COUNT(*) AS walletsFROM wallet_stateWHERE ABS(reconciliation_gap) > GREATEST(1.0, total_received * 0.005)),contributors_without_observed_distribution AS (SELECT COUNT(*) AS walletsFROM wallet_stateWHERE total_received <= 0),label_rows AS (SELECT LOWER(CONCAT('0x', TO_HEX(wallet))) AS address, 'contributor' AS address_typeFROM dune.asdfw123453216.dataset_hype_contributor_walletsWHERE COALESCE(include_flag, TRUE) = TRUEUNION ALLSELECT LOWER(CONCAT('0x', TO_HEX(wallet))), 'treasury'FROM dune.asdfw123453216.dataset_hype_treasury_walletsUNION ALLSELECT LOWER(CONCAT('0x', TO_HEX(address))), 'exchange'FROM dune.asdfw123453216.dataset_hype_exchange_addressesWHERE address <> 0x0000000000000000000000000000000000000000UNION ALL