boomer77wormhole cumulative metrics
Updated 2021-11-28
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
›
⌄
with raw as (select date(block_timestamp) as dt, tx_id,
msg_value:execute_msg:initiate_transfer:recipient_chain as chain, case
when chain = 1 then 'solana'
when chain = 2 then 'ethereum'
when chain = 4 then 'BSC'
when chain = 5 then 'polygon'
else null end as terra_to_chain,
msg_value:execute_msg:initiate_transfer:asset:amount/1e6 as amount,
msg_value:execute_msg:initiate_transfer:asset:info:native_token:denom::string as uusd
from terra.msgs
where msg_value:contract::string = 'terra10nmmwe8r3g99a9newtqa7a75xfgs2e8z87r2sf'
and msg_value:execute_msg:initiate_transfer is not null
and msg_value:execute_msg:initiate_transfer:asset:info:native_token:denom::string = 'uusd')
select dt, sum(amount) as ust_volume, sum(ust_volume) OVER(ORDER BY dt asc ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS vol_cumulative,
count(distinct tx_id) as transaction_count, sum(transaction_count) OVER(ORDER BY dt asc ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS transaction_cumulative
from raw
group by 1
order by 1 asc
Run a query to Download Data