Query editor
-- https://dune.com/queries/6368337 adapted for Tempo-- Extract LayerZero OFT Transfer events for Tempo USDT0SELECT block_time,block_date,varbinary_to_uint256(varbinary_substring(data, 1, 32)) AS endpoint_id,'inflow' AS direction,VARBINARY_LTRIM(topic1) AS guid,VARBINARY_LTRIM(topic2) AS user,varbinary_to_uint256(varbinary_substring(data, 33, 32)) / 1e6 AS amount,tx_hashFROM tempo.logsWHERE contract_address = 0xaf37E8B6C9ED7f6318979f56Fc287d76c30847ffAND topic0 = 0xefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9cAND block_date >= DATE '2026-03-19'UNION ALLSELECT block_time,block_date,varbinary_to_uint256(varbinary_substring(data, 1, 32)) AS endpoint_id,'outflow' AS direction,VARBINARY_LTRIM(topic1) AS guid,tx_from AS user,varbinary_to_uint256(varbinary_substring(data, 33, 32)) / 1e6 AS amount,tx_hashFROM tempo.logsWHERE contract_address = 0xaf37E8B6C9ED7f6318979f56Fc287d76c30847ffAND topic0 = 0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59aAND block_date >= DATE '2026-03-19'ORDER BY block_time DESC