Query editor
-- This query used incompatible data types from Dune SQL alpha and may need to be updated.-- More details can be found on https://dune.com/docs/query/dunesql-changes/select(data.nft + data.withdraw - data.deposit) as NFT,(data.item + data.deposit - data.withdraw) as Gear,(data.nft + data.item) as totalfrom(selectcount(casewhen bytearray_substring("data", 1, 4) = 0x4e0f57a1and bytearray_substring("data", 164, 1) = 0x00 then 1else nullend) as NFT,count(casewhen bytearray_substring("data", 1, 4) = 0x4e0f57a1and bytearray_substring("data", 164, 1) = 0x01 then 1else nullend) as Item,count(casewhen bytearray_substring("data", 1, 4) = 0x868c1970 then 1else nullend) as Deposit,count(casewhen bytearray_substring("data", 1, 4) = 0x9386ce2b then 1else nullend) as Withdrawfrompolygon.transactionswhere(to = 0xa2563057eb415f218342bf0c572d6a464cdd6f0fORto = 0x9bc085bb7249147df0cd4e7a0e5fbcb0a0968874)AND success = trueAND (bytearray_substring("data", 1, 4) = 0x4e0f57a1OR bytearray_substring("data", 1, 4) = 0x9386ce2bOR bytearray_substring("data", 1, 4) = 0x868c1970)) as data