CryptoIcicleOptimism-9.Optimistic Bears - TPS
    Updated 2022-08-09
    -- Payout 150 USDC
    -- Grand Prize 450 USDC
    -- Level Advanced

    -- What's going on with Optimism?
    -- This is an open-ended bounty, what we call a Free Square, and it’s an opportunity for you to show us what you’ve got.
    -- Any topic is fair game; The goal here is to explore the data in creative ways and show off your explorations with visualizations (or even a tool/frontend if you’ve got eyes on the grand prize).

    with tps as (
    select
    block_timestamp::date as date,
    sum(n_txns_secs) as sum_tps,
    avg(n_txns_secs) as avg_tps,
    max(n_txns_secs) as max_tps,
    sum(sum_tps) over (order by date asc rows between unbounded preceding and current row) as cumulative_sum_tps,
    avg(avg_tps) over (order by date asc rows between unbounded preceding and current row) as overall_avg_tps,
    max(max_tps) over (order by date asc rows between unbounded preceding and current row) as overall_max_tps
    from(
    select
    block_timestamp,
    count(distinct tx_hash) as n_txns_secs
    from optimism.core.fact_transactions
    where block_timestamp between '2022-07-01' and '2022-07-31'
    group by block_timestamp
    ) group by date
    )

    select * from tps
    order by date desc
    Run a query to Download Data