Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The DAO code has implemented the Standard Token: https://github.com/ethereum/EIPs/issues/20

Creation

Tokens are created by sending ether to the DAO during the creation period. There is different ether/token creation ration during the period, as specified in the white paper section 5.

...

  1. Sending ether directly to the DAO contract without calling any function (no data attached to the transaction, simple value transfer). In this case the sender of the transaction will be the owner of the newly created tokens.

  2. Calling the createTokenProxy function. This function has an address as input parameter. This address will be the owner of the tokens.

Panel
bgColor#DDEEDD
Example data: In the case I would like to create tokens owned by the address:0x112233445566778899aabbccddeeff0011223344, I would send a transaction to the DAO contract with the data: 0xbaac5300000000000000000000000000112233445566778899aabbccddeeff0011223344 (for another address, replace the last 40 characters with your address).

This is particular useful when sending ether stored by an exchange, who typically holds the private keys of your sender account. This way one could create an ethereum account, owning the private keys, and send ether from an exchange adding the above described data, in order to own the DAO token yourself.

Transfer

Info
NOTE: During the Creation phase, tokens cannot be transferred between accounts.

The latest version of the Mist Wallet (https://github.com/ethereum/mist/releases) support standard Token. You can simply use the "watch token" feature, and enter the address of the DAO contract, a freely given name and the decimals for the token. In the white paper the decimal is defined as 16. This means, one DAO token is defined as 10^16 base unit tokens. Similar to ether being 10^18Wei (the base unit in ethereum). You can then use the Mist Wallet to send tokens (see Mist Wallet documentation).

Additionally you can use the functions functions transfer and   and transferFrom in the DAO contract. Thetransfer function The transfer function takes two parameters:

  • to Recipient  Recipient of the tokens
  • value

     Amount

    Amount of tokens (base units!) to be transferred

Here the tokens from the sender of the transaction are transferred.

...