Query editor
-- Haberdashery NFT stats-- Treasury Value-- Haberdashery DAO stats-- Haberdashery VotingWITH fulfilled_elements_raw AS (SELECT 'Seaport' AS contract_name,evt_block_number,evt_block_time,evt_tx_hash,evt_index,json_parse(element_at(consideration, 1)) AS consideration_1,json_parse(element_at(consideration, 2)) AS consideration_2,json_parse(element_at(consideration, 3)) AS consideration_3,json_parse(element_at(offer, 1)) AS offer_1,TRY_CAST(json_extract(json_parse(element_at(offer, 1)), '$.itemType') AS INTEGER) AS offer_item_type,FROM_HEX(CAST(json_extract(json_parse(element_at(offer, 1)), '$.token') AS VARCHAR)) AS offer_address,offerer,recipientFROM seaport_base.Seaport_evt_OrderFulfilledWHERE evt_block_number >= 9965213),haberdashery_fulfilled_elements_raw AS (SELECT DISTINCT evt_tx_hashFROM fulfilled_elements_rawWHERE offer_address = 0x85E7DF5708902bE39891d59aBEf8E21EDE91E8BF),fulfilled_elements_parsed AS (SELECT contract_name,evt_block_number,evt_block_time,fr.evt_tx_hash,evt_index,TRY_CAST(json_extract(consideration_1, '$.amount') AS BIGINT) AS fulfilled_amount_1_raw,FROM_HEX(CAST(json_extract(consideration_1, '$.recipient') AS VARCHAR)) AS fulfilled_recipient_1,FROM_HEX(CAST(json_extract(consideration_1, '$.token') AS VARCHAR)) AS fulfilled_token_1,TRY_CAST(json_extract(consideration_1, '$.identifier') AS INTEGER) AS fulfilled_identifier_1,TRY_CAST(json_extract(consideration_1, '$.itemType') AS INTEGER) AS fulfilled_item_type_1,TRY_CAST(json_extract(consideration_2, '$.amount') AS BIGINT) AS fulfilled_amount_2_raw,FROM_HEX(CAST(json_extract(consideration_2, '$.recipient') AS VARCHAR)) AS fulfilled_recipient_2,FROM_HEX(CAST(json_extract(consideration_2, '$.token') AS VARCHAR)) AS fulfilled_token_2,TRY_CAST(json_extract(consideration_2, '$.identifier') AS INTEGER) AS fulfilled_identifier_2,TRY_CAST(json_extract(consideration_2, '$.itemType') AS INTEGER) AS fulfilled_item_type_2,TRY_CAST(json_extract(consideration_3, '$.amount') AS BIGINT) AS fulfilled_amount_3_raw,FROM_HEX(CAST(json_extract(consideration_3, '$.recipient') AS VARCHAR)) AS fulfilled_recipient_3,FROM_HEX(CAST(json_extract(consideration_3, '$.token') AS VARCHAR)) AS fulfilled_token_3,TRY_CAST(json_extract(consideration_3, '$.identifier') AS INTEGER) AS fulfilled_identifier_3,TRY_CAST(json_extract(consideration_3, '$.itemType') AS INTEGER) AS fulfilled_item_type_3,offer_address,offer_item_type,TRY_CAST(json_extract(offer_1, '$.amount') AS BIGINT) AS offer_amount,TRY_CAST(json_extract(offer_1, '$.identifier') AS INTEGER) AS offer_identifier,offerer,recipient,consideration_1,consideration_2,consideration_3,offer_1FROM fulfilled_elements_raw AS frJOIN haberdashery_fulfilled_elements_raw AS of