adriaparcerisasflow stargate bridges
    Updated 1 day ago
    WITH token_info AS (
    SELECT
    '0xf1815bd50389c46847f0bda824ec8da914045d14' as token_address, 'USDC' as token_name, 6 as decimals
    UNION ALL
    SELECT '0x2f6f07cdcf3588944bf4c42ac74ff24bf56e7590', 'WETH', 18
    UNION ALL
    SELECT '0x2aabea2058b5ac2d339b163c6ab6f2b6d53aabed', 'USDF', 6
    UNION ALL
    SELECT '0x674843c06ff83502ddb4d37c2e09c01cda38cbc8', 'USDT', 6
    UNION ALL
    SELECT '0xfa0e06b54986ad96de87a8c56fea76fbd8d493f8', 'USDF', 6
    UNION ALL
    SELECT '0xea3910f1c6e687b59835885904a2fd1944b51ec6', 'TRUMP', 18
    ),

    bridge_transfers AS (
    SELECT
    block_timestamp::Date as date,
    tx_hash,
    contract_address as token_address,
    '0x' || substr(TOPIC_1,27) as from_address,
    '0x' || substr(TOPIC_2,27) as user_address,
    TRY_TO_NUMBER(livequery.utils.udf_hex_to_int(DATA)) as amount_raw,
    t.token_name,
    t.decimals,
    CASE
    WHEN amount_raw IS NOT NULL THEN amount_raw/pow(10,decimals)
    ELSE TRY_TO_NUMBER(data, 16)/pow(10,decimals)
    END as amount
    FROM flow.core_evm.fact_event_logs e
    JOIN token_info t ON e.contract_address = t.token_address
    WHERE origin_to_address = '0xa20db4ffe74a31d17fc24bd32a7dd7555441058e'
    AND topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'
    AND tx_succeeded = 'TRUE'
    AND '0x' || substr(TOPIC_1,27) = '0x0000000000000000000000000000000000000000'
    ),
    Last run: 1 day ago
    DATE
    SOURCE_CHAIN
    TOKEN_NAME
    UNIQUE_USERS
    TX_COUNT
    VOLUME_USD
    AVG_TRANSFER_USD
    MEDIAN_TRANSFER_USD
    AVG_VOLUME_PER_USER
    1
    2025-04-07 00:00:00.000BaseUSDC1893297.2411662.15511607.2893297.24
    2
    2025-04-07 00:00:00.000SolanaUSDF1149981.71602849981.71602849981.71602849981.716028
    3
    2025-04-07 00:00:00.000BaseWETH2310936.3403065593645.4467688533058.1858823535468.170153279
    4
    2025-04-07 00:00:00.000EthereumUSDF114997.94997.94997.94997.9
    5
    2025-04-07 00:00:00.000Other ChainsUSDC111111
    6
    2025-04-06 00:00:00.000OptimismUSDT1117019.93170217019.93170217019.93170217019.931702
    7
    2025-04-06 00:00:00.000BaseWETH3415374.4102253163843.6025563294534.8189939835124.803408439
    8
    2025-04-06 00:00:00.000BaseUSDC1112757.7812757.7812757.7812757.78
    9
    2025-04-06 00:00:00.000ArbitrumWETH1310523.9153507.9716666673507.97166666710523.915
    10
    2025-04-06 00:00:00.000Other ChainsUSDC11359.76517359.76517359.76517359.76517
    11
    2025-04-06 00:00:00.000ApeUSDT1130.33378830.33378830.33378830.333788
    12
    2025-04-06 00:00:00.000Other ChainsUSDT118.9767188.9767188.9767188.976718
    13
    2025-04-06 00:00:00.000AvalancheUSDC110.110.110.110.11
    14
    2025-04-05 00:00:00.000BaseUSDC1227099.5613549.7813549.7827099.56
    15
    2025-04-05 00:00:00.000EthereumUSDF1111069.74872111069.74872111069.74872111069.748721
    16
    2025-04-05 00:00:00.000Other ChainsUSDC11354.459216354.459216354.459216354.459216
    17
    2025-04-05 00:00:00.000ApeUSDT11100.828466100.828466100.828466100.828466
    18
    2025-04-05 00:00:00.000ArbitrumWETH2333.5400857511.18002858312.62261291716.770042875
    19
    2025-04-05 00:00:00.000ArbitrumUSDC111111
    20
    2025-04-05 00:00:00.000HemiWETH110.45080760420.45080760420.45080760420.4508076042
    ...
    579
    52KB
    20s