Query editor
with rabbithole as (-----rabbithole-------/* recipient address: 0xE54146EA0d40eC338339C4f784FBB4CE44322e92rabbithole distributes from the quest addressesThis query tracks instances ofQuestClaimed (index_topic_1 address recipient, index_topic_2 address questAddress, string questId, address rewardToken, uint256 rewardAmountInWei)of ARB token: 0x912ce59144191c1204e64559fe8253a0e49e6548from the quest distributor contractsto the EOA: index_topic_1*/-- with pools as (-- select distinct "to" as pool from erc20_arbitrum.evt_Transfer-- where contract_address = 0x912CE59144191C1204E64559FE8253a0e49E6548-- and "from" = 0xc34fD9b40afB41ac528Abb3C7EF643a6bA3667e3 -- recipient address-- and evt_block_time > timestamp '2023-12-25'-- )select 'RabbitHole' as project, block_time, block_date, bytearray_ltrim(topic1) as address, bytearray_ltrim(topic2) as distributor, bytearray_to_uint256(bytearray_ltrim(bytearray_substring(data,1 + 32 + 32,32))) * 1.00 / pow(10,18) as amt--, pr.price, tx_hashfrom arbitrum.logs log--left join prices pr on log.block_time >= pr.hour and log.block_time < pr.lead_hour --and bytearray_ltrim(log.topic1) = pr.contract_addresswhere block_time > cast('2023-12-25' as timestamp)and log.contract_address =0x52629961f71c1c2564c5aa22372cb1b9fa9eba3eand bytearray_ltrim(topic0) = 0xd35f2250d08242f6e4e2bfe3dac8b5887040ea7223991b25a628b415c3265be9 --questRewardClaimedand bytearray_ltrim(bytearray_substring(data,1 + 32,32)) = 0x912CE59144191C1204E64559FE8253a0e49E6548)select * from rabbithole