Sbhn_NPfeather contract
    Updated 2023-01-28
    with contracts as (select
    distinct tx:body:messages[0]:contract as contracts,
    min(block_timestamp) as deploy_day
    from terra.core.fact_transactions
    where TX_SUCCEEDED=TRUE
    group by 1
    )
    SELECT
    date_trunc('day',deploy_day) as date,
    case when date >= '2023-01-14' then 'After Announcement' else 'Before Announcement' end as timeframe,
    count(distinct contracts) as new_contracts
    from contracts
    where date>= '2023-01-07' and date<= '2023-01-21'
    group by 1,2

    Run a query to Download Data