LittlerDataMinters per Collection
Updated 2023-09-20
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 mints as (
select
tx_id
,case
when event_data:metadata like '%Mickey and Friends: Volume I%' then 'Mickey and Friends: Volume I'
when event_data:metadata like '%Star Wars™: Volume I%' then 'Star Wars™: Volume I'
when event_data:metadata like '%Zoo-F-O%' then 'Zoo-F-O'
when event_data:metadata like '%Masters of the Universe™ Special Edition 2022%' then 'Masters of the Universe™ Special Edition 2022'
when event_data:metadata like '%Masters of the Universe™%' then 'Masters of the Universe™'
else 'not registered'
end as collection_type
from flow.core.fact_events
where event_contract = 'A.ca63ce22f0d6bdba.Cryptoys'
and event_type = 'Minted'
),
grouping as (
select
event_data:to as users
,tx_id
,collection_type
from flow.core.fact_events
join mints using (tx_id)
where event_type = 'Deposit'
)
select
collection_type
,count (distinct users) Minters
from grouping
group by 1
/*
Run a query to Download Data