Create a validation strategy
Create a validation strategy and use it in your own space
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
If you are not sure about the
Validation
class, have a look at its definition:To make sure your validation passes all tests, run:
npm run test --validation=<VALIDATION NAME> // replace <VALIDATION NAME>
Have a look here on the requirements for adding a new validation strategy and make sure you full fill the points in the checklist:
The team will then review your PR and after it's approved and merged it will be available to chose in your space settings.
Last modified 4mo ago