Siggg/culottes

View on GitHub
migrations/2_deploy_contracts.js

Summary

Maintainability
A
0 mins
Test Coverage
var RevolutionFactory = artifacts.require("./RevolutionFactory.sol");

module.exports = function(deployer) {

  /* Below is where you setup the parameters of your Revolution instance.
   *
   * Please refer to the source code of the Revolution contract in order to understand
   * the exact meaning of each parameter.
   *
   * For more convenience the definition of these parameters was copied from the contract
   * to here but this copy might be obsolete. Please refer to the source code of the Revolution
   * contract in order to get the exact and current meaning of each parameter.
   *
   * // Criteria the citizen should match to win votes
   * // e.g. : "a sans-culotte"
   * string criteria;
   *
   * // Minimum number of blocks before next cake distribution from the Revolution
   * uint distributionBlockPeriod;
   *
   * // Amount of WEI to be distributed to each citizen matching criteria
   * uint distributionAmount;
   *
   * // Will this Revolution randomly close its trials ?
   * bool withLottery;
   *
   * // Will this Revolution automatically consider distributing cakes after each vote ?
   * bool withDistribution;
   *
   */

  deployer.deploy(
    RevolutionFactory
/*
    Revolution,
    'a frequent contributor to open source or copyleft-based projects who deserves a daily cup of thanks for their contributions', // criteria to match
    '#CulottesRevolution', // hashag to be used to discuss this contract
    3, // distributionBlockPeriod in blocks (about 15 seconds per block so one day is approximately 5760 blocks)
    7, // distributionAmount for instance web3.utils.toBN(web3.utils.toWei('0.025', 'ether'))
    true // testingMode, set to false unless you want to run automated tests*/
/*    'a real, living and unique human being', // criteria to match
    '#UniversalBasicIncome', // hashtag
    175680, // distributionBlockPeriod
    web3.utils.toBN(web3.utils.toWei('0.5', 'ether')),
    false
/*    'a person who has been one of the top 3 most deserving testers and contributors to this projects over the last 7 days', // criteria to match
    '#Top3Contributors', // hashtag to be used to discuss this contract
    5760, // distributionBlockPeriod in blocks (about 15 seconds per block so one day is approximately 5760 blocks)
    web3.utils.toBN(web3.utils.toWei('0.1', 'ether')), // distributionAmount, for instance web3.utils.toBN(web3.utils.toWei('0.025', 'ether'))
    false, // testingMode, set to false unless you want to run automated tests */ 
  );
};