Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolved issues 102 and 98 #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deployment-params.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Deployment params
module.exports.SUMMONER = ''
module.exports.TOKEN = ''
module.exports.APPROVED_TOKENS = ''
module.exports.PERIOD_DURATION_IN_SECONDS = 17280
module.exports.VOTING_DURATON_IN_PERIODS = 35
module.exports.GRACE_DURATON_IN_PERIODS = 35
Expand Down
8 changes: 3 additions & 5 deletions scripts/moloch-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ 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 ' + hre.network.name)
console.log(
'Deployment parameters:\n',
' summoner:', deploymentParams.SUMMONER, '\n',
' token:', deploymentParams.TOKEN, '\n',
' periodSeconds:', deploymentParams.PERIOD_DURATION_IN_SECONDS, '\n',
' votingPeriods:', deploymentParams.VOTING_DURATON_IN_PERIODS, '\n',
' gracePeriods:', deploymentParams.GRACE_DURATON_IN_PERIODS, '\n',
' abortPeriods:', deploymentParams.ABORT_WINDOW_IN_PERIODS, '\n',
' proposalDeposit:', deploymentParams.PROPOSAL_DEPOSIT, '\n',
' dilutionBound:', deploymentParams.DILUTION_BOUND, '\n',
' processingReward:', deploymentParams.PROCESSING_REWARD, '\n'
Expand All @@ -47,19 +46,18 @@ task('moloch-deploy', 'Deploys a new instance of the Moloch DAO')
console.log("Deploying...")
const moloch = await Moloch.new(
deploymentParams.SUMMONER,
deploymentParams.TOKEN,
deploymentParams.APPROVED_TOKENS,
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
)

console.log("")
console.log('Moloch DAO deployed. Address:', moloch.address)
console.log("Set this address in buidler.config.js's networks section to use the other tasks")
console.log("Set this address in hardhat.config.js's networks section to use the other tasks")
})

task('moloch-submit-proposal', 'Submits a proposal')
Expand Down