Query editor
-- Layout per LayerZero OFTCore v2:-- topic0 = event sig-- topic1 = guid-- topic2 = indexed address (fromAddress on Sent, toAddress on Received)-- data:-- OFTSent -> [dstEid (uint32, 32B), amountSentLD (32B), amountReceivedLD (32B)]-- OFTReceived -> [srcEid (uint32, 32B), amountReceivedLD (32B)]-- `eid` semantically = counterparty chain (dst on send, src on receive)-- amount = amountSentLD on send (data word 2), amountReceivedLD on receive (data word 2)SELECTblock_time,tx_hash,chain,direction,topic1 AS guid,bytearray_substring(topic2, 13, 20) AS counterparty,CAST(bytearray_to_uint256(bytearray_substring(data, 1, 32)) AS BIGINT) AS eid,bytearray_to_uint256(bytearray_substring(data, 33, 32)) / 1e6 AS amountFROM (SELECT block_time, tx_hash, topic1, topic2, data, 'Ethereum' AS chain, 'sent' AS directionFROM ethereum.logsWHERE topic0 = 0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59aAND contract_address = 0xf43a70B250a86003a952af7A7986CcC243B89D81UNION ALLSELECT block_time, tx_hash, topic1, topic2, data, 'Base', 'sent'FROM base.logsWHERE topic0 = 0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59aAND contract_address = 0x82675d0553D802039e6776C006BEb1b820a69d55UNION ALLSELECT block_time, tx_hash, topic1, topic2, data, 'Arbitrum', 'sent'FROM arbitrum.logsWHERE topic0 = 0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59aAND contract_address = 0x82675d0553D802039e6776C006BEb1b820a69d55UNION ALLSELECT block_time, tx_hash, topic1, topic2, data, 'Rise', 'sent'FROM rise.logsWHERE topic0 = 0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59aAND contract_address = 0xA6FfE66379C34B85cd2Ff4B3c8A73D3dE7ABA043UNION ALLSELECT block_time, tx_hash, topic1, topic2, data, 'Ethereum', 'received'FROM ethereum.logsWHERE topic0 = 0xefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9cAND contract_address = 0xf43a70B250a86003a952af7A7986CcC243B89D81UNION ALLSELECT block_time, tx_hash, topic1, topic2, data, 'Base', 'received'FROM base.logsWHERE topic0 = 0xefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9cAND contract_address = 0x82675d0553D802039e6776C006BEb1b820a69d55UNION ALLSELECT block_time, tx_hash, topic1, topic2, data, 'Arbitrum', 'received'FROM arbitrum.logsWHERE topic0 = 0xefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9cAND contract_address = 0x82675d0553D802039e6776C006BEb1b820a69d55UNION ALLSELECT block_time, tx_hash, topic1, topic2, data, 'Rise', 'received'FROM rise.logsWHERE topic0 = 0xefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9cAND contract_address = 0xA6FfE66379C34B85cd2Ff4B3c8A73D3dE7ABA043) mORDER BY block_time DESC