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

Simon de la Rouviere eefd92eb3d Bump package version for Truffle, Solhint & Solidty Coverage. 6 سال پیش
contracts eefd92eb3d Bump package version for Truffle, Solhint & Solidty Coverage. 6 سال پیش
migrations e4e78a929c Update truffle and tests to error on Revert 6 سال پیش
test 59ab5fef3c Conform to Mike 6 سال پیش
.eslintrc.json ef4f7d2594 Improve eslint config, and some linting 6 سال پیش
.gitattributes 5583eee7e3 Adding in git attributes 6 سال پیش
.gitignore 2d7a81c1ee Merge upstream repo here 7 سال پیش
.solcover.js 389400e31b Remove commented out config 6 سال پیش
.solhint.json d091794a5d Float pragmas, clean up comments 6 سال پیش
LICENSE 1c402f2ea1 Add explicit LICENSE file 8 سال پیش
README.md 4dedd70c1f Add coverage badge 6 سال پیش
ethpm.json 0bd7a7077e Bump to 1.0.0 7 سال پیش
package-lock.json 4f214694f4 Add coveralls 6 سال پیش
package.json eefd92eb3d Bump package version for Truffle, Solhint & Solidty Coverage. 6 سال پیش
truffle.js 779d0ac6b4 Working coverage config 6 سال پیش

README.md

Tokens

Codeship Status for ConsenSys/Tokens Coverage Status license David [npm]() AirBNB GitHub issues

This repo contains Solidity smart contract code for simple, standards-compliant tokens on Ethereum. Adhering to standards allows other contract developers to easily incorporate your token into their applications.

The repo currently implements EIP20 tokens, and more may be added in the future.

Initialize

The only environmental dependency you need is Node. Presently we can guarantee this all works with Node 8.

npm install
npm run compile

Tests

The repo has a comprehensive test suite. You can run it with npm run test.

ethpm

The contracts in this repo are published under tokens on EPM. EPM is the recommended means of consuming token contracts in this repo. Copy-pasting code is highly discouraged.

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. For a pull request to be accepted, they must pass the test suite. If a pull request adds features, it should add test coverage for those features.