Skip to content

Commit

Permalink
Allow MiniMe token creation (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quazia authored and 0xGabi committed Feb 25, 2019
1 parent 4551da1 commit 6b576b9
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
19 changes: 15 additions & 4 deletions packages/aragon-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/aragon-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"homepage": "https://github.com/aragon/aragon-dev-cli#readme",
"dependencies": {
"@aragon/apm": "^2.0.2",
"@aragon/apps-shared-minime": "^1.0.1",
"@aragon/aragen": "^2.0.3",
"@aragon/os": "^4.0.0",
"@aragon/templates-beta": "^1.1.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ exports.task = async ({ web3, tokenAddress, newController, silent, debug }) => {
{
title: 'Changing the MiniMe token controller',
task: async (ctx, task) => {
let artifact = getContract('@aragon/os', 'MiniMeToken')
let artifact = getContract(
'@aragon/apps-shared-minime',
'MiniMeToken'
)
let contract = new web3.eth.Contract(artifact.abi, tokenAddress)

const tx = contract.methods.changeController(newController)
Expand Down
10 changes: 8 additions & 2 deletions packages/aragon-cli/src/commands/dao_cmds/token_cmds/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ exports.task = async ({
{
title: 'Deploy the MiniMeTokenFactory contract',
task: async (ctx, task) => {
let artifact = getContract('@aragon/os', 'MiniMeTokenFactory')
let artifact = getContract(
'@aragon/apps-shared-minime',
'MiniMeTokenFactory'
)
let contract = new web3.eth.Contract(artifact.abi)

const deployTx = contract.deploy({ data: artifact.bytecode })
Expand All @@ -72,7 +75,10 @@ exports.task = async ({
{
title: 'Deploy the MiniMeToken contract',
task: async (ctx, task) => {
let artifact = getContract('@aragon/os', 'MiniMeToken')
let artifact = getContract(
'@aragon/apps-shared-minime',
'MiniMeToken'
)
let contract = new web3.eth.Contract(artifact.abi)

const deployTx = contract.deploy({
Expand Down

0 comments on commit 6b576b9

Please sign in to comment.