Query editor
withlp as (select*fromquery_5739230),collect as (selectblock_time,tx_hash,topic0,varbinary_substring(topic1,13,20) as owner, --ownervarbinary_to_int256(varbinary_substring(topic2,1,32)), -- tickLowervarbinary_to_int256(varbinary_substring(topic3,1,32)), -- tickUpperpow(1.0001,varbinary_to_int256(varbinary_substring(topic2,1,32))) as priceLower,pow(1.0001,varbinary_to_int256(varbinary_substring(topic3,1,32))) as priceUpper,-- data,varbinary_substring(data,13,20) as recipient, --recipientvarbinary_to_int256(varbinary_substring(data,33,32)) as amount0, --amount0varbinary_to_int256(varbinary_substring(data,65,32)) as amount1 --amount1fromhyperevm.logswherecontract_address = 0x03b56a60796249c40F3bf245D769C2bbB57B43B8and topic0 = 0x70935338e69775456a85ddef226c395fb668b63fa0115f5f20610b388e6ca9c0 -- collect),collectprotocol as (selectblock_time,tx_hash,topic0,varbinary_substring(topic1,13,20) as owner, --ownervarbinary_substring(topic2,13,20) as recipient, -- recipient-- data,varbinary_to_int256(varbinary_substring(data,13,32)) as amount0, --amount0varbinary_to_int256(varbinary_substring(data,33,32)) as amount1 --amount1fromhyperevm.logswherecontract_address = 0x03b56a60796249c40F3bf245D769C2bbB57B43B8and topic0 = 0x596b573906218d3411850b26a6b437d6c4522fdb43d2d2386263f86d50b8b151 -- collectprotocol),mint as (selectblock_time,tx_hash,topic0,varbinary_substring(topic1,13,20) as owner,varbinary_to_int256(varbinary_substring(topic2,1,32)) as tickLower,varbinary_to_int256(varbinary_substring(topic3,1,32)) as tickUpper,-- pow(1.0001,varbinary_to_int256(varbinary_substring(topic2,1,32))) as priceLower,-- pow(1.0001,varbinary_to_int256(varbinary_substring(topic3,1,32))) as priceUpper,-- varbinary_substring(data,13,20) as sender, --sendervarbinary_to_int256(varbinary_substring(data,33,32)) as amount,varbinary_to_int256(varbinary_substring(data,65,32)) as amount0,varbinary_to_int256(varbinary_substring(data,97,32)) as amount1,