Query editor
-- table which shows all transactions for L1 by L2 scaling solutions (only Ethereum L1 execution layer gas market)-- mapping used is maintained here: https://github.com/lorenz234/gtp-dna/blob/main/economics_da/economics_mapping.ymlSELECTf.*,t.*,cast(t.gas_used as double) * cast(t.gas_price as double) / 1e18 AS gas_fee_ethFROM ethereum.transactions tJOIN (SELECT * FROM dune.growthepie.l2economics_mapping WHERE settlement_layer = 'l1') fON(f.from_address IS NULL OR t."from" = f.from_address) AND(f.to_address IS NULL OR t."to" = f.to_address) AND(f.method IS NULL OR bytearray_substring(t."data", 1, 4) = f.method) AND(f.start_block IS NULL OR t.block_number >= f.start_block) AND(f.end_block IS NULL OR t.block_number <= f.end_block)WHEREt.block_date < current_dateAND t.block_date >= current_date - interval '{{days}}' day;