kidaAcross Latency (Arbitrum)
Updated 2023-01-07Copy Reference Fork
999
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
origin_deposits as (
select
block_timestamp,
tx_hash,
'arbitrum' as from_chain,
replace(topics[1], '0x') as depositId,
tokenflow_eth.hextoint(left(right(data, 256), 64)) as to_chain_id,
'0x' || left(right(data, 40), 40) as recipient
from arbitrum.core.fact_event_logs
where topics[0] = '0x4a4fc49abd237bfd7f4ac82d6c7a284c69daaea5154430cff04ad7482c6c4254' -- FundsDeposited
and tx_status = 'SUCCESS'
),
ethereum_redeems as (
select
block_timestamp,
tx_hash,
left(right(data, 256), 64) as depositId,
tokenflow_eth.hextoint(left(right(data, 512), 64)) as to_chain_id,
'0x' || left(right(data, 104), 40) as recipient
from ethereum.core.fact_event_logs
where topics[0] = '0x56450a30040c51955338a4a9fbafcf94f7ca4b75f4cd83c2f5e29ef77fbe0a3a' -- FilledRelay
and tokenflow_eth.hextoint(left(right(data, 576), 64)) = 42161 -- origin chain
and tx_status = 'SUCCESS'
),
optimism_redeems as (
select
block_timestamp,
tx_hash,
left(right(data, 256), 64) as depositId,
tokenflow_eth.hextoint(left(right(data, 512), 64)) as to_chain_id,
'0x' || left(right(data, 104), 40) as recipient
from optimism.core.fact_event_logs
where topics[0] = '0x56450a30040c51955338a4a9fbafcf94f7ca4b75f4cd83c2f5e29ef77fbe0a3a' -- FilledRelay
Run a query to Download Data