statutory-voting
v2.0.0
Published
balance based voting system for smart contracts
Downloads
5
Readme
Statutory Voting
About
This is a generic smart contract structure for incorporating a democratic proposal system into ERC20 contracts. The proposal system is based on statutory voting, in which the number of voting rights is proportional to the balance of the individual or entity voting on a proposal. More information can be found here.
Dependencies
NodeJS (installation instruction)
Build and Test
Once NodeJS has been install, run an installation of the project with its proper dependencies. Finally, run the tests on the projects. This will create a personal blockchain using Ganache. Alternatively, the Ganache application can be downloaded here.
npm install
npm run test
If you are using Windows and encounter an error attempting to locate the test script run the following instead:
npm run test-windows