most of the source code contained in this repo has been adopted from https://github.com/snapshot-labs/snapshot.js/tree/master/src/voting
and modified to suit.
$ yarn
$ npx ts-node tests/singleChoice.ts states/singleChoice.json
most of the source code contained in this repo has been adopted from https://github.com/snapshot-labs/snapshot.js/tree/master/src/voting
and modified to suit.
$ yarn
$ npx ts-node tests/singleChoice.ts states/singleChoice.json