KARTODSwaps after bridge order by volume
Updated 2023-04-13
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 opt_bridege_on_ethereum as (
select
block_timestamp,
tx_hash,
origin_from_address
from ethereum.core.fact_event_logs
where origin_to_address = lower('0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1')
),
logs as (
select
block_timestamp,
tx_hash,
origin_from_address,
origin_to_address,
event_name,
contract_name
from optimism.core.fact_event_logs
),
after_bridge as (
select
b.block_timestamp,
b.tx_hash,
b.event_name,
a.origin_from_address,
b.contract_name,
b.origin_to_address
from opt_bridege_on_ethereum a
join logs b on a.origin_from_address = b.origin_from_address
where b.block_timestamp > a.block_timestamp
),
final as (
select
block_timestamp::date as date,
Run a query to Download Data