Aleo Network FoundationDaily New Programs
    Updated 3 days ago
    WITH program_stats AS (
    SELECT
    program_id,
    DATE(MIN(block_timestamp)) as deployment_date,
    DATE(MAX(block_timestamp)) as last_active_date,
    COUNT(*) as total_transactions,
    COUNT(DISTINCT DATE(block_timestamp)) as active_days,
    COUNT(DISTINCT function) as unique_functions
    FROM aleo.core.fact_transitions
    GROUP BY 1
    ),
    daily_deployments AS (
    SELECT
    deployment_date as date,
    COUNT(*) as new_programs,
    SUM(new_programs) OVER (ORDER BY deployment_date) as total_programs,
    SUM(CASE WHEN total_transactions > 100 THEN 1 ELSE 0 END) as programs_over_100_tx,
    SUM(CASE WHEN total_transactions > 1000 THEN 1 ELSE 0 END) as programs_over_1000_tx,
    AVG(total_transactions) as avg_tx_per_program,
    AVG(active_days) as avg_active_days,
    AVG(unique_functions) as avg_functions_per_program,
    -- Programs still active in last 7 days
    SUM(CASE
    WHEN last_active_date >= CURRENT_DATE - 7
    THEN 1 ELSE 0
    END) as recently_active_programs
    FROM program_stats
    GROUP BY 1
    )
    SELECT
    date,
    new_programs as "New Deployments",
    total_programs as "Cumulative Deployments",
    programs_over_100_tx as "Programs >100 Tx",
    programs_over_1000_tx as "Programs >1000 Tx",
    ROUND(avg_tx_per_program, 2) as "Avg Tx per Program",
    Last run: 3 days ago
    DATE
    New Deployments
    Cumulative Deployments
    Programs >100 Tx
    Programs >1000 Tx
    Avg Tx per Program
    Avg Active Days
    Avg Functions per Program
    Active Last 7 Days
    Weekly Growth Rate %
    % Programs >100 Tx
    % Recently Active
    1
    2025-04-09 00:00:00.00012281113518611100.440.44
    2
    2025-04-02 00:00:00.00012271119517813100.440.44
    3
    2025-03-31 00:00:00.0001226004210-5000
    4
    2025-03-26 00:00:00.0002225119534.5681-500.440.44
    5
    2025-03-19 00:00:00.000122311226968130-500.450
    6
    2025-03-17 00:00:00.0002222001110-6000
    7
    2025-03-13 00:00:00.00052200014.85.24.6040000
    8
    2025-03-12 00:00:00.000121511206948130-500.470
    9
    2025-03-06 00:00:00.00012141120511713000.470
    10
    2025-03-05 00:00:00.00022131052.517.511-33.330.470.47
    11
    2025-03-03 00:00:00.00042110015.52.255.25030000
    12
    2025-03-01 00:00:00.0002207001.511010000
    13
    2025-02-28 00:00:00.0005205437335.227.8731501.951.46
    14
    2025-02-26 00:00:00.0001200116864413000.50
    15
    2025-02-21 00:00:00.000219900411.5010000
    16
    2025-02-19 00:00:00.0001197116870813000.510
    17
    2025-02-15 00:00:00.00031960021.3310.673.67120000.51
    18
    2025-02-12 00:00:00.0001193115880813000.520
    19
    2025-02-10 00:00:00.0001192009240-66.6700
    20
    2025-02-07 00:00:00.0002191111451570-500.520
    88
    5KB
    3s