Query editor
-- Old registrar invalidateName calls across its full history.-- A post-2019 call could claim an old deed without erasing the ERC-721 name;-- this chart counts contract events, not permanently destroyed names.WITH prepunk_hashes AS (SELECT DISTINCT hashFROM ethereumnameservice_ethereum.registrar_old_evt_hashregisteredWHERE contract_address = 0x6090a6e47849629b7245dfa1ca21d94cd15878efAND evt_block_date >= DATE '2017-05-09'AND evt_block_date < DATE '2017-07-01'AND evt_block_number < 3919721),monthly_events AS (SELECTCAST(date_trunc('month', i.evt_block_time) AS date) AS month,count(*) AS old_registrar_invalidations,count_if(p.hash IS NOT NULL) AS prepunk_hash_invalidationsFROM ethereumnameservice_ethereum.registrar_old_evt_hashinvalidated iLEFT JOIN prepunk_hashes p ON p.hash = i.hashWHERE i.contract_address = 0x6090a6e47849629b7245dfa1ca21d94cd15878efAND i.evt_block_date >= DATE '2017-05-01'GROUP BY 1),calendar AS (SELECT monthFROM UNNEST(sequence(DATE '2017-05-01',CAST(date_trunc('month', current_timestamp) AS date),INTERVAL '1' MONTH)) AS t(month)),filled AS (SELECTc.month,coalesce(m.old_registrar_invalidations, 0) AS old_registrar_invalidations,coalesce(m.prepunk_hash_invalidations, 0) AS prepunk_hash_invalidationsFROM calendar cLEFT JOIN monthly_events m ON m.month = c.month)SELECTmonth,old_registrar_invalidations,prepunk_hash_invalidations,sum(old_registrar_invalidations) OVER (ORDER BY month) AS cumulative_invalidationsFROM filledORDER BY month;