Afonso_DiazOvertime
    Updated 2025-04-22
    with

    main as (
    select
    tx_hash,
    block_timestamp,
    origin_to_address as contract_address,
    origin_from_address as user
    from
    swell.core.fact_event_logs
    where
    tx_succeeded
    ),

    overtime as (
    select
    date_trunc('{{ period }}', block_timestamp) as date,
    count(distinct tx_hash) as transactions,
    count(distinct contract_address) as active_contracts
    from
    main
    group by 1
    ),

    new_contracts as (
    select
    date_trunc('{{ period }}', min_date) as date,
    count(distinct contract_address) as new_contract
    from (
    select
    contract_address,
    min(block_timestamp)::date as min_date
    from main
    group by 1
    )
    group by 1
    Last run: about 2 months ago
    DATE
    TRANSACTIONS
    ACTIVE_CONTRACTS
    NEW_CONTRACTS
    OLD_CONTRACTS
    CUMULATIVE_TRANSACTIONS
    1
    2024-11-28 00:00:00.0002499024
    2
    2024-11-29 00:00:00.000430328
    3
    2024-12-02 00:00:00.000721385100
    4
    2024-12-03 00:00:00.0001349302641449
    5
    2024-12-04 00:00:00.0002472614121696
    6
    2024-12-05 00:00:00.000333175122029
    7
    2024-12-06 00:00:00.00076312382105
    8
    2024-12-07 00:00:00.000126152117
    9
    2024-12-08 00:00:00.0003913582156
    10
    2024-12-09 00:00:00.0002365637192392
    11
    2024-12-10 00:00:00.0002544726212646
    12
    2024-12-11 00:00:00.0001945025252840
    13
    2024-12-12 00:00:00.000182326263022
    14
    2024-12-13 00:00:00.000140296233162
    15
    2024-12-14 00:00:00.000676063229
    16
    2024-12-15 00:00:00.00063100103292
    17
    2024-12-16 00:00:00.000262344303554
    18
    2024-12-17 00:00:00.0002947143283848
    19
    2024-12-18 00:00:00.000418548464266
    20
    2024-12-19 00:00:00.00023735116356639
    ...
    144
    7KB
    5s