regen-network / indexer

:rocket: Blockchain indexer and database
Other
2 stars 0 forks source link

How to solve voter address not available in EventVote? #43

Open ryanchristo opened 1 year ago

ryanchristo commented 1 year ago

Summary

In the current implementation, we index group votes. EventVote is emitted when a single voter has submitted their vote but the event only includes the proposal id. In order to then query the vote to index, we need to query all current votes by proposal id and then loop through the votes rather than querying the single vote by proposal id and voter address.

Possible Solutions