Updated 2025-01-07
    /*
    SELECT
    -- Extract the first part of the payload (event_address)
    SPLIT_PART(payload_function, '::', 1) AS event_address,

    -- Extract the second part of the payload (event_module)
    SPLIT_PART(payload_function, '::', 2) AS event_module,

    -- Extract the third part of the payload (event_resource)
    SPLIT_PART(payload_function, '::', 3) AS event_resource

    FROM aptos.core.fact_events
    LIMIT 200;
    */
    /*
    WITH cex_wallets AS (
    SELECT
    DISTINCT ADDRESS
    FROM
    aptos.core.dim_labels
    WHERE
    LABEL_TYPE = 'cex'
    ),
    user_transactions AS (
    SELECT
    DISTINCT TO_ADDRESS AS wallet_address
    FROM
    aptos.core.ez_native_transfers
    WHERE
    SUCCESS = 'TRUE'
    AND FROM_ADDRESS IN (
    SELECT
    ADDRESS
    FROM
    cex_wallets
    )
    QueryRunArchived: QueryRun has been archived