Add CIP-179 survey support to governance voting#57
Open
Cerkoryn wants to merge 2 commits into
Open
Conversation
Author
|
Note that this particular survey from @mpizenberg's tool was intentionally limited to a MAXIMUM of 10 answers, which is what I was testing when I inputted numbers 1-11 to violate that constraint. It isn't exactly clear in the script/screenshot why that constraint was violated, but I could probably just put that in the survey question text next time. I.e.... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds optional CIP-179 v5 support to the governance scripts.
When a governance action links a public CIP-179 survey, the voting flow can:
Existing voting behavior is unchanged for actions without a CIP-179 survey. The optional survey flow requires Node.js 20+ and cip-179@0.2.0.
Testing
This PR was made with the assistance of GPT 5.6 Sol High, but I personally tested end to end on Preview using a CIP-179 survey linked to an Info Action. The governance vote and survey response were successfully submitted together and indexed on-chain.