0xHaM-dSquid
Updated 2023-04-26
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
with all_chains as (
SELECT
s.BLOCK_TIMESTAMP,
SOURCE_CHAIN || ' => ' || DESTINATION_CHAIN as route,
s.tx_hash,
sender,
AMOUNT
FROM axelar.core.ez_squid s JOIN ethereum.core.ez_decoded_event_logs e
on s.tx_hash = e.tx_hash and s.BLOCK_TIMESTAMP::date = e.BLOCK_TIMESTAMP::date
JOIN ethereum.core.dim_labels l on e.contract_address = l.address
WHERE LABEL_TYPE in ('dex', 'layer2')
UNION
SELECT
s.BLOCK_TIMESTAMP,
SOURCE_CHAIN || ' => ' || DESTINATION_CHAIN as route,
s.tx_hash,
sender,
AMOUNT
FROM axelar.core.ez_squid s JOIN arbitrum.core.fact_event_logs e
on s.tx_hash = e.tx_hash and s.BLOCK_TIMESTAMP::date = e.BLOCK_TIMESTAMP::date
JOIN arbitrum.core.dim_labels l on e.contract_address = l.address
WHERE LABEL_TYPE in ('dex', 'layer2')
UNION
SELECT
s.BLOCK_TIMESTAMP,
SOURCE_CHAIN || ' => ' || DESTINATION_CHAIN as route,
s.tx_hash,
sender,
AMOUNT
FROM axelar.core.ez_squid s JOIN avalanche.core.fact_decoded_event_logs e
on s.tx_hash = e.tx_hash and s.BLOCK_TIMESTAMP::date = e.BLOCK_TIMESTAMP::date
Run a query to Download Data