Query editor
with celer_arbitrum_transactions as (select 'Ethereum' as block_chain,date_trunc('day', evt_block_time) as block_date,amount,evt_tx_hash as tx_hashfrom celer_ethereum.Bridge_evt_Send --celer.`Bridge_evt_Send`where `dstChainId` = 42161 -- Arbitrum Chain IDand evt_block_time >= now() - interval '15 days'and token in ('0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2')union allselect 'Optimism' as block_chain,date_trunc('day', block_time) as block_date,value as amount,hash as tx_hashfrom optimism.transactionswhere `to` = '0x9d39fc627a6d9d9f8c831c16995b209548cc3401'and substring(data, 1, 10) = '0x3f2e5fc3' -- sendNativeand substring(data, 11 + 64 * 2, 64) = '000000000000000000000000000000000000000000000000000000000000a4b1'and block_time >= now() - interval '15 days'union allselect 'BNB' as block_chain,date_trunc('day', block_time) as block_date,bytea2numeric_v2(substring(data, 11 + 64 * 2, 64)) as amount,hash as tx_hashfrom bnb.transactionswhere block_time >= now() - interval '15 days'and `to` = '0xdd90e5e87a2081dcf0391920868ebc2ffb81a1af'and substring(data, 1, 10) = '0xa5977fbb' -- sendand substring(data, 11 + 64 * 1, 64) = '0000000000000000000000002170ed0880ac9a755fd29b2688956bd959f933f8'and substring(data, 11 + 64 * 3, 64) = '000000000000000000000000000000000000000000000000000000000000a4b1'),celer_arbitrum_transactions_summary as (select 'Celer Network' as bridge,block_date,count(*) as transaction_count,sum(amount) / 1e18 as transaction_amountfrom celer_arbitrum_transactions twhere block_date >= now() - interval '15 days'group by 1, 2),-- Bungee: Ethereum + BNB + Optimism + Gnosisbungee_arbitrum_transactions as (-- Transferred through arbitrum native bridgeselect date_trunc('day', evt_block_time) as block_date,value as amount,evt_tx_hashfrom erc20_ethereum.evt_Transfer -- erc20.`ERC20_evt_Transfer`where `to` = '0x852c5de08b9beb014cad171c16b12a8d7456ea3f' -- socket bungee NativeArbitrumImpland evt_block_time >= now() - interval '15 days'and contract_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'union all-- Transferred through Hop protocol.