Query editor
-- noqa: TMP-- This query is generated by code in https://github.com/cowprotocol/data-jobs-- This query provides data related to rewards/payouts on a per batch auction level-- for all auctions that had at least one winner.-- Parameters:-- : the chain for which we want to retrieve batch data-- The output has the following columns:-- environment: varchar-- auction_id: bigint-- block_number: bigint-- block_deadline: bigint-- tx_hash: varbinary-- solver: varbinary-- execution_cost: decimal(38, 0)-- surplus: decimal(38, 0)-- protocol_fee: decimal(38, 0)-- protocol_volume_fee: decimal(38, 0)-- network_fee: decimal(38, 0)-- uncapped_payment_native_token: decimal(38, 0)-- capped_payment: decimal(38, 0)-- consistency_budget_contribution: decimal(38, 0)-- winning_score: decimal(38, 0)-- reference_score: decimal(38, 0)-- DISCLAIMER: All entries with auction_id = -1000 are invalidwithpast_batch_data_ethereum as (selectenvironment,auction_id,block_number,block_deadline,tx_hash,solver,execution_cost,surplus,protocol_fee,protocol_volume_fee,network_fee,uncapped_payment_native_token,capped_payment,winning_score,reference_scorefrom dune.cowprotocol.batch_data_ethereum_history),past_batch_data_gnosis as ( --noqa: ST03selectenvironment,auction_id,block_number,block_deadline,tx_hash,solver,execution_cost,surplus,protocol_fee,