Query editor
---from 0xTayasa--- crate list need to be frequenty updatedwith crate_mint as (select "evt_block_time",id as id, "from","to",sum(amt) as amt from(select"evt_block_time", cast(id as varchar) as id, "from","to",sum(cast(value as double)) as amtfrom erc1155_polygon.evt_TransferSinglewhere contract_address= 0x0B5cfed5efB6f831468B8b5b5321B71825a2AEe0and "from" = 0x0000000000000000000000000000000000000000and (cast("id" as double) = 50005 or cast("id" as double) = 50001 or cast("id" as double) = 50002 or cast("id" as double) = 50003 or cast("id" as double) = 50004)and 1 <= {{Synchronize}}group by 1,2,3,4union allselect "evt_block_time",cast(id as varchar) as id,"from","to",sum(cast(value as double)) as amtfrom(select *from erc1155_polygon.evt_TransferBatchcross join unnest("ids","values") as tbl(id,value)where contract_address=0x0B5cfed5efB6f831468B8b5b5321B71825a2AEe0and "from" = 0x0000000000000000000000000000000000000000) swhere (cast("id" as double) = 50005 or cast("id" as double) = 50001 or cast("id" as double) = 50002 or cast("id" as double) = 50003 or cast("id" as double) = 50004)group by 1,2,3,4)tgroup by 1,2,3,4),crate_burn as (select "evt_block_time",id as id, "from","to",sum(amt) as amt from(select"evt_block_time",cast(id as varchar) as id,"from","to", -sum(case when value is not null then cast(value as double) else 0 end) as amtfrom erc1155_polygon.evt_TransferSinglewhere contract_address=0x0B5cfed5efB6f831468B8b5b5321B71825a2AEe0and "to" = 0x0000000000000000000000000000000000000000and "operator" =0x992f29838675aa0f05914a004f49e2fed9aeeeeband (cast("id" as double) = 50005 or cast("id" as double) = 50001 or cast("id" as double) = 50002 or cast("id" as double) = 50003 or cast("id" as double) = 50004)group by 1,2,3,4union allselect "evt_block_time",cast(id as varchar) as id,"from","to",-sum(case when value is not null then cast(value as double) else 0 end) as amtfrom(select *from erc1155_polygon.evt_TransferBatchcross join unnest("ids","values") as tbl(id,value)where contract_address=0x0B5cfed5efB6f831468B8b5b5321B71825a2AEe0and "operator" =0x992f29838675aa0f05914a004f49e2fed9aeeeeband "to" = 0x0000000000000000000000000000000000000000) swhere (cast("id" as double) = 50005 or cast("id" as double) = 50001 or cast("id" as double) = 50002 or cast("id" as double) = 50003 or cast("id" as double) = 50004)group by 1,2,3,4)tgroup by 1,2,3,4),tx_list as(Select * from crate_mintunion allselect * from crate_burn),loot_list as (select id,name,"Loot Type",description from query_2179350),combined_list as (