adriaparcerisasflow stargate bridges
    Updated 3 days 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: 3 days 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-14 00:00:00.000BaseUSDC1113094.7813094.7813094.7813094.78
    2
    2025-04-14 00:00:00.000ArbitrumWETH444000.8277164711000.20692911823.7559385291000.206929118
    3
    2025-04-14 00:00:00.000Other ChainsUSDC22434.4802217.2401217.2401217.2401
    4
    2025-04-14 00:00:00.000LineaWETH88263.77283470632.97160433833.58598205932.971604338
    5
    2025-04-14 00:00:00.000EthereumWETH3391.74707294130.58235764729.49013058830.582357647
    6
    2025-04-14 00:00:00.000BaseWETH4486.83205117621.70801279421.29842764721.708012794
    7
    2025-04-14 00:00:00.000OptimismWETH2244.23519588222.11759794122.11759794122.117597941
    8
    2025-04-14 00:00:00.000Other ChainsWETH111.6383405881.6383405881.6383405881.638340588
    9
    2025-04-13 00:00:00.000Other ChainsUSDC3422049.1614155512.29035375149.9100047349.720471667
    10
    2025-04-13 00:00:00.000BSCUSDC2320567.1075456855.702515424010283.5537725
    11
    2025-04-13 00:00:00.000ArbitrumUSDC1120280.37172320280.37172320280.37172320280.371723
    12
    2025-04-13 00:00:00.000EthereumUSDC117501.8432127501.8432127501.8432127501.843212
    13
    2025-04-13 00:00:00.000ArbitrumWETH443131.114445782.7786112523.3906025782.77861125
    14
    2025-04-13 00:00:00.000OptimismUSDC221500.186019750.0930095750.0930095750.0930095
    15
    2025-04-13 00:00:00.000LineaWETH88237.13231529.64153937529.0366129.641539375
    16
    2025-04-13 00:00:00.000Other ChainsWETH33184.99708174561.66569391590.98137861.665693915
    17
    2025-04-13 00:00:00.000BaseWETH66161.95975826.99329327.42346526.993293
    18
    2025-04-13 00:00:00.000AbstractWETH1182.27039582.27039582.27039582.270395
    19
    2025-04-13 00:00:00.000EthereumWETH2256.46007528.230037528.230037528.2300375
    20
    2025-04-13 00:00:00.000OptimismWETH1122.5840322.5840322.5840322.58403
    ...
    675
    61KB
    74s