StangFAST01 - overview - base
    Updated 2023-08-25
    --- 0xd1fb076dc61f9c4a35e01ab82a409b68cd13cdd9 PVP Flip
    --- 0xebd60cac48032113a963454a59b1021e5754d7d1 Limbo
    --- 0x4d881806ce221541690f8eeac116b22198f551d5 Dice
    --- 0x989923d33be0612680064dc7223a9f292c89a538 Keno
    --- 0xd7e967bd52ce315610cad6283e8ebeafd913aa7d Coin Flip
    --- 0xa50ff6ad20adc10998e33f52b63d71f26c34874a Range
    --- 0xe4144cc3bc017a32754759420ab9ae5116450845 RPS
    --- 0x978a2143edf8f384a3b02f123d5fb33ad157d7bb Plinko

    with

    eth_price AS
    (
    SELECT
    date_trunc( 'day' , a.hour ) AS day
    , avg( a.price ) AS price
    FROM
    ethereum.core.fact_hourly_token_prices a
    WHERE
    a.symbol = 'WETH'
    GROUP BY 1
    ORDER BY 1 DESC
    )


    SELECT
    date_trunc( 'day' , a.block_timestamp ) AS "date"

    , count( DISTINCT a.from_address ) AS "players"
    , count( DISTINCT a.tx_hash ) AS "play count"
    , sum( a.eth_value * b.price ) AS "wagered"

    , sum( "players" ) over ( ORDER BY "date" ASC ) AS "total players"
    , sum( "play count" ) over ( ORDER BY "date" ASC ) AS "total play count"
    , sum( "wagered" ) over ( ORDER BY "date" ASC ) AS "total wagered"

    Run a query to Download Data