FatemeTheLadyOp Bridge 7
Updated 2022-10-23
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 standardbridge as (
select block_timestamp,
tx_hash,
origin_from_address,
'ETH' as symbol,
amount_usd
from ethereum.core.ez_eth_transfers
where eth_to_address = '0x99c9fc46f92e8a1c0dec1b1747d010903e884be1'
union ALL
select block_timestamp,
tx_hash,
origin_from_address,
symbol,
amount_usd
from ethereum.core.ez_token_transfers
where to_address = '0x99c9fc46f92e8a1c0dec1b1747d010903e884be1'),
table1 as (
select t1.block_timestamp,
t1.tx_hash,
t1.origin_from_address,
t1.origin_to_address
from optimism.core.fact_event_logs t1 join standardbridge t2 on t1.origin_from_address = t2.origin_from_address and t1.block_timestamp > t2.block_timestamp),
table2 as (
select origin_from_address,
min (block_timestamp) as Date1
from table1
group by 1),
table3 as (
select block_timestamp,
t1.origin_from_address,
tx_hash,
origin_to_address
from table2 t1 left join table1 t2 on t1.Date1 = t2.block_timestamp)
Run a query to Download Data