Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.39 KB

README.md

File metadata and controls

50 lines (38 loc) · 1.39 KB

API3 Voting App

This is a customized version of the Aragon Voting app. It integrates to the API3 pool instead of a generic MiniMe token to determine voting power. It also implements the following additional features:

  • Does not allow users to create a new vote less than EPOCH_LENGTH (defined in the API3 pool) apart (immutably set as 1 week)
  • Does not allow users that have less than proposalVotingPowerThreshold (defined in the API3 pool) to create a new vote (governable, initial value 0.1%)

Instructions

  • Build
npm run compile
  • Test, get gas and coverage reports
npm run test
npm run test:gas
npm run test:coverage
  • Receive git diff reports comparing Api3Voting to Voting in the diff/ directory
npm run diff
  • See the deployed versions
aragon apm versions api3voting.open.aragonpm.eth --environment <ropsten/rinkeby/mainnet>

Deployment

Note: Use Node v12, the Aragon tooling is not compatible with newer versions.

  • Install IPFS, initialize it and start the daemon
ipfs init
ipfs daemon
  • Publish updates
npx buidler publish major --network <ropsten/rinkeby/mainnet>

See the Aragon docs for more information. Modify buidler.config.js to update the deployer account, provider, etc.