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

Enrich api proposals #278

Merged
merged 7 commits into from
Nov 30, 2023
Merged

Enrich api proposals #278

merged 7 commits into from
Nov 30, 2023

Conversation

f-gate
Copy link
Member

@f-gate f-gate commented Nov 30, 2023

#277

Added a new storage item ProjectInVoting as an api helper so we dont need to blindly interate over Rounds.
Test added to ensure state is cleaned up alright.

The new api now returns
Project, ImmutableindividualVotes, DisputeVotes, MilestonesInVotingRound

DisputeVotes is a wrapper around pallet_dispute::BoundedVotes so i can easily call encode on it.
MilestonesInVoting round is just a vector of MilestoneKey.

If you want to get the vote weight. you can look this up in project contributions as the contribution is the same as the vote weight.

Migration

No migration is required however current projects in voting rounds wont show in MIlestonesInVotingRound until resubmission .

@samelamin samelamin merged commit 505f922 into main Nov 30, 2023
2 checks passed
@samelamin samelamin deleted the enrich-api-proposals branch November 30, 2023 16:07
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