ArioGameID
    Updated 2025-04-09
    with game_id as (
    select
    DECODED_INSTRUCTION:args:gameId::string as Game_id,
    min(block_timestamp) as first_date
    from solana.core.ez_events_decoded
    where program_id = 'FitAFk15vtx2PBjfr7QTnefaHRx6HwajRiZMt1DdSSKU'
    and event_type in ('deposit', 'depositSol')
    group by 1
    ),
    main as (
    select
    date_trunc(day, first_date) as date,
    count(DISTINCT Game_id) as "# Challenges",
    sum("# Challenges") over(order by date) as "Cum. # Challenges"
    from game_id
    group by 1
    order by date desc
    )
    select
    *,
    avg("# Challenges") over(order by date rows between 6 preceding and current row) as "7D MA"
    from main
    where date >= current_date - {{Past_Days}}
    order by date desc
    Last run: 13 days ago
    DATE
    # Challenges
    Cum. # Challenges
    7D MA
    1
    2025-04-09 00:00:00.00016538225.142
    2
    2025-04-08 00:00:00.00030536631.857
    3
    2025-04-07 00:00:00.00027533632.714
    4
    2025-04-06 00:00:00.00027530932.285
    5
    2025-04-05 00:00:00.00015528232.142
    6
    2025-04-04 00:00:00.00028526733.428
    7
    2025-04-03 00:00:00.00033523935.857
    8
    2025-04-02 00:00:00.00063520635.142
    9
    2025-04-01 00:00:00.00036514329.857
    10
    2025-03-31 00:00:00.00024510730.285
    11
    2025-03-30 00:00:00.00026508332.142
    12
    2025-03-29 00:00:00.00024505732.142
    13
    2025-03-28 00:00:00.00045503333.285
    14
    2025-03-27 00:00:00.00028498832.142
    15
    2025-03-26 00:00:00.00026496035.285
    16
    2025-03-25 00:00:00.00039493439.428
    17
    2025-03-24 00:00:00.00037489538.285
    18
    2025-03-23 00:00:00.00026485838
    19
    2025-03-22 00:00:00.00032483238
    20
    2025-03-21 00:00:00.00037480038.142
    91
    4KB
    2s