Query editor
WITHDISP_OP as (SELECTcall_block_date,call_tx_hash,call_tx_from,call_tx_to,recipient,value/ 1e18 AS amount,'OP' AS token,CASE call_tx_hash-- transacciones en las que se envió OP en batchWHEN 0xfddda7014c7b34dd7498ba5531dc302963162597e5d2378abcb1aed0c1d0f729 then 'Introduction to Blockchain - Económica PUCP'WHEN 0xa0c826c969e659cfd8206365e59e32d606b6239e112c668d92c3a91297389426 then 'Scalability Challenges and Solutions like Optimism - Económica PUCP'WHEN 0x0b2ff1e04d97fcba177a3de0a8de50f46e9ad62e787d6376d0ef5320e321971e then 'Introduction to Blockchain - UNMSM'WHEN 0x76a64c238b48d5d3bd6b5e7d9d7319f00edc86a37b85f8699eb7afea3b1d030c then 'Scalability Challenges and Solutions like Optimism - UNMSM'WHEN 0x3cfe093cfc5f27e366cda28d8df8e71f347136c08305c179285af3de9c6e6389 then 'Introduction to Blockchain - Docentes PUCP'WHEN 0x23cd397770e80d0fdaaf8f4405df8af177672b1b1b1408484cdbab2f7aba597b then 'Scalability Challenges and Solutions like Optimism - Docentes PUCP'WHEN 0x253b9a6e94f3cef3012cefb1dceb3f802b159cd7341bd4f21511244635821754 then 'Governance and Digital Democracy in Blockchain - UNMSM'WHEN 0x3d01ec4824d1a0efd9492ee0afe6d56c13029fb44f1a1f5848357b45a8196475 then 'Public Goods Funding in Blockchain - UNMSM'WHEN 0xd75fa374f24d11af4c874c8e8ee1818c0041a48021445b08bbba1cd312920381 then 'Governance and Digital Democracy in Blockchain - Docentes PUCP'WHEN 0xe62d10e96e7d95741e7326806413cc5f86b306f81d87a5155bd478282422b55b then 'Public Goods Funding in Blockchain - Docentes PUCP'WHEN 0x770c14a5dd4a237f0852be060346f296d2f0ceeb96a6c12fc0751f521bee561f then 'Digital Security in Blockchain - Docentes PUCP'ELSE 'Other'END AS SessionFROM disperse_optimism.Disperse_call_disperseTokencross join unnest(recipients,"values") AS t(recipient,value)WHERE call_tx_from = 0x8f7d6300d2B978f9AFAD3a38CC154C0f10dF5962 orcall_tx_from = 0x3a08AC947933C4C25C0cC3ccD2088476e27aAB4e--solo filtro la address de OP Mission),--agrego la fecha de cada sesiónDISP_DATE as (select *,CASE SessionWHEN 'Introduction to Blockchain - Económica PUCP' then '2024-09-26'WHEN 'Scalability Challenges and Solutions like Optimism - Económica PUCP' then '2024-10-03'WHEN 'Introduction to Blockchain - UNMSM' then '2024-09-30'WHEN 'Scalability Challenges and Solutions like Optimism - UNMSM' then '2024-10-07'WHEN 'Introduction to Blockchain - Docentes PUCP' then '2024-10-16'WHEN 'Scalability Challenges and Solutions like Optimism - Docentes PUCP' then '2024-10-23'WHEN 'Governance and Digital Democracy in Blockchain - UNMSM' then '2024-10-21'WHEN 'Public Goods Funding in Blockchain - UNMSM' then '2024-10-28'WHEN 'Governance and Digital Democracy in Blockchain - Docentes PUCP' then '2024-11-06'WHEN 'Public Goods Funding in Blockchain - Docentes PUCP' then '2024-11-13'WHEN 'Digital Security in Blockchain - Docentes PUCP' then '2024-11-20'ELSE NUllEND AS session_datefrom DISP_OP)SELECT session_date,session,token,round(sum(amount),4) as rewardsFROM DISP_DATEWHERE token = 'OP' AND session <> 'Other'