permaryActivity breakdown
    Updated 2025-04-05
    WITH activity_data AS (
    -- Minting Transactions
    SELECT
    'Card Mints' AS activity_type,
    COUNT(distinct tx_hash) AS transaction_count
    FROM monad.testnet.fact_event_logs
    WHERE topic_0 IN (
    '0x7a7be958aedb09208ae6ed49fc0841ccb7f951498c9afc1c2bfa4abbd0e3ff82',
    '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'
    )
    AND contract_address IN (
    LOWER('0x9077D31A794D81c21b0650974d5F581F4000CD1a'),
    LOWER('0x04edB399CC24a95672BF9B880EE550dE0b2D0B1e')
    )

    UNION ALL

    -- Sales Transactions (excluding special burns)
    SELECT
    'Card Sales' AS activity_type,
    COUNT(distinct tx_hash) AS transaction_count
    FROM monad.testnet.fact_event_logs
    WHERE topic_0 IN (
    '0x1c00f7c02cc752f52ca92cf2b6897abad5e66fa9a43920cad9e44f5ccb4a8a4e',
    '0xb197f0b7d29f585d30223a9c287a1309a7c3371a57036eb30995ae25ba906dae',
    '0xd650132a7cad9fe7456a6d9bde31152a79c0f8e136974063a84e045a2cdb7842'
    )
    AND contract_address IN (LOWER('0xfA4D5a9ceA2822BA08d0266F121011aC527ced64'))
    -- Exclude transactions from the special burn address
    AND origin_from_address != LOWER('0x366694cdef0A8c55b60e2cB28AaF6C2c1958313a')

    UNION ALL

    -- Listings Transactions
    SELECT
    'Card Listings' AS activity_type,
    Last run: 20 days ago
    ACTIVITY_TYPE
    TRANSACTION_COUNT
    1
    Card Mints2622027
    2
    Card Listings807047
    3
    Card Sales626422
    4
    Card Bid Cancelled449001
    5
    Card Burn202819
    6
    Owner Interaction163618
    7
    Accepted Card Bids155726
    8
    Special Card Burn94186
    9
    Card Upgrades54838
    10
    Other15
    10
    246B
    91s