Query editor
WITH evo_txs AS (SELECT tx_hash, block_time, date_trunc('day', block_time) AS day, tx_from as evo_playerFROM polygon.logsWHERE topic0 = 0xe6df6e83ce21dbfa3571eb617948c07015a54d2893d5976c2867d62cf0da6696--WHERE topic1 = '\x6226a43ab2cd2c3bb95fbcba22bbed53c8dfbe8b869d71894c83b2d43f24d21e'),evo_unim_to_gamebank as ( --unim that went to the game bank but includes everythingselect evt_tx_hash as hash, value/1e18 as unim_intobank from erc20_polygon.evt_Transferwhere contract_address = 0x64060ab139feaae7f06ca4e63189d86adeb51691 -- UNIM,and to = 0x94f557dddb245b11d031f57ba7f2c4f28c4a203e--Game Bank Address),evo_rbw_to_gamebank as ( --rbw that went to the game bank but includes everythingselect evt_tx_hash as hash, value/1e18 as rbw_intobank from erc20_polygon.evt_Transferwhere contract_address = 0x431cd3c9ac9fc73644bf68bf5691f4b83f9e104f -- RBW,and to = 0x94f557dddb245b11d031f57ba7f2c4f28c4a203e--Game Bank Address)SELECTet.day as "Day",--er.rbw_intobank,--eu.unim_intobank,count(*) AS evolved_unicorns_day,count(distinct(et.evo_player)) as num_players_evo,sum(COALESCE(er.rbw_intobank,0)) as "RBW Spent Evolution",sum(COALESCE(sum(er.rbw_intobank),0)) over (order by et.day) as "Cumulative RBW Consumed",sum(COALESCE(eu.unim_intobank,0)) as "UNIM Spent Evolution",--sum(COALESCE(eu.unim_intobank,0)) over (order by et.day) as "Total UNIM Spent",sum(COALESCE(sum(eu.unim_intobank),0)) over (order by et.day) as "Cumulative UNIM Consumed",sum(count(*)) over (order by day) as "Total Evolved Unicorns"--count(DISTINCT depositor) AS depositorsFROM evo_txs etleft join evo_unim_to_gamebank euon et.tx_hash = eu.hashleft join evo_rbw_to_gamebank eron et.tx_hash = er.hashGroup by 1order by 1 desclimit 210