Giter Club home page Giter Club logo

erc20_token's Introduction

ERC20 token with Freeze, Airdrop and Bounty Functions

1. Specifications:

  1. the account that deployes the contract is the token contract owner;
  2. contract owner has all the tokens at the begining;
  3. transfer funds between accounts;
  4. owner can freeze any account to prevent tranferring funds out from these accounts;
  5. owner can unfreeze accounts to enable transfer;
  6. owner can add address to the airdrop list with amount value;
  7. owner can lanuch the airdrop to those registered accounts;
  8. owner can return a list of all accounts that received tokens;
  9. user can issue bounty program and make contribution;
  10. user can fullfil the bounty program and receive the payment.

2. JS testing

  • The token contract can be tested with test/TestToken.js file:
$ truffle test test/TestToken.js 

The result is similar to following:

  • the bounty feature is tested with:
$ truffle test test/TestBounty.js 

3. Deploy to Ropsten TestNet

deploy the contracts to ropsten network as:

$ truffle migrate --reset --network ropsten

Token contract address: 0x15461cc94ef777eebb7b54be3e1cb90c53b5d574

Bounty contract address: 0xdc4f31c7a1f8671282024b86c479fafbd15e7369

erc20_token's People

Contributors

dependabot[bot] avatar gongf05 avatar h34d avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.