John_GaltQ22: GAMM Share Composition
Updated 2022-07-04
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 poolfilter as (select
distinct tx_id as tx,
date(block_timestamp) as date
from osmosis.core.fact_msg_attributes
where date(block_timestamp) > '2022-01-01'
and msg_type = 'pool_joined'
and attribute_key = 'pool_id'
and attribute_value = '1'
),
joinfilter as (select
distinct tx_id as tx
from osmosis.core.fact_msg_attributes
where date(block_timestamp) > '2022-01-01'
and msg_type = 'message'
and attribute_key = 'action'
and attribute_value = '/osmosis.gamm.v1beta1.MsgJoinPool'
),
gamm_mint as (select
distinct tx_id as tx,
SPLIT_PART(attribute_value, 'gamm', 1) as ugamm_shares
from osmosis.core.fact_msg_attributes
where date(block_timestamp) > '2022-01-01'
and msg_type = 'coinbase'
and attribute_key = 'amount'
),
tokens_in as (select
distinct tx_id as tx,
SPLIT_PART(attribute_value, 'ibc', 1) as uatom,
SPLIT_PART(attribute_value, ',', -1) as uosmo
from osmosis.core.fact_msg_attributes
where date(block_timestamp) > '2022-01-01'
and msg_type = 'pool_joined'
and attribute_key = 'tokens_in'
Run a query to Download Data