Afonso_DiazNew and old contracts overtime
    Updated 2025-04-16
    with

    main as (
    select
    tx_hash,
    block_timestamp,
    contract_address
    from
    sei.core_evm.fact_event_logs
    where
    tx_status = 'SUCCESS'
    and block_timestamp >= '2024-01-01'

    ),

    new_contract_addresses as (
    select
    date_trunc('{{ period }}', min_date) as date,
    count(distinct contract_address) as new_contract_address
    from (
    select
    contract_address,
    min(block_timestamp) as min_date
    from
    main
    where block_timestamp >= '2024-01-01'

    group by 1
    )
    group by 1
    ),

    overtime as (
    select
    date_trunc('{{ period }}', block_timestamp) as date,
    count(distinct contract_address) as contract_addresses,
    Last run: 26 days ago
    DATE
    CONTRACT_ADDRESSES
    CUMULATIVE_CONTRACT_ADDRESSES
    NEW_CONTRACT_ADDRESSES
    OLD_NEW_CONTRACT_ADDRESSES
    1
    2024-05-01 00:00:00.0005315315310
    2
    2024-06-01 00:00:00.000197325041790183
    3
    2024-07-01 00:00:00.000266551692329336
    4
    2024-08-01 00:00:00.000360787763115492
    5
    2024-09-01 00:00:00.00064211519752611160
    6
    2024-10-01 00:00:00.0006236577562611981167
    7
    2024-11-01 00:00:00.0001320672096291306451422
    8
    2024-12-01 00:00:00.0002446384542672429581680
    9
    2025-01-01 00:00:00.0004803799346464786361743
    10
    2025-02-01 00:00:00.00036833113029773666291702
    11
    2025-03-01 00:00:00.000246041327581228501754
    12
    2025-04-01 00:00:00.000772571404838758521405
    12
    607B
    11s