Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

BoomerangProject/boom-token

Repository files navigation

Kudos Token Contracts

Kudos

Kudos is a rewards and performance driven currency built on top of the Ethereum blockchain. Kudos is the fastest and easiest way to rate and equitably reward both users and workers. By leveraging the blockchain to achieve complete transparency, Kudos restores trust in ratings through cryptographically verified transactions that cannot be manipulated by ads or algorithms.

The Kudos token contracts are written in Solidity and tested using truffle and testrpc.

Dependencies

# install truffle and testrpc packages globally
$ npm install -g truffle ethereumjs-testrpc

# install local node dependencies in project directory
$ npm install

Run Tests

# run testrpc instance (make sure no other ethereum clients are running)
$ ./scripts/testrpc.sh

# run smart contract tests
$ truffle test

Generate Code Coverage Report

# run solidity-coverage tool
$ ./scripts/coverage.sh

# view report at ./coverage/index.html

launch sequence 🚀

  1. deploy the KudosToken contract with truffle deploy

  2. move the stash/3_deploy_tokensalecontract.js migration script to the migrations folder

  3. in the migrations/3_deploy_tokensalecontract.js file:

    • specify the wallet address that will receive ETH in the crowdsale in the wallet variable

    • specify the address of the deployed token contract in the tokenContractAddress variable

  4. deploy the KudosTokenSale contract with truffle deploy

  5. fund the crowdsale contract with the Kudos tokens created in step 1 (the amount should match the value of the amountOfTokensForSale variable in the KudosTokenSale contract)

    for example, in truffle console:

> KudosToken.deployed().then(function(instance) { token = instance});
> KudosTokenSale.deployed().then(function(instance) { sale = instance});
> token.transfer(sale.address, web3.toWei('4000000000', 'ether'));
  1. whitelist users for each tier with the registerTier1Users and registerTier2Users functions, remove users from the whitelist with the unregisterUsers function

About

ERC token contracts for www.boomerangproject.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published