permaryfun-moccasin
    Updated 2025-03-08
    WITH activity_data AS (
    -- Minting Transactions
    SELECT
    'Card Mints' AS activity_type,
    DATE_TRUNC('week', block_timestamp) AS activity_week,
    COUNT(*) AS transaction_count
    FROM monad.testnet.fact_event_logs
    WHERE topic_0 IN (
    '0x7a7be958aedb09208ae6ed49fc0841ccb7f951498c9afc1c2bfa4abbd0e3ff82',
    '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'
    )
    AND contract_address IN (
    LOWER('0x9077D31A794D81c21b0650974d5F581F4000CD1a'),
    LOWER('0x04edB399CC24a95672BF9B880EE550dE0b2D0B1e')
    )
    GROUP BY DATE_TRUNC('week', block_timestamp)

    UNION ALL

    -- Sales Transactions (excluding special burns)
    SELECT
    'Card Sales' AS activity_type,
    DATE_TRUNC('week', block_timestamp) AS activity_week,
    COUNT(*) 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')
    GROUP BY DATE_TRUNC('week', block_timestamp)

    UNION ALL
    Last run: about 2 months ago
    ACTIVITY_WEEK
    ACTIVITY_TYPE
    TRANSACTION_COUNT
    WEEKLY_TOTAL
    PERCENTAGE_OF_WEEKLY
    1
    2025-03-03 00:00:00.000Card Mints2620534341619076.71
    2
    2025-03-03 00:00:00.000Card Sales32146634161909.41
    3
    2025-03-03 00:00:00.000Card Listings19577734161905.73
    4
    2025-03-03 00:00:00.000Card Burns16304134161904.77
    5
    2025-03-03 00:00:00.000Card Bid Cancelled5718134161901.67
    6
    2025-03-03 00:00:00.000Owner Interaction1942234161900.57
    7
    2025-03-03 00:00:00.000Special Card Burn1380534161900.4
    8
    2025-03-03 00:00:00.000Accepted Card Bids1380334161900.4
    9
    2025-03-03 00:00:00.000Card Upgrades1115834161900.33
    10
    2025-03-03 00:00:00.000Other334161900
    11
    2025-02-24 00:00:00.000Card Mints5879372688144985.44
    12
    2025-02-24 00:00:00.000Card Burns31094468814494.52
    13
    2025-02-24 00:00:00.000Card Sales31009268814494.51
    14
    2025-02-24 00:00:00.000Card Listings25767568814493.74
    15
    2025-02-24 00:00:00.000Card Bid Cancelled7881668814491.15
    16
    2025-02-24 00:00:00.000Owner Interaction2279468814490.33
    17
    2025-02-24 00:00:00.000Accepted Card Bids1492468814490.22
    18
    2025-02-24 00:00:00.000Card Upgrades682568814490.1
    19
    2025-02-24 00:00:00.000Other768814490
    20
    2025-02-17 00:00:00.000Card Mints3040793343041488.64
    39
    2KB
    24s