SocioCryptoafter unstake
Updated 2022-07-19
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 actions as (SELECT actor,
block_timestamp,
label,
rank()over(partition BY actor ORDER BY block_timestamp) as rank
FROM
(
SELECT 'unstake' as label,
block_timestamp,
delegator_address as actor
FROM osmosis.core.fact_staking
WHERE action = 'undelegate'
AND tx_status = 'SUCCEEDED'
UNION
SELECT 'stake' as label,
block_timestamp,
delegator_address as actor
FROM osmosis.core.fact_staking
WHERE action = 'delegate'
AND tx_status = 'SUCCEEDED'
UNION
SELECT 'redelegate' as label,
block_timestamp,
delegator_address as actor
FROM osmosis.core.fact_staking
WHERE action = 'redelegate'
AND tx_status = 'SUCCEEDED'
UNION
SELECT 'swap' as label,
block_timestamp,
trader as actor
FROM osmosis.core.fact_swaps
WHERE from_currency = 'uosmo'
AND tx_status = 'SUCCEEDED'
UNION
SELECT 'transfer' as label,
block_timestamp,
Run a query to Download Data