Query editor
with SETH_evt as (select*fromethereum.logswhereblock_number >= 17902853and contract_address = 0x2cBe14b7F60Fbe6A323cBA7Db56f2D916C137F3C -- SETH (Sealed.art main contract)),AuctionSettled as (selectdata as auctionId,block_time,tx_hashfromSETH_evtwheretopic0 = 0x9adaa52fec28b7d59b397f9b44bed38628a3d39e2c03278b14e9be3f14c799ba -- AuctionSettled),Transfer as(selecttx_hash,block_time,varbinary_substring(topic1,13) as "from",varbinary_substring(topic2,13) as "to",varbinary_to_uint256(data) as amountfromSETH_evtwheretopic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef -- Transfer),burn as (select tx_hash, amount, "from" as buyer from Transfer where "to" = 0x0000000000000000000000000000000000000000),AuctionCreated as(selectblock_time,tx_hash,varbinary_substring(data,13,20) as owner,varbinary_substring(data,45,20) as nftContract,varbinary_to_uint256(varbinary_substring(data,65,32)) as auctionDuration,case varbinary_to_uint256(varbinary_substring(data,128,1))when 1 then 'vickrey'when 2 then 'english'end as auctionType, -- end with: 1 => vickrey, 2 => englishvarbinary_to_uint256(varbinary_substring(data,129,32)) as nftId,varbinary_to_uint256(varbinary_substring(data,161,32)) as reserve,keccak(varbinary_concat(varbinary_substring(data,1,64),varbinary_substring(data,97))) as auctionIdfromSETH_evtwheretopic0 = 0x8d23a5dfd11a91f2265cffdb358ef2106e197d9f5168852ec99ba53fb9052640 -- AuctionCreated),AuctionCancelled as(selectblock_time,tx_hash,data as auctionIdfromSETH_evtwheretopic0 = 0xd88fab4b08bf76f15cf2d6e03e382acf1edd6790ab82967e406abac37db20288 -- AuctionCancelled