Abbas_ra21SwellChain Factory: Contracts Deploying activity
    Updated 2 days ago
    -- forked from The Law Offices of NEAR part 2 @ https://flipsidecrypto.xyz/studio/queries/49827d4c-92df-45a5-b4d8-5684a183fd40

    select
    'All time' AS Time,
    count (DISTINCT TO_ADDRESS) as Total_contracts
    from
    swell.core.fact_traces
    where
    TYPE like 'CREATE%'
    union ALL
    select
    'last 60 days' AS Time,
    count (DISTINCT TO_ADDRESS) as Total_contracts
    from
    swell.core.fact_traces
    where
    TYPE like 'CREATE%'
    and BLOCK_TIMESTAMP::date >= current_date - 60
    union ALL
    select
    'last 30 days' AS Time,
    count (DISTINCT TO_ADDRESS) as Total_contracts
    from
    swell.core.fact_traces
    where
    TYPE like 'CREATE%'
    and BLOCK_TIMESTAMP::date >= current_date - 30
    union ALL
    select
    'last 7 days' AS Time,
    count (DISTINCT TO_ADDRESS) as Total_contracts
    from
    swell.core.fact_traces
    where
    TYPE like 'CREATE%'
    and BLOCK_TIMESTAMP::date >= current_date - 7
    Last run: 2 days ago
    TIME
    TOTAL_CONTRACTS
    1
    All time8715
    2
    last 60 days3894
    3
    last 30 days3179
    4
    last 7 days389
    5
    last day137
    5
    100B
    2s