Query editor
-- MEAN GAS PER DNS IMPORT — BEFORE vs AFTER THE P-256 SWAP. RECEIPTS BASIS.---- Same 315 imports on both bars. The 'after' bar is what those imports actually-- cost on chain; the 'before' bar is the same imports replayed against the old-- verifier's deployed mainnet bytecode. Nothing recompiled, no sampling.---- BASIS: transaction receipts (ethereum.transactions.gas_used) on both sides.-- Population CTE reused verbatim from the live gas tracker, query 8190068.-- Old-side total 1,366,364,238 is the study constant at data-reference §2.1;-- see query 8200569 for the full provenance note.WITH registrar_calls AS (SELECT call_tx_hash AS tx_hash, call_block_number AS block_numberFROM ens_ethereum.dnsregistrar_call_proveandclaimWHERE call_success AND contract_address IN (0x58774bb8acd458a640af0b88238369a167546ef2,0xb32cb5677a7c971689228ec835800432b339ba2b)UNIONSELECT call_tx_hash, call_block_numberFROM ens_ethereum.dnsregistrar_call_proveandclaimwithresolverWHERE call_success AND contract_address IN (0x58774bb8acd458a640af0b88238369a167546ef2,0xb32cb5677a7c971689228ec835800432b339ba2b)UNIONSELECT call_tx_hash, call_block_numberFROM ethereumnameservice_ethereum.dnsregistrar_call_proveandclaimWHERE call_success AND contract_address IN (0x58774bb8acd458a640af0b88238369a167546ef2,0xb32cb5677a7c971689228ec835800432b339ba2b)UNIONSELECT call_tx_hash, call_block_numberFROM ethereumnameservice_ethereum.dnsregistrar_call_proveandclaimwithresolverWHERE call_success AND contract_address IN (0x58774bb8acd458a640af0b88238369a167546ef2,0xb32cb5677a7c971689228ec835800432b339ba2b)),imports AS (SELECT DISTINCT tx_hash, block_number FROM registrar_calls),realized AS (SELECTSUM(CAST(t.gas_used AS BIGINT)) AS new_total_gas,COUNT(*) AS import_countFROM imports iJOIN ethereum.transactions tON t.hash = i.tx_hash AND t.block_number = i.block_numberWHERE t.successAND t.block_time >= TIMESTAMP '2026-03-01'AND t.block_time < TIMESTAMP '2026-08-01'AND i.block_number >= 24619423AND i.block_number <= 25627360)SELECT 1 AS ord,'Old verifier (Solidity P-256)' AS phase,CAST(round(1366364238.0 / import_count) AS BIGINT) AS mean_gas_per_importFROM realizedUNION ALLSELECT 2,'EIP-7951 precompile',CAST(round(CAST(new_total_gas AS DOUBLE) / import_count) AS BIGINT)FROM realizedORDER BY ord