Query editor
with all_nodes as (with a as (selectevt_block_time,'disabled' as status,keeperIdfrom powerpool_linea.PPAgentV2VRF_evt_RegisterAsKeeperwhere contract_address = 0x20D4029c783D5c9f47569940c656Af4189e53799union allselectevt_block_time,'disabled' as status,keeperIdfrom powerpool_linea.PPAgentV2VRF_evt_DisableKeeperwhere contract_address = 0x20D4029c783D5c9f47569940c656Af4189e53799union allselectevt_block_time,'active' as status,keeperIdfrom powerpool_linea.PPAgentV2VRF_evt_FinalizeKeeperActivationwhere contract_address = 0x20D4029c783D5c9f47569940c656Af4189e53799),b as (select *, row_number() over (partition by keeperId order by evt_block_time desc) as rn from a),c as (select * from b where rn = 1)selectc.evt_block_time as status_from,c.status,c.keeperId as keeper_id,coalesce(s.worker, r.keeperWorker) as keeper,r.keeperAdmin as adminfrom cleft join powerpool_linea.PPAgentV2VRF_evt_RegisterAsKeeper r on c.keeperId = r.keeperId and r.contract_address = 0x20D4029c783D5c9f47569940c656Af4189e53799left join powerpool_linea.PPAgentV2VRF_evt_SetWorkerAddress s on s.keeperId = r.keeperId and s.prev = r.keeperWorker and s.contract_address = 0x20D4029c783D5c9f47569940c656Af4189e53799),stats as (with slashes as (selectassignedKeeperId as slashed_keeper,0-round(sum(dynamicSlashAmount/1e18 + fixedSlashAmount/1e18), 1) as CVP_slashed,count(*) as slashedfrom powerpool_linea.PPAgentV2VRF_evt_SlashKeeperwhere contract_address = 0x20D4029c783D5c9f47569940c656Af4189e53799group by 1),slashes2 as (select