Create a validation strategy
Create a validation strategy and use it in your own space
Last updated
Create a validation strategy and use it in your own space
Last updated
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:
The validation name has to be included in the index.ts
in the validationClasses
variable.
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:
https://github.com/snapshot-labs/snapshot-strategies#checklist-for-adding-a-new-strategy
The team will then review your PR and after it's approved and merged it will be available to choose in your space settings.