Creating an Autonomous Bank with Ethereum Wallet: The Guide

Published:

This is the third and last installment in a series on how to use Ethereum Wallet to create your own independent organization. In the first post, we learned how to create a token. In the second, we saw how these tokens can be used to form a digital democracy. Now, we will modify the token contract so that your DAO can make it.

First, make sure the current address of the DAO is written down in a well-organized notebook. Then, go to the Contracts tab > Implement new contract > Solidity Code > Choose contract. You can fill in the parameters as you please (yes, even emojis are allowed in string fields), but there will be a brand new field — Central Minter. Here, add your address for your freshly-created Democracy Contract.

Click Deploy and wait for the transaction. After you have received two confirmations at most, you can go to your democracy account to check that you now have one million of your new coins. If you visit the Contracts tab, it will prove that something new is in there – the DAO Dollar (admin page) Contract for your collection.

Select the “mintToken” function and enter the address to the right – “target”. Then, choose how many mints you’d like to generate out of thin air. Press “run”, but do not click Send! An alert will appear indicating that the transaction is not possible. This happens because only the minter address is currently responsible for this function. You can call it and it will be connected to your parent account. Copy the calling codes from the same number.

However, copy the contract execution code to the “data” field and put it aside, keeping it on a notepad. Also, find your new address – “Mint” – and you can contract it and store it somewhere else.

Now, you can go back to the demo contract and create a new proposal that incorporates these parameters:

  • As the beneficiary, enter your new token’s address
  • Leave the etherQuantity blank
  • In the work description, write down some details about your plans to mint new coins
  • In the TransactionBytecode, paste the code that was stored in the data section from the previous step

Ethereum wallet screenshot 2015-12-01 at 7.22.48 pm

Related articles

Recent articles