10Blockchainliberal-azure
    Updated 2025-02-27
    WITH address_categories AS (
    /* Exemples de classification :
    - Mantle Treasury
    - Core Contributor
    - Community
    - etc.
    */
    SELECT LOWER('0x00354d59E829fB79e2Ff7D8a022553728520cB6A') AS addr, 'Mantle Treasury' AS category
    UNION ALL
    SELECT LOWER('0x18d336d33a5be54cC62C9034e3a66e3220AA268a'), 'Mantle Treasury'
    UNION ALL
    SELECT LOWER('0xfB7e8892fBDa0205f6BbdbCd90dD9b0bDD321D16'), 'Mantle Treasury'
    /* ... plus d'adresses ici si besoin */
    UNION ALL
    SELECT LOWER('0xabc...'), 'Core Contributor'
    /* etc. */
    ),

    /* 1) L1 excluding adapter */
    l1_excluding_adapter AS (
    SELECT
    f.user_address,
    f.balance,
    ROW_NUMBER() OVER(
    PARTITION BY f.user_address
    ORDER BY f.block_timestamp DESC
    ) AS rn
    FROM ethereum.core.fact_token_balances f
    WHERE f.contract_address = LOWER('0x9F0C013016E8656bC256f948CD4B79ab25c7b94D')
    AND LOWER(f.user_address) <> LOWER('0xC14459931cF666DCcAd582D63288AefB9f0bDca9')
    ),

    /* 2) Snapshot final L1 */
    l1_snapshot_final AS (
    SELECT
    LOWER(l.user_address) AS addr,
    Last run: about 1 month ago
    INFO
    CATEGORY
    TOTAL_L1
    TOTAL_L2
    TOTAL_L1_L2
    1
    Overall Supply991958987.0614374008041010.938574999999998.00001
    2
    Distribution by CategoryUNCLASSIFIED86222039.0614374008041010.938574094263050
    3
    Distribution by CategoryMantle Treasury9057369480905736948
    3
    231B
    9s