EZ365 is a digital ecosystem that combines the best aspects of online gaming, cryptocurrency trading and blockchain education. The EZ365 experience is simple, user friendly and fun, so you can easily play, trade and learn with digital assets.
Check https://ez365.io/ for more details.
Please note that this repository is under development. The code here will be under continual audit and improved until release of the completed system.
EZ365 Smart Contracts
contracts/contains smart contract code to be deployed.
contracts/ERC20.solStandard ERC20 token.
contracts/ERC20Detailed.soldefining token metdata like name , symbol and decimals.
contracts/EZ365Token.soldefining token main contract and minting total supply to owner address.
contracts/IERC20.solinterface for all functions of ERC20.
contracts/Ownable.sola contract with an owner.
contracts/SafeMath.sola library to handle all basic math operations like sum, divide or multiply, with built-in safety checking.
SetUp & Run Unit Tests
Step#1: Install npm https://www.npmjs.com/get-npm npm install npm@latest -g Step#2: Install truffle: http://truffleframework.com/ npm install -g truffle Step#3: Install testRpc https://github.com/trufflesuite/ganache-cli npm install -g ganache-cli Step#4: Install external package chai: https://www.npmjs.com/package/chai npm install chai Step#5: Install external package chai-as-promised: https://www.npmjs.com/package/chai-as-promised npm install chai-as-promised
Step#1: Navigate to root folder Step#2: Run 'testrpc' or 'ganache-cli' from console Step#3: Open another console and from root folder run 'truffle test'
$ truffle test Compiling ./contracts/ERC20.sol... Compiling ./contracts/ERC20Detailed.sol... Compiling ./contracts/EZ365Token.sol... Compiling ./contracts/IERC20.sol... Compiling ./contracts/Ownable.sol... Compiling ./contracts/ERC20Basic.sol... Compiling ./contracts/Migrations.sol... Compiling ./contracts/Ownable.sol... Compiling ./contracts/SafeMath.sol... Contract: Token contract Check SC instance tokenContract = 0x48a95B221EeBe216642A6439658374691DCca673 ✓ catch an instance of tokenContract totalSupply = 2e+26 ✓ Saving totalSupply Check initial parameters Token name = EZ365 ✓ Check Token name Token Symbol = EZ365 ✓ Check Token Symbol Token decimals = 18 ✓ check Token Decimals Get tokenHolders addresses owner = 0x8eD5e10E007E1BE8801C58D7af7A74F054Fca8E7 ✓ check owner address Check initial balances 2e+26 ✓ check owner possibility to transfer tokens 8 passing (230ms)