From e93122f21debd1786eb97713946f32708d704a90 Mon Sep 17 00:00:00 2001 From: Santiago Siri Date: Sat, 16 Jan 2021 20:22:44 +0100 Subject: [PATCH] deploy task for moloch dao works --- deployment-params.js | 12 +++++++++++- scripts/dao-tasks.js | 5 ++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/deployment-params.js b/deployment-params.js index c66916f..fc546f3 100644 --- a/deployment-params.js +++ b/deployment-params.js @@ -1,4 +1,4 @@ -// Deployment params +// Deployment params for UBI module.exports.INITIAL_SUPPLY = '1000000000000000000000000000'; module.exports.TOKEN_NAME = "Democracy Earth"; module.exports.TOKEN_SYMBOL = "UBI"; @@ -7,4 +7,14 @@ module.exports.PROOF_OF_HUMANITY_KOVAN = '0x413752ADd5ff51CC1928FA73BEFA65b37dEB module.exports.PROXY_CONTRACT_ADDRESS = '0xDdAdE19B13833d1bF52c1fe1352d41A8DD9fE8C9'; module.exports.PROXY_ADMIN = '0x33B67C1B1161421114F5476597Bc054232B47C06'; +// Deployment params for DAO +module.exports.SUMMONER = '0xEdB47F691a77022f03817f80FEc09aCc363747aE' +module.exports.TOKEN = '0xDdAdE19B13833d1bF52c1fe1352d41A8DD9fE8C9' +module.exports.PERIOD_DURATION_IN_SECONDS = 17280 +module.exports.VOTING_DURATON_IN_PERIODS = 35 +module.exports.GRACE_DURATON_IN_PERIODS = 35 +module.exports.PROPOSAL_DEPOSIT = '1000000000000000000' // Large numbers should be string or big numbers +module.exports.DILUTION_BOUND = 3 +module.exports.PROCESSING_REWARD = '10000000000' + // @NOTE: decimal counter string: 01234567890abcdefg \ No newline at end of file diff --git a/scripts/dao-tasks.js b/scripts/dao-tasks.js index d52e1f4..96daf4b 100644 --- a/scripts/dao-tasks.js +++ b/scripts/dao-tasks.js @@ -20,7 +20,7 @@ task('moloch-deploy', 'Deploys a new instance of the Moloch DAO') // Make sure everything is compiled await run('compile') - console.log('Deploying a new DAO to the network ' + buidlerArguments.network) + console.log('Deploying a new DAO to the network ' + network.name) console.log( 'Deployment parameters:\n', ' summoner:', deploymentParams.SUMMONER, '\n', @@ -47,11 +47,10 @@ task('moloch-deploy', 'Deploys a new instance of the Moloch DAO') console.log("Deploying...") const moloch = await Moloch.new( deploymentParams.SUMMONER, - deploymentParams.TOKEN, + [deploymentParams.TOKEN], deploymentParams.PERIOD_DURATION_IN_SECONDS, deploymentParams.VOTING_DURATON_IN_PERIODS, deploymentParams.GRACE_DURATON_IN_PERIODS, - deploymentParams.ABORT_WINDOW_IN_PERIODS, deploymentParams.PROPOSAL_DEPOSIT, deploymentParams.DILUTION_BOUND, deploymentParams.PROCESSING_REWARD