gametoken

Game token for filp coin game.

GameToken

Simple ethereum token.

Do not use this in production environment.

Usage
npm install gametoken

import 'gametoken/contracts/GameToken.sol'

Or

import 'gametoken/contracts/SecureGameToken.sol'
Development
npm install
Test

Before run test, make sure you have installed truffle.

npm install -g truffle
  • Run test with truffle and testrpc.

    npm install -g testrpc

Run testrpc

testrpc

Run test

truffle test
  • Run test with private blockchain.

    truffle test --network private

Remember to modify providers/private.js

  • Run test without install testrpc globally.

    truffle test --network test

container

If you want to type host name like testrpc or geth in truffle.js, you can use docker or other virtual service to do.

  1. write docker-compose.yml

  2. run container

HomePage

https://github.com/sc0Vu/GameToken#readme

Repository

git+https://github.com/sc0Vu/GameToken.git


相关推荐

暂无相关文章