CryptoIcicleSolana-103.Going Down The Wormhole - Solana User Actions
Updated 2023-04-13Copy Reference Fork
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
›
⌄
-- Payout 3.621 SOL
-- Grand Prize 10.86 SOL
-- Payout Network Solana
-- Level Advanced
-- Difficulty Elite
-- Q103. Create a dashboard that can refresh daily with metrics that provide a detailed picture of Wormhole activity
-- both from Ethereum to Solana and from Solana to Ethereum.
-- How are tokens being bridged from chain to chain and which actions seem to be popular among users of Wormhole?
-- What actions seem to influence bridging behavior?
-- What are users doing before and after bridging?
-- Do users seem to think that bridging is safe or more risky relative to transfers to centralized exchanges?
with
users as (
select
distinct from_address as wallet
from (
select
i.value:parsed:info:amount/1e8 as token_amount,
i.value:parsed:info:mint as token_address,
e.instruction:accounts[0] as from_address,
l.address_name as token,
e.*
from solana.core.fact_events e, lateral flatten(input => inner_instruction:instructions) i
join solana.core.dim_labels l on i.value:parsed:info:mint = l.address
where program_id = 'wormDTUJ6AWPNvk59vGQbDvGJmqbDTdgWgAqcLBCgUb'
and block_timestamp >= CURRENT_DATE - {{n_days}}
and i.value:parsed:type = 'burn'
)
),
swappers as (
select distinct swapper
from solana.core.fact_swaps
where swapper in (select wallet from users)
and block_timestamp >= CURRENT_DATE - {{n_days}}
Run a query to Download Data