permaryTotal Fantasy TOP
    Updated 1 day ago
    WITH activity_data AS (
    -- Card Mints
    SELECT
    'Card Mints' AS activity_type,
    COUNT(DISTINCT l.tx_hash) AS transaction_count
    FROM monad.testnet.fact_event_logs l
    JOIN monad.testnet.fact_transactions t
    ON l.tx_hash = t.tx_hash
    WHERE l.topic_0 IN (
    '0x7a7be958aedb09208ae6ed49fc0841ccb7f951498c9afc1c2bfa4abbd0e3ff82',
    '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'
    )
    AND l.contract_address IN (
    LOWER('0x9077D31A794D81c21b0650974d5F581F4000CD1a'),
    LOWER('0x04edB399CC24a95672BF9B880EE550dE0b2D0B1e')
    )

    UNION ALL

    -- Card Sales
    SELECT
    'Card Sales' AS activity_type,
    COUNT(DISTINCT l.tx_hash) AS transaction_count
    FROM monad.testnet.fact_event_logs l
    JOIN monad.testnet.fact_transactions t
    ON l.tx_hash = t.tx_hash
    WHERE l.topic_0 IN (
    '0x1c00f7c02cc752f52ca92cf2b6897abad5e66fa9a43920cad9e44f5ccb4a8a4e',
    '0xb197f0b7d29f585d30223a9c287a1309a7c3371a57036eb30995ae25ba906dae',
    '0xd650132a7cad9fe7456a6d9bde31152a79c0f8e136974063a84e045a2cdb7842'
    )
    AND l.contract_address = LOWER('0xfA4D5a9ceA2822BA08d0266F121011aC527ced64')
    AND l.origin_from_address != LOWER('0x366694cdef0A8c55b60e2cB28AaF6C2c1958313a')

    UNION ALL

    Last run: 1 day ago
    TOTAL_TRANSACTIONS
    1
    5175601
    1
    11B
    157s