yolo_gamesYOLOGames Daily ETH Volume
    Updated 2024-06-20
    -- forked from ETH Volume per Day @ https://flipsidecrypto.xyz/edit/queries/dfb518f8-5ada-4ec9-92c4-27df581eff95

    SELECT day, sum(Value) as "ETH Volume" FROM (
    SELECT date_trunc('day', a.block_timestamp) as day, b.Value as Value FROM blast.core.fact_event_logs a
    INNER JOIN blast.core.fact_transactions b ON a.TX_HASH = b.TX_HASH
    WHERE a.contract_address = LOWER('0x0000000000E14E87e5c80A8A90817308fFF715d3')
    AND a.tx_status = 'SUCCESS'
    AND a.topics[0] = '0x73a19dd210f1a7f902193214c0ee91dd35ee5b4d920cba8d519eca65a7b488ca' -- yolo deposited
    UNION ALL
    SELECT date_trunc('day', a.block_timestamp) as day, b.Value as Value FROM blast.core.fact_event_logs a
    INNER JOIN blast.core.fact_transactions b ON a.TX_HASH = b.TX_HASH
    WHERE contract_address = LOWER('0x0000000000E14E87e5c80A8A90817308fFF715d3')
    AND tx_status = 'SUCCESS'
    AND topics[0] = '0xa315167fc4200676e8597c5df065fafa8cecfeac15a8e2aded299a649e4a5175' -- yolo multientry
    UNION ALL
    SELECT date_trunc('day', a.block_timestamp) as day, b.Value as Value FROM blast.core.fact_event_logs a
    INNER JOIN blast.core.fact_transactions b ON a.TX_HASH = b.TX_HASH
    WHERE contract_address = LOWER('0xA56A95F41e64Bc76CDE7423aB2A2ee1763bD8Bcc')
    AND tx_status = 'SUCCESS'
    AND topics[0] = '0xe0498ef6c8973f40195b2ced16991e2e7cba0d33e6a5e42a2e7797d156c874a3' -- btc moon
    UNION ALL
    SELECT date_trunc('day', a.block_timestamp) as day, b.Value as Value FROM blast.core.fact_event_logs a
    INNER JOIN blast.core.fact_transactions b ON a.TX_HASH = b.TX_HASH
    WHERE contract_address = LOWER('0x693B37a9859Ce9465Fb2aAdeB03811a26A0c37C0')
    AND tx_status = 'SUCCESS'
    AND topics[0] = '0xe0498ef6c8973f40195b2ced16991e2e7cba0d33e6a5e42a2e7797d156c874a3' -- eth moon
    UNION ALL
    SELECT date_trunc('day', a.block_timestamp) as day, b.Value as Value FROM blast.core.fact_event_logs a
    INNER JOIN blast.core.fact_transactions b ON a.TX_HASH = b.TX_HASH
    WHERE contract_address = LOWER('0xA56A95F41e64Bc76CDE7423aB2A2ee1763bD8Bcc')
    AND tx_status = 'SUCCESS'
    AND topics[0] = '0xd63b8da4d354e3b7b933761d564d3f17070134d43c981eb109c7c35f87932d29' -- btc doom
    UNION ALL
    SELECT date_trunc('day', a.block_timestamp) as day, b.Value as Value FROM blast.core.fact_event_logs a
    INNER JOIN blast.core.fact_transactions b ON a.TX_HASH = b.TX_HASH
    WHERE contract_address = LOWER('0x693B37a9859Ce9465Fb2aAdeB03811a26A0c37C0')
    QueryRunArchived: QueryRun has been archived