saeedmzn[Earlyfans] - posts listed on earlyfans over time
    Updated 2024-08-26
    -- 0x4b17a9318238403ddac8e3a790c3b06d18132bf4 --EARLYFANS contract
    ---0x7135b32e9903bdb4e19a8b1d22fc2038964b8451 --Thruster_LP
    -- 0x7135b32e9903bdb4e19a8b1d22fc2038964b8451 --Early token

    with txns as (
    select BLOCK_TIMESTAMP::date date ,
    ORIGIN_FROM_ADDRESS user ,
    EVENT_NAME ,
    tx_hash
    from blast.core.ez_decoded_event_logs
    where CONTRACT_ADDRESS ='0x4b17a9318238403ddac8e3a790c3b06d18132bf4'
    and EVENT_NAME ='PostListed'
    ),
    transfers as (
    select tx_hash ,
    symbol ,
    amount ,
    iff(amount_usd is not NULL,amount_usd,amount * 0.02554098355)amount_usd ,
    FROM_ADDRESS,
    TO_ADDRESS,
    ORIGIN_FROM_ADDRESS,
    ORIGIN_TO_ADDRESS
    from blast.core.ez_token_transfers join txns using(tx_hash)
    UNION
    select tx_hash ,
    'ETH' symbol ,
    amount ,
    amount_usd,
    FROM_ADDRESS,
    TO_ADDRESS,
    ORIGIN_FROM_ADDRESS,
    ORIGIN_TO_ADDRESS
    from blast.core.ez_native_transfers join txns using(tx_hash)
    )
    select date ,
    count (DISTINCT user) num_users ,
    QueryRunArchived: QueryRun has been archived