Query editor
with all_logs as(select *from polygon.logswhere block_number >= 45145069 -- for efficiencyUNION ALLselect *from optimism.logswhere block_number >= 107406362 -- for efficiencyUNION ALLselect *from base.logswhere block_number >= 1898666UNION ALLselect *from arbitrum.logswhere block_number >= 123416397),cybersoul_mints as(selectblock_time,block_number,substr(topic1,13) "from",substr(topic2,13) "to",'CyberSoul (SOUL)' labeled_id,cast(substr(topic3,13) as VARCHAR) id,cast(1 as uint256) as amountfrom all_logswhere contract_address = 0x14a725839184f879f3c09ce3d707e5a3e4c5869dand topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef -- Transfer(from, to, id)),--- Cyber W3STs only on polygon currentlycyberconnect_w3st_mints as(selectblock_time,block_number,substr(topic2,13) "from",substr(topic3,13) "to",case when cast(bytearray_to_uint256(substr(data,13,20)) as varchar) = '0' then 'CyberConnect V3 Evangelist NFT'when cast(bytearray_to_uint256(substr(data,13,20)) as varchar) = '1' then 'CyberWallet Early Access NFT'else cast(bytearray_to_uint256(substr(data,13,20)) as varchar) end as labeled_id,cast(bytearray_to_uint256(substr(data,13,20)) as varchar) id,bytearray_to_uint256(substr(data, 33+12,20)) amountfrom polygon.logswhere contract_address = 0xbcf49e965e339bbba7237d433694e06fe7de867cand topic0 = 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62 -- TransferSingle(index_topic_1 address _operator, index_topic_2 address _from, index_topic_3 address _to, uint256 _id, uint256 _value)and block_number >= 45426379 -- for efficiency),unioned as(select * from cybersoul_mintsUNION ALLselect * from cyberconnect_w3st_mints),unioned_agg as(selectdate_trunc('hour', block_time) block_date,