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

Vote API docs for other proposal types #971

Open
x43n opened this issue Mar 11, 2024 · 1 comment
Open

Vote API docs for other proposal types #971

x43n opened this issue Mar 11, 2024 · 1 comment

Comments

@x43n
Copy link

x43n commented Mar 11, 2024

Hey, trying to find an example of the expected "choice" field format for the different types of proposals? For example, I imagine Quadratic voting is not simply "choice": 1. I can see in the source here that JSON is expected but cannot find info of the shape of that json...

It would be really helpful if https://docs.snapshot.org/tools/snapshot.js#cast-a-vote detailed how to cast a vote for the different proposal types.

Thanks

@x43n
Copy link
Author

x43n commented Mar 11, 2024

Figured it out. This is the choice payload structure: https://github.com/snapshot-labs/snapshot.js/blob/master/src/voting/quadratic.spec.js#L198

Good to just have this in the docs?

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

No branches or pull requests

1 participant