Query editor
WITH stargate_sent AS (SELECT'ethereum' AS source_chain,CAST(guid AS VARCHAR) AS correlation_id,fromAddress AS user_address,evt_tx_hash AS deposit_tx_hash,evt_block_time AS deposit_timestamp,amountSentLD AS amount_sent_raw,dstEid AS destination_eidFROM stargate_v2_ethereum.stargatepool_evt_oftsentUNION ALLSELECT'berachain' AS source_chain,CAST(guid AS VARCHAR) AS correlation_id,fromAddress AS user_address,evt_tx_hash AS deposit_tx_hash,evt_block_time AS deposit_timestamp,amountSentLD AS amount_sent_raw,dstEid AS destination_eidFROM stargate_v2_berachain.stargateoft_evt_oftsentUNION ALLSELECT'flare' AS source_chain,CAST(guid AS VARCHAR) AS correlation_id,fromAddress AS user_address,evt_tx_hash AS deposit_tx_hash,evt_block_time AS deposit_timestamp,amountSentLD AS amount_sent_raw,dstEid AS destination_eidFROM stargate_v2_flare.stargateoft_evt_oftsent),stargate_received AS (SELECT'ethereum' AS destination_chain,CAST(guid AS VARCHAR) AS correlation_id,toAddress AS recipient_address,evt_tx_hash AS destination_tx_hash,evt_block_time AS fill_timestamp,amountReceivedLD AS amount_received_raw,srcEid AS source_eidFROM stargate_v2_ethereum.stargatepool_evt_oftreceivedUNION ALLSELECT'berachain' AS destination_chain,CAST(guid AS VARCHAR) AS correlation_id,toAddress AS recipient_address,evt_tx_hash AS destination_tx_hash,evt_block_time AS fill_timestamp,amountReceivedLD AS amount_received_raw,srcEid AS source_eidFROM stargate_v2_berachain.stargateoft_evt_oftreceived