The MagicCubeToken contract is a standard ERC20 token with extra game functionality:
We will use nodejs and npm help complete install dependencies.
We recommend using node 8.x.x or more, NPM 6.x.x or more
npm install
Ganache v1.3.0
Truffle v4.1.14
solidity v0.4.2
web3 v0.20.0
Neo.SmartContract v2.9.3
npm run testRPC
npm run compile
npm run migrate
** In the red box, the contract address is indicated. **
we write test code by use web3.js that is v 0.20.0. Please note that do not use web3 for 1.0.0.
in the test folder , we have writed test scripts, that you can use.
See the LICENSE file for details.