Skip to content

Commit

Permalink
deploy task for moloch dao works
Browse files Browse the repository at this point in the history
  • Loading branch information
santisiri committed Jan 16, 2021
1 parent f8acece commit e93122f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
12 changes: 11 additions & 1 deletion deployment-params.js
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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
5 changes: 2 additions & 3 deletions scripts/dao-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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
Expand Down

0 comments on commit e93122f

Please sign in to comment.