jgvf2023-06-05 05:13 PM
    Updated 2023-06-07
    with new_wallets_evmos as (SELECT
    first_use,
    COUNT(DISTINCT(tx_from)) as new_wallets_evmos
    FROM (SELECT
    tx_from,
    MIN(DATE(block_timestamp)) as first_use
    FROM evmos.core.fact_transactions
    GROUP BY 1) f
    GROUP BY 1),

    osmosis_new_wallets as (
    SELECT
    first_use,
    COUNT(DISTINCT(tx_from)) as new_wallets_osmosis
    FROM (SELECT
    tx_from,
    MIN(DATE(block_timestamp)) as first_use
    FROM osmosis.core.fact_transactions
    GROUP BY 1) f
    GROUP BY 1),


    active_osmsosis as (
    SELECT
    date_trunc('week',block_timestamp) as date_time,
    COUNT(DISTINCT(tx_from)) as active_users_osmosis
    FROM osmosis.core.fact_transactions
    GROUP BY 1
    ),

    active_evmos as (
    SELECT
    date_trunc('week',block_timestamp) as date_time,
    COUNT(DISTINCT(tx_from)) as active_users_evmos
    FROM evmos.core.fact_transactions
    GROUP BY 1