Create a validation strategy
Create a validation strategy and use it in your own space
Last updated
Was this helpful?
Create a validation strategy and use it in your own space
Last updated
Was this helpful?
To add your own voting validation strategy on Snapshot you need to fork the snapshot-strategies repository and create a pull request.
src\validations.
basic
strategy folder and rename it to the name of your voting validation.If you are not sure about the Validation
class, have a look at its definition:
To make sure your validation passes all tests, run:
Have a look here on the requirements for adding a new validation strategy and make sure you fulfill the points in the checklist:
The team will then review your PR and after it's approved and merged it will be available to choose in your space settings.
The validation name has to be included in the in the validationClasses
variable.