关于ERC20的Token学习Demo
https://github.com/ConsenSys/Tokens

Mike Goldin 7f4ce6543f Remove dead code 6 năm trước cách đây
contracts 7f4ce6543f Remove dead code 6 năm trước cách đây
migrations 54bd8ab184 Flatten the structure 6 năm trước cách đây
test 16f11804fa Remove approveAndCall 6 năm trước cách đây
.gitignore 2d7a81c1ee Merge upstream repo here 6 năm trước cách đây
LICENSE 1c402f2ea1 Add explicit LICENSE file 8 năm trước cách đây
README.md 8fcd4d6ff1 Remove redundant license text from README 6 năm trước cách đây
ethpm.json 2d7a81c1ee Merge upstream repo here 6 năm trước cách đây
package-lock.json b73f68d6d3 Inline Truffle 4 6 năm trước cách đây
package.json b73f68d6d3 Inline Truffle 4 6 năm trước cách đây
truffle.js b73f68d6d3 Inline Truffle 4 6 năm trước cách đây

README.md

Tokens

Codeship Status for ConsenSys/Tokens

This repo contains Solidity smart contract code to issue simple, standards-compliant tokens on Ethereum. It can be used to create any form of asset, currency, coin, hours, usage tokens, vunk, etc.

The default is StandardToken.sol which ONLY implements the core ERC20 standard functionality #20.

HumanStandardToken.sol is an example of a token that has optional extras fit for your issuing your own tokens, to be mainly used by other humans. It includes:

  1. Initial Finite Supply (upon creation one specifies how much is minted).
  2. In the absence of a token registry: Optional Decimal, Symbol & Name.
  3. Optional approveAndCall() functionality to notify a contract if an approval() has occurred.

There is a set of tests written for the HumanStandardToken.sol using the Truffle framework to do so.

Standards allows other contract developers to easily incorporate your token into their application (governance, exchanges, games, etc). It will be updated as often as possible.

Testing

npm install

For getting truffle-hdwallet-provider. Solidity tests have to still be written.

Uses Truffle 3.x.

ethpm

This is published under tokens at ethpm.

Contributing

Pull requests are welcome! Please keep standards discussions to the EIP repos.

When submitting a pull request, please do so to the staging branch.