rezarwz# of Total Makers
    Updated 2024-09-07
    with all_makers as (
    SELECT
    tx_hash,
    block_timestamp,
    origin_from_address as ua,
    decoded_log:maker as maker_ad,
    decoded_log:gives as gives,
    case
    when (decoded_log:maker, block_timestamp) in (
    SELECT
    decoded_log:maker,
    min(block_timestamp)
    FROM
    blast.core.ez_decoded_event_logs
    where
    contract_address = '0xb1a49c54192ea59b233200ea38ab56650dfb448c'
    and event_name = 'OfferWrite'
    group by
    1
    ) then 'New User'
    else 'Returning User'
    end as user_type
    from
    blast.core.ez_decoded_event_logs
    where
    contract_address = '0xb1a49c54192ea59b233200ea38ab56650dfb448c'
    and event_name = 'OfferWrite'
    )
    SELECT
    date_trunc('{{Time_frame}}', block_timestamp) as date,
    count(DISTINCT maker_ad) as "# of New Makers",
    sum(count(DISTINCT maker_ad)) over (
    order by
    date_trunc('{{Time_frame}}', block_timestamp) asc
    ) as "# total of Makers"
    FROM
    Last run: 12 days ago
    DATE
    # of New Makers
    # total of Makers
    1
    2024-06-04 00:00:00.0008296
    2
    2024-03-04 00:00:00.000513
    3
    2024-07-22 00:00:00.0001311
    4
    2024-05-22 00:00:00.0001261
    5
    2024-04-19 00:00:00.0002135
    6
    2024-03-29 00:00:00.000228
    7
    2024-03-18 00:00:00.000216
    8
    2024-05-03 00:00:00.00011212
    9
    2024-07-25 00:00:00.0005316
    10
    2024-04-04 00:00:00.0001064
    11
    2024-05-06 00:00:00.0002232
    12
    2024-05-28 00:00:00.0001278
    13
    2024-08-10 00:00:00.0001325
    14
    2024-04-02 00:00:00.000249
    15
    2024-05-23 00:00:00.0002263
    16
    2024-07-02 00:00:00.0002309
    17
    2024-02-29 00:00:00.00022
    18
    2024-04-20 00:00:00.0001136
    19
    2024-05-04 00:00:00.00011223
    20
    2024-04-25 00:00:00.0001150
    83
    3KB
    1s