Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add user_space table to collect user's votes and proposals count per space #653

Closed
wants to merge 5 commits into from

Conversation

wa0x6e
Copy link
Contributor

@wa0x6e wa0x6e commented Aug 24, 2023

From the pitches https://www.notion.so/snapshotlabs/S-delegation-part-2-2b3186d8a33b4fd8b90c6575b6bf8000#bc7c1c9c785c46bdad69b4c8337771ca

This is a read-only part of the feature, which creates a new table to store the proposals_count and votes_count counters. The update side will be on sequencer: snapshot-labs/snapshot-sequencer#127

This PR contains 2 changes:

  • Update to the schema.sql to include the new table
  • Add a script (run with yarn ts-node scripts/generate_user_space_counters.ts) to trigger the counters computation. (moved to sequencer)

@wa0x6e wa0x6e marked this pull request as ready for review August 24, 2023 14:20
@wa0x6e wa0x6e requested a review from ChaituVR August 24, 2023 14:20
Copy link
Member

@ChaituVR ChaituVR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utAck

src/helpers/schema.sql Outdated Show resolved Hide resolved
@wa0x6e
Copy link
Contributor Author

wa0x6e commented Jul 14, 2024

Closing, see leaderboard instead

@wa0x6e wa0x6e closed this Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants