SniperDaily New Contracts
    Updated 2025-04-16
    with main as ( select min(block_timestamp) as time,
    contract_address
    from ink.core.fact_event_logs
    where TX_SUCCEEDED = 'TRUE'
    group by 2)
    -- ,
    -- final as (
    select
    trunc(time,'day') as Daily,
    count(DISTINCT contract_address) as "New Contracts",
    sum("New Contracts") over (order by Daily asc) as "Cumulative New Contracts"
    from main
    -- where daily >= '2025-01-01'
    group by 1
    --)

    -- select sum("New Contracts") as "Total New Contracts",
    -- avg("New Contracts") as "Avg Daily New Contracts"
    -- from final


    -- select trunc(a.block_timestamp,'day') as daily,
    -- count(DISTINCT from_address) as users,
    -- count(DISTINCT b.contract_address) as "Active Contracts",
    -- users/"Active Contracts" as "Avg User Per Contract"
    -- from ink.core.fact_transactions a left outer join ink.core.fact_event_logs b on a.tx_hash = b.tx_hash
    -- where a.TX_SUCCEEDED = 'TRUE'
    -- -- and daily >= '2025-01-01'
    -- -- and b.block_timestamp::date >= '2025-01-01'
    -- group by 1


    Last run: about 2 months ago
    DAILY
    New Contracts
    Cumulative New Contracts
    1
    2025-03-14 00:00:00.00034181067
    2
    2025-01-19 00:00:00.00029812953
    3
    2025-03-19 00:00:00.000157686482
    4
    2025-03-15 00:00:00.00050781574
    5
    2025-02-15 00:00:00.000210740643
    6
    2025-02-13 00:00:00.000124337334
    7
    2025-02-17 00:00:00.000185945317
    8
    2025-03-31 00:00:00.000204194447
    9
    2024-12-20 00:00:00.0002921717
    10
    2025-02-04 00:00:00.00047728136
    11
    2025-04-12 00:00:00.000546117520
    12
    2025-04-16 00:00:00.000105119072
    13
    2025-02-16 00:00:00.000281543458
    14
    2025-03-02 00:00:00.000105667889
    15
    2025-03-22 00:00:00.00081688986
    16
    2025-01-10 00:00:00.00032510644
    17
    2025-03-01 00:00:00.00098566833
    18
    2025-03-20 00:00:00.000141187893
    19
    2025-02-12 00:00:00.000150536091
    20
    2025-02-08 00:00:00.00055030486
    ...
    129
    5KB
    6s