Query editor
select block_time, varbinary_ltrim(topic1) as voters,varbinary_to_uint256(varbinary_substring(data,1,32)) as proposal_id,casewhen VARBINARY_TO_INTEGER(VARBINARY_LTRIM(VARBINARY_SUBSTRING(data, 33, 32)))=1 then 'For'when VARBINARY_TO_INTEGER(VARBINARY_LTRIM(VARBINARY_SUBSTRING(data, 33, 32)))=0 then 'Against'ELSE 'Abstain'end AS support,varbinary_to_uint256(varbinary_substring(data,65,32))/1e18 as weightfrom optimism.logswhere contract_address = 0xcdf27f107725988f2261ce2256bdfcde8b382b10and topic0 = 0xb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda4union allselect block_time, varbinary_ltrim(topic1) as voters,varbinary_to_uint256(varbinary_substring(data,1,32)) as proposal_id,'multiple-choice' as support,--VARBINARY_TO_INTEGER(VARBINARY_LTRIM(VARBINARY_SUBSTRING(data, 33, 32))) as support,varbinary_to_uint256(varbinary_substring(data,65,32))/1e18 as weightfrom optimism.logswhere contract_address = 0xcdf27f107725988f2261ce2256bdfcde8b382b10and topic0 = 0xe2babfbac5889a709b63bb7f598b324e08bc5a4fb9ec647fb3cbc9ec07eb8712order by block_time desc