maybeyonasworm_shuttle_outflow_overlap
Updated 2022-01-17
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
native_shuttle as (
select
block_timestamp,
tx_id,
msg_value:amount[0]:amount::string/pow(10,6) as amt,
msg_value:from_address::string as user,
msg_value:amount[0]:denom::string as token
from terra.msgs
where msg_value:to_address::string = 'terra13yxhrk08qvdf5zdc9ss5mwsg5sf7zva9xrgwgc'
-- and msg_value:amount[0]:denom::string = 'uusd'
and tx_status = 'SUCCEEDED'
and msg_value:amount[0]:amount::string/pow(10,6) > 0
),
non_native_shuttle as (
select
block_timestamp,
tx_id,
msg_value:execute_msg:transfer:amount::string/pow(10,6) as amt,
msg_value:sender::string as user,
address_name as token
from terra.msgs join terra.labels on msg_value:contract::string = address
where msg_value:execute_msg:transfer:recipient::string = 'terra13yxhrk08qvdf5zdc9ss5mwsg5sf7zva9xrgwgc'
-- and msg_value:contract::string = 'terra15gwkyepfc6xgca5t5zefzwy42uts8l2m4g40k6'
and tx_status = 'SUCCEEDED'
and msg_value:execute_msg:transfer:amount::string/pow(10,6) > 0
),
shuttle as (
select * from native_shuttle
union all
select * from non_native_shuttle
),
wormhole as (
select
block_timestamp,
tx_id,
Run a query to Download Data